<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:egonp="http://schemas.gov.sk/form/00318442.A0003109.000000284.ZiadostoVydaniePovoleniakPredajunaTrhovomMieste/1.0">
	<xsl:output method="text" indent="yes" omit-xml-declaration="yes" />
	<xsl:strip-space elements="*" />
	<xsl:template match="egonp:eForm_eGov_vstup_000000284">
		<xsl:text>eForm_eGov_vstup_000000284</xsl:text>
		<xsl:apply-templates />
	</xsl:template>
	<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:Obec">
		<xsl:text>&#xA;</xsl:text>
		<xsl:text>&#09;</xsl:text>
		<xsl:text>Obec</xsl:text>
		<xsl:apply-templates />
	</xsl:template>
	<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:Obec/egonp:Obec_MsU">
		<xsl:if test="./text()">
			<xsl:text>&#xA;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>mesto Prievidza: mestský úrad mesto1xzy, ulica12345ulica, psc12345psc mesto1xzy:</xsl:text>
			<xsl:call-template name="string-replace-all">
				<xsl:with-param name="text" select="." />
				<xsl:with-param name="replace" select="'&#10;'" />
				<xsl:with-param name="by" select="'&#13;&#10;&#09;&#09;'" />
			</xsl:call-template>
		</xsl:if>
	</xsl:template>
	<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:Obec/egonp:Obec_Telefon__TelephoneAddress">
		<xsl:if test="./text()">
			<xsl:text>&#xA;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>Telefón: tel12345tel:</xsl:text>
			<xsl:call-template name="string-replace-all">
				<xsl:with-param name="text" select="." />
				<xsl:with-param name="replace" select="'&#10;'" />
				<xsl:with-param name="by" select="'&#13;&#10;&#09;&#09;'" />
			</xsl:call-template>
		</xsl:if>
	</xsl:template>
	<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:Obec/egonp:Obec_IBAN">
		<xsl:if test="./text()">
			<xsl:text>&#xA;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>IBAN: iban12345iban:</xsl:text>
			<xsl:call-template name="string-replace-all">
				<xsl:with-param name="text" select="." />
				<xsl:with-param name="replace" select="'&#10;'" />
				<xsl:with-param name="by" select="'&#13;&#10;&#09;&#09;'" />
			</xsl:call-template>
		</xsl:if>
	</xsl:template>
	<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:Obec/egonp:Obec_ICO">
		<xsl:if test="./text()">
			<xsl:text>&#xA;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>IČO: ico12345ico:</xsl:text>
			<xsl:call-template name="string-replace-all">
				<xsl:with-param name="text" select="." />
				<xsl:with-param name="replace" select="'&#10;'" />
				<xsl:with-param name="by" select="'&#13;&#10;&#09;&#09;'" />
			</xsl:call-template>
		</xsl:if>
	</xsl:template>
	<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:Obec/egonp:Obec_DIC">
		<xsl:if test="./text()">
			<xsl:text>&#xA;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>DIČ: dic12345dic:</xsl:text>
			<xsl:call-template name="string-replace-all">
				<xsl:with-param name="text" select="." />
				<xsl:with-param name="replace" select="'&#10;'" />
				<xsl:with-param name="by" select="'&#13;&#10;&#09;&#09;'" />
			</xsl:call-template>
		</xsl:if>
	</xsl:template>
	<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:Obec/egonp:Obec_Email">
		<xsl:if test="./text()">
			<xsl:text>&#xA;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>e-mail: info@mesto1xzy.sk:</xsl:text>
			<xsl:call-template name="string-replace-all">
				<xsl:with-param name="text" select="." />
				<xsl:with-param name="replace" select="'&#10;'" />
				<xsl:with-param name="by" select="'&#13;&#10;&#09;&#09;'" />
			</xsl:call-template>
		</xsl:if>
	</xsl:template>
	<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:Obec/egonp:Obec_WEB">
		<xsl:if test="./text()">
			<xsl:text>&#xA;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>WEB: www.mesto1xzy.sk:</xsl:text>
			<xsl:call-template name="string-replace-all">
				<xsl:with-param name="text" select="." />
				<xsl:with-param name="replace" select="'&#10;'" />
				<xsl:with-param name="by" select="'&#13;&#10;&#09;&#09;'" />
			</xsl:call-template>
		</xsl:if>
	</xsl:template>
	<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:Obec/egonp:Obec_POPIS">
		<xsl:if test="./text()">
			<xsl:text>&#xA;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>Text:</xsl:text>
			<xsl:call-template name="string-replace-all">
				<xsl:with-param name="text" select="." />
				<xsl:with-param name="replace" select="'&#10;'" />
				<xsl:with-param name="by" select="'&#13;&#10;&#09;&#09;'" />
			</xsl:call-template>
		</xsl:if>
	</xsl:template>
	<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:Header">
		<xsl:if test="./text()">
			<xsl:text>&#xA;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>Header:</xsl:text>
			<xsl:value-of select="." />
		</xsl:if>
	</xsl:template>
	<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:Ziadost_o_vydanie_povolenia_k_predaju_na_trhovom_mieste">
		<xsl:text>&#xA;</xsl:text>
		<xsl:text>&#09;</xsl:text>
		<xsl:text>Žiadosť o vydanie povolenia k predaju na trhovom mieste</xsl:text>
		<xsl:apply-templates />
	</xsl:template>
	<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:Ziadost_o_vydanie_povolenia_k_predaju_na_trhovom_mieste/egonp:Ziadost_o_vydanie_povolenia_k_predaju_na_trhovom_mieste_Radio">
		<xsl:if test="./text()">
			<xsl:text>&#xA;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>Typ akcie:</xsl:text>
            <xsl:choose>
                <xsl:when test=".='Žiadosť o vydanie povolenia k predaju na trhovom mieste – Veľkonočné trhy'">
                    <xsl:text>Žiadosť o vydanie povolenia k predaju na trhovom mieste – Veľkonočné trhy</xsl:text>
                </xsl:when>
                <xsl:when test=".='Žiadosť o vydanie povolenia k predaju na trhovom mieste – Prievidzské hody'">
                    <xsl:text>Žiadosť o vydanie povolenia k predaju na trhovom mieste – Prievidzské hody</xsl:text>
                </xsl:when>
                <xsl:when test=".='Žiadosť o vydanie povolenia k predaju na trhovom mieste – Banícky jarmok'">
                    <xsl:text>Žiadosť o vydanie povolenia k predaju na trhovom mieste – Banícky jarmok</xsl:text>
                </xsl:when>
                <xsl:when test=".='Žiadosť o vydanie povolenia k predaju na trhovom mieste – Dni k pamiatke zosnulých'">
                    <xsl:text>Žiadosť o vydanie povolenia k predaju na trhovom mieste – Dni k pamiatke zosnulých</xsl:text>
                </xsl:when>
                <xsl:when test=".='Žiadosť o vydanie povolenia k predaju na trhovom mieste – Vianočné trhy'">
                    <xsl:text>Žiadosť o vydanie povolenia k predaju na trhovom mieste – Vianočné trhy</xsl:text>
                </xsl:when>
                <xsl:when test=".='Žiadosť o vydanie povolenia k predaju na trhovom mieste – mimo príležitostný trh'">
                    <xsl:text>Žiadosť o vydanie povolenia k predaju na trhovom mieste – mimo príležitostný trh</xsl:text>
                </xsl:when>
                <xsl:otherwise>
                    <xsl:value-of select="."/>
                </xsl:otherwise>
            </xsl:choose>
		</xsl:if>
	</xsl:template>
	<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:Ziadost_o_vydanie_povolenia_k_predaju_na_trhovom_mieste/egonp:Ziadost_o_vydanie_povolenia_k_predaju_na_trhovom_mieste_Text">
		<xsl:if test="./text()">
			<xsl:text>&#xA;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>Žiadosť o vydanie povolenia k predaju na trhovom mieste – mimo príležitostný trh - popis: </xsl:text>
			<xsl:call-template name="string-replace-all">
				<xsl:with-param name="text" select="." />
				<xsl:with-param name="replace" select="'&#10;'" />
				<xsl:with-param name="by" select="'&#13;&#10;&#09;&#09;&#09;'" />
			</xsl:call-template>
		</xsl:if>
	</xsl:template>
	<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:Ziadost_o_vydanie_povolenia_k_predaju_na_trhovom_mieste/egonp:Ziadost_o_vydanie_povolenia_k_predaju_na_trhovom_mieste_TypOsoby">
		<xsl:if test="./text()">
			<xsl:text>&#xA;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>Žiadam o vydanie povolenia na príležitostnom trhu na predaj výrobkov a poskytovanie služieb na
