<?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/00212008.Staznost.sk.genericke_1051188_1000750/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>
  
  <!-- 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 <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 <fo:page-number/> / <fo:page-number-citation ref-id="end"/></fo:block>
</fo:static-content>
      
      <!-- *******************MAIN BODY********************* -->
      <fo:flow flow-name="xsl-region-body" >
        <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="center"
          text-decoration="none"
          font-style="normal"
          font-weight="bold"
          >Sťažnosť</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="10.998pt"
          text-align="center"
          text-decoration="none"
          font-style="normal"
          font-weight="normal"
          >(podľa § 5 zákona o sťažnostiach)</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>
  <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="9.0pt"
          text-align="left"
          text-decoration="none"
          font-style="normal"
          font-weight="bold"
          >Subjekt evidujúci podanie </fo:block>
        </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'>0mm</xsl:attribute>
<xsl:attribute name='margin-bottom'>0mm</xsl:attribute>
<!--<xsl:attribute name='margin-right'>0mm</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 >Typ osoby</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:Complaint/e:Complainant/e:PersonType[not(@*)]/e:Codelist/e:CodelistItem/e:ItemName"/></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><!--foBlockForTableStart-->
  <xsl:if test="/e:Complaint/e:Complainant/e:PersonType[not(@*)]/e:Codelist/e:CodelistItem/e:ItemCode = 'PO'">
    <fo:block-container width="auto">
        
          <fo:block    >
            
            
              <fo:block-container width="50%" keep-together.within-page="100">
  <xsl:attribute name='margin-top'>0mm</xsl:attribute>
