<?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/00318442.A0003109.000000284.ZiadostoVydaniePovoleniakPredajunaTrhovomMieste/1.0" 
                exclude-result-prefixes="d" 
                version="1.0">

    <xsl:template match="/">
        <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
            <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="20px" margin-right="20px">
                    <fo:region-body margin-bottom="10mm" />
                    <fo:region-after region-name="footer" extent="10mm" />
                </fo:simple-page-master>
                <fo:page-sequence-master master-name="document">
                    <fo:repeatable-page-master-alternatives>
                        <fo:conditional-page-master-reference master-reference="A4" />
                    </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="11pt" text-align="justify">
                <fo:static-content flow-name="footer">
                    <fo:block>
                        <fo:table>
                            <fo:table-column />
                            <fo:table-column />
                            <fo:table-body>
                                <fo:table-row>
                                    <fo:table-cell>
                                        <fo:block></fo:block>
                                    </fo:table-cell>
                                    <fo:table-cell>
                                        <fo:block text-align="end">
                                            <fo:page-number />
                                        </fo:block>
                                    </fo:table-cell>
                                </fo:table-row>
                            </fo:table-body>
                        </fo:table>
                    </fo:block>
                </fo:static-content>

                <!-- flow so safeguard proti prazdnemu obsahu -->
                <fo:flow flow-name="xsl-region-body">
                    <xsl:apply-templates />
                    <xsl:if test="not(*)">
                        <fo:block>&#160;</fo:block> <!-- fallback, ak apply-templates nic nevygeneruje -->
                    </xsl:if>
                </fo:flow>
            </fo:page-sequence>
        </fo:root>
    </xsl:template>

    <!-- šablóny pre formátovanie dátumov a času -->
    <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="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="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 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>

    <!-- Hlavny obsah -->
    <xsl:template match="eForm_eGov_vstup_000000284">
        <fo:block margin-left="1pt" margin-top="6pt" margin-right="1pt" text-align="center" font-weight="bold" font-size="17pt">
            Žiadosť o vydanie povolenia k predaju na trhovom mieste
        </fo:block>
        <xsl:apply-templates select="./egonp:Ziadost_o_vydanie_povolenia_k_predaju_na_trhovom_mieste" />
        <xsl:apply-templates select="./egonp:IOddiel" />
        <xsl:apply-templates select="./egonp:Narok" />
        <xsl:apply-templates select="./egonp:Povinnosti" />
        <xsl:apply-templates select="./egonp:Prilohy" />
        <fo:block keep-together.within-page="1">
            <xsl:apply-templates select="./egonp:OchranaOsobnychUdajov" />
            <xsl:apply-templates select="./egonp:SposobDoruceniaVystupu" />
        </fo:block>
    </xsl:template>


<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:Ziadost_o_vydanie_povolenia_k_predaju_na_trhovom_mieste">
    <fo:block margin-top="10px">
        <fo:table>
            <fo:table-column column-width="10%"/>
            <fo:table-column/>
            <fo:table-body>
                <fo:table-row>
                    <fo:table-cell>
                        <fo:block font-weight="bold">Typ akcie</fo:block>
                    </fo:table-cell>
                    <!-- Vnútorná tabuľka v rámci bunky -->
                    <fo:table-cell>
                        <fo:block>
                            <fo:table>
                                <fo:table-column column-width="10%"/>
                                <fo:table-column/>
                                <fo:table-body>
                                    <fo:table-row>
                                        <fo:table-cell>
                                            <fo:block>
                                                <xsl:choose>
                                                    <xsl:when test="egonp:Ziadost_o_vydanie_povolenia_k_predaju_na_trhovom_mieste_Radio[text()='Žiadosť o vydanie povolenia k predaju na trhovom mieste – Veľkonočné trhy']">
                                                        <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A4;</fo:inline>
                                                    </xsl:when>
                                                    <xsl:otherwise>
                                                        <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A1;</fo:inline>
                                                    </xsl:otherwise>
                                                </xsl:choose>
                                            </fo:block>
                                        </fo:table-cell>
                                        <fo:table-cell>
                                            <fo:block>Žiadosť o vydanie povolenia k predaju na trhovom mieste – Veľkonočné trhy</fo:block>
                                        </fo:table-cell>
                                    </fo:table-row>
                                    <fo:table-row>
                                        <fo:table-cell>
                                            <fo:block>
                                                <xsl:choose>
                                                    <xsl:when test="egonp:Ziadost_o_vydanie_povolenia_k_predaju_na_trhovom_mieste_Radio[text()='Žiadosť o vydanie povolenia k predaju na trhovom mieste – Prievidzské hody']">
                                                        <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A4;</fo:inline>
                                                    </xsl:when>
                                                    <xsl:otherwise>
                                                        <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A1;</fo:inline>
                                                    </xsl:otherwise>
                                                </xsl:choose>
                                            </fo:block>
                                        </fo:table-cell>
                                        <fo:table-cell>
                                            <fo:block>Žiadosť o vydanie povolenia k predaju na trhovom mieste – Prievidzské hody</fo:block>
                                        </fo:table-cell>
                                    </fo:table-row>
                                    <fo:table-row>
                                        <fo:table-cell>
                                            <fo:block>
                                                <xsl:choose>
                                                    <xsl:when test="egonp:Ziadost_o_vydanie_povolenia_k_predaju_na_trhovom_mieste_Radio[text()='Žiadosť o vydanie povolenia k predaju na trhovom mieste – Prievidzské hody']">
                                                        <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A4;</fo:inline>
                                                    </xsl:when>
                                                    <xsl:otherwise>
                                                        <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A1;</fo:inline>
                                                    </xsl:otherwise>
                                                </xsl:choose>
                                            </fo:block>
                                        </fo:table-cell>
                                        <fo:table-cell>
                                            <fo:block>Žiadosť o vydanie povolenia k predaju na trhovom mieste – Prievidzské hody</fo:block>
                                        </fo:table-cell>
                                    </fo:table-row>
                                    <fo:table-row>
                                        <fo:table-cell>
                                            <fo:block>
                                                <xsl:choose>
                                                    <xsl:when test="egonp:Ziadost_o_vydanie_povolenia_k_predaju_na_trhovom_mieste_Radio[text()='Žiadosť o vydanie povolenia k predaju na trhovom mieste – Banícky jarmok']">
                                                        <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A4;</fo:inline>
                                                    </xsl:when>
                                                    <xsl:otherwise>
                                                        <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A1;</fo:inline>
                                                    </xsl:otherwise>
                                                </xsl:choose>
                                            </fo:block>
                                        </fo:table-cell>
                                        <fo:table-cell>
                                            <fo:block>Žiadosť o vydanie povolenia k predaju na trhovom mieste – Banícky jarmok</fo:block>
                                        </fo:table-cell>
                                    </fo:table-row>
                                    <fo:table-row>
                                        <fo:table-cell>
                                            <fo:block>
                                                <xsl:choose>
                                                    <xsl:when test="egonp:Ziadost_o_vydanie_povolenia_k_predaju_na_trhovom_mieste_Radio[text()='Žiadosť o vydanie povolenia k predaju na trhovom mieste – Dni k pamiatke zosnulých']">
                                                        <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A4;</fo:inline>
                                                    </xsl:when>
                                                    <xsl:otherwise>
                                                        <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A1;</fo:inline>
                                                    </xsl:otherwise>
                                                </xsl:choose>
                                            </fo:block>
                                        </fo:table-cell>
                                        <fo:table-cell>
                                            <fo:block>Žiadosť o vydanie povolenia k predaju na trhovom mieste – Dni k pamiatke zosnulých</fo:block>
                                        </fo:table-cell>
                                    </fo:table-row>  
                                    
                                    <fo:table-row>
                                        <fo:table-cell>
                                            <fo:block>
                                                <xsl:choose>
                                                    <xsl:when test="egonp:Ziadost_o_vydanie_povolenia_k_predaju_na_trhovom_mieste_Radio[text()='Žiadosť o vydanie povolenia k predaju na trhovom mieste – Vianočné trhy']">
                                                        <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A4;</fo:inline>
                                                    </xsl:when>
                                                    <xsl:otherwise>
                                                        <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A1;</fo:inline>
                                                    </xsl:otherwise>
                                                </xsl:choose>
                                            </fo:block>
                                        </fo:table-cell>
                                        <fo:table-cell>
                                            <fo:block>Žiadosť o vydanie povolenia k predaju na trhovom mieste – Vianočné trhy</fo:block>
                                        </fo:table-cell>
                                    </fo:table-row> 
                                    
                                    <fo:table-row>
                                        <fo:table-cell>
                                            <fo:block>
                                                <xsl:choose>
                                                    <xsl:when test="egonp:Ziadost_o_vydanie_povolenia_k_predaju_na_trhovom_mieste_Radio[text()='Žiadosť o vydanie povolenia k predaju na trhovom mieste – mimo príležitostný trh ']">
                                                        <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A4;</fo:inline>
                                                    </xsl:when>
                                                    <xsl:otherwise>
                                                        <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A1;</fo:inline>
                                                    </xsl:otherwise>
                                                </xsl:choose>
                                            </fo:block>
                                        </fo:table-cell>
                                        <fo:table-cell>
                                            <fo:block>Žiadosť o vydanie povolenia k predaju na trhovom mieste – mimo príležitostný trh </fo:block>
                                        </fo:table-cell>
                                    </fo:table-row> 

                                </fo:table-body>
                            </fo:table>
                        </fo:block>
                    </fo:table-cell>
                </fo:table-row>
            </fo:table-body>
        </fo:table>
    </fo:block>

    <fo:block margin-top="0px" margin-left="-2px">
        <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"></fo:block>
                    </fo:table-cell>
                    <!-- Vnútorná tabuľka v rámci bunky -->
                    <fo:table-cell>
                        <fo:block>
                            <fo:table>
                                <fo:table-column column-width="80%"/>
                                <fo:table-column/>
                                <fo:table-body>
                                    <fo:table-row>
                    <fo:table-cell>
                        <fo:block>
                            <xsl:value-of select="egonp:Ziadost_o_vydanie_povolenia_k_predaju_na_trhovom_mieste_Text"/>
                        </fo:block>
                    </fo:table-cell>

                                    </fo:table-row>
                                </fo:table-body>
                            </fo:table>
                        </fo:block>
                    </fo:table-cell>
                </fo:table-row>
            </fo:table-body>
        </fo:table>
    </fo:block>

    <fo:block margin-top="10px">
        <fo:table>
            <fo:table-column column-width="10%"/>
            <fo:table-column/>
            <fo:table-body>
                <fo:table-row>
                    <fo:table-cell>
                        <fo:block font-weight="bold">Typ osoby</fo:block>
                    </fo:table-cell>
                    <!-- Vnútorná tabuľka v rámci bunky -->
                    <fo:table-cell>
                        <fo:block>
                            <fo:table>
                                <fo:table-column column-width="10%"/>
                                <fo:table-column/>
                                <fo:table-body>
                                    <fo:table-row>
                                        <fo:table-cell>
                                            <fo:block>
                                                <xsl:choose>
                                                    <xsl:when test="egonp:Ziadost_o_vydanie_povolenia_k_predaju_na_trhovom_mieste_TypOsoby[text()='FO']">
                                                        <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A4;</fo:inline>
                                                    </xsl:when>
                                                    <xsl:otherwise>
                                                        <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A1;</fo:inline>
                                                    </xsl:otherwise>
                                                </xsl:choose>
                                            </fo:block>
                                        </fo:table-cell>
                                        <fo:table-cell>
                                            <fo:block>Občan bez oprávnenia na podnikanie</fo:block>
                                        </fo:table-cell>
                                    </fo:table-row>
                                    <fo:table-row>
                                        <fo:table-cell>
                                            <fo:block>
                                                <xsl:choose>
                                                    <xsl:when test="egonp:Ziadost_o_vydanie_povolenia_k_predaju_na_trhovom_mieste_TypOsoby[text()='PO']">
                                                        <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A4;</fo:inline>
                                                    </xsl:when>
                                                    <xsl:otherwise>
                                                        <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A1;</fo:inline>
                                                    </xsl:otherwise>
                                                </xsl:choose>
                                            </fo:block>
                                        </fo:table-cell>
                                        <fo:table-cell>
                                            <fo:block>Právnická osoba / Fyzická osoba - podnikateľ</fo:block>
                                        </fo:table-cell>
                                    </fo:table-row>
                                </fo:table-body>
                            </fo:table>
                        </fo:block>
                    </fo:table-cell>
                </fo:table-row>
            </fo:table-body>
        </fo:table>
    </fo:block>