predajnom mieste: </xsl:text>
            <xsl:choose>
                <xsl:when test=".='Právnická osoba / Fyzická osoba - podnikateľ'">
                    <xsl:text>Právnická osoba / Fyzická osoba - podnikateľ</xsl:text>
                </xsl:when>
                <xsl:when test=".='Občan bez oprávnenia na podnikanie'">
                    <xsl:text>Občan bez oprávnenia na podnikanie</xsl:text>
                </xsl:when>
                <xsl:otherwise>
                    <xsl:value-of select="."/>
                </xsl:otherwise>
            </xsl:choose>
		</xsl:if>
	</xsl:template>
	<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel">
		<xsl:text>&#xA;</xsl:text>
		<xsl:text>&#09;</xsl:text>
		<xsl:text>Údaje o žiadateľovi</xsl:text>
		<xsl:apply-templates />
	</xsl:template>
	<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel/egonp:IOddiel_Subjekt/egonp:IOddiel_PO">
		<xsl:text>&#xA;</xsl:text>
		<xsl:text>&#09;</xsl:text>
		<xsl:text>&#09;</xsl:text>
		<xsl:text>Právnická osoba / Fyzická osoba - podnikateľ</xsl:text>
		<xsl:apply-templates />
	</xsl:template>
	<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel/egonp:IOddiel_Subjekt/egonp:IOddiel_PO/egonp:IOddiel_PO_Obchodne_Meno">
		<xsl:if test="./text()">
			<xsl:text>&#xA;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>Obchodné meno:</xsl:text>
			<xsl:value-of select="." />
		</xsl:if>
	</xsl:template>
	<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel/egonp:IOddiel_Subjekt/egonp:IOddiel_PO/egonp:IOddiel_PO_Sidlo">
		<xsl:if test="./text()">
			<xsl:text>&#xA;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>Sídlo:</xsl:text>
			<xsl:value-of select="." />
		</xsl:if>
	</xsl:template>
	<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel/egonp:IOddiel_Subjekt/egonp:IOddiel_PO/egonp:IOddiel_PO_ICO">
		<xsl:if test="./text()">
			<xsl:text>&#xA;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>IČO:</xsl:text>
			<xsl:value-of select="." />
		</xsl:if>
	</xsl:template>
	<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel/egonp:IOddiel_Subjekt/egonp:IOddiel_PO/egonp:IOddiel_PO_DIC">
		<xsl:if test="./text()">
			<xsl:text>&#xA;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>DIČO:</xsl:text>
			<xsl:value-of select="." />
		</xsl:if>
	</xsl:template>
	<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel/egonp:IOddiel_Subjekt/egonp:IOddiel_PO/egonp:IOddiel_PO_TelCislo">
		<xsl:if test="./text()">
			<xsl:text>&#xA;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>Telefón:</xsl:text>
			<xsl:value-of select="." />
		</xsl:if>
	</xsl:template>
	<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel/egonp:IOddiel_Subjekt/egonp:IOddiel_PO/egonp:IOddiel_PO_Email">
		<xsl:if test="./text()">
			<xsl:text>&#xA;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>Email:</xsl:text>
			<xsl:value-of select="." />
		</xsl:if>
	</xsl:template>	
	<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel/egonp:IOddiel_Subjekt/egonp:IOddiel_PO/egonp:IOddiel_PO_Pokladnica_radio">
		<xsl:if test="./text()">
			<xsl:text>&#xA;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text></xsl:text>
            <xsl:choose>
                <xsl:when test=".='Kód pokladnice e-kasa (potrebné vložiť doklad v prílohách)'">
                    <xsl:text>Kód pokladnice e-kasa (potrebné vložiť doklad v prílohách)</xsl:text>
                </xsl:when>
                <xsl:when test=".='Čestné vyhlásenie o nepoužívaní ERP'">
                    <xsl:text>Čestné vyhlásenie o nepoužívaní ERP</xsl:text>
                </xsl:when>
                <xsl:otherwise>
                    <xsl:value-of select="."/>
                </xsl:otherwise>
            </xsl:choose>
		</xsl:if>
	</xsl:template>
	<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel/egonp:IOddiel_Subjekt/egonp:IOddiel_PO/egonp:IOddiel_PO_Pokladnica_Kod">
		<xsl:if test="./text()">
			<xsl:text>&#xA;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>Kód pokladnice:</xsl:text>
			<xsl:value-of select="." />
		</xsl:if>
	</xsl:template>		
	<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel/egonp:IOddiel_Subjekt/egonp:IOddiel_PO/egonp:IOddiel_PO_CestneVyhlasenie_V1">
			<xsl:text>&#xA;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>&#09;</xsl:text>
		<xsl:text>Podľa ustanovenia zákona č. 384/2025 Z. z. Zákon o evidencii tržieb a o zmene a doplnení niektorých zákonov (ďalej len zákon), nie som povinný (á) na predaj výrobkov a poskytovanie služieb na trhovom mieste používať pokladnicu – eKasu podľa:
</xsl:text>
		<xsl:if test="./text()">
			<xsl:text>&#xA;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>§ 3 ods. 2 písm. a) bod 6 zákona – povinnosť evidovať tržbu sa nevzťahuje na predaj tovaru.</xsl:text>
			<xsl:call-template name="booleanCheckboxToString">
				<xsl:with-param name="boolValue" select="." />
			</xsl:call-template>
		</xsl:if>
	</xsl:template>
	<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel/egonp:IOddiel_Subjekt/egonp:IOddiel_PO/egonp:IOddiel_PO_CestneVyhlasenie_V2">
		<xsl:if test="./text()">
			<xsl:text>&#xA;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>§ 3 ods. 2 písm. b) bod 1 zákona – povinnosť evidovať tržbu sa nevzťahuje na poskytované služby.</xsl:text>
			<xsl:call-template name="booleanCheckboxToString">
				<xsl:with-param name="boolValue" select="." />
			</xsl:call-template>
		</xsl:if>
	</xsl:template>	
	<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel/egonp:IOddiel_Subjekt/egonp:IOddiel_FO">
		<xsl:text>&#xA;</xsl:text>
		<xsl:text>&#09;</xsl:text>
		<xsl:text>&#09;</xsl:text>
		<xsl:text>Občan bez oprávnenia na podnikanie</xsl:text>
		<xsl:apply-templates/>
	</xsl:template>
	<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel/egonp:IOddiel_Subjekt/egonp:IOddiel_FO/egonp:IOddiel_FO_Meno_Priezvisko">
		<xsl:if test="./text()">
			<xsl:text>&#xA;</xsl:text>
			<xsl:text>&#09;&#09;&#09;&#09;</xsl:text>
			<xsl:text>Meno a priezvisko:</xsl:text>
			<xsl:value-of select="."/>
		</xsl:if>
	</xsl:template>

	<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel/egonp:IOddiel_Subjekt/egonp:IOddiel_FO/egonp:IOddiel_FO_Adresa">
		<xsl:if test="./text()">
			<xsl:text>&#xA;</xsl:text>
			<xsl:text>&#09;&#09;&#09;&#09;</xsl:text>
			<xsl:text>Adresa:</xsl:text>
			<xsl:value-of select="."/>
		</xsl:if>
	</xsl:template>

	<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel/egonp:IOddiel_Subjekt/egonp:IOddiel_FO/egonp:IOddiel_FO_DatNar">
		<xsl:if test="./text()">
			<xsl:text>&#xA;</xsl:text>
			<xsl:text>&#09;&#09;&#09;&#09;</xsl:text>
			<xsl:text>Dátum narodenia:</xsl:text>
			<xsl:value-of select="."/>
		</xsl:if>
	</xsl:template>

	<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel/egonp:IOddiel_Subjekt/egonp:IOddiel_FO/egonp:IOddiel_FO_DIC">
		<xsl:if test="./text()">
			<xsl:text>&#xA;</xsl:text>
			<xsl:text>&#09;&#09;&#09;&#09;</xsl:text>
			<xsl:text>DIČO:</xsl:text>
			<xsl:value-of select="."/>
		</xsl:if>
	</xsl:template>

	<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel/egonp:IOddiel_Subjekt/egonp:IOddiel_FO/egonp:IOddiel_FO_TelCislo">
		<xsl:if test="./text()">
			<xsl:text>&#xA;</xsl:text>
			<xsl:text>&#09;&#09;&#09;&#09;</xsl:text>
			<xsl:text>Telefón:</xsl:text>
			<xsl:value-of select="."/>
		</xsl:if>
	</xsl:template>
	<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel/egonp:IOddiel_Subjekt/egonp:IOddiel_FO/egonp:IOddiel_FO_Email">
		<xsl:if test="./text()">
			<xsl:text>&#xA;</xsl:text>
			<xsl:text>&#09;&#09;&#09;&#09;</xsl:text>
			<xsl:text>Email:</xsl:text>
			<xsl:value-of select="."/>
		</xsl:if>
	</xsl:template>
	<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel/egonp:IOddiel_Subjekt/egonp:IOddiel_FO/egonp:IOddiel_FO_CestneERP_V1">
		<xsl:text>Čestné vyhlásenie o nepoužívaní ERP 
