<?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/00304956.A0000410.000000317.VYST_410105_RozhodnutieOUlozeniPokuty/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="15mm"><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="15mm"><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 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:value-of></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:value-of></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:value-of></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_410105/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_410105/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_410105/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_410105/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 match="egonp:eForm_eGov_vystup_410105"><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:RozhodnutieUdaje" /><xsl:apply-templates select="./egonp:PaymentData" /><xsl:apply-templates select="./egonp:Odovodnenie" /><xsl:apply-templates select="./egonp:Poucenie" /><xsl:apply-templates select="./egonp:Podpis" /><xsl:apply-templates select="./egonp:SekciaZakonEGovInfo" /></xsl:template><xsl:template match="egonp:eForm_eGov_vystup_410105/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_410105/egonp:RozhodnutieHlavicka"><fo:table margin-top="5pt"><fo:table-column column-width="20%" /><fo:table-column column-width="50%" /><fo:table-column column-width="8%" /><fo:table-column /><fo:table-body><xsl:choose><xsl:when test="./egonp:RozhodnutieHlavicka_SpravcaDane/text()"><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_gatl6" /></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_date" /><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_date" /><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_gatl7" /></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:when><xsl:otherwise><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_gatl6" /></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">Číslo telefónu:</fo:block></fo:table-cell><fo:table-cell><fo:block><xsl:value-of select="./egonp:RozhodnutieHlavicka_Telefon_iss_gatl7" /></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_date" /><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_date" /><xsl:with-param name="separator" select="' '" /></xsl:call-template></fo:block></fo:table-cell></fo:table-row></xsl:otherwise></xsl:choose><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_pi" /></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></xsl:template><xsl:template match="egonp:eForm_eGov_vystup_410105/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_Osoba_popis" /></fo:block></fo:table-cell><fo:table-cell><fo:block><xsl:value-of select="./egonp:Adresat_Osoba_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_Adresa_popis" /></fo:block></fo:table-cell><fo:table-cell><fo:block><xsl:value-of select="./egonp:Adresat_Adresa" /></fo:block></fo:table-cell></fo:table-row></fo:table-body></fo:table></fo:block></xsl:template><xsl:template match="egonp:eForm_eGov_vystup_410105/egonp:Rozhodnutie"><fo:block margin-top="9pt" margin-bottom="9pt"><fo:block font-weight="bold" font-size="14pt" text-align="center"><xsl:value-of select="./egonp:Rozhodnutie_Text" /></fo:block></fo:block></xsl:template><xsl:template match="egonp:eForm_eGov_vystup_410105/egonp:RozhodnutieUdaje"><fo:block text-indent="1cm" hyphenate="true" text-align="justify" linefeed-treatment="preserve"><xsl:value-of select="./egonp:RozhodnutieUdaje_Text01" /></fo:block><fo:block text-align="center" font-weight="bold" margin-top="10px" margin-bottom="10px"><xsl:value-of select="./egonp:RozhodnutieUdaje_Text02" /></fo:block><xsl:apply-templates select="./egonp:RozhodnutieUdaje_Subjekt" /><fo:block text-align="center" font-weight="bold" margin-top="10px" margin-bottom="10px"><xsl:value-of select="./egonp:RozhodnutieUdaje_Text03" /></fo:block><fo:block text-indent="1cm" hyphenate="true" text-align="justify" linefeed-treatment="preserve"><xsl:value-of select="./egonp:RozhodnutieUdaje_Text04" /></fo:block></xsl:template><xsl:template match="egonp:eForm_eGov_vystup_410105/egonp:RozhodnutieUdaje/egonp:RozhodnutieUdaje_Subjekt"><fo:block hyphenate="true" text-align="justify" linefeed-treatment="preserve"><xsl:value-of select="./egonp:RozhodnutieUdaje_Subjekt_text" /></fo:block><fo:table><fo:table-column column-width="35%" /><fo:table-column /><fo:table-body><fo:table-row><fo:table-cell><fo:block font-weight="bold"><xsl:value-of select="./egonp:RozhodnutieUdaje_Subjekt_Meno_popis" /></fo:block></fo:table-cell><fo:table-cell><fo:block><xsl:value-of select="./egonp:RozhodnutieUdaje_Subjekt_Meno" /></fo:block></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell><fo:block font-weight="bold"><xsl:value-of select="./egonp:RozhodnutieUdaje_Subjekt_ICORC_popis" /></fo:block></fo:table-cell><fo:table-cell><fo:block><xsl:value-of select="./egonp:RozhodnutieUdaje_Subjekt_ICORC" /></fo:block></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell><fo:block font-weight="bold"><xsl:value-of select="./egonp:RozhodnutieUdaje_Subjekt_Adresa_popis" /></fo:block></fo:table-cell><fo:table-cell><fo:block><xsl:value-of select="./egonp:RozhodnutieUdaje_Subjekt_Adresa" /></fo:block></fo:table-cell></fo:table-row></fo:table-body></fo:table></xsl:template><xsl:template match="egonp:eForm_eGov_vystup_410105/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štantný 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_410105/egonp:Odovodnenie"><fo:block margin-top="10px"><fo:block font-weight="bold" font-size="12px">Odôvodnenie:</fo:block><fo:block text-indent="1cm" hyphenate="true" text-align="justify" linefeed-treatment="preserve"><xsl:value-of select="./egonp:Odovodnenie_Text01_iss_tl_hl_txt_r4" /></fo:block></fo:block></xsl:template><xsl:template match="egonp:eForm_eGov_vystup_410105/egonp:Poucenie"><fo:block margin-top="10px"><fo:block font-weight="bold" font-size="12px">Poučenie:</fo:block><fo:block text-indent="1cm" hyphenate="true" text-align="justify" linefeed-treatment="preserve"><xsl:value-of select="./egonp:Poucenie_Text01_iss_tl_hl_txt_r5" /></fo:block></fo:block></xsl:template><xsl:template match="egonp:eForm_eGov_vystup_410105/egonp:Podpis"><xsl:if test="./egonp:Podpis_Meno_iss_gatl3/text()"><fo:block margin-top="20pt" 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_gatl3" /></fo:block><fo:block><xsl:value-of select="./egonp:Podpis_ZaMsU_iss_gatl5" /></fo:block></fo:table-cell></fo:table-row></fo:table-body></fo:table></fo:block></xsl:if></xsl:template><xsl:template match="egonp:eForm_eGov_vystup_410105/egonp:SekciaZakonEGovInfo"><fo:block text-indent="1cm" margin-top="10px" font-style="italic" text-align="justify"><xsl:value-of select="./egonp:Info_text" /></fo:block></xsl:template></xsl:stylesheet>