</xsl:template>

    <xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel">
        <fo:block keep-together.within-page="always" margin-top="15px">
            <fo:block font-weight="bold" margin-top="5px">Žiadosť o vydanie povolenia k predaju na trhovom mieste</fo:block>
            <xsl:apply-templates select="./egonp:IOddiel_Subjekt" />            
            <xsl:apply-templates select="./egonp:Udaje" />
            <xsl:apply-templates select="./egonp:Check_Volby" />
        </fo:block>
    </xsl:template>

    <xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel/egonp:IOddiel_Subjekt">
        <fo:block margin-bottom="6pt">
            <fo:block background-color="gray" color="white" margin-left="-3pt" margin-top="3pt" margin-right="3pt" padding-left="1pt" padding-top="2pt">Údaje o žiadateľovi</fo:block>
            <xsl:apply-templates select="./egonp:IOddiel_PO" />
            <xsl:apply-templates select="./egonp:IOddiel_FO" />
        </fo:block>
    </xsl:template>

<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel/egonp:IOddiel_Subjekt/egonp:IOddiel_PO">
    <fo:block margin-top="5px">
        <xsl:if test="/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[text()='PO']">

            <!-- HLAVNÁ TABUĽKA – údaje o spoločnosti -->
            <fo:table table-layout="fixed" width="100%">
                <fo:table-column column-width="20%" />
                <fo:table-column column-width="80%" />
                <fo:table-body>

                    <fo:table-row>
                        <fo:table-cell><fo:block>Obchodné meno:</fo:block></fo:table-cell>
                        <fo:table-cell>
                            <fo:block border-width="0.6pt" border-style="solid" padding="2pt">
                                <xsl:value-of select="./egonp:IOddiel_PO_Obchodne_Meno"/>
                            </fo:block>
                        </fo:table-cell>
                    </fo:table-row>

                    <fo:table-row>
                        <fo:table-cell><fo:block>Sídlo:</fo:block></fo:table-cell>
                        <fo:table-cell>
                            <fo:block border-width="0.6pt" border-style="solid" padding="2pt">
                                <xsl:value-of select="./egonp:IOddiel_PO_Sidlo"/>
                            </fo:block>
                        </fo:table-cell>
                    </fo:table-row>

                    <fo:table-row>
                        <fo:table-cell><fo:block>IČO:</fo:block></fo:table-cell>
                        <fo:table-cell>
                            <fo:block border-width="0.6pt" border-style="solid" padding="2pt">
                                <xsl:value-of select="./egonp:IOddiel_PO_ICO"/>
                            </fo:block>
                        </fo:table-cell>
                    </fo:table-row>

                    <fo:table-row>
                        <fo:table-cell><fo:block>DIČ:</fo:block></fo:table-cell>
                        <fo:table-cell>
                            <fo:block border-width="0.6pt" border-style="solid" padding="2pt">
                                <xsl:value-of select="./egonp:IOddiel_PO_DIC"/>
                            </fo:block>
                        </fo:table-cell>
                    </fo:table-row>

                    <fo:table-row>
                        <fo:table-cell><fo:block>Telefón:</fo:block></fo:table-cell>
                        <fo:table-cell>
                            <fo:block border-width="0.6pt" border-style="solid" padding="2pt">
                                <xsl:value-of select="./egonp:IOddiel_PO_TelCislo"/>
                            </fo:block>
                        </fo:table-cell>
                    </fo:table-row>

                    <fo:table-row>
                        <fo:table-cell><fo:block>E-mail:</fo:block></fo:table-cell>
                        <fo:table-cell>
                            <fo:block border-width="0.6pt" border-style="solid" padding="2pt">
                                <xsl:value-of select="./egonp:IOddiel_PO_Email"/>
                            </fo:block>
                        </fo:table-cell>
                    </fo:table-row>

                </fo:table-body>
            </fo:table>

            <!-- DODATOČNÁ TABUĽKA – pokladnica a vyhlásenie -->
            <fo:table table-layout="fixed" width="100%" margin-top="10pt">
                <fo:table-column column-width="10%"/>
                <fo:table-column/>
                <fo:table-body>

                    <fo:table-row>
                        <fo:table-cell>
                            <fo:block>
                                <xsl:choose>
                                    <xsl:when test="./egonp:IOddiel_PO_Pokladnica_radio = 'Kód pokladnice e-kasa (potrebné vložiť doklad v prílohách)'">
                                        <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A4;</fo:inline>
                                    </xsl:when>
                                    <xsl:otherwise>
                                        <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A1;</fo:inline>
                                    </xsl:otherwise>
                                </xsl:choose>
                            </fo:block>
                        </fo:table-cell>
                        <fo:table-cell>
                            <fo:block>Kód pokladnice e-kasa (potrebné vložiť doklad v prílohách)</fo:block>
                        </fo:table-cell>
                    </fo:table-row>

                    <fo:table-row>
                        <fo:table-cell><fo:block>Kód pokladnice:</fo:block></fo:table-cell>
                        <fo:table-cell>
                            <fo:block border-width="0.6pt" border-style="solid" padding="2pt">
                                <xsl:value-of select="./egonp:IOddiel_PO_Pokladnica_Kod"/>
                            </fo:block>
                        </fo:table-cell>
                    </fo:table-row>


                    <fo:table-row>
                        <fo:table-cell>
                            <fo:block>
                                <xsl:choose>
                                   <xsl:when test="./egonp:IOddiel_PO_Pokladnica_radio = 'Čestné vyhlásenie o nepoužívaní ERP.'">
                                        <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A4;</fo:inline>
                                    </xsl:when>
                                    <xsl:otherwise>
                                        <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A1;</fo:inline>
                                    </xsl:otherwise>
                                </xsl:choose>
                            </fo:block>
                        </fo:table-cell>
                        <fo:table-cell>
                            <fo:block>Čestné vyhlásenie o nepoužívaní ERP.</fo:block>
                        </fo:table-cell>
                    </fo:table-row>

                </fo:table-body>
            </fo:table>

            <!-- Čestné vyhlásenie ERP -->
            <fo:block font-size="9pt" margin-bottom="3mm">
                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:
            </fo:block>

            <!-- VYHLÁSENIA (aj keď sú interné, nechávam podľa tvojho kódu) -->
            <fo:block margin-top="3mm" margin-right="3mm">
                <fo:table table-layout="fixed">
                    <fo:table-column column-width="7%" />
                    <fo:table-column />
                    <fo:table-body>
                        <fo:table-row>
                            <fo:table-cell>
                                <fo:block font-size="21pt">
                                    <xsl:choose>
                                        <xsl:when test="./egonp:IOddiel_PO_CestneVyhlasenie_V1 = '1'">
                                            <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF078;</fo:inline>
                                        </xsl:when>
                                        <xsl:otherwise>
                                            <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A8;</fo:inline>
                                        </xsl:otherwise>
                                    </xsl:choose>
                                </fo:block>
                            </fo:table-cell>
                            <fo:table-cell>
                                <fo:block>§ 3 ods. 2 písm. a) bod 6 zákona – povinnosť evidovať tržbu sa nevzťahuje na predaj tovaru.</fo:block>
                            </fo:table-cell>
                        </fo:table-row>
                    </fo:table-body>
                </fo:table>
            </fo:block>

            <fo:block margin-top="3mm" margin-right="3mm">
                <fo:table table-layout="fixed">
                    <fo:table-column column-width="7%" />
                    <fo:table-column />
                    <fo:table-body>
                        <fo:table-row>
                            <fo:table-cell>
                                <fo:block font-size="21pt">
                                    <xsl:choose>
                                        <xsl:when test="./egonp:IOddiel_PO_CestneVyhlasenie_V2 = '1'">
                                            <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF078;</fo:inline>
                                        </xsl:when>
                                        <xsl:otherwise>
                                            <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A8;</fo:inline>
                                        </xsl:otherwise>
                                    </xsl:choose>
                                </fo:block>
                            </fo:table-cell>
                            <fo:table-cell>
                                <fo:block>§ 3 ods. 2 písm. b) bod 1 zákona – povinnosť evidovať tržbu sa nevzťahuje na poskytované služby.</fo:block>
                            </fo:table-cell>
                        </fo:table-row>
                    </fo:table-body>
                </fo:table>
            </fo:block>

        </xsl:if>
    </fo:block>
