<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
  version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
  xmlns:fo="http://www.w3.org/1999/XSL/Format"
  xmlns:svg="http://www.w3.org/2000/svg"
  xmlns:e="http://schemas.gov.sk/form/00151866.podanie_navrhu_k_zruseniu_prechodneho_pobytu.sk/1.6">
  <xsl:output method="xml" indent="yes" omit-xml-declaration="no" encoding="utf-8"/>
  <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="FormatText">
		<xsl:param name="data"/>
		
		<xsl:variable name="var1">
		  <xsl:call-template name="formater1">
				<xsl:with-param name="text" select="$data"/>
			</xsl:call-template>
		</xsl:variable>
		
		<xsl:variable name="var2">
		  <xsl:call-template name="formater2">
				<xsl:with-param name="text" select="$var1"/>
			</xsl:call-template>
		</xsl:variable>
		
		<xsl:variable name="var3">
		  <xsl:call-template name="formater3">
				<xsl:with-param name="text" select="$var2"/>
			</xsl:call-template>
		</xsl:variable>
		
		<xsl:variable name="var4">
		  <xsl:call-template name="formater4">
				<xsl:with-param name="text" select="$var3"/>
			</xsl:call-template>
		</xsl:variable>
		
		<xsl:variable name="var5">
		  <xsl:call-template name="formater5">
				<xsl:with-param name="text" select="$var4"/>
			</xsl:call-template>
		</xsl:variable>
		
		<xsl:variable name="var6">
		  <xsl:call-template name="formater6">
				<xsl:with-param name="text" select="$var5"/>
			</xsl:call-template>
		</xsl:variable>
		
		<xsl:variable name="var7">
		  <xsl:call-template name="formater7">
				<xsl:with-param name="text" select="$var6"/>
			</xsl:call-template>
		</xsl:variable>
		
		<xsl:variable name="var8">
		  <xsl:call-template name="formater8">
				<xsl:with-param name="text" select="$var7"/>
			</xsl:call-template>
		</xsl:variable>
		
		<xsl:variable name="var9">
		  <xsl:call-template name="formater9">
				<xsl:with-param name="text" select="$var8"/>
			</xsl:call-template>
		</xsl:variable>
		
		<xsl:variable name="var10">
		  <xsl:call-template name="formater10">
				<xsl:with-param name="text" select="$var9"/>
			</xsl:call-template>
		</xsl:variable>
		
		<xsl:variable name="var11">
		  <xsl:call-template name="formater11">
				<xsl:with-param name="text" select="$var10"/>
			</xsl:call-template>
		</xsl:variable>
		
		<xsl:variable name="var12">
		  <xsl:call-template name="formater12">
				<xsl:with-param name="text" select="$var11"/>
			</xsl:call-template>
		</xsl:variable>
		
		<xsl:variable name="var13">
		  <xsl:call-template name="formater13">
				<xsl:with-param name="text" select="$var12"/>
			</xsl:call-template>
		</xsl:variable>
		
		<xsl:variable name="var14">
		  <xsl:call-template name="formater14">
				<xsl:with-param name="text" select="$var13"/>
			</xsl:call-template>
		</xsl:variable>
		
		<xsl:variable name="var15">
		  <xsl:call-template name="formater15">
				<xsl:with-param name="text" select="$var14"/>
			</xsl:call-template>
		</xsl:variable>
		
		<xsl:variable name="var16">
		  <xsl:call-template name="formater16">
				<xsl:with-param name="text" select="$var15"/>
			</xsl:call-template>
		</xsl:variable>
		
		<xsl:variable name="var17">
		  <xsl:call-template name="formater17">
				<xsl:with-param name="text" select="$var16"/>
			</xsl:call-template>
		</xsl:variable>
		
		<xsl:variable name="var18">
		  <xsl:call-template name="formater18">
				<xsl:with-param name="text" select="$var17"/>
			</xsl:call-template>
		</xsl:variable>
		
		<xsl:variable name="var19">
		  <xsl:call-template name="formater19">
				<xsl:with-param name="text" select="$var18"/>
			</xsl:call-template>
		</xsl:variable>
		
		<xsl:variable name="var20">
		  <xsl:call-template name="formater20">
				<xsl:with-param name="text" select="$var19"/>
			</xsl:call-template>
		</xsl:variable>
		
		<xsl:variable name="var21">
		  <xsl:call-template name="formater21">
				<xsl:with-param name="text" select="$var20"/>
			</xsl:call-template>
		</xsl:variable>
		
		<xsl:variable name="var22">
		  <xsl:call-template name="formater22">
				<xsl:with-param name="text" select="$var21"/>
			</xsl:call-template>
		</xsl:variable>
		
		<xsl:variable name="var23">
		  <xsl:call-template name="formater23">
				<xsl:with-param name="text" select="$var22"/>
			</xsl:call-template>
		</xsl:variable>
		
		<xsl:variable name="var24">
		  <xsl:call-template name="formater24">
				<xsl:with-param name="text" select="$var23"/>
			</xsl:call-template>
		</xsl:variable>
		
		<xsl:variable name="var25">
		  <xsl:call-template name="formater25">
				<xsl:with-param name="text" select="$var24"/>
			</xsl:call-template>
		</xsl:variable>
		
		<xsl:variable name="var26">
		  <xsl:call-template name="formater26">
				<xsl:with-param name="text" select="$var25"/>
			</xsl:call-template>
		</xsl:variable>
		
		<xsl:variable name="var27">
		  <xsl:call-template name="formater27">
				<xsl:with-param name="text" select="$var26"/>
			</xsl:call-template>
		</xsl:variable>
		
		<xsl:variable name="var28">
		  <xsl:call-template name="formater28">
				<xsl:with-param name="text" select="$var27"/>
			</xsl:call-template>
		</xsl:variable>
		
		<xsl:variable name="var29">
		  <xsl:call-template name="formater29">
				<xsl:with-param name="text" select="$var28"/>
			</xsl:call-template>
		</xsl:variable>
		
		<xsl:variable name="var30">
		  <xsl:call-template name="formater30">
				<xsl:with-param name="text" select="$var29"/>
			</xsl:call-template>
		</xsl:variable>
		
		<xsl:variable name="var31">
		  <xsl:call-template name="formater31">
				<xsl:with-param name="text" select="$var30"/>
			</xsl:call-template>
		</xsl:variable>
		
		<xsl:variable name="var32">
		  <xsl:call-template name="formater32">
				<xsl:with-param name="text" select="$var31"/>
			</xsl:call-template>
		</xsl:variable>
		
		<xsl:variable name="var33">
		  <xsl:call-template name="formater33">
				<xsl:with-param name="text" select="$var32"/>
			</xsl:call-template>
		</xsl:variable>
		
		<xsl:variable name="var34">
		  <xsl:call-template name="formater34">
				<xsl:with-param name="text" select="$var33"/>
			</xsl:call-template>
		</xsl:variable>
		
		<xsl:variable name="var35">
		  <xsl:call-template name="formater35">
				<xsl:with-param name="text" select="$var34"/>
			</xsl:call-template>
		</xsl:variable>
		
		<xsl:variable name="var36">
		  <xsl:call-template name="formater36">
				<xsl:with-param name="text" select="$var35"/>
			</xsl:call-template>
		</xsl:variable>

		<xsl:value-of select="$var36"/>
	</xsl:template>
	
	<xsl:template name="formater1">
		<xsl:param name="text"/>
		<xsl:call-template name="string-replace-all">
			<xsl:with-param name="text" select="$text"/>
			<xsl:with-param name="replace" select="' § '" />
			<xsl:with-param name="by"><xsl:text> §&#160;</xsl:text></xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template name="formater2">
		<xsl:param name="text"/>
		<xsl:call-template name="string-replace-all">
			<xsl:with-param name="text" select="$text"/>
			<xsl:with-param name="replace" select="' Z.z.'" />
			<xsl:with-param name="by"><xsl:text>&#160;Z.z.</xsl:text></xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template name="formater3">
		<xsl:param name="text"/>
		<xsl:call-template name="string-replace-all">
			<xsl:with-param name="text" select="$text"/>
			<xsl:with-param name="replace" select="' v '" />
			<xsl:with-param name="by"><xsl:text> v&#160;</xsl:text></xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template name="formater4">
		<xsl:param name="text"/>
		<xsl:call-template name="string-replace-all">
			<xsl:with-param name="text" select="$text"/>
			<xsl:with-param name="replace" select="' o '" />
			<xsl:with-param name="by"><xsl:text> o&#160;</xsl:text></xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template name="formater5">
		<xsl:param name="text"/>
		<xsl:call-template name="string-replace-all">
			<xsl:with-param name="text" select="$text"/>
			<xsl:with-param name="replace" select="' na '" />
			<xsl:with-param name="by"><xsl:text> na&#160;</xsl:text></xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template name="formater6">
		<xsl:param name="text"/>
		<xsl:call-template name="string-replace-all">
			<xsl:with-param name="text" select="$text"/>
			<xsl:with-param name="replace" select="' k '" />
			<xsl:with-param name="by"><xsl:text> k&#160;</xsl:text></xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template name="formater7">
		<xsl:param name="text"/>
		<xsl:call-template name="string-replace-all">
			<xsl:with-param name="text" select="$text"/>
			<xsl:with-param name="replace" select="' do '" />
			<xsl:with-param name="by"><xsl:text> do&#160;</xsl:text></xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template name="formater8">
		<xsl:param name="text"/>
		<xsl:call-template name="string-replace-all">
			<xsl:with-param name="text" select="$text"/>
			<xsl:with-param name="replace" select="' cez '" />
			<xsl:with-param name="by"><xsl:text> cez&#160;</xsl:text></xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template name="formater9">
		<xsl:param name="text"/>
		<xsl:call-template name="string-replace-all">
			<xsl:with-param name="text" select="$text"/>
			<xsl:with-param name="replace" select="' bez '" />
			<xsl:with-param name="by"><xsl:text> bez&#160;</xsl:text></xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template name="formater10">
		<xsl:param name="text"/>
		<xsl:call-template name="string-replace-all">
			<xsl:with-param name="text" select="$text"/>
			<xsl:with-param name="replace" select="' od '" />
			<xsl:with-param name="by"><xsl:text> od&#160;</xsl:text></xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template name="formater11">
		<xsl:param name="text"/>
		<xsl:call-template name="string-replace-all">
			<xsl:with-param name="text" select="$text"/>
			<xsl:with-param name="replace" select="' po '" />
			<xsl:with-param name="by"><xsl:text> po&#160;</xsl:text></xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template name="formater12">
		<xsl:param name="text"/>
		<xsl:call-template name="string-replace-all">
			<xsl:with-param name="text" select="$text"/>
			<xsl:with-param name="replace" select="' pod '" />
			<xsl:with-param name="by"><xsl:text> pod&#160;</xsl:text></xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template name="formater13">
		<xsl:param name="text"/>
		<xsl:call-template name="string-replace-all">
			<xsl:with-param name="text" select="$text"/>
			<xsl:with-param name="replace" select="' pre '" />
			<xsl:with-param name="by"><xsl:text> pre&#160;</xsl:text></xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template name="formater14">
		<xsl:param name="text"/>
		<xsl:call-template name="string-replace-all">
			<xsl:with-param name="text" select="$text"/>
			<xsl:with-param name="replace" select="' pri '" />
			<xsl:with-param name="by"><xsl:text> pri&#160;</xsl:text></xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template name="formater15">
		<xsl:param name="text"/>
		<xsl:call-template name="string-replace-all">
			<xsl:with-param name="text" select="$text"/>
			<xsl:with-param name="replace" select="' s '" />
			<xsl:with-param name="by"><xsl:text> s&#160;</xsl:text></xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template name="formater16">
		<xsl:param name="text"/>
		<xsl:call-template name="string-replace-all">
			<xsl:with-param name="text" select="$text"/>
			<xsl:with-param name="replace" select="' so '" />
			<xsl:with-param name="by"><xsl:text> so&#160;</xsl:text></xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template name="formater17">
		<xsl:param name="text"/>
		<xsl:call-template name="string-replace-all">
			<xsl:with-param name="text" select="$text"/>
			<xsl:with-param name="replace" select="' z '" />
			<xsl:with-param name="by"><xsl:text> z&#160;</xsl:text></xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template name="formater18">
		<xsl:param name="text"/>
		<xsl:call-template name="string-replace-all">
			<xsl:with-param name="text" select="$text"/>
			<xsl:with-param name="replace" select="' zo '" />
			<xsl:with-param name="by"><xsl:text> zo&#160;</xsl:text></xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template name="formater19">
		<xsl:param name="text"/>
		<xsl:call-template name="string-replace-all">
			<xsl:with-param name="text" select="$text"/>
			<xsl:with-param name="replace" select="' u '" />
			<xsl:with-param name="by"><xsl:text> u&#160;</xsl:text></xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template name="formater20">
		<xsl:param name="text"/>
		<xsl:call-template name="string-replace-all">
			<xsl:with-param name="text" select="$text"/>
			<xsl:with-param name="replace" select="' proti '" />
			<xsl:with-param name="by"><xsl:text> proti&#160;</xsl:text></xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template name="formater21">
		<xsl:param name="text"/>
		<xsl:call-template name="string-replace-all">
			<xsl:with-param name="text" select="$text"/>
			<xsl:with-param name="replace" select="' pred '" />
			<xsl:with-param name="by"><xsl:text> pred&#160;</xsl:text></xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template name="formater22">
		<xsl:param name="text"/>
		<xsl:call-template name="string-replace-all">
			<xsl:with-param name="text" select="$text"/>
			<xsl:with-param name="replace" select="' medzi '" />
			<xsl:with-param name="by"><xsl:text> medzi&#160;</xsl:text></xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template name="formater23">
		<xsl:param name="text"/>
		<xsl:call-template name="string-replace-all">
			<xsl:with-param name="text" select="$text"/>
			<xsl:with-param name="replace" select="' okrem '" />
			<xsl:with-param name="by"><xsl:text> okrem&#160;</xsl:text></xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template name="formater24">
		<xsl:param name="text"/>
		<xsl:call-template name="string-replace-all">
			<xsl:with-param name="text" select="$text"/>
			<xsl:with-param name="replace" select="' ku '" />
			<xsl:with-param name="by"><xsl:text> ku&#160;</xsl:text></xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template name="formater25">
		<xsl:param name="text"/>
		<xsl:call-template name="string-replace-all">
			<xsl:with-param name="text" select="$text"/>
			<xsl:with-param name="replace" select="' voči '" />
			<xsl:with-param name="by"><xsl:text> voči&#160;</xsl:text></xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template name="formater26">
		<xsl:param name="text"/>
		<xsl:call-template name="string-replace-all">
			<xsl:with-param name="text" select="$text"/>
			<xsl:with-param name="replace" select="' a '" />
			<xsl:with-param name="by"><xsl:text> a&#160;</xsl:text></xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template name="formater27">
		<xsl:param name="text"/>
		<xsl:call-template name="string-replace-all">
			<xsl:with-param name="text" select="$text"/>
			<xsl:with-param name="replace" select="' nad '" />
			<xsl:with-param name="by"><xsl:text> nad&#160;</xsl:text></xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template name="formater28">
		<xsl:param name="text"/>
		<xsl:call-template name="string-replace-all">
			<xsl:with-param name="text" select="$text"/>
			<xsl:with-param name="replace" select="' EUR'" />
			<xsl:with-param name="by"><xsl:text>&#160;EUR</xsl:text></xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template name="formater29">
		<xsl:param name="text"/>
		<xsl:call-template name="string-replace-all">
			<xsl:with-param name="text" select="$text"/>
			<xsl:with-param name="replace" select="' za '" />
			<xsl:with-param name="by"><xsl:text> za&#160;</xsl:text></xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template name="formater30">
		<xsl:param name="text"/>
		<xsl:call-template name="string-replace-all">
			<xsl:with-param name="text" select="$text"/>
			<xsl:with-param name="replace" select="' č. '" />
			<xsl:with-param name="by"><xsl:text> č.&#160;</xsl:text></xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template name="formater31">
		<xsl:param name="text"/>
		<xsl:call-template name="string-replace-all">
			<xsl:with-param name="text" select="$text"/>
			<xsl:with-param name="replace" select="' vo '" />
			<xsl:with-param name="by"><xsl:text> vo&#160;</xsl:text></xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template name="formater32">
		<xsl:param name="text"/>
		<xsl:call-template name="string-replace-all">
			<xsl:with-param name="text" select="$text"/>
			<xsl:with-param name="replace" select="' eur'" />
			<xsl:with-param name="by"><xsl:text>&#160;eur</xsl:text></xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template name="formater33">
		<xsl:param name="text"/>
		<xsl:call-template name="string-replace-all">
			<xsl:with-param name="text" select="$text"/>
			<xsl:with-param name="replace" select="' odo '" />
			<xsl:with-param name="by"><xsl:text> odo&#160;</xsl:text></xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template name="formater34">
		<xsl:param name="text"/>
		<xsl:call-template name="string-replace-all">
			<xsl:with-param name="text" select="$text"/>
			<xsl:with-param name="replace" select="'(§ '" />
			<xsl:with-param name="by"><xsl:text>(§&#160;</xsl:text></xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template name="formater35">
		<xsl:param name="text"/>
		<xsl:call-template name="string-replace-all">
			<xsl:with-param name="text" select="$text"/>
			<xsl:with-param name="replace" select="' %'" />
			<xsl:with-param name="by"><xsl:text>&#160;%</xsl:text></xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template name="formater36">
		<xsl:param name="text"/>
		<xsl:call-template name="string-replace-all">
			<xsl:with-param name="text" select="$text"/>
			<xsl:with-param name="replace" select="' Z. z.'" />
			<xsl:with-param name="by"><xsl:text>&#160;Z.&#160;z.</xsl:text></xsl:with-param>
		</xsl:call-template>
	</xsl:template>
  <xsl:template name="FormatEuropeanDate">
	<xsl:param name="DateTime"/>
	<xsl:choose>
		<xsl:when test="contains($DateTime, '-')">
			<xsl:variable name="year" select="substring($DateTime,1,4)" />
			<xsl:variable name="month-temp" select="substring-after($DateTime,'-')" />
			<xsl:variable name="month" select="substring-before($month-temp,'-')" />
			<xsl:variable name="day-temp" select="substring-after($month-temp,'-')" />
			<xsl:variable name="day" select="substring($day-temp,1,2)" />
			<xsl:variable name="time" select="substring-after($DateTime,'T')" />
			<xsl:variable name="hh" select="substring($time,1,2)" />
			<xsl:variable name="mm" select="substring($time,4,2)" />
			<xsl:variable name="ss" select="substring($time,7,2)" />
			<xsl:if test="$day and $month and $year">
				<xsl:value-of select="$day"/>
				<xsl:value-of select="'.'"/>
				<xsl:value-of select="$month"/>
				<xsl:value-of select="'.'"/>
				<xsl:value-of select="$year"/>
			</xsl:if>	
			<xsl:if test="$time">
				<xsl:value-of select="' '"/>
				<xsl:value-of select="$hh"/>
				<xsl:value-of select="':'"/>
				<xsl:value-of select="$mm"/>
				<xsl:value-of select="':'"/>
				<xsl:value-of select="$ss"/>
			</xsl:if>
		</xsl:when>
		<xsl:otherwise>
			<xsl:value-of select="$DateTime"/>
		</xsl:otherwise>
	</xsl:choose>
</xsl:template>
  <!-- GENERATED -->
  <xsl:template match="/">
  <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" font-family="'Arial', sans-serif" font-size="9.0pt" color="black">
    <fo:layout-master-set>
      <!--Vertical page layout-->
  	  <fo:simple-page-master master-name="firstPageVertical" page-height="297mm" page-width="210mm">
  		  <fo:region-body margin-top="2.0cm" margin-bottom="2.0cm" margin-left="1.8cm" margin-right="1.8cm" />
  		  
  		  <fo:region-after region-name="xsl-region-after-first-page" extent="12.5cm" display-align="after"/>
  	  </fo:simple-page-master>
  	  
  	  <fo:simple-page-master master-name="restPagesVertical" page-height="297mm" page-width="210mm">
  		  <fo:region-body margin-top="2.0cm" margin-bottom="2.0cm" margin-left="1.8cm" margin-right="1.8cm" />
  		  <fo:region-after region-name="xsl-region-after-rest-pages" extent="5in" display-align="after"/>
  	  </fo:simple-page-master>
  	  
  	  <fo:page-sequence-master master-name="A4Vertical">
  		  <fo:repeatable-page-master-alternatives>
  			  <fo:conditional-page-master-reference page-position="first" master-reference="firstPageVertical"/>
  			  <fo:conditional-page-master-reference master-reference="restPagesVertical"/>
  		  </fo:repeatable-page-master-alternatives>
  	  </fo:page-sequence-master>
  	  
  	  <!--Horizontal page layout-->
  	  <fo:simple-page-master master-name="firstPageHorizontal" page-height="210mm" page-width="297mm">
  		  <fo:region-body margin-top="2.0cm" margin-bottom="2.0cm" margin-left="1.8cm" margin-right="1.8cm" />
  		  
  		  <fo:region-after region-name="xsl-region-after-first-page" extent="12.5cm" display-align="after"/>
  	  </fo:simple-page-master>
  	  
  	  <fo:simple-page-master master-name="restPagesHorizontal" page-height="210mm" page-width="297mm">
  		  <fo:region-body margin-top="2.0cm" margin-bottom="2.0cm" margin-left="1.8cm" margin-right="1.8cm" />
  		  <fo:region-after region-name="xsl-region-after-rest-pages" extent="5in" display-align="after"/>
  	  </fo:simple-page-master>
  	  
			<fo:page-sequence-master master-name="A4Horizontal">
				<fo:repeatable-page-master-alternatives>
					<fo:conditional-page-master-reference page-position="first" master-reference="firstPageHorizontal"/>
					<fo:conditional-page-master-reference master-reference="restPagesHorizontal"/>
				</fo:repeatable-page-master-alternatives>
			</fo:page-sequence-master>
    </fo:layout-master-set>
        
    <fo:page-sequence master-reference="A4Vertical">
      
      <fo:static-content flow-name="xsl-region-after-first-page" margin-left="2mm" margin-right="2mm">
  <fo:block text-align="center" margin-bottom="1cm">Strana<xsl:text> </xsl:text><fo:page-number/> / <fo:page-number-citation ref-id="end"/></fo:block>
</fo:static-content>
      <fo:static-content flow-name="xsl-region-after-rest-pages" margin-left="2mm" margin-right="2mm">
  <fo:block text-align="center" margin-bottom="1cm">Strana<xsl:text> </xsl:text><fo:page-number/> / <fo:page-number-citation ref-id="end"/></fo:block>
</fo:static-content>
      
      <!-- *******************MAIN BODY********************* -->
      <fo:flow flow-name="xsl-region-body" >
        <!--foBlockForTableStart-->
  
    <fo:block-container width="auto">
        
          <fo:block    >
            
            
              <fo:block-container>
  <xsl:attribute name='margin-top'>3mm</xsl:attribute>
<!--<xsl:attribute name='margin-bottom'>3mm</xsl:attribute>-->
<xsl:attribute name='margin-right'>3mm</xsl:attribute>
  <fo:table table-layout="fixed" width="100%" start-indent="0" end-indent="0">
    <fo:table-column column-width="100%"/>
    <fo:table-body>
      <fo:table-row>
        <fo:table-cell>
          <xsl:attribute name='padding-left'>2mm</xsl:attribute>
<xsl:attribute name='padding-right'>2mm</xsl:attribute>
          <fo:block keep-with-next.within-page="always"
          font-size="12.996pt"
          text-align="left"
          text-decoration="none"
          font-style="normal"
          font-weight="bold"
          >Žiadateľ</fo:block>
        </fo:table-cell>
      </fo:table-row>
    </fo:table-body>
  </fo:table>
</fo:block-container><fo:block-container width="auto" >
  <xsl:attribute name='margin-top'>3mm</xsl:attribute>
<xsl:attribute name='margin-bottom'>3mm</xsl:attribute>
<!--<xsl:attribute name='margin-right'>3mm</xsl:attribute>-->
  
  <fo:table table-layout="fixed" width="100%" start-indent="0" end-indent="0">
    <fo:table-column column-width="100%"/><fo:table-body><fo:table-row>
      <fo:table-cell>
        <xsl:attribute name='padding-left'>2mm</xsl:attribute>
<xsl:attribute name='padding-right'>2mm</xsl:attribute>
        <fo:block
          start-indent="0"
          font-size="9.0pt"
          text-decoration="none"
          font-style="normal"
          font-weight="normal"
          
          ><fo:block><xsl:call-template name="FormatText"><xsl:with-param name="data" select="/e:eform/e:Ziadatel[not(@*)]/e:GivenName[not(@*)]"/></xsl:call-template><xsl:text xml:space="preserve"> </xsl:text><xsl:call-template name="FormatText"><xsl:with-param name="data" select="/e:eform/e:Ziadatel[not(@*)]/e:FamilyName[not(@*)]"/></xsl:call-template><xsl:call-template name="FormatText"><xsl:with-param name="data">,  </xsl:with-param></xsl:call-template><xsl:call-template name="FormatText"><xsl:with-param name="data" select="/e:eform/e:Ziadatel[not(@*)]/e:BirthNumber[not(@*)]"/></xsl:call-template></fo:block></fo:block>
      </fo:table-cell>
    </fo:table-row></fo:table-body>
  </fo:table>
</fo:block-container><fo:block-container>
  <xsl:attribute name='margin-top'>3mm</xsl:attribute>
<!--<xsl:attribute name='margin-bottom'>3mm</xsl:attribute>-->
<xsl:attribute name='margin-right'>3mm</xsl:attribute>
  <fo:table table-layout="fixed" width="100%" start-indent="0" end-indent="0">
    <fo:table-column column-width="100%"/>
    <fo:table-body>
      <fo:table-row>
        <fo:table-cell>
          <xsl:attribute name='padding-left'>2mm</xsl:attribute>
<xsl:attribute name='padding-right'>2mm</xsl:attribute>
          <fo:block keep-with-next.within-page="always"
          font-size="12.996pt"
          text-align="left"
          text-decoration="none"
          font-style="normal"
          font-weight="normal"
          ><fo:block><fo:inline font-weight="bold"><xsl:call-template name="FormatText"><xsl:with-param name="data">Ste jediným vlastníkom nehnuteľnosti?</xsl:with-param></xsl:call-template></fo:inline></fo:block></fo:block>
        </fo:table-cell>
      </fo:table-row>
    </fo:table-body>
  </fo:table>
</fo:block-container><fo:block-container width="auto" >
  <xsl:attribute name='margin-top'>3mm</xsl:attribute>
<xsl:attribute name='margin-bottom'>3mm</xsl:attribute>
<!--<xsl:attribute name='margin-right'>3mm</xsl:attribute>-->
  
  <fo:table table-layout="fixed" width="100%" start-indent="0" end-indent="0">
    <fo:table-column column-width="100%"/><fo:table-body><fo:table-row>
      <fo:table-cell>
        <xsl:attribute name='padding-left'>2mm</xsl:attribute>
<xsl:attribute name='padding-right'>2mm</xsl:attribute>
        <fo:block
          start-indent="0"
          font-size="9.0pt"
          text-decoration="none"
          font-style="normal"
          font-weight="normal"
          
          ><fo:block><xsl:value-of select="/e:eform[not(@*)]/e:PropertyOwner[not(@*)]/e:Codelist/e:CodelistItem/e:ItemName"/></fo:block></fo:block>
      </fo:table-cell>
    </fo:table-row></fo:table-body>
  </fo:table>
</fo:block-container><fo:block-container>
  <xsl:attribute name='margin-top'>3mm</xsl:attribute>
<!--<xsl:attribute name='margin-bottom'>3mm</xsl:attribute>-->
<xsl:attribute name='margin-right'>3mm</xsl:attribute>
  <fo:table table-layout="fixed" width="100%" start-indent="0" end-indent="0">
    <fo:table-column column-width="100%"/>
    <fo:table-body>
      <fo:table-row>
        <fo:table-cell>
          <xsl:attribute name='padding-left'>2mm</xsl:attribute>
<xsl:attribute name='padding-right'>2mm</xsl:attribute>
          <fo:block keep-with-next.within-page="always"
          font-size="12.996pt"
          text-align="left"
          text-decoration="none"
          font-style="normal"
          font-weight="bold"
          >Adresa vašej nehnuteľnosti</fo:block>
        </fo:table-cell>
      </fo:table-row>
    </fo:table-body>
  </fo:table>
</fo:block-container><!--foBlockForTableStart-->
  
    <fo:block-container width="auto">
        
          <fo:block    >
            
            
              <!--foBlockForTableStart-->
  <xsl:if test="/e:eform[not(@*)]/e:PropertyOwner[not(@*)]/e:Codelist/e:CodelistItem/e:ItemCode = 'false'">
    <fo:block-container width="auto">
        
          <fo:block    >
            
            
              <fo:block-container width="75%" >
  <xsl:attribute name='margin-top'>3mm</xsl:attribute>
<xsl:attribute name='margin-bottom'>3mm</xsl:attribute>
<!--<xsl:attribute name='margin-right'>3mm</xsl:attribute>-->
  
  <fo:table table-layout="fixed" width="100%" start-indent="0" end-indent="0">
    <fo:table-column column-width="100%"/><fo:table-body><fo:table-row>
      <fo:table-cell>
        <xsl:attribute name='padding-left'>2mm</xsl:attribute>
<xsl:attribute name='padding-right'>2mm</xsl:attribute>
        <fo:block
          start-indent="0"
          font-size="9.0pt"
          text-decoration="none"
          font-style="normal"
          font-weight="normal"
          
          ><fo:table table-layout="fixed" width="100%"><fo:table-column column-width="5.0%"/><fo:table-column column-width="95.0%"/><fo:table-body><fo:table-row><fo:table-cell display-align="center"><fo:block><fo:instream-foreign-object content-width="0.55cm"><svg:svg width="24" height="24" viewbox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><svg:path d="M15.73 3H8.27L3 8.27V15.73L8.27 21H15.73L21 15.73V8.27L15.73 3ZM12 17.3C11.28 17.3 10.7 16.72 10.7 16C10.7 15.28 11.28 14.7 12 14.7C12.72 14.7 13.3 15.28 13.3 16C13.3 16.72 12.72 17.3 12 17.3ZM13 13H11V7H13V13Z" fill="#C3112B"></svg:path></svg:svg></fo:instream-foreign-object></fo:block></fo:table-cell><fo:table-cell display-align="center"><fo:block font-weight="bold"><fo:block><fo:inline font-weight="bold"><xsl:call-template name="FormatText"><xsl:with-param name="data">Nie je možné zrušiť pobyt elekronicky</xsl:with-param></xsl:call-template></fo:inline></fo:block><fo:block><fo:leader/></fo:block><fo:block><xsl:call-template name="FormatText"><xsl:with-param name="data">Pokiaľ nie ste výlučným (jediným) vlastníkom nehnuteľnosti, tak aktuálne nemôžete zrušiť prechodný pobyt elektronicky. Môžete tak urobiť osobne na Ohlasovni pobytu, pričom budete potrebovať súhlas všetkých spoluvlastníkov. </xsl:with-param></xsl:call-template><fo:basic-link color="blue" text-decoration="underline"><xsl:attribute name="external-destination">url('https://portal.minv.sk/wps/wcm/connect/sk/site/main/zivotne-situacie/pobyt/')</xsl:attribute><xsl:call-template name="FormatText"><xsl:with-param name="data">Viac informácií</xsl:with-param></xsl:call-template></fo:basic-link></fo:block></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-container>
            
          </fo:block>
        
    </fo:block-container>
  </xsl:if>
<!--foBlockForTableEnd--><!--foBlockForTableStart-->
  <xsl:if test="/e:eform[not(@*)]/e:PropertyOwner[not(@*)]/e:Codelist/e:CodelistItem/e:ItemCode = 'true'">
    <fo:block-container width="auto">
        
          <fo:block    >
            
            
              <fo:block-container width="50%" keep-together.within-page="100">
  <xsl:attribute name='margin-top'>3mm</xsl:attribute>
<xsl:attribute name='margin-bottom'>3mm</xsl:attribute>
<!--<xsl:attribute name='margin-right'>3mm</xsl:attribute>-->
  <fo:table table-layout="fixed" width="100%" start-indent="0" end-indent="0">
  <fo:table-column column-width="100%"/>
  <fo:table-body>
    <fo:table-row>
      <fo:table-cell >
        <xsl:attribute name='padding-left'>2mm</xsl:attribute>
<xsl:attribute name='padding-right'>2mm</xsl:attribute>
        <fo:block >Okres</fo:block>
      </fo:table-cell>
    </fo:table-row>
  </fo:table-body>
</fo:table>
  <fo:table table-layout="fixed" width="100%" start-indent="0" end-indent="0">
    <fo:table-column column-width="100%"/><fo:table-body><fo:table-row>
      <fo:table-cell>
        <xsl:attribute name='padding-left'>2mm</xsl:attribute>
<xsl:attribute name='padding-right'>2mm</xsl:attribute>
        <fo:table table-layout="fixed" width="100%" start-indent="0" end-indent="0">
  				<fo:table-column column-width="100%"/>
  				<fo:table-body><fo:table-row>
            <fo:table-cell border="solid 0.6pt" background-color="white" padding="1pt">
              <fo:block><xsl:call-template name="FormatText"><xsl:with-param name="data" select="/e:eform[not(@*)]/e:County[not(@*)]"/></xsl:call-template>&#160;</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-container><fo:block-container width="50%" keep-together.within-page="100">
  <xsl:attribute name='margin-top'>3mm</xsl:attribute>
<xsl:attribute name='margin-bottom'>3mm</xsl:attribute>
<!--<xsl:attribute name='margin-right'>3mm</xsl:attribute>-->
  <fo:table table-layout="fixed" width="100%" start-indent="0" end-indent="0">
  <fo:table-column column-width="100%"/>
  <fo:table-body>
    <fo:table-row>
      <fo:table-cell >
        <xsl:attribute name='padding-left'>2mm</xsl:attribute>
<xsl:attribute name='padding-right'>2mm</xsl:attribute>
        <fo:block >Obec</fo:block>
      </fo:table-cell>
    </fo:table-row>
  </fo:table-body>
</fo:table>
  <fo:table table-layout="fixed" width="100%" start-indent="0" end-indent="0">
    <fo:table-column column-width="100%"/><fo:table-body><fo:table-row>
      <fo:table-cell>
        <xsl:attribute name='padding-left'>2mm</xsl:attribute>
<xsl:attribute name='padding-right'>2mm</xsl:attribute>
        <fo:table table-layout="fixed" width="100%" start-indent="0" end-indent="0">
  				<fo:table-column column-width="100%"/>
  				<fo:table-body><fo:table-row>
            <fo:table-cell border="solid 0.6pt" background-color="white" padding="1pt">
              <fo:block><xsl:call-template name="FormatText"><xsl:with-param name="data" select="/e:eform[not(@*)]/e:Municipality[not(@*)]"/></xsl:call-template>&#160;</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-container><fo:block-container width="50%" keep-together.within-page="100">
  <xsl:attribute name='margin-top'>3mm</xsl:attribute>
<xsl:attribute name='margin-bottom'>3mm</xsl:attribute>
<!--<xsl:attribute name='margin-right'>3mm</xsl:attribute>-->
  <fo:table table-layout="fixed" width="100%" start-indent="0" end-indent="0">
  <fo:table-column column-width="100%"/>
  <fo:table-body>
    <fo:table-row>
      <fo:table-cell >
        <xsl:attribute name='padding-left'>2mm</xsl:attribute>
<xsl:attribute name='padding-right'>2mm</xsl:attribute>
        <fo:block >Časť obce</fo:block>
      </fo:table-cell>
    </fo:table-row>
  </fo:table-body>
</fo:table>
  <fo:table table-layout="fixed" width="100%" start-indent="0" end-indent="0">
    <fo:table-column column-width="100%"/><fo:table-body><fo:table-row>
      <fo:table-cell>
        <xsl:attribute name='padding-left'>2mm</xsl:attribute>
<xsl:attribute name='padding-right'>2mm</xsl:attribute>
        <fo:table table-layout="fixed" width="100%" start-indent="0" end-indent="0">
  				<fo:table-column column-width="100%"/>
  				<fo:table-body><fo:table-row>
            <fo:table-cell border="solid 0.6pt" background-color="white" padding="1pt">
              <fo:block><xsl:call-template name="FormatText"><xsl:with-param name="data" select="/e:eform[not(@*)]/e:District[not(@*)]"/></xsl:call-template>&#160;</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-container><fo:block-container width="50%" keep-together.within-page="100">
  <xsl:attribute name='margin-top'>3mm</xsl:attribute>
<xsl:attribute name='margin-bottom'>3mm</xsl:attribute>
<!--<xsl:attribute name='margin-right'>3mm</xsl:attribute>-->
  <fo:table table-layout="fixed" width="100%" start-indent="0" end-indent="0">
  <fo:table-column column-width="100%"/>
  <fo:table-body>
    <fo:table-row>
      <fo:table-cell >
        <xsl:attribute name='padding-left'>2mm</xsl:attribute>
<xsl:attribute name='padding-right'>2mm</xsl:attribute>
        <fo:block >Ulica</fo:block>
      </fo:table-cell>
    </fo:table-row>
  </fo:table-body>
</fo:table>
  <fo:table table-layout="fixed" width="100%" start-indent="0" end-indent="0">
    <fo:table-column column-width="100%"/><fo:table-body><fo:table-row>
      <fo:table-cell>
        <xsl:attribute name='padding-left'>2mm</xsl:attribute>
<xsl:attribute name='padding-right'>2mm</xsl:attribute>
        <fo:table table-layout="fixed" width="100%" start-indent="0" end-indent="0">
  				<fo:table-column column-width="100%"/>
  				<fo:table-body><fo:table-row>
            <fo:table-cell border="solid 0.6pt" background-color="white" padding="1pt">
              <fo:block><xsl:call-template name="FormatText"><xsl:with-param name="data" select="/e:eform[not(@*)]/e:StreetName[not(@*)]"/></xsl:call-template>&#160;</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-container><fo:block-container width="50%" keep-together.within-page="100">
  <xsl:attribute name='margin-top'>3mm</xsl:attribute>
<xsl:attribute name='margin-bottom'>3mm</xsl:attribute>
<!--<xsl:attribute name='margin-right'>3mm</xsl:attribute>-->
  <fo:table table-layout="fixed" width="100%" start-indent="0" end-indent="0">
  <fo:table-column column-width="100%"/>
  <fo:table-body>
    <fo:table-row>
      <fo:table-cell >
        <xsl:attribute name='padding-left'>2mm</xsl:attribute>
<xsl:attribute name='padding-right'>2mm</xsl:attribute>
        <fo:block >Orientačné číslo</fo:block>
      </fo:table-cell>
    </fo:table-row>
  </fo:table-body>
</fo:table>
  <fo:table table-layout="fixed" width="33.33333%" start-indent="0" end-indent="0">
    <fo:table-column column-width="100%"/><fo:table-body><fo:table-row>
      <fo:table-cell>
        <xsl:attribute name='padding-left'>2mm</xsl:attribute>
<xsl:attribute name='padding-right'>2mm</xsl:attribute>
        <fo:table table-layout="fixed" width="100%" start-indent="0" end-indent="0">
  				<fo:table-column column-width="100%"/>
  				<fo:table-body><fo:table-row>
            <fo:table-cell border="solid 0.6pt" background-color="white" padding="1pt">
              <fo:block><xsl:call-template name="FormatText"><xsl:with-param name="data" select="/e:eform[not(@*)]/e:BuildingNumber[not(@*)]"/></xsl:call-template>&#160;</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-container><fo:block-container width="50%" keep-together.within-page="100">
  <xsl:attribute name='margin-top'>3mm</xsl:attribute>
<xsl:attribute name='margin-bottom'>3mm</xsl:attribute>
<!--<xsl:attribute name='margin-right'>3mm</xsl:attribute>-->
  <fo:table table-layout="fixed" width="100%" start-indent="0" end-indent="0">
  <fo:table-column column-width="100%"/>
  <fo:table-body>
    <fo:table-row>
      <fo:table-cell >
        <xsl:attribute name='padding-left'>2mm</xsl:attribute>
<xsl:attribute name='padding-right'>2mm</xsl:attribute>
        <fo:block >Súpisné číslo</fo:block>
      </fo:table-cell>
    </fo:table-row>
  </fo:table-body>
</fo:table>
  <fo:table table-layout="fixed" width="33.33333%" start-indent="0" end-indent="0">
    <fo:table-column column-width="100%"/><fo:table-body><fo:table-row>
      <fo:table-cell>
        <xsl:attribute name='padding-left'>2mm</xsl:attribute>
<xsl:attribute name='padding-right'>2mm</xsl:attribute>
        <fo:table table-layout="fixed" width="100%" start-indent="0" end-indent="0">
  				<fo:table-column column-width="100%"/>
  				<fo:table-body><fo:table-row>
            <fo:table-cell border="solid 0.6pt" background-color="white" padding="1pt">
              <fo:block><xsl:call-template name="FormatText"><xsl:with-param name="data" select="/e:eform[not(@*)]/e:PropertyRegistrationNumber[not(@*)]"/></xsl:call-template>&#160;</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-container><fo:block-container width="auto" keep-together.within-page="100">
  <xsl:attribute name='margin-top'>3mm</xsl:attribute>
<xsl:attribute name='margin-bottom'>3mm</xsl:attribute>
<!--<xsl:attribute name='margin-right'>3mm</xsl:attribute>-->
  <fo:table table-layout="fixed" width="100%" start-indent="0" end-indent="0">
  <fo:table-column column-width="100%"/>
  <fo:table-body>
    <fo:table-row>
      <fo:table-cell >
        <xsl:attribute name='padding-left'>2mm</xsl:attribute>
<xsl:attribute name='padding-right'>2mm</xsl:attribute>
        <fo:block >Je nehnuteľnosť rozdelená na viac bytov / priestorov?</fo:block>
      </fo:table-cell>
    </fo:table-row>
  </fo:table-body>
</fo:table>
  <fo:table table-layout="fixed" width="100%" start-indent="0" end-indent="0">
    <fo:table-column column-width="100%"/><fo:table-body><fo:table-row>
    <fo:table-cell>
      <xsl:attribute name='padding-left'>2mm</xsl:attribute>
<xsl:attribute name='padding-right'>2mm</xsl:attribute>
      <fo:table table-layout="fixed" width="100%">
        <fo:table-column column-width="100%"/>
        <fo:table-body>
          <fo:table-row>
            <fo:table-cell background-color="white" padding-left="3pt" padding-top="1pt" padding-bottom="1pt" padding-right="1pt">
              <fo:table table-layout="fixed" width="100%" space-before="0mm" display-align="center" end-indent="0">
                <fo:table-column column-width="13pt"/>
                <fo:table-column column-width="100% - 13pt"/>
                <fo:table-body>
                  <fo:table-row>
  <fo:table-cell display-align="before">
    <fo:block>
      <fo:instream-foreign-object>
        <xsl:choose>
          <xsl:when test="/e:eform[not(@*)]/e:MultiUnits[not(@*)]/e:Codelist/e:CodelistItem/e:ItemCode = 'true'">
            <svg:svg xmlns="http://www.w3.org/2000/svg" width="10" height="10">
              <svg:circle cx="5" cy="5" r="3" stroke="black" stroke-width="1" fill="black"/>
            </svg:svg>
          </xsl:when>
          <xsl:otherwise>
            <svg:svg xmlns="http://www.w3.org/2000/svg" width="10" height="10">
              <svg:circle cx="5" cy="5" r="3" stroke="black" stroke-width="1" fill="white"/>
            </svg:svg>
          </xsl:otherwise>
        </xsl:choose>
      </fo:instream-foreign-object>
    </fo:block>
  </fo:table-cell>
  <fo:table-cell>
    <fo:block >Áno (napr. byty, apartmány alebo iné priestory na bývanie)</fo:block>
  </fo:table-cell>
</fo:table-row><fo:table-row>
  <fo:table-cell display-align="before">
    <fo:block>
      <fo:instream-foreign-object>
        <xsl:choose>
          <xsl:when test="/e:eform[not(@*)]/e:MultiUnits[not(@*)]/e:Codelist/e:CodelistItem/e:ItemCode = 'false'">
            <svg:svg xmlns="http://www.w3.org/2000/svg" width="10" height="10">
              <svg:circle cx="5" cy="5" r="3" stroke="black" stroke-width="1" fill="black"/>
            </svg:svg>
          </xsl:when>
          <xsl:otherwise>
            <svg:svg xmlns="http://www.w3.org/2000/svg" width="10" height="10">
              <svg:circle cx="5" cy="5" r="3" stroke="black" stroke-width="1" fill="white"/>
            </svg:svg>
          </xsl:otherwise>
        </xsl:choose>
      </fo:instream-foreign-object>
    </fo:block>
  </fo:table-cell>
  <fo:table-cell>
    <fo:block >Nie (napr. samostatný rodinný dom, ak sa nečlení na byty)</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:table-cell>
    </fo:table-row></fo:table-body>
  </fo:table>
</fo:block-container><!--foBlockForTableStart-->
  <xsl:if test="/e:eform[not(@*)]/e:MultiUnits[not(@*)]/e:Codelist/e:CodelistItem/e:ItemCode = 'true'">
    <fo:block-container width="auto">
        
          <fo:block    >
            
            
              <fo:block-container width="33.33333%" keep-together.within-page="100">
  <xsl:attribute name='margin-top'>3mm</xsl:attribute>
<xsl:attribute name='margin-bottom'>3mm</xsl:attribute>
<!--<xsl:attribute name='margin-right'>3mm</xsl:attribute>-->
  <fo:table table-layout="fixed" width="100%" start-indent="0" end-indent="0">
  <fo:table-column column-width="100%"/>
  <fo:table-body>
    <fo:table-row>
      <fo:table-cell >
        <xsl:attribute name='padding-left'>2mm</xsl:attribute>
<xsl:attribute name='padding-right'>2mm</xsl:attribute>
        <fo:block >Čislo bytu / priestoru</fo:block>
      </fo:table-cell>
    </fo:table-row>
  </fo:table-body>
</fo:table>
  <fo:table table-layout="fixed" width="100%" start-indent="0" end-indent="0">
    <fo:table-column column-width="100%"/><fo:table-body><fo:table-row>
      <fo:table-cell>
        <xsl:attribute name='padding-left'>2mm</xsl:attribute>
<xsl:attribute name='padding-right'>2mm</xsl:attribute>
        <fo:table table-layout="fixed" width="100%" start-indent="0" end-indent="0">
  				<fo:table-column column-width="100%"/>
  				<fo:table-body><fo:table-row>
            <fo:table-cell border="solid 0.6pt" background-color="white" padding="1pt">
              <fo:block><xsl:call-template name="FormatText"><xsl:with-param name="data" select="/e:eform[not(@*)]/e:ApartmentNumber[not(@*)]"/></xsl:call-template>&#160;</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-container>
            
          </fo:block>
        
    </fo:block-container>
  </xsl:if>
<!--foBlockForTableEnd-->
            
          </fo:block>
        
    </fo:block-container>
  </xsl:if>
<!--foBlockForTableEnd-->
            
          </fo:block>
        
    </fo:block-container>
  
<!--foBlockForTableEnd-->
            
          </fo:block>
        
    </fo:block-container>
  
<!--foBlockForTableEnd--><!--foBlockForTableStart-->
  
    <fo:block-container width="auto">
        
          <fo:block    >
            
            
              <fo:block-container>
  <xsl:attribute name='margin-top'>3mm</xsl:attribute>
<!--<xsl:attribute name='margin-bottom'>3mm</xsl:attribute>-->
<xsl:attribute name='margin-right'>3mm</xsl:attribute>
  <fo:table table-layout="fixed" width="100%" start-indent="0" end-indent="0">
    <fo:table-column column-width="100%"/>
    <fo:table-body>
      <fo:table-row>
        <fo:table-cell>
          <xsl:attribute name='padding-left'>2mm</xsl:attribute>
<xsl:attribute name='padding-right'>2mm</xsl:attribute>
          <fo:block keep-with-next.within-page="always"
          font-size="12.996pt"
          text-align="left"
          text-decoration="none"
          font-style="normal"
          font-weight="bold"
          >Osoba, ktorej chcete zrušiť pobyt</fo:block>
        </fo:table-cell>
      </fo:table-row>
    </fo:table-body>
  </fo:table>
</fo:block-container><!--foBlockForTableStart-->
  
    <fo:block-container width="auto">
        
          <fo:block    >
            
            
              <fo:block-container width="50%" keep-together.within-page="100">
  <xsl:attribute name='margin-top'>3mm</xsl:attribute>
<xsl:attribute name='margin-bottom'>3mm</xsl:attribute>
<!--<xsl:attribute name='margin-right'>3mm</xsl:attribute>-->
  <fo:table table-layout="fixed" width="100%" start-indent="0" end-indent="0">
  <fo:table-column column-width="100%"/>
  <fo:table-body>
    <fo:table-row>
      <fo:table-cell >
        <xsl:attribute name='padding-left'>2mm</xsl:attribute>
<xsl:attribute name='padding-right'>2mm</xsl:attribute>
        <fo:block >Meno</fo:block>
      </fo:table-cell>
    </fo:table-row>
  </fo:table-body>
</fo:table>
  <fo:table table-layout="fixed" width="100%" start-indent="0" end-indent="0">
    <fo:table-column column-width="100%"/><fo:table-body><fo:table-row>
      <fo:table-cell>
        <xsl:attribute name='padding-left'>2mm</xsl:attribute>
<xsl:attribute name='padding-right'>2mm</xsl:attribute>
        <fo:table table-layout="fixed" width="100%" start-indent="0" end-indent="0">
  				<fo:table-column column-width="100%"/>
  				<fo:table-body><fo:table-row>
            <fo:table-cell border="solid 0.6pt" background-color="white" padding="1pt">
              <fo:block><xsl:call-template name="FormatText"><xsl:with-param name="data" select="/e:eform/e:PersonCancelled[not(@*)]/e:GivenName[not(@*)]"/></xsl:call-template>&#160;</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-container><fo:block-container width="50%" keep-together.within-page="100">
  <xsl:attribute name='margin-top'>3mm</xsl:attribute>
<xsl:attribute name='margin-bottom'>3mm</xsl:attribute>
<!--<xsl:attribute name='margin-right'>3mm</xsl:attribute>-->
  <fo:table table-layout="fixed" width="100%" start-indent="0" end-indent="0">
  <fo:table-column column-width="100%"/>
  <fo:table-body>
    <fo:table-row>
      <fo:table-cell >
        <xsl:attribute name='padding-left'>2mm</xsl:attribute>
<xsl:attribute name='padding-right'>2mm</xsl:attribute>
        <fo:block >Priezvisko</fo:block>
      </fo:table-cell>
    </fo:table-row>
  </fo:table-body>
</fo:table>
  <fo:table table-layout="fixed" width="100%" start-indent="0" end-indent="0">
    <fo:table-column column-width="100%"/><fo:table-body><fo:table-row>
      <fo:table-cell>
        <xsl:attribute name='padding-left'>2mm</xsl:attribute>
<xsl:attribute name='padding-right'>2mm</xsl:attribute>
        <fo:table table-layout="fixed" width="100%" start-indent="0" end-indent="0">
  				<fo:table-column column-width="100%"/>
  				<fo:table-body><fo:table-row>
            <fo:table-cell border="solid 0.6pt" background-color="white" padding="1pt">
              <fo:block><xsl:call-template name="FormatText"><xsl:with-param name="data" select="/e:eform/e:PersonCancelled[not(@*)]/e:FamilyName[not(@*)]"/></xsl:call-template>&#160;</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-container><fo:block-container width="50%" keep-together.within-page="100">
  <xsl:attribute name='margin-top'>3mm</xsl:attribute>
<xsl:attribute name='margin-bottom'>3mm</xsl:attribute>
<!--<xsl:attribute name='margin-right'>3mm</xsl:attribute>-->
  <fo:table table-layout="fixed" width="100%" start-indent="0" end-indent="0">
  <fo:table-column column-width="100%"/>
  <fo:table-body>
    <fo:table-row>
      <fo:table-cell >
        <xsl:attribute name='padding-left'>2mm</xsl:attribute>
<xsl:attribute name='padding-right'>2mm</xsl:attribute>
        <fo:block >Dátum narodenia</fo:block>
      </fo:table-cell>
    </fo:table-row>
  </fo:table-body>
</fo:table>
  <fo:table table-layout="fixed" width="100%" start-indent="0" end-indent="0">
    <fo:table-column column-width="100%"/><fo:table-body><fo:table-row>
      <fo:table-cell>
        <xsl:attribute name='padding-left'>2mm</xsl:attribute>
<xsl:attribute name='padding-right'>2mm</xsl:attribute>
        <fo:table table-layout="fixed" width="100%" start-indent="0" end-indent="0">
  				<fo:table-column column-width="100%"/>
  				<fo:table-body><fo:table-row>
            <fo:table-cell border="solid 0.6pt" background-color="white" padding="1pt">
              <fo:block><xsl:call-template name="FormatEuropeanDate">
	<xsl:with-param name="DateTime" select="/e:eform/e:PersonCancelled[not(@*)]/e:DateOfBirth[not(@*)]"/>
</xsl:call-template>&#160;</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-container>
            
          </fo:block>
        
    </fo:block-container>
  
<!--foBlockForTableEnd-->
            
          </fo:block>
        
    </fo:block-container>
  
<!--foBlockForTableEnd-->
        <fo:block id="end"/>
      </fo:flow>
    </fo:page-sequence>
  </fo:root>
</xsl:template>
</xsl:stylesheet>