<?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/00307203.A0000224.000000293.VyzvaNaDoplatenie_TLZ2059/2.2" 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="12mm" /></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="14mm" /></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 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:template name="formatTimeTrimSeconds"><xsl:param name="time" /><xsl:variable name="timeString" select="string($time)" /><xsl:if test="$timeString != ''"><xsl:value-of select="substring($timeString, 1, 5)" /></xsl:if></xsl:template><xsl:template name="formatTime"><xsl:param name="time" /><xsl:variable name="timeString" select="string($time)" /><xsl:if test="$timeString != ''"><xsl:value-of select="substring($timeString, 1, 8)" /></xsl:if></xsl:template><xsl:template name="formatToSkDate"><xsl:param name="date" /><xsl:variable name="dateString" select="string($date)" /><xsl:choose><xsl:when test="$dateString != '' and string-length($dateString)=10 and string(number(substring($dateString, 1, 4))) != 'NaN' "><xsl:value-of select="concat(substring($dateString, 9, 2), '.', substring($dateString, 6, 2), '.', substring($dateString, 1, 4))" /></xsl:when><xsl:otherwise><xsl:value-of select="$dateString" /></xsl:otherwise></xsl:choose></xsl:template><xsl:template name="formatToSkDateTime"><xsl:param name="dateTime" /><xsl:variable name="dateTimeString" select="string($dateTime)" /><xsl:choose><xsl:when test="$dateTimeString!= '' and string-length($dateTimeString)>18 and string(number(substring($dateTimeString, 1, 4))) != 'NaN' "><xsl:value-of select="concat(substring($dateTimeString, 9, 2), '.', substring($dateTimeString, 6, 2), '.', substring($dateTimeString, 1, 4),' ', substring($dateTimeString, 12, 2),':', substring($dateTimeString, 15, 2))" /></xsl:when><xsl:otherwise><xsl:value-of select="$dateTimeString" /></xsl:otherwise></xsl:choose></xsl:template><xsl:template name="formatToSkDateTimeSecond"><xsl:param name="dateTime" /><xsl:variable name="dateTimeString" select="string($dateTime)" /><xsl:choose><xsl:when test="$dateTimeString!= '' and string-length($dateTimeString)>18 and string(number(substring($dateTimeString, 1, 4))) != 'NaN' "><xsl:value-of select="concat(substring($dateTimeString, 9, 2), '.', substring($dateTimeString, 6, 2), '.', substring($dateTimeString, 1, 4),' ', substring($dateTimeString, 12, 2),':', substring($dateTimeString, 15, 2),':', substring($dateTimeString, 18, 2))" /></xsl:when><xsl:otherwise><xsl:value-of select="$dateTimeString" /></xsl:otherwise></xsl:choose></xsl:template><xsl:template match="egonp:eForm_eGov_vystup_002059"><xsl:apply-templates select="./egonp:Obec" /><xsl:apply-templates select="./egonp:SekciaHlavicka" /><xsl:apply-templates select="./egonp:SekciaAdresat" /><xsl:apply-templates select="./egonp:SekciaTexty" /><xsl:apply-templates select="./egonp:SekciaNedoplatok" /><xsl:apply-templates select="./egonp:SekciaTexty2" /><xsl:apply-templates select="./egonp:Podpis" /><xsl:apply-templates select="./egonp:SekciaDorucujeSa" /><xsl:apply-templates select="./egonp:Zakon_info" /></xsl:template><xsl:template match="egonp:eForm_eGov_vystup_002059/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, 'abcdefghijklmnopqrstuvwxyzaáâaäaaçeéeëiíîi?noóôoöouúuüý?yžšo', 'ABCDEFGHIJKLMNOPQRSTUVWXYZAÁÂAÄAAÇEÉEËIÍÎI?NOÓÔOÖOUÚUÜÝ?YŽŠO')" /><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><fo:block font-size="17pt" font-weight="bold" text-align="center" margin-top="5pt"><xsl:value-of select="./egonp:Rozhodnutie_titulok" /></fo:block></xsl:template><xsl:template match="egonp:eForm_eGov_vystup_002059/egonp:SekciaHlavicka"><fo:block><fo:table margin-top="10px"><fo:table-column column-width="19%" /><fo:table-column column-width="54%" /><fo:table-column column-width="9%" /><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:Hlavicka_SpravcaDane" /></fo:block></fo:table-cell><fo:table-cell><fo:block font-weight="bold" text-indent="6mm"><xsl:call-template name="getFirst"><xsl:with-param name="text" select="./egonp:Hlavicka_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:Hlavicka_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">Číslo konania:</fo:block></fo:table-cell><fo:table-cell><fo:block><xsl:value-of select="./egonp:Hlavicka_c_kon" /></fo:block></fo:table-cell><fo:table-cell><fo:block font-weight="bold" text-indent="6mm"><xsl:call-template name="getFirst"><xsl:with-param name="text" select="./egonp:Hlavicka_gatl5" /><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:Hlavicka_gatl5" /><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:Hlavicka_gatl13" /></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 telefónu:</fo:block></fo:table-cell><fo:table-cell><fo:block><xsl:value-of select="./egonp:Hlavicka_gatl2" /></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-body></fo:table></fo:block></xsl:template><xsl:template match="egonp:eForm_eGov_vystup_002059/egonp:SekciaAdresat"><fo:block margin-top="10px"><fo:table><fo:table-column column-width="19%" /><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_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_ico_rc_d_nar" /></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/text()"><xsl:call-template name="string-replace-all"><xsl:with-param name="text" select="./egonp:Adresat_adresa" /><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_002059/egonp:SekciaTexty"><fo:block font-family="Times New Roman" margin-top="20pt" margin-right="0pt"><fo:block font-size="12">Vec:</fo:block><fo:block font-weight="bold" text-decoration="underline" font-size="14"><xsl:value-of select="./egonp:Texty_text" /></fo:block><fo:block text-indent="0cm" margin-top="7" font-size="10" text-align="justify"><xsl:value-of select="./egonp:Texty_hl_txt_r1" /></fo:block><fo:block font-size="10" text-align="center" font-weight="bold"><xsl:value-of select="./egonp:Texty_hl_txt_r2" /></fo:block></fo:block></xsl:template><xsl:template match="egonp:eForm_eGov_vystup_002059/egonp:SekciaNedoplatok"><fo:block margin-top="20pt"><fo:table><fo:table-column column-width="18%" /><fo:table-column column-width="25%" /><fo:table-column column-width="8%" /><fo:table-column column-width="18%" /><fo:table-column column-width="18%" /><fo:table-column /><fo:table-header border-bottom-style="solid" border-bottom-width="1pt"><fo:table-row><fo:table-cell><fo:block font-weight="bold"><xsl:value-of select="./egonp:NedopHodn_n_prj_e_text" /></fo:block></fo:table-cell><fo:table-cell><fo:block font-weight="bold"><xsl:value-of select="./egonp:NedopHodn_typ_nedop_text" /></fo:block></fo:table-cell><fo:table-cell><fo:block font-weight="bold" text-align="center"><xsl:value-of select="./egonp:NedopHodn_rok_text" /></fo:block></fo:table-cell><fo:table-cell><fo:block font-weight="bold" text-align="center"><xsl:value-of select="./egonp:NedopHodn_vs_text" /></fo:block></fo:table-cell><fo:table-cell><fo:block font-weight="bold" text-align="center"><xsl:value-of select="./egonp:NedopHodn_ss_text" /></fo:block></fo:table-cell><fo:table-cell><fo:block font-weight="bold" text-align="right"><xsl:value-of select="./egonp:NedopHodn_sk_text" /></fo:block></fo:table-cell></fo:table-row></fo:table-header><fo:table-body><xsl:for-each select="./egonp:SekciaNedopHodn"><fo:table-row><fo:table-cell><fo:block><xsl:value-of select="./egonp:NedopHodn_n_prj_e_memo" /></fo:block></fo:table-cell><fo:table-cell><fo:block><xsl:value-of select="./egonp:NedopHodn_typ_nedop_memo" /></fo:block></fo:table-cell><fo:table-cell><fo:block text-align="center"><xsl:value-of select="./egonp:NedopHodn_rok_memo" /></fo:block></fo:table-cell><fo:table-cell><fo:block text-align="center"><xsl:value-of select="./egonp:NedopHodn_vs_memo" /></fo:block></fo:table-cell><fo:table-cell><fo:block text-align="center"><xsl:value-of select="./egonp:NedopHodn_ss_memo" /></fo:block></fo:table-cell><fo:table-cell><fo:block text-align="right"><xsl:value-of select="./egonp:NedopHodn_sk_memo" /></fo:block></fo:table-cell></fo:table-row></xsl:for-each><fo:table-row border-top-style="solid" border-bottom-width="1pt"><fo:table-cell number-columns-spanned="5"><fo:block font-weight="bold" text-align="left"><xsl:value-of select="./egonp:SekciaNedopSpolu/egonp:NedopSpolu_sum_text" /></fo:block></fo:table-cell><fo:table-cell><fo:block font-weight="bold" text-align="right"><xsl:value-of select="./egonp:SekciaNedopSpolu/egonp:NedopSpolu_sum_sk" /></fo:block></fo:table-cell></fo:table-row></fo:table-body></fo:table></fo:block></xsl:template><xsl:template match="egonp:eForm_eGov_vystup_002059/egonp:SekciaTexty2"><fo:block font-family="Times New Roman" margin-top="20pt"><fo:block text-indent="0cm" margin-top="7" font-size="10" text-align="justify"><xsl:value-of select="./egonp:Texty2_hl_txt_r3" /></fo:block><fo:block text-indent="0cm" margin-top="7" font-size="10" text-align="justify"><xsl:value-of select="./egonp:Texty2_hl_txt_r4" /></fo:block><fo:block font-weight="bold" margin-top="7" font-size="10" text-align="left">Poučenie:</fo:block><fo:block text-indent="0cm" font-size="10" text-align="justify"><xsl:value-of select="./egonp:Texty2_text" /></fo:block><fo:block text-indent="0cm" margin-top="7" font-size="10" text-align="justify"><xsl:value-of select="./egonp:Texty2_hl_txt_r5" /></fo:block></fo:block></xsl:template><xsl:template match="egonp:eForm_eGov_vystup_002059/egonp:SekciaDorucujeSa"><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 font-weight="bold">
							Doručuje sa:
							</fo:block></fo:table-cell><fo:table-cell><fo:block><xsl:value-of select="./egonp:DorucujeSa_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_adr_zast/text()"><xsl:call-template name="string-replace-all"><xsl:with-param name="text" select="./egonp:DorucujeSa_adresa_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_002059/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" /></fo:block><fo:block><xsl:value-of select="./egonp:Podpis_ZaMsU" /></fo:block></fo:table-cell></fo:table-row></fo:table-body></fo:table></fo:block></xsl:template><xsl:template match="egonp:eForm_eGov_vystup_002059/egonp:SekciaZakonEGovInfo"><fo:block text-indent="0cm" margin-top="10px" font-style="italic"><xsl:value-of select="./egonp:Info_text" /></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="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><fo:table-cell><fo:block text-align="center" font-size="8px">Email</fo:block></fo:table-cell><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_002059/egonp:Obec/egonp:Obec_Telefon__TelephoneAddress" /></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_002059/egonp:Obec/egonp:Obec_Email" /></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_002059/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_002059/egonp:Obec/egonp:Obec_ICO" /></fo:block></fo:table-cell></fo:table-row></fo:table-body></fo:table></fo:block></xsl:template></xsl:stylesheet>