</xsl:template>

<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel/egonp:IOddiel_Subjekt/egonp:IOddiel_FO">
    <fo:block margin-top="5px">
        <xsl:if test="/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[text()='FO']">

            <!-- HLAVNÁ TABUĽKA – údaje o fyzickej osobe -->
            <fo:table table-layout="fixed" width="100%">
                <fo:table-column column-width="20%"/>
                <fo:table-column column-width="80%"/>
                <fo:table-body>

                    <fo:table-row>
                        <fo:table-cell><fo:block>Meno a priezvisko:</fo:block></fo:table-cell>
                        <fo:table-cell><fo:block border-width="0.6pt" border-style="solid" padding="2pt">
                            <xsl:value-of select="./egonp:IOddiel_FO_Meno_Priezvisko"/>
                        </fo:block></fo:table-cell>
                    </fo:table-row>

                    <fo:table-row>
                        <fo:table-cell><fo:block>Adresa:</fo:block></fo:table-cell>
                        <fo:table-cell><fo:block border-width="0.6pt" border-style="solid" padding="2pt">
                            <xsl:value-of select="./egonp:IOddiel_FO_Adresa"/>
                        </fo:block></fo:table-cell>
                    </fo:table-row>

                    <fo:table-row>
                        <fo:table-cell><fo:block>Dátum narodenia:</fo:block></fo:table-cell>
                        <fo:table-cell><fo:block border-width="0.6pt" border-style="solid" padding="2pt">
                            <xsl:value-of select="./egonp:IOddiel_FO_DatNar"/>
                        </fo:block></fo:table-cell>
                    </fo:table-row>

                    <fo:table-row>
                        <fo:table-cell><fo:block>DIČ:</fo:block></fo:table-cell>
                        <fo:table-cell><fo:block border-width="0.6pt" border-style="solid" padding="2pt">
                            <xsl:value-of select="./egonp:IOddiel_FO_DIC"/>
                        </fo:block></fo:table-cell>
                    </fo:table-row>

                    <fo:table-row>
                        <fo:table-cell><fo:block>Telefón:</fo:block></fo:table-cell>
                        <fo:table-cell><fo:block border-width="0.6pt" border-style="solid" padding="2pt">
                            <xsl:value-of select="./egonp:IOddiel_FO_TelCislo"/>
                        </fo:block></fo:table-cell>
                    </fo:table-row>

                    <fo:table-row>
                        <fo:table-cell><fo:block>E-mail:</fo:block></fo:table-cell>
                        <fo:table-cell><fo:block border-width="0.6pt" border-style="solid" padding="2pt">
                            <xsl:value-of select="./egonp:IOddiel_FO_Email"/>
                        </fo:block></fo:table-cell>
                    </fo:table-row>

                </fo:table-body>
            </fo:table>

            <!-- Čestné vyhlásenie ERP -->
            <fo:block margin-top="6mm" font-weight="bold">Čestné vyhlásenie o nepoužívaní ERP</fo:block>
            <fo:block font-size="9pt" margin-bottom="3mm">
                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:
            </fo:block>

            <!-- ERP V1 -->
            <fo:block margin-top="3mm" margin-right="3mm">
                <fo:table table-layout="fixed">
                    <fo:table-column column-width="7%"/>
                    <fo:table-column/>
                    <fo:table-body>
                        <fo:table-row>
                            <fo:table-cell>
                                <fo:block font-size="21pt">
                                    <xsl:choose>
                                        <xsl:when test="./egonp:IOddiel_FO_CestneERP_V1 = '1'">
                                            <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF078;</fo:inline>
                                        </xsl:when>
                                        <xsl:otherwise>
                                            <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A8;</fo:inline>
                                        </xsl:otherwise>
                                    </xsl:choose>
                                </fo:block>
                            </fo:table-cell>
                            <fo:table-cell>
                                <fo:block>§ 2 ods. a) nie som podnikateľom</fo:block>
                            </fo:table-cell>
                        </fo:table-row>
                    </fo:table-body>
                </fo:table>
            </fo:block>

<!-- Čestné vyhlásenie o predaji výrobkov -->
<fo:block margin-top="6mm" font-weight="bold">
    Čestné vyhlásenie na predaj výrobkov a poskytovanie služieb na trhovom mieste v meste Prievidza
</fo:block>

<fo:block/> <!-- tu je prázdny riadok -->