Podľa ustanovenia zákona č. 384/2025 Z. z. Zákon o evidencii tržieb a o zmene a doplnení niektorých zákonov (ďalej len zákon), nie som povinný (á) na predaj výrobkov a poskytovanie služieb na trhovom mieste používať pokladnicu – eKasu podľa:
</xsl:text>		
		<xsl:if test="./text()">
			<xsl:text>&#xA;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>§ 2 ods. a) nie som podnikateľom</xsl:text>
			<xsl:call-template name="booleanCheckboxToString">
				<xsl:with-param name="boolValue" select="." />
			</xsl:call-template>
		</xsl:if>
	</xsl:template>	
	<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel/egonp:IOddiel_Subjekt/egonp:IOddiel_FO/egonp:IOddiel_FO_CestneERP_V2">
		<xsl:text>Čestné vyhlásenie na predaj výrobkov a poskytovanie služieb na trhovom mieste v meste Prievidza
(Podľa zákona č. 178/1998 Z.z. o podmienkach predaja výrobkov a poskytovania služieb na trhových miestach a o zmene
a doplnení zákona č. 455/1991 Zb. o živnostenskom podnikaní (živnostenský zákon) v znení neskorších predpisov):</xsl:text>			
	</xsl:template>	
	<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel/egonp:IOddiel_Subjekt/egonp:IOddiel_FO/egonp:IOddiel_FO_CestneVyhlasenie_V1">
		<xsl:if test="./text()">
			<xsl:text>&#xA;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>všetky predávané výrobky pochádzajú z mojej vlastnej pestovateľskej alebo chovateľskej
činnosti alebo ide o lesné plodiny</xsl:text>
			<xsl:call-template name="booleanCheckboxToString">
				<xsl:with-param name="boolValue" select="." />
			</xsl:call-template>
		</xsl:if>
	</xsl:template>		
	<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel/egonp:IOddiel_Subjekt/egonp:IOddiel_FO/egonp:IOddiel_FO_CestneVyhlasenie_V2">
		<xsl:if test="./text()">
			<xsl:text>&#xA;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>všetky mnou predávané výrobky sú moje vlastné použité výrobky a predávam ich v
primeranom množstve</xsl:text>
			<xsl:call-template name="booleanCheckboxToString">
				<xsl:with-param name="boolValue" select="." />
			</xsl:call-template>
		</xsl:if>
	</xsl:template>		
	<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel/egonp:IOddiel_Subjekt/egonp:IOddiel_FO/egonp:IOddiel_FO_CestneVyhlasenie_V3">
		<xsl:if test="./text()">
			<xsl:text>&#xA;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>predávané výrobky sú originálom diela alebo jeho rozmnoženinou</xsl:text>
			<xsl:call-template name="booleanCheckboxToString">
				<xsl:with-param name="boolValue" select="." />
			</xsl:call-template>
		</xsl:if>
	</xsl:template>		
	<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel/egonp:Check_Volby">
		<xsl:text>&#xA;</xsl:text>
		<xsl:text>&#09;</xsl:text>
		<xsl:text>&#09;</xsl:text>
		<xsl:text>Popis druhu sortimentu:</xsl:text>
		<xsl:apply-templates />
	</xsl:template>
<!-- TMV01 -->
<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel/egonp:Check_Volby/egonp:TMV01">
	<xsl:if test="./text()">
		<xsl:text>&#xA;&#09;&#09;</xsl:text>
		<xsl:text>Občerstvenie vrátane alkoholických nápojov na priamu konzumáciu (aj medovina)</xsl:text>
		<xsl:call-template name="booleanCheckboxToString">
			<xsl:with-param name="boolValue" select="." />
		</xsl:call-template>
	</xsl:if>
</xsl:template>
<!-- TMV02 -->
<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel/egonp:Check_Volby/egonp:TMV02">
	<xsl:if test="./text()">
		<xsl:text>&#xA;&#09;&#09;</xsl:text>
		<xsl:text>Víno, burčiak</xsl:text>
		<xsl:call-template name="booleanCheckboxToString">
			<xsl:with-param name="boolValue" select="." />
		</xsl:call-template>
	</xsl:if>
</xsl:template>
<!-- TMV03 -->
<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel/egonp:Check_Volby/egonp:TMV03">
	<xsl:if test="./text()">
		<xsl:text>&#xA;&#09;&#09;</xsl:text>
		<xsl:text>Občerstvenie na priamu konzumáciu (bez alkoholických nápojov)</xsl:text>
		<xsl:call-template name="booleanCheckboxToString">
			<xsl:with-param name="boolValue" select="." />
		</xsl:call-template>
	</xsl:if>
</xsl:template>
<!-- TMV04 -->
<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel/egonp:Check_Volby/egonp:TMV04">
	<xsl:if test="./text()">
		<xsl:text>&#xA;&#09;&#09;</xsl:text>
		<xsl:text>Umiestnenie stolov a pultov na priamu konzumáciu občerstvenia</xsl:text>
		<xsl:call-template name="booleanCheckboxToString">
			<xsl:with-param name="boolValue" select="." />
		</xsl:call-template>
	</xsl:if>