<xsl:attribute name='margin-bottom'>0mm</xsl:attribute>
<!--<xsl:attribute name='margin-right'>0mm</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 >IČO</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:Complaint/e:Complainant/e:PersonData/e:CorporateBody/e:ID/e:IdentifierValue[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'>0mm</xsl:attribute>
<xsl:attribute name='margin-bottom'>0mm</xsl:attribute>
<!--<xsl:attribute name='margin-right'>0mm</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 >Obchodné 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:Complaint/e:Complainant/e:PersonData/e:CorporateBody/e:CorporateBodyFullName[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>
  <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="9.0pt"
          text-align="left"
          text-decoration="none"
          font-style="normal"
          font-weight="bold"
          >Sídlo</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-->
  
    <fo:block-container >
        
          <fo:block    >
            
            
              <fo:table table-layout="fixed" width="100%">
  <fo:table-column column-width='33.33333%'/>
<fo:table-column column-width='66.66667%'/>
  <fo:table-body>
    <fo:table-row>
      <fo:table-cell margin-left="0" >
        <fo:block-container >
  <xsl:attribute name='margin-top'>0mm</xsl:attribute>
<xsl:attribute name='margin-bottom'>0mm</xsl:attribute>
<!--<xsl:attribute name='margin-right'>0mm</xsl:attribute>-->
  <xsl:attribute name='padding-bottom'>0.03125em</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"
          
          >Adresa</fo:block>
      </fo:table-cell>
    </fo:table-row></fo:table-body>
  </fo:table>
</fo:block-container></fo:table-cell><fo:table-cell margin-left="0"><fo:block-container >
  <xsl:attribute name='margin-top'>0mm</xsl:attribute>
<xsl:attribute name='margin-bottom'>0mm</xsl:attribute>
<!--<xsl:attribute name='margin-right'>0mm</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:Complaint[not(@*)]/e:Complainant/e:Corporate/e:PersonData/e:PhysicalAddress/e:StreetName[not(@*)]"/></xsl:call-template><xsl:text xml:space="preserve"> </xsl:text><xsl:call-template name="FormatText"><xsl:with-param name="data" select="/e:Complaint[not(@*)]/e:Complainant/e:Corporate/e:PersonData/e:PhysicalAddress/e:PropertyRegistrationNumber[not(@*)]"/></xsl:call-template><xsl:if test="(/e:Complaint[not(@*)]/e:Complainant/e:Corporate/e:PersonData/e:PhysicalAddress/e:PropertyRegistrationNumber[not(@*)] != '') and (/e:Complaint[not(@*)]/e:Complainant/e:Corporate/e:PersonData/e:PhysicalAddress/e:BuildingNumber[not(@*)] != '')"><xsl:call-template name="FormatText"><xsl:with-param name="data">/</xsl:with-param></xsl:call-template></xsl:if><xsl:call-template name="FormatText"><xsl:with-param name="data" select="/e:Complaint[not(@*)]/e:Complainant/e:Corporate/e:PersonData/e:PhysicalAddress/e:BuildingNumber[not(@*)]"/></xsl:call-template><xsl:call-template name="FormatText"><xsl:with-param name="data">, </xsl:with-param></xsl:call-template><xsl:if test="(/e:Complaint[not(@*)]/e:Complainant/e:Corporate/e:PersonData/e:PhysicalAddress/e:DeliveryAddress/e:PostalCode[not(@*)] != '')"><xsl:call-template name="FormatText"><xsl:with-param name="data" select="substring(/e:Complaint[not(@*)]/e:Complainant/e:Corporate/e:PersonData/e:PhysicalAddress/e:DeliveryAddress/e:PostalCode[not(@*)],1,3)"/></xsl:call-template><xsl:text xml:space="preserve"> </xsl:text><xsl:call-template name="FormatText"><xsl:with-param name="data" select="substring(/e:Complaint[not(@*)]/e:Complainant/e:Corporate/e:PersonData/e:PhysicalAddress/e:DeliveryAddress/e:PostalCode[not(@*)],4)"/></xsl:call-template></xsl:if><xsl:text xml:space="preserve"> </xsl:text><xsl:value-of select="/e:Complaint[not(@*)]/e:Complainant/e:Corporate/e:PersonData/e:PhysicalAddress/e:Municipality[not(@*)]/e:Codelist/e:CodelistItem/e:ItemName"/><xsl:call-template name="FormatText"><xsl:with-param name="data" select="/e:Complaint[not(@*)]/e:Complainant/e:Corporate/e:PersonData/e:PhysicalAddress/e:Municipality/e:NonCodelistData[not(@*)]"/></xsl:call-template><xsl:call-template name="FormatText"><xsl:with-param name="data">, </xsl:with-param></xsl:call-template><xsl:value-of select="/e:Complaint[not(@*)]/e:Complainant/e:Corporate/e:PersonData/e:PhysicalAddress/e:County[not(@*)]/e:Codelist/e:CodelistItem/e:ItemName"/><xsl:if test="(/e:Complaint[not(@*)]/e:Complainant/e:Corporate/e:PersonData/e:PhysicalAddress/e:County[not(@*)]/e:Codelist/e:CodelistItem/e:ItemName != '')"><xsl:call-template name="FormatText"><xsl:with-param name="data">, </xsl:with-param></xsl:call-template></xsl:if><xsl:call-template name="FormatText"><xsl:with-param name="data" select="/e:Complaint[not(@*)]/e:Complainant/e:Corporate/e:PersonData/e:PhysicalAddress/e:County/e:NonCodelistData[not(@*)]"/></xsl:call-template><xsl:if test="(/e:Complaint[not(@*)]/e:Complainant/e:Corporate/e:PersonData/e:PhysicalAddress/e:County/e:NonCodelistData[not(@*)] != '')"><xsl:call-template name="FormatText"><xsl:with-param name="data">, </xsl:with-param></xsl:call-template></xsl:if><xsl:value-of select="/e:Complaint[not(@*)]/e:Complainant/e:Corporate/e:PersonData/e:PhysicalAddress/e:Region[not(@*)]/e:Codelist/e:CodelistItem/e:ItemName"/><xsl:if test="(/e:Complaint[not(@*)]/e:Complainant/e:Corporate/e:PersonData/e:PhysicalAddress/e:Region[not(@*)]/e:Codelist/e:CodelistItem/e:ItemName != '')"><xsl:call-template name="FormatText"><xsl:with-param name="data">, </xsl:with-param></xsl:call-template></xsl:if><xsl:call-template name="FormatText"><xsl:with-param name="data" select="/e:Complaint[not(@*)]/e:Complainant/e:Corporate/e:PersonData/e:PhysicalAddress/e:Region/e:NonCodelistData[not(@*)]"/></xsl:call-template><xsl:if test="(/e:Complaint[not(@*)]/e:Complainant/e:Corporate/e:PersonData/e:PhysicalAddress/e:Region/e:NonCodelistData[not(@*)] != '')"><xsl:call-template name="FormatText"><xsl:with-param name="data">, </xsl:with-param></xsl:call-template></xsl:if><xsl:value-of select="/e:Complaint[not(@*)]/e:Complainant/e:Corporate/e:PersonData/e:PhysicalAddress/e:Country[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:table-cell>
    </fo:table-row>
  </fo:table-body>
</fo:table>
            
          </fo:block>
        
    </fo:block-container>
  
<!--foBlockForTableEnd-->
            
          </fo:block>
        
    </fo:block-container>
  
<!--foBlockForTableEnd--><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="9.0pt"
          text-align="left"
          text-decoration="none"
          font-style="normal"
          font-weight="bold"
          >Osoba oprávnená konať za právnickú osobu</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-->
  
    <fo:block-container >
        
          <fo:block    >
            
            
              <fo:table table-layout="fixed" width="100%">
  <fo:table-column column-width='33.33333%'/>
<fo:table-column column-width='66.66667%'/>
  <fo:table-body>
    <fo:table-row>
      <fo:table-cell margin-left="0" >
        <fo:block-container >
  <xsl:attribute name='margin-top'>0mm</xsl:attribute>
<xsl:attribute name='margin-bottom'>0mm</xsl:attribute>
<!--<xsl:attribute name='margin-right'>0mm</xsl:attribute>-->
  <xsl:attribute name='padding-bottom'>0.03125em</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"
          
          >Tituly, meno a priezvisko</fo:block>
      </fo:table-cell>
    </fo:table-row></fo:table-body>
  </fo:table>
</fo:block-container></fo:table-cell><fo:table-cell margin-left="0"><fo:block-container >
  <xsl:attribute name='margin-top'>0mm</xsl:attribute>
<xsl:attribute name='margin-bottom'>0mm</xsl:attribute>
<!--<xsl:attribute name='margin-right'>0mm</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:for-each select="/e:Complaint[not(@*)]/e:Complainant/e:Statutory/e:PersonData/e:PhysicalPerson/e:PersonName/e:Affix[@type='qualification' and @position='prefix']"><xsl:if test="./e:Codelist/e:CodelistItem/e:ItemName != '' and position() &gt; 1"><xsl:call-template name="FormatText"><xsl:with-param name="data">, </xsl:with-param></xsl:call-template></xsl:if><xsl:value-of select="./e:Codelist/e:CodelistItem/e:ItemName"/><xsl:if test="./e:Codelist/e:CodelistItem/e:ItemName != '' and position() = last()"><xsl:text xml:space="preserve"> </xsl:text></xsl:if></xsl:for-each><xsl:call-template name="FormatText"><xsl:with-param name="data" select="/e:Complaint[not(@*)]/e:Complainant/e:Statutory/e:PersonData/e:PhysicalPerson/e:PersonName/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:Complaint[not(@*)]/e:Complainant/e:Statutory/e:PersonData/e:PhysicalPerson/e:PersonName/e:FamilyName[not(@*)]"/></xsl:call-template><xsl:for-each select="/e:Complaint[not(@*)]/e:Complainant/e:Statutory/e:PersonData/e:PhysicalPerson/e:PersonName/e:Affix[@type='qualification' and @position='postfix']"><xsl:if test="./e:Codelist/e:CodelistItem/e:ItemName != '' and position() = 1"><xsl:text xml:space="preserve"> </xsl:text></xsl:if><xsl:if test="./e:Codelist/e:CodelistItem/e:ItemName != '' and position() &gt; 1"><xsl:call-template name="FormatText"><xsl:with-param name="data">, </xsl:with-param></xsl:call-template></xsl:if><xsl:value-of select="./e:Codelist/e:CodelistItem/e:ItemName"/></xsl:for-each></fo:block></fo:block>
      </fo:table-cell>
    </fo:table-row></fo:table-body>
  </fo:table>
</fo:block-container>
      </fo:table-cell>
    </fo:table-row>
  </fo:table-body>
</fo:table>
            
          </fo:block>
        
    </fo:block-container>
  
<!--foBlockForTableEnd-->
            
          </fo:block>
        
    </fo:block-container>
  
<!--foBlockForTableEnd-->
            
          </fo:block>
        
    </fo:block-container>
  </xsl:if>
<!--foBlockForTableEnd--><!--foBlockForTableStart-->
  <xsl:if test="/e:Complaint/e:Complainant/e:PersonType[not(@*)]/e:Codelist/e:CodelistItem/e:ItemCode = 'FO'">
    <fo:block-container width="auto">
        
          <fo:block    >
            
            
              <!--foBlockForTableStart-->
  
    <fo:block-container width="auto">
        
          <fo:block    >
            
            
              <!--foBlockForTableStart-->
  
    <fo:block-container >
        
          <fo:block    >
            
            
              <fo:table table-layout="fixed" width="100%">
  <fo:table-column column-width='33.33333%'/>
<fo:table-column column-width='66.66667%'/>
  <fo:table-body>
    <fo:table-row>
      <fo:table-cell margin-left="0" >
        <fo:block-container >
  <xsl:attribute name='margin-top'>0mm</xsl:attribute>
<xsl:attribute name='margin-bottom'>0mm</xsl:attribute>
<!--<xsl:attribute name='margin-right'>0mm</xsl:attribute>-->
  <xsl:attribute name='padding-bottom'>0.03125em</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"
          
          >Tituly, meno a priezvisko</fo:block>
      </fo:table-cell>
    </fo:table-row></fo:table-body>
  </fo:table>
</fo:block-container></fo:table-cell><fo:table-cell margin-left="0"><fo:block-container >
  <xsl:attribute name='margin-top'>0mm</xsl:attribute>
<xsl:attribute name='margin-bottom'>0mm</xsl:attribute>
<!--<xsl:attribute name='margin-right'>0mm</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:for-each select="/e:Complaint[not(@*)]/e:Complainant/e:PersonData/e:PhysicalPerson/e:PersonName/e:Affix[@type='qualification' and @position='prefix']"><xsl:if test="./e:Codelist/e:CodelistItem/e:ItemName != '' and position() &gt; 1"><xsl:call-template name="FormatText"><xsl:with-param name="data">, </xsl:with-param></xsl:call-template></xsl:if><xsl:value-of select="./e:Codelist/e:CodelistItem/e:ItemName"/><xsl:if test="./e:Codelist/e:CodelistItem/e:ItemName != '' and position() = last()"><xsl:text xml:space="preserve"> </xsl:text></xsl:if></xsl:for-each><xsl:call-template name="FormatText"><xsl:with-param name="data" select="/e:Complaint[not(@*)]/e:Complainant/e:PersonData/e:PhysicalPerson/e:PersonName/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:Complaint[not(@*)]/e:Complainant/e:PersonData/e:PhysicalPerson/e:PersonName/e:FamilyName[not(@*)]"/></xsl:call-template><xsl:for-each select="/e:Complaint[not(@*)]/e:Complainant/e:PersonData/e:PhysicalPerson/e:PersonName/e:Affix[@type='qualification' and @position='postfix']"><xsl:if test="./e:Codelist/e:CodelistItem/e:ItemName != '' and position() = 1"><xsl:text xml:space="preserve"> </xsl:text></xsl:if><xsl:if test="./e:Codelist/e:CodelistItem/e:ItemName != '' and position() &gt; 1"><xsl:call-template name="FormatText"><xsl:with-param name="data">, </xsl:with-param></xsl:call-template></xsl:if><xsl:value-of select="./e:Codelist/e:CodelistItem/e:ItemName"/></xsl:for-each></fo:block></fo:block>
      </fo:table-cell>
    </fo:table-row></fo:table-body>
  </fo:table>
</fo:block-container>
      </fo:table-cell>
    </fo:table-row>
  </fo:table-body>
</fo:table>
            
          </fo:block>
        
    </fo:block-container>
  
<!--foBlockForTableEnd-->
            
          </fo:block>
        
    </fo:block-container>
  
<!--foBlockForTableEnd--><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="9.0pt"
          text-align="left"
          text-decoration="none"
          font-style="normal"
          font-weight="bold"
          >Adresa</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-->
  
    <fo:block-container >
        
          <fo:block    >
            
            
              <fo:table table-layout="fixed" width="100%">
  <fo:table-column column-width='33.33333%'/>
<fo:table-column column-width='66.66667%'/>
  <fo:table-body>
    <fo:table-row>
      <fo:table-cell margin-left="0" >
        <fo:block-container >
  <xsl:attribute name='margin-top'>0mm</xsl:attribute>
<xsl:attribute name='margin-bottom'>0mm</xsl:attribute>
<!--<xsl:attribute name='margin-right'>0mm</xsl:attribute>-->
  <xsl:attribute name='padding-bottom'>0.03125em</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"
          
          >Adresa</fo:block>
      </fo:table-cell>
    </fo:table-row></fo:table-body>
  </fo:table>
</fo:block-container></fo:table-cell><fo:table-cell margin-left="0"><fo:block-container >
  <xsl:attribute name='margin-top'>0mm</xsl:attribute>
<xsl:attribute name='margin-bottom'>0mm</xsl:attribute>
<!--<xsl:attribute name='margin-right'>0mm</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:Complaint[not(@*)]/e:Complainant/e:PersonData/e:PhysicalAddress/e:StreetName[not(@*)]"/></xsl:call-template><xsl:text xml:space="preserve"> </xsl:text><xsl:call-template name="FormatText"><xsl:with-param name="data" select="/e:Complaint[not(@*)]/e:Complainant/e:PersonData/e:PhysicalAddress/e:PropertyRegistrationNumber[not(@*)]"/></xsl:call-template><xsl:if test="(/e:Complaint[not(@*)]/e:Complainant/e:PersonData/e:PhysicalAddress/e:PropertyRegistrationNumber[not(@*)] != '') and (/e:Complaint[not(@*)]/e:Complainant/e:PersonData/e:PhysicalAddress/e:BuildingNumber[not(@*)] != '')"><xsl:call-template name="FormatText"><xsl:with-param name="data">/</xsl:with-param></xsl:call-template></xsl:if><xsl:call-template name="FormatText"><xsl:with-param name="data" select="/e:Complaint[not(@*)]/e:Complainant/e:PersonData/e:PhysicalAddress/e:BuildingNumber[not(@*)]"/></xsl:call-template><xsl:call-template name="FormatText"><xsl:with-param name="data">, </xsl:with-param></xsl:call-template><xsl:if test="(/e:Complaint[not(@*)]/e:Complainant/e:PersonData/e:PhysicalAddress/e:DeliveryAddress/e:PostalCode[not(@*)] != '')"><xsl:call-template name="FormatText"><xsl:with-param name="data" select="substring(/e:Complaint[not(@*)]/e:Complainant/e:PersonData/e:PhysicalAddress/e:DeliveryAddress/e:PostalCode[not(@*)],1,3)"/></xsl:call-template><xsl:text xml:space="preserve"> </xsl:text><xsl:call-template name="FormatText"><xsl:with-param name="data" select="substring(/e:Complaint[not(@*)]/e:Complainant/e:PersonData/e:PhysicalAddress/e:DeliveryAddress/e:PostalCode[not(@*)],4)"/></xsl:call-template></xsl:if><xsl:text xml:space="preserve"> </xsl:text><xsl:value-of select="/e:Complaint[not(@*)]/e:Complainant/e:PersonData/e:PhysicalAddress/e:Municipality[not(@*)]/e:Codelist/e:CodelistItem/e:ItemName"/><xsl:call-template name="FormatText"><xsl:with-param name="data" select="/e:Complaint[not(@*)]/e:Complainant/e:PersonData/e:PhysicalAddress/e:Municipality/e:NonCodelistData[not(@*)]"/></xsl:call-template><xsl:call-template name="FormatText"><xsl:with-param name="data">, </xsl:with-param></xsl:call-template><xsl:value-of select="/e:Complaint[not(@*)]/e:Complainant/e:PersonData/e:PhysicalAddress/e:County[not(@*)]/e:Codelist/e:CodelistItem/e:ItemName"/><xsl:if test="(/e:Complaint[not(@*)]/e:Complainant/e:PersonData/e:PhysicalAddress/e:County[not(@*)]/e:Codelist/e:CodelistItem/e:ItemName != '')"><xsl:call-template name="FormatText"><xsl:with-param name="data">, </xsl:with-param></xsl:call-template></xsl:if><xsl:call-template name="FormatText"><xsl:with-param name="data" select="/e:Complaint[not(@*)]/e:Complainant/e:PersonData/e:PhysicalAddress/e:County/e:NonCodelistData[not(@*)]"/></xsl:call-template><xsl:if test="(/e:Complaint[not(@*)]/e:Complainant/e:PersonData/e:PhysicalAddress/e:County/e:NonCodelistData[not(@*)] != '')"><xsl:call-template name="FormatText"><xsl:with-param name="data">, </xsl:with-param></xsl:call-template></xsl:if><xsl:value-of select="/e:Complaint[not(@*)]/e:Complainant/e:PersonData/e:PhysicalAddress/e:Region[not(@*)]/e:Codelist/e:CodelistItem/e:ItemName"/><xsl:if test="(/e:Complaint[not(@*)]/e:Complainant/e:PersonData/e:PhysicalAddress/e:Region[not(@*)]/e:Codelist/e:CodelistItem/e:ItemName != '')"><xsl:call-template name="FormatText"><xsl:with-param name="data">, </xsl:with-param></xsl:call-template></xsl:if><xsl:call-template name="FormatText"><xsl:with-param name="data" select="/e:Complaint[not(@*)]/e:Complainant/e:PersonData/e:PhysicalAddress/e:Region/e:NonCodelistData[not(@*)]"/></xsl:call-template><xsl:if test="(/e:Complaint[not(@*)]/e:Complainant/e:PersonData/e:PhysicalAddress/e:Region/e:NonCodelistData[not(@*)] != '')"><xsl:call-template name="FormatText"><xsl:with-param name="data">, </xsl:with-param></xsl:call-template></xsl:if><xsl:value-of select="/e:Complaint[not(@*)]/e:Complainant/e:PersonData/e:PhysicalPerson/e:PhysicalAddress/e:Country[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:table-cell>
    </fo:table-row>
  </fo:table-body>
</fo:table>
            
          </fo:block>
        
    </fo:block-container>
  
<!--foBlockForTableEnd-->
            
          </fo:block>
        
    </fo:block-container>
  
<!--foBlockForTableEnd-->
            
          </fo:block>
        
    </fo:block-container>
  </xsl:if>
<!--foBlockForTableEnd-->
            
          </fo:block>
        
    </fo:block-container>
  
<!--foBlockForTableEnd--><!--foBlockForTableStart-->
  
    <fo:block-container width="auto">
        
          <fo:block    >
            
            
              <fo:block-container width="50%" keep-together.within-page="100">
  <xsl:attribute name='margin-top'>0mm</xsl:attribute>
<xsl:attribute name='margin-bottom'>0mm</xsl:attribute>
<!--<xsl:attribute name='margin-right'>0mm</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 >Typ sťažovateľa </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:Complaint/e:a1382[not(@*)]/e:Codelist/e:CodelistItem/e:ItemName"/></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'>0mm</xsl:attribute>
<xsl:attribute name='margin-bottom'>0mm</xsl:attribute>
<!--<xsl:attribute name='margin-right'>0mm</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 >Subjekt evidujúci sťažnosť</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:Complaint/e:a1386[not(@*)]/e:Codelist/e:CodelistItem/e:ItemCode = '1'">
            <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 >Sťažovateľ </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:Complaint/e:a1386[not(@*)]/e:Codelist/e:CodelistItem/e:ItemCode = '2'">
            <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 >Zástupca sťažovateľa</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:Complaint/e:a1386[not(@*)]/e:Codelist/e:CodelistItem/e:ItemCode = '2'">
    <fo:block-container width="auto">
        
          <fo:block    >
            
            
              <!--foBlockForTableStart-->
  
    <fo:block-container width="auto">
        
          <fo:block    >
            
            
              <!--foBlockForTableStart-->
  
    <fo:block-container >
        
          <fo:block    >
            
            
              <fo:table table-layout="fixed" width="100%">
  <fo:table-column column-width='33.33333%'/>
<fo:table-column column-width='66.66667%'/>
  <fo:table-body>
    <fo:table-row>
      <fo:table-cell margin-left="0" >
        <fo:block-container >
  <xsl:attribute name='margin-top'>0mm</xsl:attribute>
<xsl:attribute name='margin-bottom'>0mm</xsl:attribute>
<!--<xsl:attribute name='margin-right'>0mm</xsl:attribute>-->
  <xsl:attribute name='padding-bottom'>0.03125em</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"
          
          >Tituly, meno a priezvisko</fo:block>
      </fo:table-cell>
    </fo:table-row></fo:table-body>
  </fo:table>
</fo:block-container></fo:table-cell><fo:table-cell margin-left="0"><fo:block-container >
  <xsl:attribute name='margin-top'>0mm</xsl:attribute>
<xsl:attribute name='margin-bottom'>0mm</xsl:attribute>
<!--<xsl:attribute name='margin-right'>0mm</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:for-each select="/e:Complaint[not(@*)]/e:Applicant/e:PersonData/e:PhysicalPerson/e:PersonName/e:Affix[@type='qualification' and @position='prefix']"><xsl:if test="./e:Codelist/e:CodelistItem/e:ItemName != '' and position() &gt; 1"><xsl:call-template name="FormatText"><xsl:with-param name="data">, </xsl:with-param></xsl:call-template></xsl:if><xsl:value-of select="./e:Codelist/e:CodelistItem/e:ItemName"/><xsl:if test="./e:Codelist/e:CodelistItem/e:ItemName != '' and position() = last()"><xsl:text xml:space="preserve"> </xsl:text></xsl:if></xsl:for-each><xsl:call-template name="FormatText"><xsl:with-param name="data" select="/e:Complaint[not(@*)]/e:Applicant/e:PersonData/e:PhysicalPerson/e:PersonName/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:Complaint[not(@*)]/e:Applicant/e:PersonData/e:PhysicalPerson/e:PersonName/e:FamilyName[not(@*)]"/></xsl:call-template><xsl:for-each select="/e:Complaint[not(@*)]/e:Applicant/e:PersonData/e:PhysicalPerson/e:PersonName/e:Affix[@type='qualification' and @position='postfix']"><xsl:if test="./e:Codelist/e:CodelistItem/e:ItemName != '' and position() = 1"><xsl:text xml:space="preserve"> </xsl:text></xsl:if><xsl:if test="./e:Codelist/e:CodelistItem/e:ItemName != '' and position() &gt; 1"><xsl:call-template name="FormatText"><xsl:with-param name="data">, </xsl:with-param></xsl:call-template></xsl:if><xsl:value-of select="./e:Codelist/e:CodelistItem/e:ItemName"/></xsl:for-each></fo:block></fo:block>
      </fo:table-cell>
    </fo:table-row></fo:table-body>
  </fo:table>
</fo:block-container>
      </fo:table-cell>
    </fo:table-row>
  </fo:table-body>
</fo:table>
            
          </fo:block>
        
    </fo:block-container>
  
<!--foBlockForTableEnd--><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="10.998pt"
          text-align="left"
          text-decoration="none"
          font-style="normal"
          font-weight="normal"
          >Sťažovateľ</fo:block>
        </fo:table-cell>
      </fo:table-row>
    </fo:table-body>
  </fo:table>
</fo:block-container>
            
          </fo:block>
        
    </fo:block-container>
  
<!--foBlockForTableEnd--><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="10.998pt"
          text-align="left"
          text-decoration="none"
          font-style="normal"
          font-weight="normal"
          >Adresa</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-->
  
    <fo:block-container >
        
          <fo:block    >
            
            
              <fo:table table-layout="fixed" width="100%">
  <fo:table-column column-width='33.33333%'/>
<fo:table-column column-width='66.66667%'/>
  <fo:table-body>
    <fo:table-row>
      <fo:table-cell margin-left="0" >
        <fo:block-container >
  <xsl:attribute name='margin-top'>0mm</xsl:attribute>
<xsl:attribute name='margin-bottom'>0mm</xsl:attribute>
<!--<xsl:attribute name='margin-right'>0mm</xsl:attribute>-->
  <xsl:attribute name='padding-bottom'>0.03125em</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"
          
          >Adresa</fo:block>
      </fo:table-cell>
    </fo:table-row></fo:table-body>
  </fo:table>
</fo:block-container></fo:table-cell><fo:table-cell margin-left="0"><fo:block-container >
  <xsl:attribute name='margin-top'>0mm</xsl:attribute>
<xsl:attribute name='margin-bottom'>0mm</xsl:attribute>
<!--<xsl:attribute name='margin-right'>0mm</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:Complaint[not(@*)]/e:Applicant/e:PersonData/e:PhysicalAddress/e:StreetName[not(@*)]"/></xsl:call-template><xsl:text xml:space="preserve"> </xsl:text><xsl:call-template name="FormatText"><xsl:with-param name="data" select="/e:Complaint[not(@*)]/e:Applicant/e:PersonData/e:PhysicalAddress/e:PropertyRegistrationNumber[not(@*)]"/></xsl:call-template><xsl:if test="(/e:Complaint[not(@*)]/e:Applicant/e:PersonData/e:PhysicalAddress/e:PropertyRegistrationNumber[not(@*)] != '') and (/e:Complaint[not(@*)]/e:Applicant/e:PersonData/e:PhysicalAddress/e:BuildingNumber[not(@*)] != '')"><xsl:call-template name="FormatText"><xsl:with-param name="data">/</xsl:with-param></xsl:call-template></xsl:if><xsl:call-template name="FormatText"><xsl:with-param name="data" select="/e:Complaint[not(@*)]/e:Applicant/e:PersonData/e:PhysicalAddress/e:BuildingNumber[not(@*)]"/></xsl:call-template><xsl:call-template name="FormatText"><xsl:with-param name="data">, </xsl:with-param></xsl:call-template><xsl:if test="(/e:Complaint[not(@*)]/e:Applicant/e:PersonData/e:PhysicalAddress/e:DeliveryAddress/e:PostalCode[not(@*)] != '')"><xsl:call-template name="FormatText"><xsl:with-param name="data" select="substring(/e:Complaint[not(@*)]/e:Applicant/e:PersonData/e:PhysicalAddress/e:DeliveryAddress/e:PostalCode[not(@*)],1,3)"/></xsl:call-template><xsl:text xml:space="preserve"> </xsl:text><xsl:call-template name="FormatText"><xsl:with-param name="data" select="substring(/e:Complaint[not(@*)]/e:Applicant/e:PersonData/e:PhysicalAddress/e:DeliveryAddress/e:PostalCode[not(@*)],4)"/></xsl:call-template></xsl:if><xsl:text xml:space="preserve"> </xsl:text><xsl:value-of select="/e:Complaint[not(@*)]/e:Applicant/e:PersonData/e:PhysicalAddress/e:Municipality[not(@*)]/e:Codelist/e:CodelistItem/e:ItemName"/><xsl:call-template name="FormatText"><xsl:with-param name="data" select="/e:Complaint[not(@*)]/e:Applicant/e:PersonData/e:PhysicalAddress/e:Municipality/e:NonCodelistData[not(@*)]"/></xsl:call-template><xsl:call-template name="FormatText"><xsl:with-param name="data">, </xsl:with-param></xsl:call-template><xsl:value-of select="/e:Complaint[not(@*)]/e:Applicant/e:PersonData/e:PhysicalAddress/e:County[not(@*)]/e:Codelist/e:CodelistItem/e:ItemName"/><xsl:if test="(/e:Complaint[not(@*)]/e:Applicant/e:PersonData/e:PhysicalAddress/e:County[not(@*)]/e:Codelist/e:CodelistItem/e:ItemName != '')"><xsl:call-template name="FormatText"><xsl:with-param name="data">, </xsl:with-param></xsl:call-template></xsl:if><xsl:call-template name="FormatText"><xsl:with-param name="data" select="/e:Complaint[not(@*)]/e:Applicant/e:PersonData/e:PhysicalAddress/e:County/e:NonCodelistData[not(@*)]"/></xsl:call-template><xsl:if test="(/e:Complaint[not(@*)]/e:Applicant/e:PersonData/e:PhysicalAddress/e:County/e:NonCodelistData[not(@*)] != '')"><xsl:call-template name="FormatText"><xsl:with-param name="data">, </xsl:with-param></xsl:call-template></xsl:if><xsl:value-of select="/e:Complaint[not(@*)]/e:Applicant/e:PersonData/e:PhysicalAddress/e:Region[not(@*)]/e:Codelist/e:CodelistItem/e:ItemName"/><xsl:if test="(/e:Complaint[not(@*)]/e:Applicant/e:PersonData/e:PhysicalAddress/e:Region[not(@*)]/e:Codelist/e:CodelistItem/e:ItemName != '')"><xsl:call-template name="FormatText"><xsl:with-param name="data">, </xsl:with-param></xsl:call-template></xsl:if><xsl:call-template name="FormatText"><xsl:with-param name="data" select="/e:Complaint[not(@*)]/e:Applicant/e:PersonData/e:PhysicalAddress/e:Region/e:NonCodelistData[not(@*)]"/></xsl:call-template><xsl:if test="(/e:Complaint[not(@*)]/e:Applicant/e:PersonData/e:PhysicalAddress/e:Region/e:NonCodelistData[not(@*)] != '')"><xsl:call-template name="FormatText"><xsl:with-param name="data">, </xsl:with-param></xsl:call-template></xsl:if><xsl:value-of select="/e:Complaint[not(@*)]/e:Applicant/e:PersonData/e:PhysicalAddress/e:Country[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:table-cell>
    </fo:table-row>
  </fo:table-body>
</fo:table>
            
          </fo:block>
        
    </fo:block-container>
  
<!--foBlockForTableEnd-->
            
          </fo:block>
        
    </fo:block-container>
  
<!--foBlockForTableEnd-->
            
          </fo:block>
        
    </fo:block-container>
  </xsl:if>
<!--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="9.0pt"
          text-align="left"
          text-decoration="none"
          font-style="normal"
          font-weight="bold"
          >Predmet sťažnosti</fo:block>
        </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'>0mm</xsl:attribute>
<xsl:attribute name='margin-bottom'>0mm</xsl:attribute>
<!--<xsl:attribute name='margin-right'>0mm</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 >Vec</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:Complaint/e:SubjectOfComplaint[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 font-size="9.0pt">
  <fo:block-container>
    <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:choose>
              <xsl:when test="/e:Complaint/e:PointOfComplaint[not(@*)]">
              <xsl:for-each select="/e:Complaint/e:PointOfComplaint[not(@*)]">
                
                  <fo:block >
                    
                      <fo:block-container width="auto" keep-together.within-page="100">
  <xsl:attribute name='margin-top'>0mm</xsl:attribute>
<xsl:attribute name='margin-bottom'>0mm</xsl:attribute>
<!--<xsl:attribute name='margin-right'>0mm</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 >Bod sťažnosti</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:attribute name="wrap-option">wrap</xsl:attribute>
<xsl:attribute name='linefeed-treatment'>preserve</xsl:attribute>
<xsl:call-template name="FormatText"><xsl:with-param name="data" select="./e:TextOfComplaint[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>
                
              </xsl:for-each>
            </xsl:when>
            <xsl:otherwise>
              
                <fo:block >
                  
                    <fo:block-container width="auto" keep-together.within-page="100">
  <xsl:attribute name='margin-top'>0mm</xsl:attribute>
<xsl:attribute name='margin-bottom'>0mm</xsl:attribute>
<!--<xsl:attribute name='margin-right'>0mm</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 >Bod sťažnosti</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:attribute name="wrap-option">wrap</xsl:attribute>
<xsl:attribute name='linefeed-treatment'>preserve</xsl:attribute>
<xsl:call-template name="FormatText"><xsl:with-param name="data" select="./e:TextOfComplaint[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>
              
            </xsl:otherwise>
            </xsl:choose>
          </fo:table-cell>
        </fo:table-row>
      </fo:table-body>
    </fo:table>
  </fo:block-container>
</fo:block>
            
          </fo:block>
        
    </fo:block-container>
  
<!--foBlockForTableEnd-->
        <fo:block id="end"/>
      </fo:flow>
    </fo:page-sequence>
  </fo:root>
</xsl:template>
</xsl:stylesheet>