<fo:block font-size="9pt" margin-bottom="3mm">
    (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í)
</fo:block>

            <!-- V1 -->
            <fo:block margin-top="3mm" margin-right="3mm">
                <fo:table table-layout="fixed">
                    <fo:table-column column-width="7%"/>
                    <fo:table-column/>
                    <fo:table-body>
                        <fo:table-row>
                            <fo:table-cell>
                                <fo:block font-size="21pt">
                                    <xsl:choose>
                                        <xsl:when test="./egonp:IOddiel_FO_CestneVyhlasenie_V1 = '1'">
                                            <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF078;</fo:inline>
                                        </xsl:when>
                                        <xsl:otherwise>
                                            <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A8;</fo:inline>
                                        </xsl:otherwise>
                                    </xsl:choose>
                                </fo:block>
                            </fo:table-cell>
                            <fo:table-cell>
                                <fo:block>všetky predávané výrobky pochádzajú z mojej vlastnej pestovateľskej alebo chovateľskej činnosti alebo ide o lesné plodiny</fo:block>
                            </fo:table-cell>
                        </fo:table-row>
                    </fo:table-body>
                </fo:table>
            </fo:block>

            <!-- V2 -->
            <fo:block margin-top="3mm" margin-right="3mm">
                <fo:table table-layout="fixed">
                    <fo:table-column column-width="7%"/>
                    <fo:table-column/>
                    <fo:table-body>
                        <fo:table-row>
                            <fo:table-cell>
                                <fo:block font-size="21pt">
                                    <xsl:choose>
                                        <xsl:when test="./egonp:IOddiel_FO_CestneVyhlasenie_V2 = '1'">
                                            <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF078;</fo:inline>
                                        </xsl:when>
                                        <xsl:otherwise>
                                            <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A8;</fo:inline>
                                        </xsl:otherwise>
                                    </xsl:choose>
                                </fo:block>
                            </fo:table-cell>
                            <fo:table-cell>
                                <fo:block>všetky mnou predávané výrobky sú moje vlastné použité výrobky a predávam ich v primeranom množstve</fo:block>
                            </fo:table-cell>
                        </fo:table-row>
                    </fo:table-body>
                </fo:table>
            </fo:block>

            <!-- V3 -->
            <fo:block margin-top="3mm" margin-right="3mm">
                <fo:table table-layout="fixed">
                    <fo:table-column column-width="7%"/>
                    <fo:table-column/>
                    <fo:table-body>
                        <fo:table-row>
                            <fo:table-cell>
                                <fo:block font-size="21pt">
                                    <xsl:choose>
                                        <xsl:when test="./egonp:IOddiel_FO_CestneVyhlasenie_V3 = '1'">
                                            <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF078;</fo:inline>
                                        </xsl:when>
                                        <xsl:otherwise>
                                            <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A8;</fo:inline>
                                        </xsl:otherwise>
                                    </xsl:choose>
                                </fo:block>
                            </fo:table-cell>
                            <fo:table-cell>
                                <fo:block>predávané výrobky sú originálom diela alebo jeho rozmnoženinou</fo:block>
                            </fo:table-cell>
                        </fo:table-row>
                    </fo:table-body>
                </fo:table>
            </fo:block>

        </xsl:if>
    </fo:block>
</xsl:template>

<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel/egonp:Check_Volby">
    <fo:block margin-top="5px">

        <!-- Popis druhu sortimentu: -->
        <fo:block margin-top="6mm" font-weight="bold">
            Popis druhu sortimentu:
        </fo:block>

        <!-- HLAVNÁ TABUĽKA – Volby -->
        <fo:table table-layout="fixed" width="100%">
            <fo:table-column column-width="7%"/>
            <fo:table-column column-width="93%"/>
            <fo:table-body>

                <xsl:for-each select="*">
                    <fo:table-row>
                        <fo:table-cell>
                            <fo:block font-size="21pt">
                                <xsl:choose>
                                    <xsl:when test=". = '1'">
                                        <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF078;</fo:inline>
                                    </xsl:when>
                                    <xsl:otherwise>
                                        <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A8;</fo:inline>
                                    </xsl:otherwise>
                                </xsl:choose>
                            </fo:block>
                        </fo:table-cell>
                        <fo:table-cell>
                            <fo:block>
                                <xsl:choose>
                                    <xsl:when test="name() = 'TMV01'">Občerstvenie vrátane alkoholických nápojov na priamu konzumáciu (aj medovina)</xsl:when>
                                    <xsl:when test="name() = 'TMV02'">Víno, burčiak</xsl:when>
                                    <xsl:when test="name() = 'TMV03'">Občerstvenie na priamu konzumáciu (bez alkoholických nápojov)</xsl:when>
                                    <xsl:when test="name() = 'TMV04'">Umiestnenie stolov a pultov na priamu konzumáciu občerstvenia</xsl:when>
                                    <xsl:when test="name() = 'TMV05'">Potravinársky tovar v spotrebiteľskom balení</xsl:when>
                                    <xsl:when test="name() = 'TMV06'">Drobné občerstvenie so spotrebou elektrickej energie – cukrová vata, pukance, varená kukurica a pod.</xsl:when>
                                    <xsl:when test="name() = 'TMV07'">Drobné občerstvenie bez spotreby elektrickej energie – cukrovinky, medovníčky a pod.</xsl:when>
                                    <xsl:when test="name() = 'TMV08'">Remeselné výrobky a umelecké diela, výrobky vlastnej produkcie a výroby (med, ovocie, zelenina, semiačka, koreniny a pod.)</xsl:when>
                                    <xsl:when test="name() = 'TMV09'">Predmet výroby v živnostenskom liste: odevná, textilná, brašnárska, keramika, bižutéria, prútený tovar a pod.</xsl:when>
                                    <xsl:when test="name() = 'TMV10'">Ostatné tovary a služby neuvedené vyššie</xsl:when>
                                    <xsl:when test="name() = 'TMV11'">Parkovanie vozidiel pri predajných zariadeniach</xsl:when>
                                    <xsl:when test="name() = 'TMV12'">Lunaparky a iné atrakcie</xsl:when>
                                    <xsl:when test="name() = 'TMV13'">Umiestnenie zariadenia na predaj výrobkov počas príležitostného trhu Dni k pamiatke zosnulých</xsl:when>
                                    <xsl:when test="name() = 'TMV14'">Mimo príležitostných trhov (ďalšie kategórie podľa ďalšieho kódu)</xsl:when>
                                </xsl:choose>
                            </fo:block>
                        </fo:table-cell>
                    </fo:table-row>
                </xsl:for-each>

            </fo:table-body>
        </fo:table>

    </fo:block>
</xsl:template>

<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:IOddiel/egonp:Udaje">