</xsl:template>
<!-- TMV05 -->
<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel/egonp:Check_Volby/egonp:TMV05">
	<xsl:if test="./text()">
		<xsl:text>&#xA;&#09;&#09;</xsl:text>
		<xsl:text>Potravinársky tovar v spotrebiteľskom balení</xsl:text>
		<xsl:call-template name="booleanCheckboxToString">
			<xsl:with-param name="boolValue" select="." />
		</xsl:call-template>
	</xsl:if>
</xsl:template>
<!-- TMV06 -->
<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel/egonp:Check_Volby/egonp:TMV06">
	<xsl:if test="./text()">
		<xsl:text>&#xA;&#09;&#09;</xsl:text>
		<xsl:text>Drobné občerstvenie so spotrebou elektrickej energie – cukrová vata, pukance, varená kukurica a pod.</xsl:text>
		<xsl:call-template name="booleanCheckboxToString">
			<xsl:with-param name="boolValue" select="." />
		</xsl:call-template>
	</xsl:if>
</xsl:template>
<!-- TMV07 -->
<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel/egonp:Check_Volby/egonp:TMV07">
	<xsl:if test="./text()">
		<xsl:text>&#xA;&#09;&#09;</xsl:text>
		<xsl:text>Drobné občerstvenie bez spotreby elektrickej energie – cukrovinky, medovníčky a pod.</xsl:text>
		<xsl:call-template name="booleanCheckboxToString">
			<xsl:with-param name="boolValue" select="." />
		</xsl:call-template>
	</xsl:if>
</xsl:template>
<!-- TMV08 -->
<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel/egonp:Check_Volby/egonp:TMV08">
	<xsl:if test="./text()">
		<xsl:text>&#xA;&#09;&#09;</xsl:text>
		<xsl:text>Remeselné výrobky a umelecké diela, výrobky vlastnej produkcie a výroby (med, ovocie, zelenina, semiačka, koreniny a pod.)</xsl:text>
		<xsl:call-template name="booleanCheckboxToString">
			<xsl:with-param name="boolValue" select="." />
		</xsl:call-template>
	</xsl:if>
</xsl:template>
<!-- TMV09 -->
<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel/egonp:Check_Volby/egonp:TMV09">
	<xsl:if test="./text()">
		<xsl:text>&#xA;&#09;&#09;</xsl:text>
		<xsl:text>Predmet výroby v živnostenskom liste: odevná, textilná, brašnárska, keramika, bižutéria, prútený tovar a pod.</xsl:text>
		<xsl:call-template name="booleanCheckboxToString">
			<xsl:with-param name="boolValue" select="." />
		</xsl:call-template>
	</xsl:if>
</xsl:template>
<!-- TMV10 -->
<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel/egonp:Check_Volby/egonp:TMV10">
	<xsl:if test="./text()">
		<xsl:text>&#xA;&#09;&#09;</xsl:text>
		<xsl:text>Ostatné tovary a služby neuvedené vyššie</xsl:text>
		<xsl:call-template name="booleanCheckboxToString">
			<xsl:with-param name="boolValue" select="." />
		</xsl:call-template>
	</xsl:if>
</xsl:template>
<!-- TMV11 -->
<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel/egonp:Check_Volby/egonp:TMV11">
	<xsl:if test="./text()">
		<xsl:text>&#xA;&#09;&#09;</xsl:text>
		<xsl:text>Parkovanie vozidiel pri predajných zariadeniach</xsl:text>
		<xsl:call-template name="booleanCheckboxToString">
			<xsl:with-param name="boolValue" select="." />
		</xsl:call-template>
	</xsl:if>
</xsl:template>
<!-- TMV12 -->
<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel/egonp:Check_Volby/egonp:TMV12">
	<xsl:if test="./text()">
		<xsl:text>&#xA;&#09;&#09;</xsl:text>
		<xsl:text>Lunaparky a iné atrakcie</xsl:text>
		<xsl:call-template name="booleanCheckboxToString">
			<xsl:with-param name="boolValue" select="." />
		</xsl:call-template>
	</xsl:if>
</xsl:template>
<!-- TMV13 -->
<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel/egonp:Check_Volby/egonp:TMV13">
	<xsl:if test="./text()">
		<xsl:text>&#xA;&#09;&#09;</xsl:text>
		<xsl:text>Umiestnenie zariadenia na predaj výrobkov počas príležitostného trhu Dni k pamiatke zosnulých</xsl:text>
		<xsl:call-template name="booleanCheckboxToString">
			<xsl:with-param name="boolValue" select="." />
		</xsl:call-template>
	</xsl:if>
</xsl:template>
<!-- TMV14 -->
<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel/egonp:Check_Volby/egonp:TMV14">
	<xsl:if test="./text()">
		<xsl:text>&#xA;&#09;&#09;</xsl:text>
		<xsl:text>Mimo príležitostných trhov (ďalšie kategórie podľa ďalšieho kódu)</xsl:text>
		<xsl:call-template name="booleanCheckboxToString">
			<xsl:with-param name="boolValue" select="." />
		</xsl:call-template>
	</xsl:if>
</xsl:template>
	<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel/egonp:Udaje">
		<xsl:text>&#xA;</xsl:text>
		<xsl:text>&#09;</xsl:text>
		<xsl:text>&#09;</xsl:text>
		<xsl:text></xsl:text>
		<xsl:apply-templates />
	</xsl:template>
