<?xml version="1.0" encoding="utf-8"?><xsl:stylesheet xml:lang="en" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:d="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:exsl="http://exslt.org/common" xmlns:egonp="http://schemas.gov.sk/form/00324451.A0000420.000000260.VYST_420048_VyzvaNaZaplatenieCelkovehoNedoplatku_RozpisNedoplatku_edit/2.3" exclude-result-prefixes="d" version="1.0"><xsl:template match="/"><fo:root><fo:layout-master-set><fo:simple-page-master master-name="A4" page-height="842px" page-width="595px" margin-top="20px" margin-bottom="10px" margin-left="15mm" margin-right="10mm"><fo:region-body margin-bottom="20mm" /><fo:region-after region-name="footer" extent="10mm" /></fo:simple-page-master><fo:simple-page-master master-name="A4last" page-height="842px" page-width="595px" margin-top="20px" margin-bottom="10px" margin-left="15mm" margin-right="10mm"><fo:region-body margin-bottom="20mm" /><fo:region-after region-name="footer2" extent="20mm" /></fo:simple-page-master><fo:page-sequence-master master-name="document"><fo:repeatable-page-master-alternatives><fo:conditional-page-master-reference page-position="only" master-reference="A4last" /><fo:conditional-page-master-reference page-position="first" master-reference="A4" /><fo:conditional-page-master-reference page-position="rest" master-reference="A4" /><fo:conditional-page-master-reference page-position="last" master-reference="A4last" /></fo:repeatable-page-master-alternatives></fo:page-sequence-master></fo:layout-master-set><fo:page-sequence master-reference="document" font-family="Times New Roman" font-size="10px" text-align="justify"><fo:static-content flow-name="footer"><fo:block text-align="end"><fo:page-number />
                        /
                        <fo:page-number-citation ref-id="TheVeryLastPage" /></fo:block></fo:static-content><fo:static-content flow-name="footer2"><xsl:call-template name="FooterTemplate" /><fo:block text-align="end"><fo:page-number />
                        /
                        <fo:page-number-citation ref-id="TheVeryLastPage" /></fo:block></fo:static-content><fo:flow flow-name="xsl-region-body"><xsl:apply-templates /><fo:block id="TheVeryLastPage" /></fo:flow></fo:page-sequence></fo:root></xsl:template><xsl:template match="egonp:eForm_eGov_vystup_420048"><xsl:apply-templates select="./egonp:Obec" /><xsl:apply-templates select="./egonp:RozhodnutieHlavicka" /><xsl:apply-templates select="./egonp:Adresat" /><xsl:apply-templates select="./egonp:Rozhodnutie" /><xsl:apply-templates select="./egonp:Poplatok" /><xsl:apply-templates select="./egonp:VypocetPoplatok" /><xsl:apply-templates select="./egonp:Upozornenie" /><xsl:apply-templates select="./egonp:Poucenie" /><xsl:apply-templates select="./egonp:PaymentData" /><xsl:apply-templates select="./egonp:Podpis" /><xsl:apply-templates select="./egonp:DorucujeSa" /><xsl:apply-templates select="./egonp:SekciaZakonEGovInfo" /></xsl:template><xsl:template match="egonp:eForm_eGov_vystup_420048/egonp:Obec"><fo:block border-bottom-style="solid" text-align="center"><fo:block font-weight="bold" font-size="15pt"><xsl:if test="./egonp:Obec_MsU"><xsl:variable name="resultMesto"><xsl:call-template name="getFirst"><xsl:with-param name="text" select="./egonp:Obec_MsU" /><xsl:with-param name="separator" select="':'" /></xsl:call-template></xsl:variable><xsl:variable name="upper" select="translate($resultMesto, 'abcdefghijklmnopqrstuvwxyzàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿžšœ', 'ABCDEFGHIJKLMNOPQRSTUVWXYZÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞŸŽŠŒ')" /><xsl:value-of select="$upper" /></xsl:if></fo:block><fo:block><xsl:call-template name="getLast"><xsl:with-param name="text" select="./egonp:Obec_MsU" /><xsl:with-param name="separator" select="':'" /></xsl:call-template></fo:block></fo:block></xsl:template><xsl:template match="egonp:eForm_eGov_vystup_420048/egonp:RozhodnutieHlavicka"><fo:table margin-top="15px"><fo:table-column column-width="20%" /><fo:table-column column-width="52%" /><fo:table-column column-width="6%" /><fo:table-column /><fo:table-body><fo:table-row><fo:table-cell><fo:block font-weight="bold">
                            Správca dane:
                        </fo:block></fo:table-cell><fo:table-cell><fo:block><xsl:value-of select="./egonp:RozhodnutieHlavicka_SpravcaDane" /></fo:block></fo:table-cell><fo:table-cell><fo:block font-weight="bold" text-indent="2mm"><xsl:call-template name="getFirst"><xsl:with-param name="text" select="./egonp:RozhodnutieHlavicka_VMeste" /><xsl:with-param name="separator" select="' '" /></xsl:call-template></fo:block></fo:table-cell><fo:table-cell><fo:block><xsl:call-template name="getLast"><xsl:with-param name="text" select="./egonp:RozhodnutieHlavicka_VMeste" /><xsl:with-param name="separator" select="' '" /></xsl:call-template></fo:block></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell><fo:block font-weight="bold">
                            Vybavuje:
                        </fo:block></fo:table-cell><fo:table-cell><fo:block><xsl:value-of select="./egonp:RozhodnutieHlavicka_Vybavuje_iss_text6" /></fo:block></fo:table-cell><fo:table-cell><fo:block font-weight="bold" text-indent="2mm"><xsl:call-template name="getFirst"><xsl:with-param name="text" select="./egonp:RozhodnutieHlavicka_Datum_iss_gatl17" /><xsl:with-param name="separator" select="' '" /></xsl:call-template></fo:block></fo:table-cell><fo:table-cell><fo:block><xsl:call-template name="getLast"><xsl:with-param name="text" select="./egonp:RozhodnutieHlavicka_Datum_iss_gatl17" /><xsl:with-param name="separator" select="' '" /></xsl:call-template></fo:block></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell><fo:block font-weight="bold">
                            Číslo telefónu:
                        </fo:block></fo:table-cell><fo:table-cell><fo:block><xsl:value-of select="./egonp:RozhodnutieHlavicka_Telefon_iss_text7" /></fo:block></fo:table-cell><fo:table-cell><fo:block /></fo:table-cell><fo:table-cell><fo:block /></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell><fo:block font-weight="bold">
                            Číslo konania:
                        </fo:block></fo:table-cell><fo:table-cell><fo:block><xsl:value-of select="./egonp:RozhodnutieHlavicka_CisloKonania_iss_tl_c_kon" /></fo:block></fo:table-cell><fo:table-cell><fo:block /></fo:table-cell><fo:table-cell><fo:block /></fo:table-cell></fo:table-row><xsl:if test="./egonp:RozhodnutieHlavicka_EvidencneCislo_iss_tl_ce/text()"><fo:table-row><fo:table-cell><fo:block font-weight="bold">
                                Evidenčné číslo:
                            </fo:block></fo:table-cell><fo:table-cell><fo:block><xsl:value-of select="./egonp:RozhodnutieHlavicka_EvidencneCislo_iss_tl_ce" /></fo:block></fo:table-cell><fo:table-cell><fo:block /></fo:table-cell><fo:table-cell><fo:block /></fo:table-cell></fo:table-row></xsl:if></fo:table-body></fo:table></xsl:template><xsl:template match="egonp:eForm_eGov_vystup_420048/egonp:Adresat"><fo:block><fo:table><fo:table-column column-width="20%" /><fo:table-column /><fo:table-body><fo:table-row><fo:table-cell><fo:block font-weight="bold"><xsl:value-of select="./egonp:Adresat_Riadok1" /></fo:block></fo:table-cell><fo:table-cell><fo:block><xsl:value-of select="./egonp:Adresat_Danovnik_iss_mpf" /></fo:block></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell><fo:block font-weight="bold"><xsl:value-of select="./egonp:Adresat_Riadok2" /></fo:block></fo:table-cell><fo:table-cell><fo:block><xsl:value-of select="./egonp:Adresat_ICORC_iss_ico_rc" /></fo:block></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell><fo:block font-weight="bold"><xsl:value-of select="./egonp:Adresat_Riadok3" /></fo:block></fo:table-cell><fo:table-cell><fo:block><xsl:if test="./egonp:Adresat_Adresa_iss_adr/text()"><xsl:call-template name="string-replace-all"><xsl:with-param name="text" select="./egonp:Adresat_Adresa_iss_adr" /><xsl:with-param name="replace" select="'&#10;'" /><xsl:with-param name="by" select="', '" /></xsl:call-template></xsl:if></fo:block></fo:table-cell></fo:table-row></fo:table-body></fo:table></fo:block></xsl:template><xsl:template match="egonp:eForm_eGov_vystup_420048/egonp:Rozhodnutie"><fo:block margin-left="1pt" margin-top="18pt" margin-right="1pt" text-align="center"><fo:block font-weight="bold" font-size="14pt"><xsl:value-of select="./egonp:Rozhodnutie_Text" /></fo:block></fo:block></xsl:template><xsl:template match="egonp:eForm_eGov_vystup_420048/egonp:Poplatok"><fo:block border-width="0.3pt" margin-left="1pt" margin-top="6pt" margin-right="1pt"><fo:block margin-bottom="6pt"><fo:block margin-top="3mm" margin-right="3mm"><fo:block hyphenate="true" text-indent="1cm" text-align="justify"><xsl:value-of select="./egonp:Poplatok_Text01_iss_tl_text1" /></fo:block></fo:block><fo:block margin-top="3mm" margin-right="3mm"><fo:block hyphenate="true" text-indent="1cm" text-align="justify"><xsl:value-of select="./egonp:Poplatok_Text02_iss_tl_text2" /></fo:block></fo:block></fo:block></fo:block></xsl:template><xsl:template match="egonp:eForm_eGov_vystup_420048/egonp:VypocetPoplatok"><fo:block margin-left="1pt" margin-top="6pt" margin-right="1pt"><fo:block margin-bottom="6pt"><fo:table><fo:table-column column-width="20%" /><fo:table-column column-width="10%" /><fo:table-column column-width="20%" /><fo:table-column column-width="15%" /><fo:table-column column-width="15%" /><fo:table-column column-width="20%" /><fo:table-body><fo:table-row text-align="center" font-weight="bold"><fo:table-cell border-style="solid"><fo:block margin-top="5px" margin-bottom="5px"><xsl:value-of select="egonp:VypocetPoplatok_Typ" /></fo:block></fo:table-cell><fo:table-cell border-style="solid"><fo:block margin-top="5px" margin-bottom="5px"><xsl:value-of select="egonp:VypocetPoplatok_Rok" /></fo:block></fo:table-cell><fo:table-cell border-style="solid"><fo:block margin-top="5px" margin-bottom="5px"><xsl:value-of select="egonp:VypocetPoplatok_DatumSplatnosti" /></fo:block></fo:table-cell><fo:table-cell border-style="solid"><fo:block margin-top="5px" margin-bottom="5px"><xsl:value-of select="egonp:VypocetPoplatok_VS" /></fo:block></fo:table-cell><fo:table-cell border-style="solid"><fo:block margin-top="5px" margin-bottom="5px"><xsl:value-of select="egonp:VypocetPoplatok_SS" /></fo:block></fo:table-cell><fo:table-cell border-style="solid"><fo:block margin-top="5px" margin-bottom="5px"><xsl:value-of select="egonp:VypocetPoplatok_Nedoplatok" /></fo:block></fo:table-cell></fo:table-row><xsl:for-each select="./egonp:VypocetPoplatok_Hodnoty"><fo:table-row><fo:table-cell border-style="solid"><fo:block padding="3px" text-align="left" margin-left="3px"><xsl:if test="not(egonp:VypocetPoplatok_Hodnoty_TypHodnota_iss_n_pop_typ_tl_dan_n_pop_dr_memo)"></xsl:if><xsl:value-of select="egonp:VypocetPoplatok_Hodnoty_TypHodnota_iss_n_pop_typ_tl_dan_n_pop_dr_memo" /></fo:block></fo:table-cell><fo:table-cell border-style="solid"><fo:block padding="3px" text-align="center"><xsl:if test="not(egonp:VypocetPoplatok_Hodnoty_RokHodnota_iss_tl_rok_memo)"></xsl:if><xsl:value-of select="egonp:VypocetPoplatok_Hodnoty_RokHodnota_iss_tl_rok_memo" /></fo:block></fo:table-cell><fo:table-cell border-style="solid"><fo:block padding="3px" margin-left="3px"><xsl:if test="not(egonp:VypocetPoplatok_Hodnoty_DatumSplatnostiHodnota_iss_d_splat_n_pop_typ_memo)"></xsl:if><xsl:value-of select="egonp:VypocetPoplatok_Hodnoty_DatumSplatnostiHodnota_iss_d_splat_n_pop_typ_memo" /></fo:block></fo:table-cell><fo:table-cell border-style="solid"><fo:block padding="3px" margin-left="3px"><xsl:if test="not(egonp:VypocetPoplatok_Hodnoty_VSHodnota_iss_tl_vs_memo)"></xsl:if><xsl:value-of select="egonp:VypocetPoplatok_Hodnoty_VSHodnota_iss_tl_vs_memo" /></fo:block></fo:table-cell><fo:table-cell border-style="solid"><fo:block padding="3px" margin-left="3px"><xsl:if test="not(egonp:VypocetPoplatok_Hodnoty_SSHodnota_iss_n_prev_ssy_memo)"></xsl:if><xsl:value-of select="egonp:VypocetPoplatok_Hodnoty_SSHodnota_iss_n_prev_ssy_memo" /></fo:block></fo:table-cell><fo:table-cell border-style="solid"><fo:block padding="3px" text-align="right" margin-right="2pt"><xsl:if test="not(egonp:VypocetPoplatok_Hodnoty_NedoplatokHodnota_iss_tl_stav_memo)"></xsl:if><xsl:value-of select="egonp:VypocetPoplatok_Hodnoty_NedoplatokHodnota_iss_tl_stav_memo" /></fo:block></fo:table-cell></fo:table-row></xsl:for-each><fo:table-row border-style="solid"><fo:table-cell><fo:block padding="3px" text-align="left" font-weight="bold" margin-left="3px"><xsl:value-of select="./egonp:VypocetPoplatok_Spolu" /></fo:block></fo:table-cell><fo:table-cell number-columns-spanned="4"><fo:block /></fo:table-cell><fo:table-cell><fo:block padding="3px" text-align="right" margin-right="2pt"><xsl:value-of select="./egonp:VypocetPoplatok_SpoluHodnota_iss_sumstav" /></fo:block></fo:table-cell></fo:table-row></fo:table-body></fo:table><fo:block margin-top="10px"><xsl:value-of select="./egonp:VypocetPoplatok_Ucet_iss_tl_text11" /></fo:block></fo:block></fo:block></xsl:template><xsl:template match="egonp:eForm_eGov_vystup_420048/egonp:Upozornenie"><fo:block border-width="0.3pt" margin-left="1pt" margin-top="6pt" margin-right="1pt"><fo:block margin-bottom="6pt"><fo:block hyphenate="true" text-indent="1cm" text-align="justify"><xsl:value-of select="./egonp:Upozornenie_Text_iss_tl_text12" /></fo:block></fo:block></fo:block></xsl:template><xsl:template match="egonp:eForm_eGov_vystup_420048/egonp:Poucenie"><fo:block margin-top="6pt" margin-bottom="6pt"><fo:block font-weight="bold">
                Poučenie:
            </fo:block><fo:block hyphenate="true" text-indent="1cm" text-align="justify"><xsl:value-of select="./egonp:Poucenie_Text_iss_tl_text13" /></fo:block></fo:block></xsl:template><xsl:template match="egonp:eForm_eGov_vystup_420048/egonp:PaymentData"><fo:table width="100%" margin-top="15px"><fo:table-column column-width="18%" /><fo:table-column column-width="50%" /><fo:table-column /><fo:table-body><fo:table-row><fo:table-cell><fo:block font-weight="bold" font-size="13pt">
                            Platobné údaje
                        </fo:block></fo:table-cell><fo:table-cell><fo:block /></fo:table-cell><fo:table-cell number-rows-spanned="8"><fo:block><xsl:if test="./egonp:Payment_qrcode/text()"><xsl:variable name="apostrophe">'</xsl:variable><xsl:variable name="QRIMG_data" select="./egonp:Payment_qrcode" /><xsl:variable name="QRIMG" select="concat('url(',$apostrophe,'data:image/png;base64,',$QRIMG_data,$apostrophe,')')" /><fo:external-graphic content-height="10%" scaling="uniform" src="{$QRIMG}" /></xsl:if></fo:block></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell><fo:block font-weight="bold">
                            Suma:
                        </fo:block></fo:table-cell><fo:table-cell><fo:block><xsl:value-of select="./egonp:Payment_suma" /></fo:block></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell><fo:block font-weight="bold">
                            Mena:
                        </fo:block></fo:table-cell><fo:table-cell><fo:block><xsl:value-of select="./egonp:Payment_mena" /></fo:block></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell><fo:block font-weight="bold">
                            Číslo účtu:
                        </fo:block></fo:table-cell><fo:table-cell><fo:block><xsl:value-of select="./egonp:Payment_ucet" /></fo:block></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell><fo:block font-weight="bold">
                            SWIFT-BIC:
                        </fo:block></fo:table-cell><fo:table-cell><fo:block><xsl:value-of select="./egonp:Payment_swift" /></fo:block></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell><fo:block font-weight="bold">
                            Variabilný symbol:
                        </fo:block></fo:table-cell><fo:table-cell><fo:block><xsl:value-of select="./egonp:Payment_VS" /></fo:block></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell><fo:block font-weight="bold">
                            Špecifický symbol:
                        </fo:block></fo:table-cell><fo:table-cell><fo:block><xsl:value-of select="./egonp:Payment_SS" /></fo:block></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell><fo:block font-weight="bold">
                            Konštatný symbol:
                        </fo:block></fo:table-cell><fo:table-cell><fo:block><xsl:value-of select="./egonp:Payment_KS" /></fo:block></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell number-columns-spanned="2"><fo:block /></fo:table-cell><fo:table-cell><fo:block><xsl:value-of select="./egonp:Payment_text" /></fo:block></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell number-columns-spanned="3"><fo:block><xsl:if test="./egonp:Payment_barcode/text()"><xsl:variable name="apostrophe">'</xsl:variable><xsl:variable name="barIMG_data" select="./egonp:Payment_barcode" /><xsl:variable name="barIMG" select="concat('url(',$apostrophe,'data:image/png;base64,',$barIMG_data,$apostrophe,')')" /><fo:external-graphic content-height="220%" scaling="uniform" src="{$barIMG}" /></xsl:if></fo:block></fo:table-cell></fo:table-row></fo:table-body></fo:table></xsl:template><xsl:template match="egonp:eForm_eGov_vystup_420048/egonp:Podpis"><fo:block margin-top="40pt" text-align="center"><fo:table><fo:table-column column-width="60%" /><fo:table-column /><fo:table-body><fo:table-row><fo:table-cell><fo:block /></fo:table-cell><fo:table-cell><fo:block><xsl:value-of select="./egonp:Podpis_Meno_iss_text3" /></fo:block><fo:block><xsl:value-of select="./egonp:Podpis_ZaMsU_iss_text5" /></fo:block></fo:table-cell></fo:table-row></fo:table-body></fo:table></fo:block></xsl:template><xsl:template match="egonp:eForm_eGov_vystup_420048/egonp:DorucujeSa"><fo:block margin-left="1pt" margin-top="6pt" margin-right="1pt"><fo:table><fo:table-column column-width="13%" /><fo:table-column /><fo:table-body><fo:table-row><fo:table-cell><fo:block>
                                Doručuje sa:
                            </fo:block></fo:table-cell><fo:table-cell><fo:block><xsl:value-of select="./egonp:DorucujeSa_Meno_iss_gatl19_i_o_zast_mpf_mpf_zast" /></fo:block></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell><fo:block /></fo:table-cell><fo:table-cell><fo:block><xsl:if test="./egonp:DorucujeSa_Adresa_iss_gatl19_i_o_zast_adr_adr_zast/text()"><xsl:call-template name="string-replace-all"><xsl:with-param name="text" select="./egonp:DorucujeSa_Adresa_iss_gatl19_i_o_zast_adr_adr_zast" /><xsl:with-param name="replace" select="'&#10;'" /><xsl:with-param name="by" select="', '" /></xsl:call-template></xsl:if></fo:block></fo:table-cell></fo:table-row></fo:table-body></fo:table></fo:block></xsl:template><xsl:template match="egonp:eForm_eGov_vystup_420048/egonp:SekciaZakonEGovInfo"><fo:block text-indent="1cm" margin-top="10px" font-style="italic"><xsl:value-of select="./egonp:Info_text" /></fo:block></xsl:template><xsl:template name="FooterTemplate"><fo:block border-top="solid black 1pt"><fo:table margin-top="2px"><fo:table-body><fo:table-row keep-together.within-page="always"><fo:table-cell><fo:block text-align="center" font-size="8px">
                                Telefón
                            </fo:block></fo:table-cell><xsl:if test="/egonp:eForm_eGov_vystup_420048/egonp:Obec/egonp:Obec_Email/text()"><fo:table-cell><fo:block text-align="center" font-size="8px">
                                    Email
                                </fo:block></fo:table-cell></xsl:if><fo:table-cell><fo:block text-align="center" font-size="8px">
                                Web
                            </fo:block></fo:table-cell><fo:table-cell><fo:block text-align="center" font-size="8px">
                                IČO
                            </fo:block></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell><fo:block margin-top="1mm" linefeed-treatment="preserve" text-align="center" font-size="6px"><xsl:value-of select="/egonp:eForm_eGov_vystup_420048/egonp:Obec/egonp:Obec_Telefon__TelephoneAddress" /></fo:block></fo:table-cell><xsl:if test="/egonp:eForm_eGov_vystup_420048/egonp:Obec/egonp:Obec_Email/text()"><fo:table-cell><fo:block margin-top="1mm" linefeed-treatment="preserve" text-align="center" font-size="6px"><xsl:value-of select="/egonp:eForm_eGov_vystup_420048/egonp:Obec/egonp:Obec_Email" /></fo:block></fo:table-cell></xsl:if><fo:table-cell><fo:block margin-top="1mm" linefeed-treatment="preserve" text-align="center" font-size="6px"><xsl:value-of select="/egonp:eForm_eGov_vystup_420048/egonp:Obec/egonp:Obec_Web" /></fo:block></fo:table-cell><fo:table-cell><fo:block margin-top="1mm" linefeed-treatment="preserve" text-align="center" font-size="6px"><xsl:value-of select="/egonp:eForm_eGov_vystup_420048/egonp:Obec/egonp:Obec_ICO" /></fo:block></fo:table-cell></fo:table-row></fo:table-body></fo:table></fo:block></xsl:template><xsl:template name="getFirst"><xsl:param name="text" /><xsl:param name="separator" /><xsl:choose><xsl:when test="contains($text, $separator)"><xsl:value-of select="substring-before($text,$separator)" /></xsl:when><xsl:otherwise><xsl:value-of select="$text" /></xsl:otherwise></xsl:choose></xsl:template><xsl:template name="getLast"><xsl:param name="text" /><xsl:param name="separator" /><xsl:choose><xsl:when test="contains($text, $separator)"><xsl:value-of select="substring-after($text,$separator)" /></xsl:when><xsl:otherwise><xsl:value-of select="$text" /></xsl:otherwise></xsl:choose></xsl:template><xsl:template name="string-replace-all"><xsl:param name="text" /><xsl:param name="replace" /><xsl:param name="by" /><xsl:choose><xsl:when test="contains($text, $replace)"><xsl:value-of select="substring-before($text,$replace)" /><xsl:value-of select="$by" /><xsl:call-template name="string-replace-all"><xsl:with-param name="text" select="substring-after($text,$replace)" /><xsl:with-param name="replace" select="$replace" /><xsl:with-param name="by" select="$by" /></xsl:call-template></xsl:when><xsl:otherwise><xsl:value-of select="$text" /></xsl:otherwise></xsl:choose></xsl:template></xsl:stylesheet>