<fo:block margin-top="10px">
    <fo:table table-layout="fixed" width="100%">
        <fo:table-column column-width="50%"/>
        <fo:table-column width="50%"/>
        <fo:table-body>
            <fo:table-row>
                <fo:table-cell>
                    <fo:block font-weight="bold">
                        Rozmer predajného miesta:
                    </fo:block>
                </fo:table-cell>
                <fo:table-cell>
                    <!-- Vnútorná tabuľka pre Áno/Nie -->
                    <fo:table table-layout="fixed" width="100%">
                        <fo:table-column column-width="10%"/>
                        <fo:table-column/>
                        <fo:table-body>
                            <!-- 2,5x1,7m -->
                            <fo:table-row>
                                <fo:table-cell>
                                    <fo:block>
                                        <xsl:choose>
                                            <xsl:when test="./egonp:Dlzka_Sirka_predajneho_miesta_Radio = '2,5x1,7m'">
                                                <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A4;</fo:inline>
                                            </xsl:when>
                                            <xsl:otherwise>
                                                <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A1;</fo:inline>
                                            </xsl:otherwise>
                                        </xsl:choose>
                                    </fo:block>
                                </fo:table-cell>
                                <fo:table-cell>
                                    <fo:block>2,5x1,7m</fo:block>
                                </fo:table-cell>
                            </fo:table-row>

                            <!-- 3x2m -->
                            <fo:table-row>
                                <fo:table-cell>
                                    <fo:block>
                                        <xsl:choose>
                                            <xsl:when test="./egonp:Dlzka_Sirka_predajneho_miesta_Radio = '3x2m'">
                                                <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A4;</fo:inline>
                                            </xsl:when>
                                            <xsl:otherwise>
                                                <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A1;</fo:inline>
                                            </xsl:otherwise>
                                        </xsl:choose>
                                    </fo:block>
                                </fo:table-cell>
                                <fo:table-cell>
                                    <fo:block>3x2m</fo:block>
                                </fo:table-cell>
                            </fo:table-row>

                            <!-- 3x3m -->
                            <fo:table-row>
                                <fo:table-cell>
                                    <fo:block>
                                        <xsl:choose>
                                            <xsl:when test="./egonp:Dlzka_Sirka_predajneho_miesta_Radio = '3x3m'">
                                                <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A4;</fo:inline>
                                            </xsl:when>
                                            <xsl:otherwise>
                                                <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A1;</fo:inline>
                                            </xsl:otherwise>
                                        </xsl:choose>
                                    </fo:block>
                                </fo:table-cell>
                                <fo:table-cell>
                                    <fo:block>3x3m</fo:block>
                                </fo:table-cell>
                            </fo:table-row>

                            <!-- 6x2m -->
                            <fo:table-row>
                                <fo:table-cell>
                                    <fo:block>
                                        <xsl:choose>
                                            <xsl:when test="./egonp:Dlzka_Sirka_predajneho_miesta_Radio = '6x2m'">
                                                <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A4;</fo:inline>
                                            </xsl:when>
                                            <xsl:otherwise>
                                                <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A1;</fo:inline>
                                            </xsl:otherwise>
                                        </xsl:choose>
                                    </fo:block>
                                </fo:table-cell>
                                <fo:table-cell>
                                    <fo:block>6x2m</fo:block>
                                </fo:table-cell>
                            </fo:table-row>

                            <!-- 6x3m -->
                            <fo:table-row>
                                <fo:table-cell>
                                    <fo:block>
                                        <xsl:choose>
                                            <xsl:when test="./egonp:Dlzka_Sirka_predajneho_miesta_Radio = '6x3m'">
                                                <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A4;</fo:inline>
                                            </xsl:when>
                                            <xsl:otherwise>
                                                <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A1;</fo:inline>
                                            </xsl:otherwise>
                                        </xsl:choose>
                                    </fo:block>
                                </fo:table-cell>
                                <fo:table-cell>
                                    <fo:block>6x3m</fo:block>
                                </fo:table-cell>
                            </fo:table-row>

                            <!-- 9x2m -->
                            <fo:table-row>
                                <fo:table-cell>
                                    <fo:block>
                                        <xsl:choose>
                                            <xsl:when test="./egonp:Dlzka_Sirka_predajneho_miesta_Radio = '9x2m'">
                                                <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A4;</fo:inline>
                                            </xsl:when>
                                            <xsl:otherwise>
                                                <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A1;</fo:inline>
                                            </xsl:otherwise>
                                        </xsl:choose>
                                    </fo:block>
                                </fo:table-cell>
                                <fo:table-cell>
                                    <fo:block>9x2m</fo:block>
                                </fo:table-cell>
                            </fo:table-row>

                            <!-- 9x3m -->
                            <fo:table-row>
                                <fo:table-cell>
                                    <fo:block>
                                        <xsl:choose>
                                            <xsl:when test="./egonp:Dlzka_Sirka_predajneho_miesta_Radio = '9x3m'">
                                                <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A4;</fo:inline>
                                            </xsl:when>
                                            <xsl:otherwise>
                                                <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A1;</fo:inline>
                                            </xsl:otherwise>
                                        </xsl:choose>
                                    </fo:block>
                                </fo:table-cell>
                                <fo:table-cell>
                                    <fo:block>9x3m</fo:block>
                                </fo:table-cell>
                            </fo:table-row>

                            <!-- Iný rozmer - pod rádio do druhého stĺpca -->
                            <fo:table-row>
                                <fo:table-cell>
                                    <fo:block>
                                        <xsl:choose>
                                            <xsl:when test="./egonp:Dlzka_Sirka_predajneho_miesta_Radio = 'Iný rozmer (min. 3x2m)'">
                                                <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A4;</fo:inline>
                                            </xsl:when>
                                            <xsl:otherwise>
                                                <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A1;</fo:inline>
                                            </xsl:otherwise>
                                        </xsl:choose>
                                    </fo:block>
                                </fo:table-cell>
                                <fo:table-cell>
                                    <fo:block>
                                        Iný rozmer (min. 3x2m)
                                    </fo:block>
                                </fo:table-cell>
                            </fo:table-row>

                        </fo:table-body>
                    </fo:table>

                    <!-- Textová časť pre ďalšie info -->
                    <fo:block margin-top="2px">
                        <xsl:value-of select="egonp:Dlzka_Sirka_predajneho_miesta_Text"/>
                    </fo:block>

                </fo:table-cell>
            </fo:table-row>
        </fo:table-body>
    </fo:table>
</fo:block>




    <fo:block margin-top="0px" margin-left="0px">
        <fo:table>
            <fo:table-column column-width="50%"/>
            <fo:table-column/>
            <fo:table-body>
                <fo:table-row>
                    <fo:table-cell>
                        <fo:block font-weight="bold">Rozmery stolov a sedenia (iba v prípade občerstvenia):</fo:block>
                    </fo:table-cell>
                    <!-- Vnútorná tabuľka v rámci bunky -->
                    <fo:table-cell>
                        <fo:block>
                            <fo:table>
                                <fo:table-column column-width="50%"/>
                                <fo:table-column/>
                                <fo:table-body>
                                    <fo:table-row>
                                        <fo:table-cell>
                                            <fo:block>
                                                <xsl:value-of select="egonp:Rozmer_sedenia"/>
                                            </fo:block>
                                        </fo:table-cell>
                                    </fo:table-row>
                                </fo:table-body>
                            </fo:table>
                        </fo:block>
                    </fo:table-cell>
                </fo:table-row>
            </fo:table-body>
        </fo:table>
    </fo:block>

 <fo:block margin-top="10px">
    <fo:table table-layout="fixed" width="100%">
        <fo:table-column column-width="50%"/>
        <fo:table-column/>
        <fo:table-body>
            <fo:table-row>
                <fo:table-cell>
                    <fo:block font-weight="bold">
                        Požadujem auto za stánkom (iba Banícky jarmok):
                    </fo:block>
                </fo:table-cell>
                <fo:table-cell>
                    <!-- Vnútorná tabuľka pre Áno/Nie -->
                    <fo:table table-layout="fixed" width="100%">
                        <fo:table-column column-width="10%"/>
                        <fo:table-column/>
                        <fo:table-body>
                            <fo:table-row>
                                <fo:table-cell>
                                    <fo:block>
                                        <xsl:choose>
                                            <xsl:when test="./egonp:AutoSoStankom_Radio = 'Áno (uveďte rozmer)'">
                                                <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A4;</fo:inline>
                                            </xsl:when>
                                            <xsl:otherwise>
                                                <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A1;</fo:inline>
                                            </xsl:otherwise>
                                        </xsl:choose>
                                    </fo:block>
                                </fo:table-cell>
                                <fo:table-cell>
                                    <fo:block>Áno (uveďte rozmer)</fo:block>
                                </fo:table-cell>
                            </fo:table-row>
                            <fo:table-row>
                                <fo:table-cell>
                                    <fo:block>
                                        <xsl:choose>
                                            <xsl:when test="./egonp:AutoSoStankom_Radio = 'Nie'">
                                                <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A4;</fo:inline>
                                            </xsl:when>
                                            <xsl:otherwise>
                                                <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A1;</fo:inline>
                                            </xsl:otherwise>
                                        </xsl:choose>
                                    </fo:block>
                                </fo:table-cell>
                                <fo:table-cell>
                                    <fo:block>Nie</fo:block>
                                </fo:table-cell>
                            </fo:table-row>
                        </fo:table-body>
                    </fo:table>

                    <!-- Textové pole pod tabuľkou -->
                    <fo:block margin-top="0px" margin-left="-55px">
                        <fo:table table-layout="fixed" width="100%">
                            <fo:table-column column-width="50%"/>
                            <fo:table-column/>
                            <fo:table-body>
                                <fo:table-row>
                                    <fo:table-cell>
                                        <fo:block font-weight="bold"/>
                                    </fo:table-cell>
                                    <fo:table-cell>
                                        <fo:block>
                                            <fo:table table-layout="fixed" width="100%">
                                                <fo:table-column/>
                                                <fo:table-body>
                                                    <fo:table-row>
                                                        <fo:table-cell>
                                                            <fo:block>
                                                                <xsl:value-of select="./egonp:AutoSoStankom_Text"/>
                                                            </fo:block>
                                                        </fo:table-cell>
                                                    </fo:table-row>
                                                </fo:table-body>
                                            </fo:table>
                                        </fo:block>
                                    </fo:table-cell>
                                </fo:table-row>
                            </fo:table-body>
                        </fo:table>
                    </fo:block>

                </fo:table-cell>
            </fo:table-row>
        </fo:table-body>
    </fo:table>