<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel/egonp:Udaje/egonp:Dlzka_Sirka_predajneho_miesta_Radio">
    <xsl:if test="./text()">
        <xsl:text>&#xA;</xsl:text>
        <xsl:text>&#09;</xsl:text>
        <xsl:text>&#09;</xsl:text>
        <xsl:text></xsl:text>
        <xsl:choose>
            <xsl:when test=".='2,5x1,7m'">
                <xsl:text>2,5 × 1,7 m</xsl:text>
            </xsl:when>
            <xsl:when test=".='3x2m'">
                <xsl:text>3 × 2 m</xsl:text>
            </xsl:when>
            <xsl:when test=".='3x3m'">
                <xsl:text>3 × 3 m</xsl:text>
            </xsl:when>
            <xsl:when test=".='6x2m'">
                <xsl:text>6 × 2 m</xsl:text>
            </xsl:when>
            <xsl:when test=".='6x3m'">
                <xsl:text>6 × 3 m</xsl:text>
            </xsl:when>
            <xsl:when test=".='9x2m'">
                <xsl:text>9 × 2 m</xsl:text>
            </xsl:when>
            <xsl:when test=".='9x3m'">
                <xsl:text>9 × 3 m</xsl:text>
            </xsl:when>
            <xsl:when test=".='Iný rozmer (min. 3x2m)'">
                <xsl:text>Iný rozmer (min. 3 × 2 m)</xsl:text>
            </xsl:when>
            <xsl:otherwise>
                <xsl:value-of select="."/>
            </xsl:otherwise>
        </xsl:choose>
    </xsl:if>
</xsl:template>
	<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel/egonp:Udaje/egonp:Dlzka_Sirka_predajneho_miesta_Text">
		<xsl:if test="./text()">
			<xsl:text>&#xA;</xsl:text>
			<xsl:text>&#09;&#09;&#09;&#09;</xsl:text>
			<xsl:text></xsl:text>
			<xsl:value-of select="."/>
		</xsl:if>
	</xsl:template>
	<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel/egonp:Udaje/egonp:Rozmer_sedenia">
		<xsl:if test="./text()">
			<xsl:text>&#xA;</xsl:text>
			<xsl:text>&#09;&#09;&#09;&#09;</xsl:text>
			<xsl:text>Rozmery stolov a sedenia (iba v prípade občerstvenia):</xsl:text>
			<xsl:value-of select="."/>
		</xsl:if>
	</xsl:template>
<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel/egonp:Udaje/egonp:AutoSoStankom_Radio">
    <xsl:if test="./text()">
        <xsl:text>&#xA;</xsl:text>
        <xsl:text>&#09;</xsl:text>
        <xsl:text>&#09;</xsl:text>
        <xsl:text></xsl:text>
        <xsl:choose>
            <xsl:when test=".='Áno (uveďte rozmer)'">
                <xsl:text>Áno (uveďte rozmer)</xsl:text>
            </xsl:when>
            <xsl:when test=".='Nie'">
                <xsl:text>Nie</xsl:text>
            </xsl:when>
            <xsl:otherwise>
                <xsl:value-of select="."/>
            </xsl:otherwise>
        </xsl:choose>
    </xsl:if>
</xsl:template>	
	<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel/egonp:Udaje/egonp:AutoSoStankom_Text">
		<xsl:if test="./text()">
			<xsl:text>&#xA;</xsl:text>
			<xsl:text>&#09;&#09;&#09;&#09;</xsl:text>
			<xsl:text>Rozmery stolov a sedenia (iba v prípade občerstvenia) - text:</xsl:text>
			<xsl:value-of select="."/>
		</xsl:if>
	</xsl:template>
	<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel/egonp:Udaje/egonp:Auto_SPZ">
		<xsl:if test="./text()">
			<xsl:text>&#xA;</xsl:text>
			<xsl:text>&#09;&#09;&#09;&#09;</xsl:text>
			<xsl:text>ŠPZ vozidla (zásobovanie):</xsl:text>
			<xsl:value-of select="."/>
		</xsl:if>
	</xsl:template>
<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel/egonp:Udaje/egonp:ElektrickaPripojka_Radio">
    <xsl:if test="./text()">
        <xsl:text>&#xA;</xsl:text>
        <xsl:text>&#09;</xsl:text>
        <xsl:text>&#09;</xsl:text>
        <xsl:text></xsl:text>
        <xsl:choose>
            <xsl:when test=".='220V'">
                <xsl:text>220V</xsl:text>
            </xsl:when>
            <xsl:when test=".='380V'">
                <xsl:text>380V</xsl:text>
            </xsl:when>
            <xsl:otherwise>
                <xsl:value-of select="."/>
            </xsl:otherwise>
        </xsl:choose>
    </xsl:if>
</xsl:template>	
<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel/egonp:Udaje/egonp:VodaPripojka_Radio">
    <xsl:if test="./text()">
        <xsl:text>&#xA;</xsl:text>
        <xsl:text>&#09;</xsl:text>
        <xsl:text>&#09;</xsl:text>
        <xsl:text></xsl:text>
        <xsl:choose>
            <xsl:when test=".='Áno'">
                <xsl:text>Áno</xsl:text>
            </xsl:when>
            <xsl:when test=".='Nie'">
                <xsl:text>Nie</xsl:text>
            </xsl:when>
            <xsl:otherwise>
                <xsl:value-of select="."/>
            </xsl:otherwise>
        </xsl:choose>
    </xsl:if>