</fo:block>


    <fo:block margin-top="0px" margin-left="0px">
        <fo:table>
            <fo:table-column column-width="50%"/>
            <fo:table-column column-width="50%"/>
            <fo:table-body>
                <fo:table-row>
                    <fo:table-cell>
                        <fo:block font-weight="bold">Auto_SPZ:</fo:block>
                    </fo:table-cell>
                    <!-- Vnútorná tabuľka v rámci bunky -->
                    <fo:table-cell>
                        <fo:block>
                            <fo:table>
                                <fo:table-column column-width="50%"/>
                                <fo:table-column/>
                                <fo:table-body>
                                    <fo:table-row>
                                        <fo:table-cell>
                                            <fo:block>
                                                <xsl:value-of select="egonp:Rozmer_sedenia"/>
                                            </fo:block>
                                        </fo:table-cell>
                                    </fo:table-row>
                                </fo:table-body>
                            </fo:table>
                        </fo:block>
                    </fo:table-cell>
                </fo:table-row>
            </fo:table-body>
        </fo:table>
    </fo:block> 
    
 <fo:block margin-top="10px">
    <fo:table table-layout="fixed" width="100%">
        <fo:table-column column-width="50%"/>
        <fo:table-column/>
        <fo:table-body>
            <fo:table-row>
                <fo:table-cell>
                    <fo:block font-weight="bold">
                        Elektrická prípojka:
                    </fo:block>
                </fo:table-cell>
                <fo:table-cell>
                    <!-- Vnútorná tabuľka pre Áno/Nie -->
                    <fo:table table-layout="fixed" width="100%">
                        <fo:table-column column-width="10%"/>
                        <fo:table-column/>
                        <fo:table-body>
                            <fo:table-row>
                                <fo:table-cell>
                                    <fo:block>
                                        <xsl:choose>
                                            <xsl:when test="./egonp:ElektrickaPripojka_Radio = '220V'">
                                                <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A4;</fo:inline>
                                            </xsl:when>
                                            <xsl:otherwise>
                                                <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A1;</fo:inline>
                                            </xsl:otherwise>
                                        </xsl:choose>
                                    </fo:block>
                                </fo:table-cell>
                                <fo:table-cell>
                                    <fo:block>220V</fo:block>
                                </fo:table-cell>
                            </fo:table-row>
                            <fo:table-row>
                                <fo:table-cell>
                                    <fo:block>
                                        <xsl:choose>
                                            <xsl:when test="./egonp:ElektrickaPripojka_Radio = '380V'">
                                                <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A4;</fo:inline>
                                            </xsl:when>
                                            <xsl:otherwise>
                                                <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A1;</fo:inline>
                                            </xsl:otherwise>
                                        </xsl:choose>
                                    </fo:block>
                                </fo:table-cell>
                                <fo:table-cell>
                                    <fo:block>380V</fo:block>
                                </fo:table-cell>
                            </fo:table-row>
                        </fo:table-body>
                    </fo:table>

                </fo:table-cell>
            </fo:table-row>
        </fo:table-body>
    </fo:table>
</fo:block>    

 <fo:block margin-top="10px">
    <fo:table table-layout="fixed" width="100%">
        <fo:table-column column-width="50%"/>
        <fo:table-column/>
        <fo:table-body>
            <fo:table-row>
                <fo:table-cell>
                    <fo:block font-weight="bold">
                        Pripojenie na vodu:
                    </fo:block>
                </fo:table-cell>
                <fo:table-cell>
                    <!-- Vnútorná tabuľka pre Áno/Nie -->
                    <fo:table table-layout="fixed" width="100%">
                        <fo:table-column column-width="10%"/>
                        <fo:table-column/>
                        <fo:table-body>
                            <fo:table-row>
                                <fo:table-cell>
                                    <fo:block>
                                        <xsl:choose>
                                            <xsl:when test="./egonp:VodaPripojka_Radio = 'Áno'">
                                                <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A4;</fo:inline>
                                            </xsl:when>
                                            <xsl:otherwise>
                                                <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A1;</fo:inline>
                                            </xsl:otherwise>
                                        </xsl:choose>
                                    </fo:block>
                                </fo:table-cell>
                                <fo:table-cell>
                                    <fo:block>Áno</fo:block>
                                </fo:table-cell>
                            </fo:table-row>
                            <fo:table-row>
                                <fo:table-cell>
                                    <fo:block>
                                        <xsl:choose>
                                            <xsl:when test="./egonp:VodaPripojka_Radio = 'Nie'">
                                                <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A4;</fo:inline>
                                            </xsl:when>
                                            <xsl:otherwise>
                                                <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A1;</fo:inline>
                                            </xsl:otherwise>
                                        </xsl:choose>
                                    </fo:block>
                                </fo:table-cell>
                                <fo:table-cell>
                                    <fo:block>Nie</fo:block>
                                </fo:table-cell>
                            </fo:table-row>
                        </fo:table-body>
                    </fo:table>

                </fo:table-cell>
            </fo:table-row>
        </fo:table-body>
    </fo:table>
</fo:block>

    <fo:block margin-top="0px" margin-left="0px">
        <fo:table>
            <fo:table-column column-width="80%"/>
            <fo:table-column/>
            <fo:table-body>
                <fo:table-row>
                    <fo:table-cell>
                        <fo:block font-weight="bold">V prípade aukcie na trhové miesto, ponúknite cenu (v €) za celé obdobie trvania trhu:</fo:block>
                    </fo:table-cell>
                    <!-- Vnútorná tabuľka v rámci bunky -->
                    <fo:table-cell>
                        <fo:block>
                            <fo:table>
                                <fo:table-column column-width="80%"/>
                                <fo:table-column/>
                                <fo:table-body>
                                    <fo:table-row>
                                        <fo:table-cell>
                                            <fo:block>
                                                <xsl:value-of select="egonp:Aukcia_Cena"/>
                                            </fo:block>
                                        </fo:table-cell>
                                    </fo:table-row>
                                </fo:table-body>
                            </fo:table>
                        </fo:block>
                    </fo:table-cell>
                </fo:table-row>
            </fo:table-body>
        </fo:table>
    </fo:block> 

</xsl:template>







   
<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:Povinnosti">
        <fo:block margin-top="3mm" margin-right="3mm">
            <fo:block font-weight="bold" margin-top="5px" margin-bottom="10px"></fo:block>
            <fo:table table-layout="fixed">
                <fo:table-column column-width="7%" />
                <fo:table-column />
                <fo:table-body>
                    <fo:table-row>
                        <fo:table-cell>
                            <fo:block font-size="21pt">
                                <xsl:choose>
                                    <xsl:when test="./egonp:POV01[text()='1']">
                                        <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF078;</fo:inline>
                                    </xsl:when>
                                    <xsl:otherwise>
                                        <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A8;</fo:inline>
                                    </xsl:otherwise>
                                </xsl:choose>
                            </fo:block>
                        </fo:table-cell>
                        <fo:table-cell>
                            <fo:block>Týmto záväzne potvrdzujem svoju účasť na príležitostnom trhu, resp. inom
podujatí</fo:block>
                        </fo:table-cell>
                    </fo:table-row>
                </fo:table-body>
            </fo:table>
        </fo:block>
        <fo:block margin-top="3mm" margin-right="3mm">
            <fo:block font-weight="bold" margin-top="5px" margin-bottom="10px"></fo:block>
            <fo:table table-layout="fixed">
                <fo:table-column column-width="7%" />
                <fo:table-column />
                <fo:table-body>
                    <fo:table-row>
                        <fo:table-cell>
                            <fo:block font-size="21pt">
                                <xsl:choose>
                                    <xsl:when test="./egonp:POV02[text()='1']">
                                        <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF078;</fo:inline>
                                    </xsl:when>
                                    <xsl:otherwise>
                                        <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A8;</fo:inline>
                                    </xsl:otherwise>
                                </xsl:choose>
                            </fo:block>
                        </fo:table-cell>
                        <fo:table-cell>
                            <fo:block>Súhlasím so všetkými podmienkami určenými hlavnými organizátormi.</fo:block>
                        </fo:table-cell>
                    </fo:table-row>
                </fo:table-body>
            </fo:table>
        </fo:block>
        <fo:block margin-top="3mm" margin-right="3mm">
            <fo:block font-weight="bold" margin-top="5px" margin-bottom="10px"></fo:block>
            <fo:table table-layout="fixed">
                <fo:table-column column-width="7%" />
                <fo:table-column />
                <fo:table-body>
                    <fo:table-row>
                        <fo:table-cell>
                            <fo:block font-size="21pt">
                                <xsl:choose>
                                    <xsl:when test="./egonp:POV03[text()='1']">
                                        <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF078;</fo:inline>
                                    </xsl:when>
                                    <xsl:otherwise>
                                        <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A8;</fo:inline>
                                    </xsl:otherwise>
                                </xsl:choose>
                            </fo:block>
                        </fo:table-cell>
                        <fo:table-cell>
                            <fo:block>Prehlasujem, že hore uvedené údaje v prihláške sú správne a zodpovedám za
ich úplnosť a správnosť.</fo:block>
                        </fo:table-cell>
                    </fo:table-row>
                </fo:table-body>
            </fo:table>
        </fo:block>

        <fo:block margin-top="0px">
            <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">Poznámka:</fo:block>
                        </fo:table-cell>
                        <!-- Vnútorná tabuľka v rámci bunky -->
                        <fo:table-cell>
                            <fo:block>
                                <fo:table>
                                    <fo:table-column column-width="80%"/>
                                    <fo:table-column/>
                                    <fo:table-body>
                                        <fo:table-row>
                                            <fo:table-cell>
                                                <fo:block>
                                                    <xsl:value-of select="egonp:Poznamka"/>
                                                </fo:block>
                                            </fo:table-cell>
                                        </fo:table-row>
                                    </fo:table-body>
                                </fo:table>
                            </fo:block>
                        </fo:table-cell>
                    </fo:table-row>
                </fo:table-body>
            </fo:table>
        </fo:block>        
</xsl:template>

<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:Prilohy">
        <fo:block font-weight="bold" margin-bottom="5px" margin-top="15px" >Prílohy:</fo:block>    
        <fo:block margin-top="3mm" margin-right="3mm">
            <fo:block font-weight="bold" margin-top="5px" margin-bottom="10px"></fo:block>
            <fo:table table-layout="fixed">
                <fo:table-column column-width="7%" />
                <fo:table-column />
                <fo:table-body>
                    <fo:table-row>
                        <fo:table-cell>
                            <fo:block font-size="21pt">
                                <xsl:choose>
                                    <xsl:when test="./egonp:Priloha01[text()='1']">
                                        <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF078;</fo:inline>
                                    </xsl:when>
                                    <xsl:otherwise>
                                        <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A8;</fo:inline>
                                    </xsl:otherwise>
                                </xsl:choose>
                            </fo:block>
                        </fo:table-cell>
                        <fo:table-cell>
                            <fo:block>Osvedčenie o zápise do evidencie SHR.</fo:block>
                        </fo:table-cell>
                    </fo:table-row>
                </fo:table-body>
            </fo:table>
        </fo:block>
        <fo:block margin-top="3mm" margin-right="3mm">
            <fo:block font-weight="bold" margin-top="5px" margin-bottom="10px"></fo:block>
            <fo:table table-layout="fixed">
                <fo:table-column column-width="7%" />
                <fo:table-column />
                <fo:table-body>
                    <fo:table-row>
                        <fo:table-cell>
                            <fo:block font-size="21pt">
                                <xsl:choose>
                                    <xsl:when test="./egonp:Priloha02[text()='1']">
                                        <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF078;</fo:inline>
                                    </xsl:when>
                                    <xsl:otherwise>
                                        <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A8;</fo:inline>
                                    </xsl:otherwise>
                                </xsl:choose>
                            </fo:block>
                        </fo:table-cell>
                        <fo:table-cell>
                            <fo:block>Potvrdenie o vlastníctve pôdy, záhrady (číslo LV, resp. nájomná zmluva) pri predaji
poľnohospodárskych prebytkov.</fo:block>
                        </fo:table-cell>
                    </fo:table-row>
                </fo:table-body>
            </fo:table>
        </fo:block>
        <fo:block margin-top="3mm" margin-right="3mm">
            <fo:block font-weight="bold" margin-top="5px" margin-bottom="10px"></fo:block>
            <fo:table table-layout="fixed">
                <fo:table-column column-width="7%" />
                <fo:table-column />
                <fo:table-body>
                    <fo:table-row>
                        <fo:table-cell>
                            <fo:block font-size="21pt">
                                <xsl:choose>
                                    <xsl:when test="./egonp:Priloha03[text()='1']">
                                        <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF078;</fo:inline>
                                    </xsl:when>
                                    <xsl:otherwise>
                                        <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A8;</fo:inline>
                                    </xsl:otherwise>
                                </xsl:choose>
                            </fo:block>
                        </fo:table-cell>
                        <fo:table-cell>
                            <fo:block>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).</fo:block>
                        </fo:table-cell>
                    </fo:table-row>
                </fo:table-body>
            </fo:table>
        </fo:block>   
       <fo:block margin-top="3mm" margin-right="3mm">
            <fo:block font-weight="bold" margin-top="5px" margin-bottom="10px"></fo:block>
            <fo:table table-layout="fixed">
                <fo:table-column column-width="7%" />
                <fo:table-column />
                <fo:table-body>
                    <fo:table-row>
                        <fo:table-cell>
                            <fo:block font-size="21pt">
                                <xsl:choose>
                                    <xsl:when test="./egonp:Priloha04[text()='1']">
                                        <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF078;</fo:inline>
                                    </xsl:when>
                                    <xsl:otherwise>
                                        <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A8;</fo:inline>
                                    </xsl:otherwise>
                                </xsl:choose>
                            </fo:block>
                        </fo:table-cell>
                        <fo:table-cell>
                            <fo:block>Rozhodnutie / oznámenie RÚVZ pri predaji potravinárskych výrobkov.</fo:block>
                        </fo:table-cell>
                    </fo:table-row>
                </fo:table-body>
            </fo:table>
        </fo:block> 
       <fo:block margin-top="3mm" margin-right="3mm">
            <fo:block font-weight="bold" margin-top="5px" margin-bottom="10px"></fo:block>
            <fo:table table-layout="fixed">
                <fo:table-column column-width="7%" />
                <fo:table-column />
                <fo:table-body>
                    <fo:table-row>
                        <fo:table-cell>
                            <fo:block font-size="21pt">
                                <xsl:choose>
                                    <xsl:when test="./egonp:Priloha05[text()='1']">
                                        <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF078;</fo:inline>
                                    </xsl:when>
                                    <xsl:otherwise>
                                        <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A8;</fo:inline>
                                    </xsl:otherwise>
                                </xsl:choose>
                            </fo:block>
                        </fo:table-cell>
                        <fo:table-cell>
                            <fo:block>Oznámenie / potvrdenie o registrácii na RVPS.</fo:block>
                        </fo:table-cell>
                    </fo:table-row>
                </fo:table-body>
            </fo:table>
        </fo:block> 
       <fo:block margin-top="3mm" margin-right="3mm">
            <fo:block font-weight="bold" margin-top="5px" margin-bottom="10px"></fo:block>
            <fo:table table-layout="fixed">
                <fo:table-column column-width="7%" />
                <fo:table-column />
                <fo:table-body>
                    <fo:table-row>
                        <fo:table-cell>
                            <fo:block font-size="21pt">
                                <xsl:choose>
                                    <xsl:when test="./egonp:Priloha06[text()='1']">
                                        <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF078;</fo:inline>
                                    </xsl:when>
                                    <xsl:otherwise>
                                        <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A8;</fo:inline>
                                    </xsl:otherwise>
                                </xsl:choose>
                            </fo:block>
                        </fo:table-cell>
                        <fo:table-cell>
                            <fo:block>Fotokópia registrácie na Daňovom úrade SR - zahraničný účastník.</fo:block>
                        </fo:table-cell>
                    </fo:table-row>
                </fo:table-body>
            </fo:table>
        </fo:block> 
       <fo:block margin-top="3mm" margin-right="3mm">
            <fo:block font-weight="bold" margin-top="5px" margin-bottom="10px"></fo:block>
            <fo:table table-layout="fixed">
                <fo:table-column column-width="7%" />
                <fo:table-column />
                <fo:table-body>
                    <fo:table-row>
                        <fo:table-cell>
                            <fo:block font-size="21pt">
                                <xsl:choose>
                                    <xsl:when test="./egonp:Priloha07[text()='1']">
                                        <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF078;</fo:inline>
                                    </xsl:when>
                                    <xsl:otherwise>
                                        <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A8;</fo:inline>
                                    </xsl:otherwise>
                                </xsl:choose>
                            </fo:block>
                        </fo:table-cell>
                        <fo:table-cell>
                            <fo:block>Osvedčenie k málo predaju vinárskych produktov - Zákon o vinohradníctve a