</xsl:template>	

	<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel/egonp:Udaje/egonp:Aukcia_Cena">
		<xsl:if test="./text()">
			<xsl:text>&#xA;</xsl:text>
			<xsl:text>&#09;&#09;&#09;&#09;</xsl:text>
			<xsl:text>V prípade aukcie na trhové miesto, ponúknite cenu (v €) za celé obdobie trvania trhu: </xsl:text>
			<xsl:value-of select="."/>
		</xsl:if>
	</xsl:template>


	<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:Narok">
		<xsl:text>&#xA;</xsl:text>
		<xsl:text>&#09;</xsl:text>
		<xsl:text>&#09;</xsl:text>
		<xsl:text>Uplatnenie nároku na oslobodenie od platenia dane podľa §15 VZN č. 11/2019;</xsl:text>
		<xsl:apply-templates />
	</xsl:template>
	<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:Narok/egonp:Narok_Volba">
	<xsl:if test="./text()">
		<xsl:text>&#xA;&#09;&#09;</xsl:text>
		<xsl:text>na umiestnenie zariadenia na predaj remeselných výrobkov a umeleckých diel
výrobcami a autormi počas príležitostných trhov a iných akcií organizovaných
mestom, pokiaľ je predaj spojený s ukážkou výroby remeselných výrobkov alebo
tvorby umeleckých diel (pokiaľ je remeselník evidovaný v databáze ľudových
výrobcov – RKC, ÚĽUV, resp. iné) a nie je podnikateľ.</xsl:text>
		<xsl:call-template name="booleanCheckboxToString">
			<xsl:with-param name="boolValue" select="." />
		</xsl:call-template>		
	</xsl:if>
	</xsl:template>
	<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:Povinnosti">
		<xsl:text>&#xA;</xsl:text>
		<xsl:text>&#09;</xsl:text>
		<xsl:text>&#09;</xsl:text>
		<xsl:text></xsl:text>
		<xsl:apply-templates />
	</xsl:template>



<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:Povinnosti/egonp:POV01">
	<xsl:if test="./text()">
		<xsl:text>&#xA;&#09;&#09;</xsl:text>
		<xsl:text>Týmto záväzne potvrdzujem svoju účasť na príležitostnom trhu, resp. inom
podujatí</xsl:text>
		<xsl:call-template name="booleanCheckboxToString">
			<xsl:with-param name="boolValue" select="." />
		</xsl:call-template>
	</xsl:if>
</xsl:template>

<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:Povinnosti/egonp:POV02">
	<xsl:if test="./text()">
		<xsl:text>&#xA;&#09;&#09;</xsl:text>
		<xsl:text>Súhlasím so všetkými podmienkami určenými hlavnými organizátormi.</xsl:text>
		<xsl:call-template name="booleanCheckboxToString">
			<xsl:with-param name="boolValue" select="." />
		</xsl:call-template>
	</xsl:if>
</xsl:template>

<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:Povinnosti/egonp:POV03">
	<xsl:if test="./text()">
		<xsl:text>&#xA;&#09;&#09;</xsl:text>
		<xsl:text>Prehlasujem, že hore uvedené údaje v prihláške sú správne a zodpovedám za
ich úplnosť a správnosť.</xsl:text>
		<xsl:call-template name="booleanCheckboxToString">
			<xsl:with-param name="boolValue" select="." />
		</xsl:call-template>
	</xsl:if>
</xsl:template>

	<xsl:template  match="egonp:eForm_eGov_vstup_000000284/egonp:Povinnosti/egonp:Poznamka">
		<xsl:if test="./text()">
			<xsl:text>&#xA;</xsl:text>
			<xsl:text>&#09;&#09;&#09;&#09;</xsl:text>
			<xsl:text>Poznámka:</xsl:text>
			<xsl:value-of select="."/>
		</xsl:if>
	</xsl:template>


	<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:Prilohy">
		<xsl:text>&#xA;</xsl:text>
		<xsl:text>&#09;</xsl:text>
		<xsl:text>&#09;</xsl:text>
		<xsl:text>Prílohy:</xsl:text>
		<xsl:apply-templates />
	</xsl:template>

<!-- Príloha 01 -->
<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:Prilohy/egonp:Priloha01">
    <xsl:if test="./text()">
        <xsl:text>&#xA;&#09;&#09;</xsl:text>
        <xsl:text>Osvedčenie o zápise do evidencie SHR.</xsl:text>
        <xsl:call-template name="booleanCheckboxToString">
            <xsl:with-param name="boolValue" select="." />
        </xsl:call-template>
    </xsl:if>
</xsl:template>

<!-- Príloha 02 -->
<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:Prilohy/egonp:Priloha02">
    <xsl:if test="./text()">
        <xsl:text>&#xA;&#09;&#09;</xsl:text>
        <xsl:text>Potvrdenie o vlastníctve pôdy, záhrady (číslo LV, resp. nájomná zmluva) pri predaji poľnohospodárskych prebytkov.</xsl:text>
        <xsl:call-template name="booleanCheckboxToString">
            <xsl:with-param name="boolValue" select="." />
        </xsl:call-template>
    </xsl:if>
</xsl:template>

<!-- Príloha 03 -->
<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:Prilohy/egonp:Priloha03">
    <xsl:if test="./text()">
        <xsl:text>&#xA;&#09;&#09;</xsl:text>
        <xsl:text>Kód pokladnice e-kasa klient (zaslaný listom z daňového úradu resp. uvedený na identifikačnom balíčku ORP alebo na pokladničnom doklade).</xsl:text>
        <xsl:call-template name="booleanCheckboxToString">
            <xsl:with-param name="boolValue" select="." />
        </xsl:call-template>
    </xsl:if>
</xsl:template>

<!-- Príloha 04 -->
<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:Prilohy/egonp:Priloha04">
    <xsl:if test="./text()">
        <xsl:text>&#xA;&#09;&#09;</xsl:text>
        <xsl:text>Rozhodnutie / oznámenie RÚVZ pri predaji potravinárskych výrobkov.</xsl:text>
        <xsl:call-template name="booleanCheckboxToString">
            <xsl:with-param name="boolValue" select="." />
        </xsl:call-template>
    </xsl:if>