vinárstve č. 313/2009 Z.z.</fo:block>
                        </fo:table-cell>
                    </fo:table-row>
                </fo:table-body>
            </fo:table>
        </fo:block>                                      
</xsl:template>

<xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:OchranaOsobnychUdajov">
    <fo:block margin-top="3mm" margin-right="3mm">

        <!-- Hlavný text organizátora -->
        <fo:table table-layout="fixed">
            <fo:table-column column-width="7%"/>
            <fo:table-column/>
            <fo:table-body>
                <fo:table-row>
                    <fo:table-cell number-columns-spanned="2">
                        <fo:block font-weight="bold" margin-top="5px">
                            Organizátor podujatia si vyhradzuje právo výberu sortimentu a rozhoduje
                            o konečnom pridelení predajného miesta a zaradiť druh sortimentu v zmysle VZN
                            mesta Prievidza č. 11/2019 – Príloha č. 2.
                        </fo:block>

                        <fo:block font-weight="bold" margin-top="5px">
                            Zároveň si vyhradzuje právo upraviť v prípade potreby veľkosť predajného miesta.
                        </fo:block>

                        <!-- FO blok pre Narok (len pre FO) -->
                        <xsl:if test="/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='FO'">

                            <!-- Samostatný riadok s textom nároku -->
                            <fo:block font-weight="bold" margin-top="5px">
                                Uplatnenie nároku na oslobodenie od platenia dane podľa §15 VZN č. 11/2019;
                            </fo:block>

                            <!-- Checkbox + popis Narok -->
                            <xsl:variable name="narok" select="/egonp:eForm_eGov_vstup_000000284/egonp:Narok"/>
                            <fo:table table-layout="fixed">
                                <fo:table-column column-width="7%"/>
                                <fo:table-column/>
                                <fo:table-body>
                                    <fo:table-row>
                                        <!-- Checkbox -->
                                        <fo:table-cell>
                                            <fo:block font-size="21pt">
                                                <xsl:choose>
                                                    <xsl:when test="normalize-space($narok/egonp:Narok_Volba) = '1'">
                                                        <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF078;</fo:inline>
                                                    </xsl:when>
                                                    <xsl:otherwise>
                                                        <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A8;</fo:inline>
                                                    </xsl:otherwise>
                                                </xsl:choose>
                                            </fo:block>
                                        </fo:table-cell>

                                        <!-- Text popisu Narok -->
                                        <fo:table-cell>
                                            <fo:block margin-top="3px">
                                                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ľ.
                                            </fo:block>
                                        </fo:table-cell>
                                    </fo:table-row>
                                </fo:table-body>
                            </fo:table>

                        </xsl:if>

                        <!-- FO blok pre súhlas s údajmi -->
                        <fo:table>
                            <fo:table-column column-width="7%"/>
                            <fo:table-column/>
                            <fo:table-body>
                                <fo:table-row>
                                    <!-- Checkbox súhlasu -->
                                    <fo:table-cell>
                                        <fo:block font-size="21pt">
                                            <xsl:choose>
                                                <xsl:when test="egonp:OchranaOsobnychUdajov_Suhlas = '1'">
                                                    <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF078;</fo:inline>
                                                </xsl:when>
                                                <xsl:otherwise>
                                                    <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A8;</fo:inline>
                                                </xsl:otherwise>
                                            </xsl:choose>
                                        </fo:block>
                                    </fo:table-cell>

                                    <!-- Text súhlasu -->
                                    <fo:table-cell>
                                        <fo:block>
                                            <xsl:value-of select="egonp:OchranaOsobnychUdajov_Text"/>
                                        </fo:block>
                                    </fo:table-cell>
                                </fo:table-row>
                            </fo:table-body>
                        </fo:table>

                        <!-- Informovanie o spracovaní údajov -->
                        <fo:block font-weight="bold" margin-top="5px">
                            Informovanie o spracovaní osobných údajov
                        </fo:block>

                    </fo:table-cell>
                </fo:table-row>
            </fo:table-body>
        </fo:table>

    </fo:block>
</xsl:template>

    <xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:SposobDoruceniaVystupu">
        <fo:block>
            <fo:block font-weight="bold" margin-top="10px" margin-bottom="5px">Spôsob doručenia výstupu</fo:block>
            <fo:block>
                <xsl:choose>
                    <xsl:when test="./egonp:SposobDoruceniaVystupu_Typ[text()='eDesk']">
                        <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A4;</fo:inline>
                    </xsl:when>
                    <xsl:otherwise>
                        <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A1;</fo:inline>
                    </xsl:otherwise>
                </xsl:choose>
                <fo:inline> eDesk</fo:inline>
            </fo:block>
            <fo:block>
                <xsl:choose>
                    <xsl:when test="./egonp:SposobDoruceniaVystupu_Typ[text()='osobne']">
                        <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A4;</fo:inline>
                    </xsl:when>
                    <xsl:otherwise>
                        <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A1;</fo:inline>
                    </xsl:otherwise>
                </xsl:choose>
                <fo:inline> osobne</fo:inline>
            </fo:block>
            <fo:block>
                <xsl:choose>
                    <xsl:when test="./egonp:SposobDoruceniaVystupu_Typ[text()='poštou']">
                        <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A4;</fo:inline>
                    </xsl:when>
                    <xsl:otherwise>
                        <fo:inline font-family="Wingdings, Arial, Times New Roman">&#xF0A1;</fo:inline>
                    </xsl:otherwise>
                </xsl:choose>
                <fo:inline> poštou</fo:inline>
            </fo:block>
            <xsl:if test="./egonp:SposobDoruceniaVystupu_Kontakt/text()">
                <fo:block margin-top="5px">
                    <fo:block>Kontakt v prípade doručenia osobne / poštou</fo:block>
                    <fo:block border-width="0.6pt" border-style="solid" background-color="white" padding="1pt">
                        <xsl:value-of select="./egonp:SposobDoruceniaVystupu_Kontakt" />
                    </fo:block>
                </fo:block>
            </xsl:if>
        </fo:block>
    </xsl:template>
    <xsl:template match="egonp:eForm_eGov_vstup_000000284/egonp:Footer">
        <fo:block border-width="0.3pt"  margin-left="1pt" margin-top="6pt" margin-right="1pt">
            <fo:block margin-bottom="6pt">
                <fo:table>
                    <fo:table-column />
                    <fo:table-body>
                        <fo:table-row>
                            <fo:table-cell>
                                <fo:block margin-top="3mm" margin-right="3mm">
                                    <fo:table>
                                        <fo:table-column />
                                        <fo:table-body>
                                            <fo:table-row>
                                                <fo:table-cell border-width="0.6pt"  background-color="white" padding="1pt">
                                                    <fo:block>
                                                        <xsl:value-of select="./egonp:Footer_Link" />
                                                        <fo:inline color="white">___</fo:inline>
                                                    </fo:block>
                                                </fo:table-cell>
                                            </fo:table-row>
                                        </fo:table-body>
                                    </fo:table>
                                </fo:block>
<fo:block margin-top="3mm" margin-right="3mm">
    <fo:table>
        <fo:table-column />
        <fo:table-body>
            <fo:table-row>
                <fo:table-cell>
                    <fo:block margin-top="1mm">
                        <xsl:value-of select="/egonp:eForm_eGov_vstup_000000284/egonp:Footer/egonp:Obec_mesto1xzy"/> je moderné a otvorené mesto pre všetkých
                    </fo:block>
                </fo:table-cell>
            </fo:table-row>
        </fo:table-body>
    </fo:table>
</fo:block>

                            </fo:table-cell>
                        </fo:table-row>
                    </fo:table-body>
                </fo:table>
            </fo:block>
        </fo:block>
    </xsl:template>    


</xsl:stylesheet>