</xsl:template>

<!-- Príloha 05 -->
<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:Prilohy/egonp:Priloha05">
    <xsl:if test="./text()">
        <xsl:text>&#xA;&#09;&#09;</xsl:text>
        <xsl:text>Oznámenie / potvrdenie o registrácii na RVPS.</xsl:text>
        <xsl:call-template name="booleanCheckboxToString">
            <xsl:with-param name="boolValue" select="." />
        </xsl:call-template>
    </xsl:if>
</xsl:template>

<!-- Príloha 06 -->
<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:Prilohy/egonp:Priloha06">
    <xsl:if test="./text()">
        <xsl:text>&#xA;&#09;&#09;</xsl:text>
        <xsl:text>Fotokópia registrácie na Daňovom úrade SR – zahraničný účastník.</xsl:text>
        <xsl:call-template name="booleanCheckboxToString">
            <xsl:with-param name="boolValue" select="." />
        </xsl:call-template>
    </xsl:if>
</xsl:template>

<!-- Príloha 07 -->
<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:Prilohy/egonp:Priloha07">
    <xsl:if test="./text()">
        <xsl:text>&#xA;&#09;&#09;</xsl:text>
        <xsl:text>Osvedčenie k malopredaju vinárskych produktov – Zákon o vinohradníctve a vinárstve č. 313/2009 Z.z.</xsl:text>
        <xsl:call-template name="booleanCheckboxToString">
            <xsl:with-param name="boolValue" select="." />
        </xsl:call-template>
    </xsl:if>
</xsl:template>

<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:OchranaOsobnychUdajov">
    <xsl:text>&#xA;</xsl:text>
    <xsl:text>&#09;</xsl:text>
    <xsl:text>Ochrana osobných údajov </xsl:text>
    <xsl:text>&#xA;&#09;Organizátor podujatia si vyhradzuje právo výberu sortimentu a rozhoduje
o konečnom pridelení predajného miesta a zaradení druhu sortimentu v zmysle VZN
mesta Prievidza č. 11/2019 – Príloha č. 2.</xsl:text>

    <xsl:text>&#xA;&#09;Zároveň si vyhradzuje právo upraviť v prípade potreby veľkosť predajného miesta.</xsl:text>

    <xsl:text>&#xA;&#09;Informovanie o spracovaní osobných údajov</xsl:text>
	<xsl:apply-templates />
</xsl:template>


<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:OchranaOsobnychUdajov/egonp:OchranaOsobnychUdajov_Suhlas">
    <xsl:variable name="suhlas" select="normalize-space(.)"/>

    <xsl:if test="$suhlas != ''">

        <xsl:text>Souhlas: </xsl:text>
        <xsl:choose>
            <xsl:when test="$suhlas = '1'">Áno</xsl:when>
            <xsl:when test="$suhlas = '0'">Nie</xsl:when>
        </xsl:choose>
        <xsl:text>&#xA;</xsl:text>
    </xsl:if>
</xsl:template>
	<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:SposobDoruceniaVystupu">
		<xsl:text>&#xA;</xsl:text>
		<xsl:text>&#09;</xsl:text>
		<xsl:text>Spôsob doručenia výstupu</xsl:text>
		<xsl:apply-templates />
	</xsl:template>
	<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:SposobDoruceniaVystupu/egonp:SposobDoruceniaVystupu_Typ">
		<xsl:if test="./text()">
			<xsl:text>&#xA;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>Spôsob doručenia výstupu:</xsl:text>
			<xsl:choose>
				<xsl:when test=".='eDesk'">
					<xsl:text>eDesk</xsl:text>
				</xsl:when>
				<xsl:when test=".='osobne'">
					<xsl:text>osobne</xsl:text>
				</xsl:when>
				<xsl:when test=".='poštou'">
					<xsl:text>poštou</xsl:text>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="." />
				</xsl:otherwise>
			</xsl:choose>
		</xsl:if>
	</xsl:template>
	<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:SposobDoruceniaVystupu/egonp:SposobDoruceniaVystupu_Kontakt">
		<xsl:if test="./text()">
			<xsl:text>&#xA;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>Kontakt v prípade doručenia osobne / poštou:</xsl:text>
			<xsl:call-template name="string-replace-all">
				<xsl:with-param name="text" select="." />
				<xsl:with-param name="replace" select="'&#10;'" />
				<xsl:with-param name="by" select="'&#13;&#10;&#09;&#09;'" />
			</xsl:call-template>
		</xsl:if>
	</xsl:template>
	<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:Footer">
		<xsl:if test="./text()">
			<xsl:text>&#xA;</xsl:text>
			<xsl:text>&#09;</xsl:text>
			<xsl:text>Footer:</xsl:text>
			<xsl:value-of select="." />
		</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="booleanCheckboxToString">
		<xsl:param name="boolValue" />
		<xsl:variable name="boolValueString" select="string($boolValue)" />
		<xsl:choose>
			<xsl:when test="$boolValueString = 'true' ">
				<xsl:text>Áno</xsl:text>
			</xsl:when>
			<xsl:when test="$boolValueString = 'false' ">
				<xsl:text>Nie</xsl:text>
			</xsl:when>
			<xsl:when test="$boolValueString = '1' ">
				<xsl:text>Áno</xsl:text>
			</xsl:when>
			<xsl:when test="$boolValueString = '0' ">
				<xsl:text>Nie</xsl:text>
			</xsl:when>
			<xsl:otherwise>
				<xsl:value-of select="$boolValueString"></xsl:value-of>
			</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="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="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:stylesheet>