<?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:date="http://exslt.org/dates-and-times" xmlns:eform="http://schemas.gov.sk/form/00612031.ROZ_KORWIN.RozhodnutieDanePoplatkyDzn.sk.sDorucenkou/1.4" xmlns:fo="http://www.w3.org/1999/XSL/Format" version="1.0"><xsl:output encoding="UTF-8" method="xml"/><xsl:decimal-format decimal-separator="," grouping-separator=" " name="european"/><xsl:attribute-set name="a4"><xsl:attribute name="page-height">297mm</xsl:attribute><xsl:attribute name="page-width">210mm</xsl:attribute><xsl:attribute name="margin-top">10mm</xsl:attribute><xsl:attribute name="margin-bottom">10mm</xsl:attribute><xsl:attribute name="margin-left">10mm</xsl:attribute><xsl:attribute name="margin-right">10mm</xsl:attribute></xsl:attribute-set><xsl:attribute-set name="body"><xsl:attribute name="font-family">Arial, Sans-serif</xsl:attribute><xsl:attribute name="font-size">8pt</xsl:attribute></xsl:attribute-set><xsl:attribute-set name="h1"><xsl:attribute name="font-size">13pt</xsl:attribute><xsl:attribute name="text-align">center</xsl:attribute><xsl:attribute name="font-weight">bold</xsl:attribute><xsl:attribute name="space-before">5.0mm</xsl:attribute><xsl:attribute name="space-after">2.0mm</xsl:attribute></xsl:attribute-set><xsl:attribute-set name="h2"><xsl:attribute name="font-size">11pt</xsl:attribute><xsl:attribute name="font-weight">bold</xsl:attribute><xsl:attribute name="text-align">center</xsl:attribute><xsl:attribute name="space-before">2mm</xsl:attribute><xsl:attribute name="space-after">2mm</xsl:attribute></xsl:attribute-set><xsl:attribute-set name="prop-h2"><xsl:attribute name="background-color">#DCDDDE</xsl:attribute><xsl:attribute name="font-weight">bold</xsl:attribute><xsl:attribute name="text-align">center</xsl:attribute><xsl:attribute name="font-size">10pt</xsl:attribute><xsl:attribute name="margin-top">3mm</xsl:attribute><xsl:attribute name="padding-top">1.2mm</xsl:attribute><xsl:attribute name="margin-bottom">1.5mm</xsl:attribute><xsl:attribute name="line-height">1.5em</xsl:attribute></xsl:attribute-set><xsl:attribute-set name="h3"><xsl:attribute name="background-color">#DCDDDE</xsl:attribute><xsl:attribute name="font-weight">bold</xsl:attribute><xsl:attribute name="text-align">center</xsl:attribute><xsl:attribute name="font-size">10pt</xsl:attribute><xsl:attribute name="margin-top">3mm</xsl:attribute><xsl:attribute name="padding-top">1.2mm</xsl:attribute><xsl:attribute name="margin-bottom">1.5mm</xsl:attribute><xsl:attribute name="line-height">1.5em</xsl:attribute></xsl:attribute-set><xsl:variable name="sk.title.decisionForLocalTaxesAndFeesFourTax" select="'Rozhodnutie pre miestne dane a poplatky (Nehnuteľnosti, psy, predajné automaty, nevýherné hracie prístroje), Korwin'"/><xsl:variable name="sk.text.eur" select="'EUR'"/><xsl:variable name="sk.text.percentage" select="'%'"/><xsl:variable name="sk.text.page" select="'Strana'"/><xsl:variable name="sk.text.date" select="'miesto a dátum'"/><xsl:variable name="sk.text.sign" select="'podpis'"/><xsl:variable name="sk.text.village" select="'Obec'"/><xsl:variable name="sk.text.city" select="'Mesto'"/><xsl:variable name="sk.text.telephone" select="'Telefón'"/><xsl:variable name="sk.text.email" select="'E-mail'"/><xsl:variable name="sk.text.web" select="'Web'"/><xsl:variable name="sk.text.yes" select="'Áno'"/><xsl:variable name="sk.text.no" select="'Nie'"/><xsl:variable name="sk.text.newline" select="'&#10;'"/><xsl:variable name="sk.text.space" select="' '"/><xsl:variable name="sk.text.colon" select="':'"/><xsl:variable name="sk.text.comma" select="','"/><xsl:variable name="sk.text.slash" select="'/'"/><xsl:variable name="sk.text.dash" select="'-'"/><xsl:variable name="sk.text.dot" select="'.'"/><xsl:variable name="sk.text.zero" select="'0,00'"/><xsl:variable name="mm" select="'mm'"/><xsl:template match="/eform:DecisionForLocalTaxesAndFeesFourTax"><fo:root><fo:layout-master-set><fo:page-sequence-master master-name="A4"><fo:repeatable-page-master-alternatives><fo:conditional-page-master-reference master-reference="singlepage" page-position="only"/><fo:conditional-page-master-reference master-reference="firstpage" page-position="first"/><fo:conditional-page-master-reference master-reference="lastpage" page-position="last"/><fo:conditional-page-master-reference master-reference="page" page-position="rest"/></fo:repeatable-page-master-alternatives></fo:page-sequence-master><fo:simple-page-master master-name="singlepage" xsl:use-attribute-sets="a4"><fo:region-body margin-bottom="0mm" margin-top="64mm"/><fo:region-before extent="64mm" region-name="header"/><fo:region-after extent="0mm" region-name="pages"/></fo:simple-page-master><fo:simple-page-master master-name="page" xsl:use-attribute-sets="a4"><fo:region-body margin-bottom="5mm" margin-top="0mm"/><fo:region-after extent="0mm" region-name="pages"/></fo:simple-page-master><fo:simple-page-master master-name="firstpage" xsl:use-attribute-sets="a4"><fo:region-body margin-bottom="0mm" margin-top="64mm"/><fo:region-before extent="64mm" region-name="header"/><fo:region-after extent="0mm" region-name="pages"/></fo:simple-page-master><fo:simple-page-master master-name="lastpage" xsl:use-attribute-sets="a4"><fo:region-body margin-bottom="0mm" margin-top="0mm"/><fo:region-after extent="0mm" region-name="pages"/></fo:simple-page-master></fo:layout-master-set><fo:page-sequence id="document" master-reference="A4" xsl:use-attribute-sets="body"><xsl:attribute name="force-page-count">no-force</xsl:attribute><fo:static-content flow-name="header"><xsl:call-template name="Header"/></fo:static-content><fo:static-content flow-name="pages"><xsl:call-template name="Pages"/></fo:static-content><fo:flow flow-name="xsl-region-body"><fo:block padding-top="5mm"><xsl:if test="count(eform:Decision) &gt; 0"><xsl:for-each select="eform:Decision"><xsl:if test="count(eform:TitleText) + count(eform:DecisionCode) &gt; 1"><fo:block xsl:use-attribute-sets="h1"><xsl:if test="count(eform:TitleText) &gt; 0"><xsl:value-of select="eform:TitleText"/><xsl:value-of select="$sk.text.space"/></xsl:if><xsl:if test="count(eform:DecisionCode) &gt; 0"><xsl:value-of select="eform:DecisionCode"/></xsl:if></fo:block></xsl:if><xsl:if test="count(eform:Assertion) &gt; 0"><xsl:for-each select="eform:Assertion"><xsl:if test="count(eform:Text) &gt; 0"><fo:block text-align="justify" white-space-collapse="false"><xsl:value-of select="eform:Text"/></fo:block></xsl:if><xsl:if test="count(eform:Title) &gt; 0"><fo:block xsl:use-attribute-sets="h2"><xsl:value-of select="eform:Title"/></fo:block></xsl:if><xsl:if test="count(eform:Paragraph) &gt; 0"><fo:block text-align="justify" white-space-collapse="false"><xsl:value-of select="eform:Paragraph"/></fo:block></xsl:if></xsl:for-each></xsl:if></xsl:for-each></xsl:if><xsl:if test="count(eform:DeliveryTo) &gt; 0"><xsl:for-each select="eform:DeliveryTo"><xsl:choose><xsl:when test="count(eform:TaxPayerPP) &gt; 0"><xsl:for-each select="eform:TaxPayerPP"><fo:block font-size="9pt" margin-top="2mm"><xsl:if test="count(eform:TaxPayerPPName) &gt; 0"><fo:inline font-weight="bold"><xsl:value-of select="eform:TaxPayerPPName"/><xsl:value-of select="$sk.text.colon"/><xsl:value-of select="$sk.text.space"/></fo:inline></xsl:if><xsl:if test="count(eform:PersonData/eform:PhysicalPerson/eform:PersonName/eform:FormattedName) &gt; 0"><fo:inline><xsl:value-of select="eform:PersonData/eform:PhysicalPerson/eform:PersonName/eform:FormattedName"/><xsl:value-of select="$sk.text.comma"/><xsl:value-of select="$sk.text.space"/></fo:inline></xsl:if><xsl:if test="count(eform:PhysicalAddressName) &gt; 0"><fo:inline font-weight="bold"><xsl:value-of select="eform:PhysicalAddressName"/><xsl:value-of select="$sk.text.colon"/><xsl:value-of select="$sk.text.space"/></fo:inline></xsl:if><xsl:if test="count(eform:PersonData/eform:PhysicalAddress[eform:AddressType/eform:AddressClass/eform:Codelist/eform:CodelistItem/eform:ItemName = 'Trvalý pobyt' or eform:AddressType/eform:AddressClass/eform:Codelist/eform:CodelistItem/eform:ItemCode = '100001']) &gt; 0"><xsl:for-each select="eform:PersonData/eform:PhysicalAddress[eform:AddressType/eform:AddressClass/eform:Codelist/eform:CodelistItem/eform:ItemName = 'Trvalý pobyt' or eform:AddressType/eform:AddressClass/eform:Codelist/eform:CodelistItem/eform:ItemCode = '100001']"><xsl:if test="count(eform:StreetName) &gt; 0"><xsl:value-of select="eform:StreetName"/><xsl:value-of select="$sk.text.comma"/><xsl:value-of select="$sk.text.space"/></xsl:if><xsl:choose><xsl:when test="count(eform:PropertyRegistrationNumber) + count(eform:BuildingNumber) &gt; 1"><xsl:value-of select="eform:PropertyRegistrationNumber"/><xsl:value-of select="$sk.text.slash"/><xsl:value-of select="eform:BuildingNumber"/><xsl:value-of select="$sk.text.comma"/><xsl:value-of select="$sk.text.space"/></xsl:when><xsl:when test="count(eform:PropertyRegistrationNumber) &gt; 0"><xsl:value-of select="eform:PropertyRegistrationNumber"/><xsl:value-of select="$sk.text.comma"/><xsl:value-of select="$sk.text.space"/></xsl:when><xsl:when test="count(eform:BuildingNumber) &gt; 0"><xsl:value-of select="eform:BuildingNumber"/><xsl:value-of select="$sk.text.comma"/><xsl:value-of select="$sk.text.space"/></xsl:when></xsl:choose><xsl:if test="count(eform:DeliveryAddress/eform:PostalCode) &gt; 0"><xsl:for-each select="eform:DeliveryAddress/eform:PostalCode"><xsl:call-template name="FormatPostalCode"/></xsl:for-each><xsl:value-of select="$sk.text.space"/><xsl:value-of select="$sk.text.space"/></xsl:if><xsl:if test="count(eform:Municipality) &gt; 0"><xsl:for-each select="eform:Municipality"><xsl:choose><xsl:when test="count(eform:Codelist/eform:CodelistItem/eform:ItemName) &gt; 0"><xsl:value-of select="eform:Codelist/eform:CodelistItem/eform:ItemName"/></xsl:when><xsl:when test="count(eform:NonCodelistData) &gt; 0"><xsl:value-of select="eform:NonCodelistData"/></xsl:when></xsl:choose></xsl:for-each><xsl:value-of select="$sk.text.comma"/><xsl:value-of select="$sk.text.space"/></xsl:if></xsl:for-each></xsl:if><xsl:if test="count(eform:DateOfBirthOrIDName) &gt; 0"><fo:inline font-weight="bold"><xsl:value-of select="eform:DateOfBirthOrIDName"/><xsl:value-of select="$sk.text.colon"/><xsl:value-of select="$sk.text.space"/></fo:inline></xsl:if><xsl:if test="count(eform:PersonData/eform:PhysicalPerson/eform:Birth/eform:DateOfBirth) &gt; 0"><xsl:call-template name="FormatDate"><xsl:with-param name="date" select="eform:PersonData/eform:PhysicalPerson/eform:Birth/eform:DateOfBirth"/><xsl:with-param name="locale">sk</xsl:with-param></xsl:call-template></xsl:if><xsl:if test="count(eform:PersonData/eform:PhysicalPerson/eform:ID/eform:IdentifierValue) &gt; 0"><xsl:value-of select="eform:PersonData/eform:PhysicalPerson/eform:ID/eform:IdentifierValue"/></xsl:if></fo:block></xsl:for-each></xsl:when><xsl:when test="count(eform:TaxPayerCB) &gt; 0"><xsl:for-each select="eform:TaxPayerCB"><fo:block font-size="9pt" margin-top="2mm"><xsl:if test="count(eform:TaxPayerCBName) &gt; 0"><fo:inline font-weight="bold"><xsl:value-of select="eform:TaxPayerCBName"/><xsl:value-of select="$sk.text.colon"/><xsl:value-of select="$sk.text.space"/></fo:inline></xsl:if><xsl:if test="count(eform:PersonData/eform:CorporateBody/eform:CorporateBodyFullName) &gt; 0"><fo:inline><xsl:value-of select="eform:PersonData/eform:CorporateBody/eform:CorporateBodyFullName"/><xsl:value-of select="$sk.text.comma"/><xsl:value-of select="$sk.text.space"/></fo:inline></xsl:if><xsl:if test="count(eform:PhysicalAddressName) &gt; 0"><fo:inline font-weight="bold"><xsl:value-of select="eform:PhysicalAddressName"/><xsl:value-of select="$sk.text.colon"/><xsl:value-of select="$sk.text.space"/></fo:inline></xsl:if><xsl:if test="count(eform:PersonData/eform:PhysicalAddress[eform:AddressType/eform:AddressClass/eform:Codelist/eform:CodelistItem/eform:ItemName = 'Sídlo právnickej osoby' or eform:AddressType/eform:AddressClass/eform:Codelist/eform:CodelistItem/eform:ItemCode = '100101']) &gt; 0"><xsl:for-each select="eform:PersonData/eform:PhysicalAddress[eform:AddressType/eform:AddressClass/eform:Codelist/eform:CodelistItem/eform:ItemName = 'Sídlo právnickej osoby' or eform:AddressType/eform:AddressClass/eform:Codelist/eform:CodelistItem/eform:ItemCode = '100101']"><xsl:if test="count(eform:StreetName) &gt; 0"><xsl:value-of select="eform:StreetName"/></xsl:if><xsl:choose><xsl:when test="count(eform:PropertyRegistrationNumber) + count(eform:BuildingNumber) &gt; 1"><xsl:value-of select="eform:PropertyRegistrationNumber"/><xsl:value-of select="$sk.text.slash"/><xsl:value-of select="eform:BuildingNumber"/></xsl:when><xsl:when test="count(eform:PropertyRegistrationNumber) &gt; 0"><xsl:value-of select="eform:PropertyRegistrationNumber"/></xsl:when><xsl:when test="count(eform:BuildingNumber) &gt; 0"><xsl:value-of select="eform:BuildingNumber"/></xsl:when></xsl:choose><xsl:if test="count(eform:DeliveryAddress/eform:PostalCode) &gt; 0"><xsl:for-each select="eform:DeliveryAddress/eform:PostalCode"><xsl:value-of select="$sk.text.comma"/><xsl:value-of select="$sk.text.space"/><xsl:call-template name="FormatPostalCode"/></xsl:for-each></xsl:if><xsl:if test="count(eform:Municipality) &gt; 0"><xsl:value-of select="$sk.text.space"/><xsl:value-of select="$sk.text.space"/><xsl:for-each select="eform:Municipality"><xsl:choose><xsl:when test="count(eform:Codelist/eform:CodelistItem/eform:ItemName) &gt; 0"><xsl:value-of select="eform:Codelist/eform:CodelistItem/eform:ItemName"/></xsl:when><xsl:when test="count(eform:NonCodelistData) &gt; 0"><xsl:value-of select="eform:NonCodelistData"/></xsl:when></xsl:choose></xsl:for-each><xsl:value-of select="$sk.text.comma"/><xsl:value-of select="$sk.text.space"/></xsl:if></xsl:for-each></xsl:if><xsl:if test="count(eform:IDName) &gt; 0"><fo:inline font-weight="bold"><xsl:value-of select="eform:IDName"/><xsl:value-of select="$sk.text.colon"/><xsl:value-of select="$sk.text.space"/></fo:inline></xsl:if><xsl:if test="count(eform:PersonData/eform:CorporateBody/eform:ID/eform:IdentifierValue) &gt; 0"><xsl:value-of select="eform:PersonData/eform:CorporateBody/eform:ID/eform:IdentifierValue"/></xsl:if></fo:block></xsl:for-each></xsl:when></xsl:choose></xsl:for-each></xsl:if><xsl:if test="count(eform:Decision/eform:RealEstateDogMachines) &gt; 0"><xsl:for-each select="eform:Decision/eform:RealEstateDogMachines"><fo:block margin-bottom="4mm" margin-top="5mm" xsl:use-attribute-sets="h2"><xsl:if test="count(eform:PeriodName) &gt; 0"><xsl:value-of select="eform:PeriodName"/><xsl:value-of select="$sk.text.space"/></xsl:if><xsl:if test="count(eform:Period) &gt; 0"><xsl:value-of select="eform:Period"/></xsl:if></fo:block><xsl:if test="count(eform:TotalAmountName) + count(eform:TotalAmount) &gt; 0"><fo:block font-size="11pt" font-weight="bold" margin-bottom="3mm" margin-top="5mm"><xsl:if test="count(eform:TotalAmountName) &gt; 0"><xsl:value-of select="eform:TotalAmountName"/><xsl:value-of select="$sk.text.colon"/><xsl:value-of select="$sk.text.space"/></xsl:if><xsl:if test="count(eform:TotalAmount) &gt; 0"><xsl:call-template name="FormatPrice"><xsl:with-param name="price" select="normalize-space(eform:TotalAmount)"/><xsl:with-param name="currency"><xsl:value-of select="$sk.text.eur"/></xsl:with-param></xsl:call-template></xsl:if></fo:block></xsl:if><xsl:if test="count(eform:TaxForRealEstate) &gt; 0"><xsl:for-each select="eform:TaxForRealEstate"><xsl:if test="count(eform:Name) + count(eform:NameTotalAmount) + count(eform:TotalAmount) &gt; 0"><fo:table margin-bottom="0.5mm"><fo:table-column column-width="120mm"/><fo:table-column column-width="35mm"/><fo:table-column column-width="35mm"/><fo:table-body><fo:table-row><fo:table-cell><xsl:if test="count(eform:Name) &gt; 0"><fo:block font-size="10pt" font-weight="bold"><xsl:value-of select="eform:Name"/></fo:block></xsl:if></fo:table-cell><fo:table-cell><xsl:if test="count(eform:NameTotalAmount) &gt; 0"><fo:block font-size="9pt" font-weight="bold" margin-right="1mm" text-align="right"><xsl:value-of select="eform:NameTotalAmount"/><xsl:value-of select="$sk.text.colon"/></fo:block></xsl:if></fo:table-cell><fo:table-cell><xsl:if test="count(eform:TotalAmount) &gt; 0"><fo:block font-size="9pt" font-weight="bold" text-align="left"><xsl:call-template name="FormatPrice"><xsl:with-param name="price" select="normalize-space(eform:TotalAmount)"/><xsl:with-param name="currency"><xsl:value-of select="$sk.text.eur"/></xsl:with-param></xsl:call-template></fo:block></xsl:if></fo:table-cell></fo:table-row></fo:table-body></fo:table></xsl:if><xsl:if test="count(eform:TypesOfTax) &gt; 0"><xsl:for-each select="eform:TypesOfTax"><xsl:if test="count(eform:TypesNames) + count(eform:Types) &gt; 0"><fo:table border-right="solid" margin-bottom="5mm"><xsl:variable name="taxCodeWidth" select="eform:TypesNames/eform:TaxCodeName/@Width"/><xsl:variable name="subjectOfTaxWidth" select="eform:TypesNames/eform:SubjectOfTaxName/@Width"/><xsl:variable name="areaWidth" select="eform:TypesNames/eform:AreaName/@Width"/><xsl:variable name="valueOfAreaWidth" select="eform:TypesNames/eform:ValueOfAreaName/@Width"/><xsl:variable name="tariffWidth" select="eform:TypesNames/eform:TariffName/@Width"/><xsl:variable name="surchargeWidth" select="eform:TypesNames/eform:SurchargeName/@Width"/><xsl:variable name="taxWidth" select="eform:TypesNames/eform:TaxName/@Width"/><xsl:variable name="taxTotalWidth" select="eform:TypesNames/eform:TaxTotalName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$taxCodeWidth"/><xsl:with-param name="defaultValue" select="20"/></xsl:call-template><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$subjectOfTaxWidth"/><xsl:with-param name="defaultValue" select="40"/></xsl:call-template><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$areaWidth"/><xsl:with-param name="defaultValue" select="20"/></xsl:call-template><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$valueOfAreaWidth"/><xsl:with-param name="defaultValue" select="20"/></xsl:call-template><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$tariffWidth"/><xsl:with-param name="defaultValue" select="17"/></xsl:call-template><fo:table-column column-width="8mm"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$surchargeWidth"/><xsl:with-param name="defaultValue" select="25"/></xsl:call-template><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$taxWidth"/><xsl:with-param name="defaultValue" select="20"/></xsl:call-template><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$taxTotalWidth"/><xsl:with-param name="defaultValue" select="20"/></xsl:call-template><xsl:if test="count(eform:TypesNames) &gt; 0"><xsl:for-each select="eform:TypesNames"><fo:table-header><fo:table-row><fo:table-cell border-style="solid"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="left"><xsl:if test="count(eform:TaxCodeName) &gt; 0 and (not(number($taxCodeWidth)=$taxCodeWidth) or $taxCodeWidth &gt; 0)"><xsl:value-of select="eform:TaxCodeName"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="left"><xsl:if test="count(eform:SubjectOfTaxName) &gt; 0 and (not(number($subjectOfTaxWidth)=$subjectOfTaxWidth) or $subjectOfTaxWidth &gt; 0)"><xsl:value-of select="eform:SubjectOfTaxName"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:AreaName) &gt; 0 and (not(number($areaWidth)=$areaWidth) or $areaWidth &gt; 0)"><xsl:choose><xsl:when test="substring-before(eform:AreaName,'[')"><fo:block><xsl:value-of select="substring-before(eform:AreaName,'[')"/></fo:block><fo:block><xsl:value-of select="'['"/><xsl:variable name="str1" select="substring-after(eform:AreaName,'[')"/><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="$str1"/></xsl:with-param></xsl:call-template></fo:block></xsl:when><xsl:otherwise><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="eform:AreaName"/></xsl:with-param></xsl:call-template></xsl:otherwise></xsl:choose></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:ValueOfAreaName) &gt; 0 and (not(number($valueOfAreaWidth)=$valueOfAreaWidth) or $valueOfAreaWidth &gt; 0)"><xsl:choose><xsl:when test="substring-before(eform:ValueOfAreaName,'[')"><fo:block><xsl:value-of select="substring-before(eform:ValueOfAreaName,'[')"/></fo:block><fo:block><xsl:value-of select="'['"/><xsl:value-of select="substring-after(eform:ValueOfAreaName,'[')"/></fo:block></xsl:when><xsl:otherwise><xsl:value-of select="eform:ValueOfAreaName"/></xsl:otherwise></xsl:choose></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" number-columns-spanned="2"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:TariffName) &gt; 0 and (not(number($tariffWidth)=$tariffWidth) or $tariffWidth &gt; 0)"><xsl:choose><xsl:when test="substring-before(eform:TariffName,'[')"><fo:block><xsl:value-of select="substring-before(eform:TariffName,'[')"/></fo:block><fo:block><xsl:value-of select="'['"/><xsl:variable name="str1" select="substring-after(eform:TariffName,'[')"/><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="$str1"/></xsl:with-param></xsl:call-template></fo:block></xsl:when><xsl:otherwise><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="eform:TariffName"/></xsl:with-param></xsl:call-template></xsl:otherwise></xsl:choose></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:SurchargeName) &gt; 0 and (not(number($surchargeWidth)=$surchargeWidth) or $surchargeWidth &gt; 0)"><xsl:choose><xsl:when test="substring-before(eform:SurchargeName,'[')"><fo:block><xsl:value-of select="substring-before(eform:SurchargeName,'[')"/></fo:block><fo:block><xsl:value-of select="'['"/><xsl:variable name="str1" select="substring-after(eform:SurchargeName,'[')"/><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="$str1"/></xsl:with-param></xsl:call-template></fo:block></xsl:when><xsl:otherwise><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="eform:SurchargeName"/></xsl:with-param></xsl:call-template></xsl:otherwise></xsl:choose></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:TaxName) &gt; 0 and (not(number($taxWidth)=$taxWidth) or $taxWidth &gt; 0)"><xsl:choose><xsl:when test="substring-before(eform:TaxName,'[')"><fo:block><xsl:value-of select="substring-before(eform:TaxName,'[')"/></fo:block><fo:block><xsl:value-of select="'['"/><xsl:variable name="str1" select="substring-after(eform:TaxName,'[')"/><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="$str1"/></xsl:with-param></xsl:call-template></fo:block></xsl:when><xsl:otherwise><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="eform:TaxName"/></xsl:with-param></xsl:call-template></xsl:otherwise></xsl:choose></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:TaxTotalName) &gt; 0 and (not(number($taxTotalWidth)=$taxTotalWidth) or $taxTotalWidth &gt; 0)"><xsl:choose><xsl:when test="substring-before(eform:TaxTotalName,'[')"><fo:block><xsl:value-of select="substring-before(eform:TaxTotalName,'[')"/></fo:block><fo:block><xsl:value-of select="'['"/><xsl:variable name="str1" select="substring-after(eform:TaxTotalName,'[')"/><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="$str1"/></xsl:with-param></xsl:call-template></fo:block></xsl:when><xsl:otherwise><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="eform:TaxTotalName"/></xsl:with-param></xsl:call-template></xsl:otherwise></xsl:choose></xsl:if></fo:block></fo:table-cell></fo:table-row></fo:table-header></xsl:for-each></xsl:if><xsl:if test="count(eform:Types) &gt; 0"><fo:table-body><xsl:for-each select="eform:Types[eform:TaxCode='Pozemok']"><fo:table-row><xsl:if test="position() != last()"><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="left"><xsl:if test="count(eform:TaxCode) &gt; 0 and (not(number($taxCodeWidth)=$taxCodeWidth) or $taxCodeWidth &gt; 0)"><xsl:value-of select="eform:TaxCode"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="left"><xsl:if test="count(eform:SubjectOfTax) &gt; 0 and (not(number($subjectOfTaxWidth)=$subjectOfTaxWidth) or $subjectOfTaxWidth &gt; 0)"><xsl:value-of select="eform:SubjectOfTax"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Area) &gt; 0 and (not(number($areaWidth)=$areaWidth) or $areaWidth &gt; 0)"><xsl:call-template name="FormatNumber"><xsl:with-param name="price" select="normalize-space(eform:Area)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:ValueOfArea) &gt; 0 and (not(number($valueOfAreaWidth)=$valueOfAreaWidth) or $valueOfAreaWidth &gt; 0)"><xsl:call-template name="FormatNumber4Digits"><xsl:with-param name="price" select="normalize-space(eform:ValueOfArea)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-bottom-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="eform:Tariff/eform:Value and (not(number($tariffWidth)=$tariffWidth) or $tariffWidth &gt; 0)"><xsl:call-template name="FormatNumber3Digits"><xsl:with-param name="price" select="normalize-space(eform:Tariff/eform:Value)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-bottom-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="left"><xsl:if test="eform:Tariff/eform:Unit and (not(number($tariffWidth)=$tariffWidth) or $tariffWidth &gt; 0)"><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="eform:Tariff/eform:Unit"/></xsl:with-param></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Surcharge) &gt; 0 and (not(number($surchargeWidth)=$surchargeWidth) or $surchargeWidth &gt; 0)"><xsl:choose><xsl:when test="number(eform:Surcharge) = 0"><xsl:value-of select="$sk.text.dash"/></xsl:when><xsl:otherwise><xsl:call-template name="FormatNumber3Digits"><xsl:with-param name="price" select="normalize-space(eform:Surcharge)"/></xsl:call-template></xsl:otherwise></xsl:choose></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Tax) &gt; 0 and (not(number($taxWidth)=$taxWidth) or $taxWidth &gt; 0)"><xsl:call-template name="FormatNumber"><xsl:with-param name="price" select="normalize-space(eform:Tax)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell></xsl:if><xsl:if test="position() = last()"><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="left"><xsl:if test="count(eform:TaxCode) &gt; 0 and (not(number($taxCodeWidth)=$taxCodeWidth) or $taxCodeWidth &gt; 0)"><xsl:value-of select="eform:TaxCode"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="left"><xsl:if test="count(eform:SubjectOfTax) &gt; 0 and (not(number($subjectOfTaxWidth)=$subjectOfTaxWidth) or $subjectOfTaxWidth &gt; 0)"><xsl:value-of select="eform:SubjectOfTax"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Area) &gt; 0 and (not(number($areaWidth=$areaWidth)) or $areaWidth &gt; 0)"><xsl:call-template name="FormatNumber"><xsl:with-param name="price" select="normalize-space(eform:Area)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:ValueOfArea) &gt; 0 and (not(number($valueOfAreaWidth)=$valueOfAreaWidth) or $valueOfAreaWidth &gt; 0)"><xsl:call-template name="FormatNumber4Digits"><xsl:with-param name="price" select="normalize-space(eform:ValueOfArea)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-bottom-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="eform:Tariff/eform:Value and (not(number($tariffWidth)=$tariffWidth) or $tariffWidth &gt; 0)"><xsl:call-template name="FormatNumber3Digits"><xsl:with-param name="price" select="normalize-space(eform:Tariff/eform:Value)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-bottom-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="left"><xsl:if test="eform:Tariff/eform:Unit and (not(number($tariffWidth)=$tariffWidth) or $tariffWidth &gt; 0)"><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="eform:Tariff/eform:Unit"/></xsl:with-param></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Surcharge) &gt; 0 and (not(number($surchargeWidth)=$surchargeWidth) or $surchargeWidth &gt; 0)"><xsl:choose><xsl:when test="number(eform:Surcharge) = 0"><xsl:value-of select="$sk.text.dash"/></xsl:when><xsl:otherwise><xsl:call-template name="FormatNumber3Digits"><xsl:with-param name="price" select="normalize-space(eform:Surcharge)"/></xsl:call-template></xsl:otherwise></xsl:choose></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Tax) &gt; 0 and (not(number($taxWidth)=$taxWidth) or $taxWidth &gt; 0)"><xsl:call-template name="FormatNumber"><xsl:with-param name="price" select="normalize-space(eform:Tax)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-bottom-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(/eform:DecisionForLocalTaxesAndFeesFourTax/eform:Decision/eform:RealEstateDogMachines/eform:TaxForRealEstate/eform:TypesOfTax/eform:TotalAmountForLand) &gt; 0"><xsl:call-template name="FormatNumber"><xsl:with-param name="price" select="normalize-space(/eform:DecisionForLocalTaxesAndFeesFourTax/eform:Decision/eform:RealEstateDogMachines/eform:TaxForRealEstate/eform:TypesOfTax/eform:TotalAmountForLand)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell></xsl:if></fo:table-row></xsl:for-each><xsl:for-each select="eform:Types[eform:TaxCode='Stavba']"><fo:table-row><xsl:if test="position() != last()"><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="left"><xsl:if test="count(eform:TaxCode) &gt; 0 and (not(number($taxCodeWidth)=$taxCodeWidth) or $taxCodeWidth &gt; 0)"><xsl:value-of select="eform:TaxCode"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="left"><xsl:if test="count(eform:SubjectOfTax) &gt; 0 and (not(number($subjectOfTaxWidth)=$subjectOfTaxWidth) or $subjectOfTaxWidth &gt; 0)"><xsl:value-of select="eform:SubjectOfTax"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Area) &gt; 0 and (not(number($areaWidth)=$areaWidth) or $areaWidth &gt; 0)"><xsl:call-template name="FormatNumber"><xsl:with-param name="price" select="normalize-space(eform:Area)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:ValueOfArea) &gt; 0 and (not(number($valueOfAreaWidth)=$valueOfAreaWidth) or $valueOfAreaWidth &gt; 0)"><xsl:choose><xsl:when test="number(eform:ValueOfArea) = 0"><xsl:value-of select="$sk.text.dash"/></xsl:when><xsl:otherwise><xsl:call-template name="FormatNumber4Digits"><xsl:with-param name="price" select="normalize-space(eform:ValueOfArea)"/></xsl:call-template></xsl:otherwise></xsl:choose></xsl:if></fo:block></fo:table-cell><fo:table-cell border-bottom-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Tariff/eform:Value) &gt; 0 and (not(number($tariffWidth)=$tariffWidth) or $tariffWidth &gt; 0)"><xsl:choose><xsl:when test="number(eform:Tariff/eform:Value) = 0"><xsl:value-of select="$sk.text.dash"/></xsl:when><xsl:otherwise><xsl:call-template name="FormatNumber3Digits"><xsl:with-param name="price" select="normalize-space(eform:Tariff/eform:Value)"/></xsl:call-template></xsl:otherwise></xsl:choose></xsl:if></fo:block></fo:table-cell><fo:table-cell border-bottom-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="left"><xsl:if test="eform:Tariff/eform:Unit and (not(number($tariffWidth)=$tariffWidth) or $tariffWidth &gt; 0)"><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="eform:Tariff/eform:Unit"/></xsl:with-param></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Surcharge) &gt; 0 and (not(number($surchargeWidth)=$surchargeWidth) or $surchargeWidth &gt; 0)"><xsl:choose><xsl:when test="number(eform:Surcharge) = 0"><xsl:value-of select="$sk.text.dash"/></xsl:when><xsl:otherwise><xsl:call-template name="FormatNumber3Digits"><xsl:with-param name="price" select="normalize-space(eform:Surcharge)"/></xsl:call-template></xsl:otherwise></xsl:choose></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Tax) &gt; 0 and (not(number($taxWidth)=$taxWidth) or $taxWidth &gt; 0)"><xsl:call-template name="FormatNumber"><xsl:with-param name="price" select="normalize-space(eform:Tax)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell></xsl:if><xsl:if test="position() = last()"><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="left"><xsl:if test="count(eform:TaxCode) &gt; 0 and (not(number($taxCodeWidth)=$taxCodeWidth) or $taxCodeWidth &gt; 0)"><xsl:value-of select="eform:TaxCode"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="left"><xsl:if test="count(eform:SubjectOfTax) &gt; 0 and (not(number($subjectOfTaxWidth)=$subjectOfTaxWidth) or $subjectOfTaxWidth &gt; 0)"><xsl:value-of select="eform:SubjectOfTax"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Area) &gt; 0 and (not(number($areaWidth)=$areaWidth) or $areaWidth &gt; 0)"><xsl:call-template name="FormatNumber"><xsl:with-param name="price" select="normalize-space(eform:Area)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:ValueOfArea) &gt; 0 and (not(number($valueOfAreaWidth)=$valueOfAreaWidth) or $valueOfAreaWidth &gt; 0)"><xsl:choose><xsl:when test="number(eform:ValueOfArea) = 0"><xsl:value-of select="$sk.text.dash"/></xsl:when><xsl:otherwise><xsl:call-template name="FormatNumber4Digits"><xsl:with-param name="price" select="normalize-space(eform:ValueOfArea)"/></xsl:call-template></xsl:otherwise></xsl:choose></xsl:if></fo:block></fo:table-cell><fo:table-cell border-bottom-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Tariff/eform:Value) &gt; 0 and (not(number($tariffWidth)=$tariffWidth) or $tariffWidth &gt; 0)"><xsl:choose><xsl:when test="number(eform:Tariff/eform:Value) = 0"><xsl:value-of select="$sk.text.dash"/></xsl:when><xsl:otherwise><xsl:call-template name="FormatNumber3Digits"><xsl:with-param name="price" select="normalize-space(eform:Tariff/eform:Value)"/></xsl:call-template></xsl:otherwise></xsl:choose></xsl:if></fo:block></fo:table-cell><fo:table-cell border-bottom-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="left"><xsl:if test="eform:Tariff/eform:Unit and (not(number($tariffWidth)=$tariffWidth) or $tariffWidth &gt; 0)"><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="eform:Tariff/eform:Unit"/></xsl:with-param></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Surcharge) &gt; 0 and (not(number($surchargeWidth)=$surchargeWidth) or $surchargeWidth &gt; 0)"><xsl:choose><xsl:when test="number(eform:Surcharge) = 0"><xsl:value-of select="$sk.text.dash"/></xsl:when><xsl:otherwise><xsl:call-template name="FormatNumber3Digits"><xsl:with-param name="price" select="normalize-space(eform:Surcharge)"/></xsl:call-template></xsl:otherwise></xsl:choose></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Tax) &gt; 0 and (not(number($taxWidth)=$taxWidth) or $taxWidth &gt; 0)"><xsl:call-template name="FormatNumber"><xsl:with-param name="price" select="normalize-space(eform:Tax)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-bottom-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(/eform:DecisionForLocalTaxesAndFeesFourTax/eform:Decision/eform:RealEstateDogMachines/eform:TaxForRealEstate/eform:TypesOfTax/eform:TotalAmountForBuilding) &gt; 0"><xsl:call-template name="FormatNumber"><xsl:with-param name="price" select="normalize-space(/eform:DecisionForLocalTaxesAndFeesFourTax/eform:Decision/eform:RealEstateDogMachines/eform:TaxForRealEstate/eform:TypesOfTax/eform:TotalAmountForBuilding)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell></xsl:if></fo:table-row></xsl:for-each><xsl:for-each select="eform:Types[eform:TaxCode='Byt']"><fo:table-row><xsl:if test="position() != last()"><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="left"><xsl:if test="count(eform:TaxCode) &gt; 0 and (not(number($taxCodeWidth)=$taxCodeWidth) or $taxCodeWidth &gt; 0)"><xsl:value-of select="eform:TaxCode"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="left"><xsl:if test="count(eform:SubjectOfTax) &gt; 0 and (not(number($subjectOfTaxWidth)=$subjectOfTaxWidth) or $subjectOfTaxWidth &gt; 0)"><xsl:value-of select="eform:SubjectOfTax"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Area) &gt; 0 and (not(number($areaWidth)=$areaWidth) or $areaWidth &gt; 0)"><xsl:call-template name="FormatNumber"><xsl:with-param name="price" select="normalize-space(eform:Area)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:ValueOfArea) &gt; 0 and (not(number($valueOfAreaWidth)=$valueOfAreaWidth) or $valueOfAreaWidth &gt; 0)"><xsl:choose><xsl:when test="number(eform:ValueOfArea) = 0"><xsl:value-of select="$sk.text.dash"/></xsl:when><xsl:otherwise><xsl:call-template name="FormatNumber4Digits"><xsl:with-param name="price" select="normalize-space(eform:ValueOfArea)"/></xsl:call-template></xsl:otherwise></xsl:choose></xsl:if></fo:block></fo:table-cell><fo:table-cell border-bottom-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="eform:Tariff/eform:Value and (not(number($tariffWidth)=$tariffWidth) or $tariffWidth &gt; 0)"><xsl:call-template name="FormatNumber3Digits"><xsl:with-param name="price" select="normalize-space(eform:Tariff/eform:Value)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-bottom-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="left"><xsl:if test="eform:Tariff/eform:Unit and (not(number($tariffWidth)=$tariffWidth) or $tariffWidth &gt; 0)"><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="eform:Tariff/eform:Unit"/></xsl:with-param></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Surcharge) &gt; 0 and (not(number($surchargeWidth)=$surchargeWidth) or $surchargeWidth &gt; 0)"><xsl:choose><xsl:when test="number(eform:Surcharge) = 0"><xsl:value-of select="$sk.text.dash"/></xsl:when><xsl:otherwise><xsl:call-template name="FormatNumber3Digits"><xsl:with-param name="price" select="normalize-space(eform:Surcharge)"/></xsl:call-template></xsl:otherwise></xsl:choose></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Tax) &gt; 0 and (not(number($taxWidth)=$taxWidth) or $taxWidth &gt; 0)"><xsl:call-template name="FormatNumber"><xsl:with-param name="price" select="normalize-space(eform:Tax)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell></xsl:if><xsl:if test="position() = last()"><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="left"><xsl:if test="count(eform:TaxCode) &gt; 0 and (not(number($taxCodeWidth)=$taxCodeWidth) or $taxCodeWidth &gt; 0)"><xsl:value-of select="eform:TaxCode"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="left"><xsl:if test="count(eform:SubjectOfTax) &gt; 0 and (not(number($subjectOfTaxWidth)=$subjectOfTaxWidth) or $subjectOfTaxWidth &gt; 0)"><xsl:value-of select="eform:SubjectOfTax"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Area) &gt; 0 and (not(number($areaWidth)=$areaWidth) or $areaWidth &gt; 0)"><xsl:call-template name="FormatNumber"><xsl:with-param name="price" select="normalize-space(eform:Area)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:ValueOfArea) &gt; 0 and (not(number($valueOfAreaWidth)=$valueOfAreaWidth) or $valueOfAreaWidth &gt; 0)"><xsl:choose><xsl:when test="number(eform:ValueOfArea) = 0"><xsl:value-of select="$sk.text.dash"/></xsl:when><xsl:otherwise><xsl:call-template name="FormatNumber4Digits"><xsl:with-param name="price" select="normalize-space(eform:ValueOfArea)"/></xsl:call-template></xsl:otherwise></xsl:choose></xsl:if></fo:block></fo:table-cell><fo:table-cell border-bottom-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="eform:Tariff/eform:Value and (not(number($tariffWidth)=$tariffWidth) or $tariffWidth &gt; 0)"><xsl:call-template name="FormatNumber3Digits"><xsl:with-param name="price" select="normalize-space(eform:Tariff/eform:Value)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-bottom-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="left"><xsl:if test="eform:Tariff/eform:Unit and (not(number($tariffWidth)=$tariffWidth) or $tariffWidth &gt; 0)"><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="eform:Tariff/eform:Unit"/></xsl:with-param></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Surcharge) &gt; 0 and (not(number($surchargeWidth)=$surchargeWidth) or $surchargeWidth &gt; 0)"><xsl:choose><xsl:when test="number(eform:Surcharge) = 0"><xsl:value-of select="$sk.text.dash"/></xsl:when><xsl:otherwise><xsl:call-template name="FormatNumber3Digits"><xsl:with-param name="price" select="normalize-space(eform:Surcharge)"/></xsl:call-template></xsl:otherwise></xsl:choose></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Tax) &gt; 0 and (not(number($taxWidth)=$taxWidth) or $taxWidth &gt; 0)"><xsl:call-template name="FormatNumber"><xsl:with-param name="price" select="normalize-space(eform:Tax)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-bottom-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(/eform:DecisionForLocalTaxesAndFeesFourTax/eform:Decision/eform:RealEstateDogMachines/eform:TaxForRealEstate/eform:TypesOfTax/eform:TotalAmountForFlat) &gt; 0"><xsl:call-template name="FormatNumber"><xsl:with-param name="price" select="normalize-space(/eform:DecisionForLocalTaxesAndFeesFourTax/eform:Decision/eform:RealEstateDogMachines/eform:TaxForRealEstate/eform:TypesOfTax/eform:TotalAmountForFlat)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell></xsl:if></fo:table-row></xsl:for-each></fo:table-body></xsl:if></fo:table></xsl:if></xsl:for-each></xsl:if><xsl:if test="count(eform:PlaceOfPaymentName) + count(eform:PlaceOfPayment) + count(eform:QRCode) &gt; 0"><fo:table margin-bottom="5mm"><fo:table-column column-width="153mm"/><fo:table-column column-width="37mm"/><fo:table-body><fo:table-row><fo:table-cell><fo:block font-size="9pt"><xsl:if test="count(eform:PlaceOfPaymentName) &gt; 0"><fo:inline font-weight="bold"><xsl:value-of select="eform:PlaceOfPaymentName"/><xsl:value-of select="$sk.text.colon"/><xsl:value-of select="$sk.text.space"/></fo:inline></xsl:if><xsl:if test="count(eform:PlaceOfPayment) &gt; 0"><xsl:value-of select="eform:PlaceOfPayment"/></xsl:if></fo:block></fo:table-cell><fo:table-cell><fo:block font-size="9pt"><xsl:if test="eform:QRCode != ''"><fo:external-graphic content-height="scale-to-fit" content-width="36mm"><xsl:attribute name="src"><xsl:value-of select="concat('data:image/png;base64,', eform:QRCode)"/></xsl:attribute></fo:external-graphic></xsl:if></fo:block></fo:table-cell></fo:table-row></fo:table-body></fo:table></xsl:if></xsl:for-each></xsl:if><xsl:if test="count(eform:TaxForDog) &gt; 0"><xsl:for-each select="eform:TaxForDog"><fo:block-container page-break-inside="avoid"><xsl:if test="count(eform:Name) + count(eform:NameTotalAmount) + count(eform:TotalAmount) &gt; 0"><fo:table margin-bottom="0.5mm"><fo:table-column column-width="83mm"/><fo:table-column column-width="35mm"/><fo:table-column column-width="35mm"/><fo:table-body><fo:table-row><fo:table-cell><xsl:if test="count(eform:Name) &gt; 0"><fo:block font-size="10pt" font-weight="bold"><xsl:value-of select="eform:Name"/></fo:block></xsl:if></fo:table-cell><fo:table-cell><xsl:if test="count(eform:NameTotalAmount) &gt; 0"><fo:block font-size="9pt" font-weight="bold" margin-right="1mm" text-align="right"><xsl:value-of select="eform:NameTotalAmount"/><xsl:value-of select="$sk.text.colon"/></fo:block></xsl:if></fo:table-cell><fo:table-cell><xsl:if test="count(eform:TotalAmount) &gt; 0"><fo:block font-size="9pt" font-weight="bold" text-align="left"><xsl:call-template name="FormatPrice"><xsl:with-param name="price" select="normalize-space(eform:TotalAmount)"/><xsl:with-param name="currency"><xsl:value-of select="$sk.text.eur"/></xsl:with-param></xsl:call-template></fo:block></xsl:if></fo:table-cell></fo:table-row></fo:table-body></fo:table></xsl:if><xsl:if test="count(eform:TypesNames) + count(eform:Types) + count(eform:QRCode) + count(eform:PlaceOfPaymentName) + count(eform:PlaceOfPayment) &gt; 0"><fo:table margin-bottom="5mm"><fo:table-column column-width="153mm"/><fo:table-column column-width="37mm"/><fo:table-body><fo:table-row><fo:table-cell><fo:block><xsl:if test="count(eform:TypesNames) + count(eform:Types) &gt; 0"><fo:table margin-bottom="0.5mm"><fo:table-column column-width="48mm"/><fo:table-column column-width="50mm"/><fo:table-column column-width="50mm"/><xsl:if test="count(eform:TypesNames) &gt; 0"><xsl:for-each select="eform:TypesNames"><fo:table-header><fo:table-row><fo:table-cell border-style="solid"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:CountName) &gt; 0"><xsl:value-of select="eform:CountName"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:TariffName) &gt; 0"><xsl:value-of select="eform:TariffName"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:AmountName) &gt; 0"><xsl:value-of select="eform:AmountName"/></xsl:if></fo:block></fo:table-cell></fo:table-row></fo:table-header></xsl:for-each></xsl:if><xsl:if test="count(eform:Types) &gt; 0"><fo:table-body><xsl:for-each select="eform:Types"><fo:table-row><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Count) &gt; 0"><xsl:value-of select="eform:Count"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Tariff) &gt; 0"><xsl:call-template name="FormatNumber"><xsl:with-param name="price" select="normalize-space(eform:Tariff)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Amount) &gt; 0"><xsl:call-template name="FormatNumber"><xsl:with-param name="price" select="normalize-space(eform:Amount)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell></fo:table-row></xsl:for-each></fo:table-body></xsl:if></fo:table></xsl:if><xsl:if test="count(eform:PlaceOfPaymentName) + count(eform:PlaceOfPayment) &gt; 0"><fo:block font-size="9pt" margin-bottom="4mm" margin-top="5mm"><xsl:if test="count(eform:PlaceOfPaymentName) &gt; 0"><fo:inline font-weight="bold"><xsl:value-of select="eform:PlaceOfPaymentName"/><xsl:value-of select="$sk.text.colon"/><xsl:value-of select="$sk.text.space"/></fo:inline></xsl:if><xsl:if test="count(eform:PlaceOfPayment) &gt; 0"><xsl:value-of select="eform:PlaceOfPayment"/></xsl:if></fo:block></xsl:if></fo:block></fo:table-cell><fo:table-cell><fo:block><xsl:if test="eform:QRCode != ''"><fo:external-graphic content-height="scale-to-fit" content-width="36mm"><xsl:attribute name="src"><xsl:value-of select="concat('data:image/png;base64,', eform:QRCode)"/></xsl:attribute></fo:external-graphic></xsl:if></fo:block></fo:table-cell></fo:table-row></fo:table-body></fo:table></xsl:if></fo:block-container></xsl:for-each></xsl:if><xsl:if test="count(eform:TaxForNonWinningMachines) &gt; 0"><xsl:for-each select="eform:TaxForNonWinningMachines"><fo:block-container page-break-inside="avoid"><xsl:if test="count(eform:Name) + count(eform:NameTotalAmount) + count(eform:TotalAmount) &gt; 0"><fo:table margin-bottom="0.5mm"><fo:table-column column-width="83mm"/><fo:table-column column-width="35mm"/><fo:table-column column-width="35mm"/><fo:table-body><fo:table-row><fo:table-cell><xsl:if test="count(eform:Name) &gt; 0"><fo:block font-size="10pt" font-weight="bold"><xsl:value-of select="eform:Name"/></fo:block></xsl:if></fo:table-cell><fo:table-cell><xsl:if test="count(eform:NameTotalAmount) &gt; 0"><fo:block font-size="9pt" font-weight="bold" margin-right="1mm" text-align="right"><xsl:value-of select="eform:NameTotalAmount"/><xsl:value-of select="$sk.text.colon"/></fo:block></xsl:if></fo:table-cell><fo:table-cell><xsl:if test="count(eform:TotalAmount) &gt; 0"><fo:block font-size="9pt" font-weight="bold" text-align="left"><xsl:call-template name="FormatPrice"><xsl:with-param name="price" select="normalize-space(eform:TotalAmount)"/><xsl:with-param name="currency"><xsl:value-of select="$sk.text.eur"/></xsl:with-param></xsl:call-template></fo:block></xsl:if></fo:table-cell></fo:table-row></fo:table-body></fo:table></xsl:if><xsl:if test="count(eform:TypesNames) + count(eform:Types) + count(eform:QRCode) + count(eform:PlaceOfPaymentName) + count(eform:PlaceOfPayment) &gt; 0"><fo:table margin-bottom="5mm"><fo:table-column column-width="153mm"/><fo:table-column column-width="37mm"/><fo:table-body><fo:table-row><fo:table-cell><fo:block><xsl:if test="count(eform:TypesNames) + count(eform:Types) &gt; 0"><fo:table margin-bottom="0.5mm"><fo:table-column column-width="48mm"/><fo:table-column column-width="50mm"/><fo:table-column column-width="50mm"/><xsl:if test="count(eform:TypesNames) &gt; 0"><xsl:for-each select="eform:TypesNames"><fo:table-header><fo:table-row><fo:table-cell border-style="solid"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:CountName) &gt; 0"><xsl:value-of select="eform:CountName"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:TariffName) &gt; 0"><xsl:value-of select="eform:TariffName"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:AmountName) &gt; 0"><xsl:value-of select="eform:AmountName"/></xsl:if></fo:block></fo:table-cell></fo:table-row></fo:table-header></xsl:for-each></xsl:if><xsl:if test="count(eform:Types) &gt; 0"><fo:table-body><xsl:for-each select="eform:Types"><fo:table-row><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Count) &gt; 0"><xsl:value-of select="eform:Count"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Tariff) &gt; 0"><xsl:call-template name="FormatNumber"><xsl:with-param name="price" select="normalize-space(eform:Tariff)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Amount) &gt; 0"><xsl:call-template name="FormatNumber"><xsl:with-param name="price" select="normalize-space(eform:Amount)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell></fo:table-row></xsl:for-each></fo:table-body></xsl:if></fo:table></xsl:if><xsl:if test="count(eform:PlaceOfPaymentName) + count(eform:PlaceOfPayment) &gt; 0"><fo:block font-size="9pt" margin-bottom="4mm" margin-top="5mm"><xsl:if test="count(eform:PlaceOfPaymentName) &gt; 0"><fo:inline font-weight="bold"><xsl:value-of select="eform:PlaceOfPaymentName"/><xsl:value-of select="$sk.text.colon"/><xsl:value-of select="$sk.text.space"/></fo:inline></xsl:if><xsl:if test="count(eform:PlaceOfPayment) &gt; 0"><xsl:value-of select="eform:PlaceOfPayment"/></xsl:if></fo:block></xsl:if></fo:block></fo:table-cell><fo:table-cell><fo:block><xsl:if test="eform:QRCode != ''"><fo:external-graphic content-height="scale-to-fit" content-width="36mm"><xsl:attribute name="src"><xsl:value-of select="concat('data:image/png;base64,', eform:QRCode)"/></xsl:attribute></fo:external-graphic></xsl:if></fo:block></fo:table-cell></fo:table-row></fo:table-body></fo:table></xsl:if></fo:block-container></xsl:for-each></xsl:if><xsl:if test="count(eform:TaxForVendingMachines) &gt; 0"><xsl:for-each select="eform:TaxForVendingMachines"><fo:block-container page-break-inside="avoid"><xsl:if test="count(eform:Name) + count(eform:NameTotalAmount) + count(eform:TotalAmount) &gt; 0"><fo:table margin-bottom="0.5mm"><fo:table-column column-width="83mm"/><fo:table-column column-width="35mm"/><fo:table-column column-width="35mm"/><fo:table-body><fo:table-row><fo:table-cell><xsl:if test="count(eform:Name) &gt; 0"><fo:block font-size="10pt" font-weight="bold"><xsl:value-of select="eform:Name"/></fo:block></xsl:if></fo:table-cell><fo:table-cell><xsl:if test="count(eform:NameTotalAmount) &gt; 0"><fo:block font-size="9pt" font-weight="bold" margin-right="1mm" text-align="right"><xsl:value-of select="eform:NameTotalAmount"/><xsl:value-of select="$sk.text.colon"/></fo:block></xsl:if></fo:table-cell><fo:table-cell><xsl:if test="count(eform:TotalAmount) &gt; 0"><fo:block font-size="9pt" font-weight="bold" text-align="left"><xsl:call-template name="FormatPrice"><xsl:with-param name="price" select="normalize-space(eform:TotalAmount)"/><xsl:with-param name="currency"><xsl:value-of select="$sk.text.eur"/></xsl:with-param></xsl:call-template></fo:block></xsl:if></fo:table-cell></fo:table-row></fo:table-body></fo:table></xsl:if><xsl:if test="count(eform:TypesNames) + count(eform:Types) + count(eform:QRCode) + count(eform:PlaceOfPaymentName) + count(eform:PlaceOfPayment) &gt; 0"><fo:table margin-bottom="5mm"><fo:table-column column-width="153mm"/><fo:table-column column-width="37mm"/><fo:table-body><fo:table-row><fo:table-cell><fo:block><xsl:if test="count(eform:TypesNames) + count(eform:Types) &gt; 0"><fo:table margin-bottom="0.5mm"><fo:table-column column-width="48mm"/><fo:table-column column-width="50mm"/><fo:table-column column-width="50mm"/><xsl:if test="count(eform:TypesNames) &gt; 0"><xsl:for-each select="eform:TypesNames"><fo:table-header><fo:table-row><fo:table-cell border-style="solid"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:CountName) &gt; 0"><xsl:value-of select="eform:CountName"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:TariffName) &gt; 0"><xsl:value-of select="eform:TariffName"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:AmountName) &gt; 0"><xsl:value-of select="eform:AmountName"/></xsl:if></fo:block></fo:table-cell></fo:table-row></fo:table-header></xsl:for-each></xsl:if><xsl:if test="count(eform:Types) &gt; 0"><fo:table-body><xsl:for-each select="eform:Types"><fo:table-row><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Count) &gt; 0"><xsl:value-of select="eform:Count"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Tariff) &gt; 0"><xsl:call-template name="FormatNumber"><xsl:with-param name="price" select="normalize-space(eform:Tariff)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Amount) &gt; 0"><xsl:call-template name="FormatNumber"><xsl:with-param name="price" select="normalize-space(eform:Amount)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell></fo:table-row></xsl:for-each></fo:table-body></xsl:if></fo:table></xsl:if><xsl:if test="count(eform:PlaceOfPaymentName) + count(eform:PlaceOfPayment) &gt; 0"><fo:block font-size="9pt" margin-bottom="4mm" margin-top="5mm"><xsl:if test="count(eform:PlaceOfPaymentName) &gt; 0"><fo:inline font-weight="bold"><xsl:value-of select="eform:PlaceOfPaymentName"/><xsl:value-of select="$sk.text.colon"/><xsl:value-of select="$sk.text.space"/></fo:inline></xsl:if><xsl:if test="count(eform:PlaceOfPayment) &gt; 0"><xsl:value-of select="eform:PlaceOfPayment"/></xsl:if></fo:block></xsl:if></fo:block></fo:table-cell><fo:table-cell><fo:block><xsl:if test="eform:QRCode != ''"><fo:external-graphic content-height="scale-to-fit" content-width="36mm"><xsl:attribute name="src"><xsl:value-of select="concat('data:image/png;base64,', eform:QRCode)"/></xsl:attribute></fo:external-graphic></xsl:if></fo:block></fo:table-cell></fo:table-row></fo:table-body></fo:table></xsl:if></fo:block-container></xsl:for-each></xsl:if><xsl:if test="count(eform:InstallmentStatement) &gt; 0"><fo:block margin-bottom="2mm" text-align="justify" white-space-collapse="false"><xsl:value-of select="eform:InstallmentStatement"/></fo:block></xsl:if><xsl:if test="count(eform:TaxForRealEstate) &gt; 0"><xsl:for-each select="eform:TaxForRealEstate"><xsl:if test="count(eform:Name) &gt; 0"><fo:block border-bottom-style="solid" border-width="0.2mm" font-size="10pt" font-weight="bold" margin-bottom="1mm"><xsl:value-of select="eform:Name"/></fo:block></xsl:if><xsl:if test="count(eform:Instalment) &gt; 0"><fo:table margin-bottom="5mm"><fo:table-column column-width="60mm"/><fo:table-column column-width="75mm"/><fo:table-column column-width="55mm"/><fo:table-body><xsl:for-each select="eform:Instalment"><fo:table-row><fo:table-cell><fo:block><xsl:if test="count(eform:Number) &gt; 0"><xsl:value-of select="eform:Number"/><xsl:value-of select="$sk.text.dot"/><xsl:value-of select="$sk.text.space"/></xsl:if><xsl:if test="count(eform:Name) &gt; 0"><xsl:value-of select="eform:Name"/></xsl:if></fo:block></fo:table-cell><fo:table-cell><fo:block><xsl:if test="count(eform:DueDate) &gt; 0"><xsl:value-of select="eform:DueDate"/></xsl:if></fo:block></fo:table-cell><fo:table-cell><fo:block margin-right="1mm" text-align="right"><xsl:if test="count(eform:Amount) &gt; 0"><xsl:call-template name="FormatPrice"><xsl:with-param name="price" select="normalize-space(eform:Amount)"/><xsl:with-param name="currency"><xsl:value-of select="$sk.text.eur"/></xsl:with-param></xsl:call-template></xsl:if></fo:block></fo:table-cell></fo:table-row></xsl:for-each></fo:table-body></fo:table></xsl:if></xsl:for-each></xsl:if><xsl:if test="count(eform:TaxForDog) &gt; 0"><xsl:for-each select="eform:TaxForDog"><xsl:if test="count(eform:Name) &gt; 0"><fo:block border-bottom-style="solid" border-width="0.2mm" font-size="10pt" font-weight="bold" margin-bottom="1mm"><xsl:value-of select="eform:Name"/></fo:block></xsl:if><xsl:if test="count(eform:Instalment) &gt; 0"><fo:table margin-bottom="5mm"><fo:table-column column-width="60mm"/><fo:table-column column-width="75mm"/><fo:table-column column-width="55mm"/><fo:table-body><xsl:for-each select="eform:Instalment"><fo:table-row><fo:table-cell><fo:block><xsl:if test="count(eform:Number) &gt; 0"><xsl:value-of select="eform:Number"/><xsl:value-of select="$sk.text.dot"/><xsl:value-of select="$sk.text.space"/></xsl:if><xsl:if test="count(eform:Name) &gt; 0"><xsl:value-of select="eform:Name"/></xsl:if></fo:block></fo:table-cell><fo:table-cell><fo:block><xsl:if test="count(eform:DueDate) &gt; 0"><xsl:value-of select="eform:DueDate"/></xsl:if></fo:block></fo:table-cell><fo:table-cell><fo:block margin-right="1mm" text-align="right"><xsl:if test="count(eform:Amount) &gt; 0"><xsl:call-template name="FormatPrice"><xsl:with-param name="price" select="normalize-space(eform:Amount)"/><xsl:with-param name="currency"><xsl:value-of select="$sk.text.eur"/></xsl:with-param></xsl:call-template></xsl:if></fo:block></fo:table-cell></fo:table-row></xsl:for-each></fo:table-body></fo:table></xsl:if></xsl:for-each></xsl:if><xsl:if test="count(eform:TaxForNonWinningMachines) &gt; 0"><xsl:for-each select="eform:TaxForNonWinningMachines"><xsl:if test="count(eform:Name) &gt; 0"><fo:block border-bottom-style="solid" border-width="0.2mm" font-size="10pt" font-weight="bold" margin-bottom="1mm"><xsl:value-of select="eform:Name"/></fo:block></xsl:if><xsl:if test="count(eform:Instalment) &gt; 0"><fo:table margin-bottom="5mm"><fo:table-column column-width="60mm"/><fo:table-column column-width="75mm"/><fo:table-column column-width="55mm"/><fo:table-body><xsl:for-each select="eform:Instalment"><fo:table-row><fo:table-cell><fo:block><xsl:if test="count(eform:Number) &gt; 0"><xsl:value-of select="eform:Number"/><xsl:value-of select="$sk.text.dot"/><xsl:value-of select="$sk.text.space"/></xsl:if><xsl:if test="count(eform:Name) &gt; 0"><xsl:value-of select="eform:Name"/></xsl:if></fo:block></fo:table-cell><fo:table-cell><fo:block><xsl:if test="count(eform:DueDate) &gt; 0"><xsl:value-of select="eform:DueDate"/></xsl:if></fo:block></fo:table-cell><fo:table-cell><fo:block margin-right="1mm" text-align="right"><xsl:if test="count(eform:Amount) &gt; 0"><xsl:call-template name="FormatPrice"><xsl:with-param name="price" select="normalize-space(eform:Amount)"/><xsl:with-param name="currency"><xsl:value-of select="$sk.text.eur"/></xsl:with-param></xsl:call-template></xsl:if></fo:block></fo:table-cell></fo:table-row></xsl:for-each></fo:table-body></fo:table></xsl:if></xsl:for-each></xsl:if><xsl:if test="count(eform:TaxForVendingMachines) &gt; 0"><xsl:for-each select="eform:TaxForVendingMachines"><xsl:if test="count(eform:Name) &gt; 0"><fo:block border-bottom-style="solid" border-width="0.2mm" font-size="10pt" font-weight="bold" margin-bottom="1mm"><xsl:value-of select="eform:Name"/></fo:block></xsl:if><xsl:if test="count(eform:Instalment) &gt; 0"><fo:table margin-bottom="5mm"><fo:table-column column-width="60mm"/><fo:table-column column-width="75mm"/><fo:table-column column-width="55mm"/><fo:table-body><xsl:for-each select="eform:Instalment"><fo:table-row><fo:table-cell><fo:block><xsl:if test="count(eform:Number) &gt; 0"><xsl:value-of select="eform:Number"/><xsl:value-of select="$sk.text.dot"/><xsl:value-of select="$sk.text.space"/></xsl:if><xsl:if test="count(eform:Name) &gt; 0"><xsl:value-of select="eform:Name"/></xsl:if></fo:block></fo:table-cell><fo:table-cell><fo:block><xsl:if test="count(eform:DueDate) &gt; 0"><xsl:value-of select="eform:DueDate"/></xsl:if></fo:block></fo:table-cell><fo:table-cell><fo:block margin-right="1mm" text-align="right"><xsl:if test="count(eform:Amount) &gt; 0"><xsl:call-template name="FormatPrice"><xsl:with-param name="price" select="normalize-space(eform:Amount)"/><xsl:with-param name="currency"><xsl:value-of select="$sk.text.eur"/></xsl:with-param></xsl:call-template></xsl:if></fo:block></fo:table-cell></fo:table-row></xsl:for-each></fo:table-body></fo:table></xsl:if></xsl:for-each></xsl:if><xsl:if test="count(eform:TaxForRealEstate) &gt; 0"><xsl:for-each select="eform:TaxForRealEstate"><xsl:if test="count(eform:PaymentDue) &gt; 0"><fo:block margin-bottom="2mm" text-align="justify" white-space-collapse="false"><xsl:for-each select="eform:PaymentDue"><xsl:apply-templates/></xsl:for-each></fo:block></xsl:if></xsl:for-each></xsl:if><xsl:if test="count(eform:TaxForDog) &gt; 0"><xsl:for-each select="eform:TaxForDog"><xsl:if test="count(eform:PaymentDue) &gt; 0"><fo:block margin-bottom="2mm" text-align="justify" white-space-collapse="false"><xsl:for-each select="eform:PaymentDue"><xsl:apply-templates/></xsl:for-each></fo:block></xsl:if></xsl:for-each></xsl:if><xsl:if test="count(eform:TaxForNonWinningMachines) &gt; 0"><xsl:for-each select="eform:TaxForNonWinningMachines"><xsl:if test="count(eform:PaymentDue) &gt; 0"><fo:block margin-bottom="2mm" text-align="justify" white-space-collapse="false"><xsl:for-each select="eform:PaymentDue"><xsl:apply-templates/></xsl:for-each></fo:block></xsl:if></xsl:for-each></xsl:if><xsl:if test="count(eform:TaxForVendingMachines) &gt; 0"><xsl:for-each select="eform:TaxForVendingMachines"><xsl:if test="count(eform:PaymentDue) &gt; 0"><fo:block margin-bottom="2mm" text-align="justify" white-space-collapse="false"><xsl:for-each select="eform:PaymentDue"><xsl:apply-templates/></xsl:for-each></fo:block></xsl:if></xsl:for-each></xsl:if><xsl:if test="count(eform:MethodOfPayment) &gt; 0"><fo:block margin-bottom="2mm" text-align="justify" white-space-collapse="false"><xsl:value-of select="eform:MethodOfPayment"/></fo:block></xsl:if></xsl:for-each></xsl:if><xsl:if test="count(eform:Decision/eform:Reasoning) &gt; 0"><fo:block-container page-break-inside="avoid"><xsl:for-each select="eform:Decision/eform:Reasoning"><xsl:if test="count(eform:Title) &gt; 0"><fo:block margin-top="5mm" xsl:use-attribute-sets="prop-h2"><xsl:value-of select="eform:Title"/></fo:block></xsl:if><xsl:if test="count(eform:Text) &gt; 0"><fo:block margin-bottom="2mm" text-align="justify" white-space-collapse="false"><xsl:for-each select="eform:Text"><xsl:apply-templates/></xsl:for-each></fo:block></xsl:if></xsl:for-each></fo:block-container></xsl:if><xsl:if test="count(eform:Decision/eform:RealEstateDogMachines) &gt; 0"><xsl:for-each select="eform:Decision/eform:RealEstateDogMachines"><xsl:if test="count(eform:TaxForRealEstate) &gt; 0"><xsl:for-each select="eform:TaxForRealEstate"><xsl:if test="count(eform:ReasoningText) &gt; 0"><fo:block margin-bottom="2mm" text-align="justify" white-space-collapse="false"><xsl:for-each select="eform:ReasoningText"><xsl:apply-templates/></xsl:for-each></fo:block></xsl:if></xsl:for-each></xsl:if><xsl:if test="count(eform:TaxForDog) &gt; 0"><xsl:for-each select="eform:TaxForDog"><xsl:if test="count(eform:ReasoningText) &gt; 0"><fo:block margin-bottom="2mm" text-align="justify" white-space-collapse="false"><xsl:for-each select="eform:ReasoningText"><xsl:apply-templates/></xsl:for-each></fo:block></xsl:if></xsl:for-each></xsl:if><xsl:if test="count(eform:TaxForNonWinningMachines) &gt; 0"><xsl:for-each select="eform:TaxForNonWinningMachines"><xsl:if test="count(eform:ReasoningText) &gt; 0"><fo:block margin-bottom="2mm" text-align="justify" white-space-collapse="false"><xsl:for-each select="eform:ReasoningText"><xsl:apply-templates/></xsl:for-each></fo:block></xsl:if></xsl:for-each></xsl:if><xsl:if test="count(eform:TaxForVendingMachines) &gt; 0"><xsl:for-each select="eform:TaxForVendingMachines"><xsl:if test="count(eform:ReasoningText) &gt; 0"><fo:block margin-bottom="2mm" text-align="justify" white-space-collapse="false"><xsl:for-each select="eform:ReasoningText"><xsl:apply-templates/></xsl:for-each></fo:block></xsl:if></xsl:for-each></xsl:if></xsl:for-each></xsl:if><xsl:if test="count(eform:Decision/eform:RealEstateDogMachines) &gt; 0"><xsl:for-each select="eform:Decision/eform:RealEstateDogMachines"><xsl:if test="count(eform:TaxForRealEstate) &gt; 0"><xsl:for-each select="eform:TaxForRealEstate"><xsl:if test="count(eform:ReasoningLand) &gt; 0"><xsl:for-each select="eform:ReasoningLand"><xsl:if test="count(eform:Name) &gt; 0"><fo:block font-weight="bold"><xsl:value-of select="eform:Name"/></fo:block></xsl:if><xsl:if test="count(eform:TypesNames) + count(eform:Types) &gt; 0"><fo:table margin-bottom="5mm"><xsl:variable name="kindNameWidth" select="eform:TypesNames/eform:KindName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$kindNameWidth"/><xsl:with-param name="defaultValue" select="10"/></xsl:call-template><xsl:variable name="parcelNameWidth" select="eform:TypesNames/eform:ParcelName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$parcelNameWidth"/><xsl:with-param name="defaultValue" select="20"/></xsl:call-template><xsl:variable name="ownershipCertificateNumberNameWidth" select="eform:TypesNames/eform:OwnershipCertificateNumberName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$ownershipCertificateNumberNameWidth"/><xsl:with-param name="defaultValue" select="15"/></xsl:call-template><xsl:variable name="areaNameWidth" select="eform:TypesNames/eform:AreaName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$areaNameWidth"/><xsl:with-param name="defaultValue" select="25"/></xsl:call-template><xsl:variable name="areaExemptionNameWidth" select="eform:TypesNames/eform:AreaExemptionName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$areaExemptionNameWidth"/><xsl:with-param name="defaultValue" select="30"/></xsl:call-template><xsl:variable name="rateNameWidth" select="eform:TypesNames/eform:RateName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$rateNameWidth"/><xsl:with-param name="defaultValue" select="22"/></xsl:call-template><xsl:variable name="valueNameWidth" select="eform:TypesNames/eform:ValueName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$valueNameWidth"/><xsl:with-param name="defaultValue" select="28"/></xsl:call-template><xsl:variable name="reductionNameWidth" select="eform:TypesNames/eform:ReductionName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$reductionNameWidth"/><xsl:with-param name="defaultValue" select="23"/></xsl:call-template><xsl:variable name="taxNameWidth" select="eform:TypesNames/eform:TaxName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$taxNameWidth"/><xsl:with-param name="defaultValue" select="17"/></xsl:call-template><xsl:if test="count(eform:TypesNames) &gt; 0"><xsl:for-each select="eform:TypesNames"><fo:table-header><fo:table-row><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="center"><xsl:if test="count(eform:KindName) &gt; 0 and (not(number($kindNameWidth)=$kindNameWidth) or $kindNameWidth &gt; 0)"><xsl:value-of select="eform:KindName"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="left"><xsl:if test="count(eform:ParcelName) &gt; 0 and (not(number($parcelNameWidth)=$parcelNameWidth) or $parcelNameWidth &gt; 0)"><xsl:value-of select="eform:ParcelName"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:OwnershipCertificateNumberName) &gt; 0 and (not(number($ownershipCertificateNumberNameWidth)=$ownershipCertificateNumberNameWidth) or $ownershipCertificateNumberNameWidth &gt; 0)"><xsl:value-of select="eform:OwnershipCertificateNumberName"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:AreaName) &gt; 0 and (not(number($areaNameWidth)=$areaNameWidth) or $areaNameWidth &gt; 0)"><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="eform:AreaName"/></xsl:with-param></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:AreaExemptionName) &gt; 0 and (not(number($areaExemptionNameWidth)=$areaExemptionNameWidth) or $areaExemptionNameWidth &gt; 0)"><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="eform:AreaExemptionName"/></xsl:with-param></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:RateName) &gt; 0 and (not(number($rateNameWidth)=$rateNameWidth) or $rateNameWidth &gt; 0)"><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="eform:RateName"/></xsl:with-param></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:ValueName) &gt; 0 and (not(number($valueNameWidth)=$valueNameWidth) or $valueNameWidth &gt; 0)"><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="eform:ValueName"/></xsl:with-param></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:ReductionName) &gt; 0 and (not(number($reductionNameWidth)=$reductionNameWidth) or $reductionNameWidth &gt; 0)"><xsl:value-of select="eform:ReductionName"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:TaxName) &gt; 0 and (not(number($taxNameWidth)=$taxNameWidth) or $taxNameWidth &gt; 0)"><xsl:value-of select="eform:TaxName"/></xsl:if></fo:block></fo:table-cell></fo:table-row></fo:table-header></xsl:for-each></xsl:if><xsl:if test="count(eform:Types) &gt; 0"><fo:table-body><xsl:for-each select="eform:Types"><fo:table-row><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="center"><xsl:if test="count(eform:Kind) &gt; 0 and (not(number($kindNameWidth)=$kindNameWidth) or $kindNameWidth &gt; 0)"><xsl:value-of select="eform:Kind"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="left"><xsl:if test="count(eform:Parcel) &gt; 0 and (not(number($parcelNameWidth)=$parcelNameWidth) or $parcelNameWidth &gt; 0)"><xsl:value-of select="eform:Parcel"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:OwnershipCertificateNumber) &gt; 0 and (not(number($ownershipCertificateNumberNameWidth)=$ownershipCertificateNumberNameWidth) or $ownershipCertificateNumberNameWidth &gt; 0)"><xsl:value-of select="eform:OwnershipCertificateNumber"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Area) &gt; 0 and (not(number($areaNameWidth)=$areaNameWidth) or $areaNameWidth &gt; 0)"><xsl:call-template name="FormatNumber"><xsl:with-param name="price" select="normalize-space(eform:Area)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:AreaExemption) &gt; 0 and (not(number($areaExemptionNameWidth)=$areaExemptionNameWidth) or $areaExemptionNameWidth &gt; 0)"><xsl:call-template name="FormatNumber"><xsl:with-param name="price" select="normalize-space(eform:AreaExemption)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Rate) &gt; 0 and (not(number($rateNameWidth)=$rateNameWidth) or $rateNameWidth &gt; 0)"><xsl:call-template name="FormatNumber3Digits"><xsl:with-param name="price" select="normalize-space(eform:Rate)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Value) &gt; 0 and (not(number($valueNameWidth)=$valueNameWidth) or $valueNameWidth &gt; 0)"><xsl:call-template name="FormatNumber4Digits"><xsl:with-param name="price" select="normalize-space(eform:Value)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Reduction) &gt; 0 and (not(number($reductionNameWidth)=$reductionNameWidth) or $reductionNameWidth &gt; 0)"><xsl:call-template name="FormatNumber"><xsl:with-param name="price" select="normalize-space(eform:Reduction)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Tax) &gt; 0 and (not(number($taxNameWidth)=$taxNameWidth) or $taxNameWidth &gt; 0)"><xsl:call-template name="FormatNumber3Digits"><xsl:with-param name="price" select="normalize-space(eform:Tax)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell></fo:table-row></xsl:for-each></fo:table-body></xsl:if></fo:table></xsl:if></xsl:for-each></xsl:if><xsl:if test="count(eform:ReasoningOnePurposeBuilding) &gt; 0"><xsl:for-each select="eform:ReasoningOnePurposeBuilding"><xsl:if test="count(eform:Name) &gt; 0"><fo:block font-weight="bold"><xsl:value-of select="eform:Name"/></fo:block></xsl:if><xsl:if test="count(eform:TypesNames) + count(eform:Types) &gt; 0"><fo:table margin-bottom="5mm"><xsl:variable name="kindNameWidth" select="eform:TypesNames/eform:KindName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$kindNameWidth"/><xsl:with-param name="defaultValue" select="10"/></xsl:call-template><xsl:variable name="addressNameWidth" select="eform:TypesNames/eform:AddressName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$addressNameWidth"/><xsl:with-param name="defaultValue" select="32"/></xsl:call-template><xsl:variable name="areaNameWidth" select="eform:TypesNames/eform:AreaName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$areaNameWidth"/><xsl:with-param name="defaultValue" select="18"/></xsl:call-template><xsl:variable name="areaShareNameWidth" select="eform:TypesNames/eform:AreaShareName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$areaShareNameWidth"/><xsl:with-param name="defaultValue" select="20"/></xsl:call-template><xsl:variable name="areaExemptionNameWidth" select="eform:TypesNames/eform:AreaExemptionName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$areaExemptionNameWidth"/><xsl:with-param name="defaultValue" select="20"/></xsl:call-template><xsl:variable name="floorNameWidth" select="eform:TypesNames/eform:FloorName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$floorNameWidth"/><xsl:with-param name="defaultValue" select="18"/></xsl:call-template><xsl:variable name="rateNameWidth" select="eform:TypesNames/eform:RateName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$rateNameWidth"/><xsl:with-param name="defaultValue" select="18"/></xsl:call-template><xsl:variable name="surchargeNameWidth" select="eform:TypesNames/eform:SurchargeName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$surchargeNameWidth"/><xsl:with-param name="defaultValue" select="18"/></xsl:call-template><xsl:variable name="reductionNameWidth" select="eform:TypesNames/eform:ReductionName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$reductionNameWidth"/><xsl:with-param name="defaultValue" select="18"/></xsl:call-template><xsl:variable name="taxNameWidth" select="eform:TypesNames/eform:TaxName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$taxNameWidth"/><xsl:with-param name="defaultValue" select="18"/></xsl:call-template><xsl:if test="count(eform:TypesNames) &gt; 0"><xsl:for-each select="eform:TypesNames"><fo:table-header><fo:table-row><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="center"><xsl:if test="count(eform:KindName) &gt; 0 and (not(number($kindNameWidth)=$kindNameWidth) or $kindNameWidth &gt; 0)"><xsl:choose><xsl:when test="substring-before(eform:KindName,'[')"><fo:block><xsl:value-of select="substring-before(eform:KindName,'[')"/></fo:block><fo:block><xsl:value-of select="'['"/><xsl:variable name="str1" select="substring-after(eform:KindName,'[')"/><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="$str1"/></xsl:with-param></xsl:call-template></fo:block></xsl:when><xsl:otherwise><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="eform:KindName"/></xsl:with-param></xsl:call-template></xsl:otherwise></xsl:choose></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="center"><xsl:if test="count(eform:AddressName) &gt; 0 and (not(number($addressNameWidth)=$addressNameWidth) or $addressNameWidth &gt; 0)"><xsl:choose><xsl:when test="substring-before(eform:AddressName,'[')"><fo:block><xsl:value-of select="substring-before(eform:AddressName,'[')"/></fo:block><fo:block><xsl:value-of select="'['"/><xsl:variable name="str1" select="substring-after(eform:AddressName,'[')"/><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="$str1"/></xsl:with-param></xsl:call-template></fo:block></xsl:when><xsl:otherwise><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="eform:AddressName"/></xsl:with-param></xsl:call-template></xsl:otherwise></xsl:choose></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="center"><xsl:if test="count(eform:AreaName) &gt; 0 and (not(number($areaNameWidth)=$areaNameWidth) or $areaNameWidth &gt; 0)"><xsl:choose><xsl:when test="substring-before(eform:AreaName,'[')"><fo:block><xsl:value-of select="substring-before(eform:AreaName,'[')"/></fo:block><fo:block><xsl:value-of select="'['"/><xsl:variable name="str1" select="substring-after(eform:AreaName,'[')"/><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="$str1"/></xsl:with-param></xsl:call-template></fo:block></xsl:when><xsl:otherwise><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="eform:AreaName"/></xsl:with-param></xsl:call-template></xsl:otherwise></xsl:choose></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="center"><xsl:if test="count(eform:AreaShareName) &gt; 0 and (not(number($areaShareNameWidth)=$areaShareNameWidth) or $areaShareNameWidth &gt; 0)"><xsl:choose><xsl:when test="substring-before(eform:AreaShareName,'[')"><fo:block><xsl:value-of select="substring-before(eform:AreaShareName,'[')"/></fo:block><fo:block><xsl:value-of select="'['"/><xsl:variable name="str1" select="substring-after(eform:AreaShareName,'[')"/><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="$str1"/></xsl:with-param></xsl:call-template></fo:block></xsl:when><xsl:otherwise><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="eform:AreaShareName"/></xsl:with-param></xsl:call-template></xsl:otherwise></xsl:choose></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="center"><xsl:if test="count(eform:AreaExemptionName) &gt; 0 and (not(number($areaExemptionNameWidth)=$areaExemptionNameWidth) or $areaExemptionNameWidth &gt; 0)"><xsl:choose><xsl:when test="substring-before(eform:AreaExemptionName,'[')"><fo:block><xsl:value-of select="substring-before(eform:AreaExemptionName,'[')"/></fo:block><fo:block><xsl:value-of select="'['"/><xsl:variable name="str1" select="substring-after(eform:AreaExemptionName,'[')"/><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="$str1"/></xsl:with-param></xsl:call-template></fo:block></xsl:when><xsl:otherwise><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="eform:AreaExemptionName"/></xsl:with-param></xsl:call-template></xsl:otherwise></xsl:choose></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="center"><xsl:if test="count(eform:FloorName) &gt; 0 and (not(number($floorNameWidth)=$floorNameWidth) or $floorNameWidth &gt; 0)"><xsl:choose><xsl:when test="substring-before(eform:FloorName, '[')"><fo:block><xsl:value-of select="substring-before(eform:FloorName,'[')"/></fo:block><fo:block><xsl:value-of select="'['"/><xsl:variable name="str1" select="substring-after(eform:FloorName,'[')"/><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="$str1"/></xsl:with-param></xsl:call-template></fo:block></xsl:when><xsl:otherwise><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="eform:FloorName"/></xsl:with-param></xsl:call-template></xsl:otherwise></xsl:choose></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="center"><xsl:if test="count(eform:RateName) &gt; 0 and (not(number($rateNameWidth)=$rateNameWidth) or $rateNameWidth &gt; 0)"><xsl:choose><xsl:when test="substring-before(eform:RateName, '[')"><fo:block><xsl:value-of select="substring-before(eform:RateName,'[')"/></fo:block><fo:block><xsl:value-of select="'['"/><xsl:variable name="str1" select="substring-after(eform:RateName,'[')"/><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="$str1"/></xsl:with-param></xsl:call-template></fo:block></xsl:when><xsl:otherwise><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="eform:RateName"/></xsl:with-param></xsl:call-template></xsl:otherwise></xsl:choose></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="center"><xsl:if test="count(eform:SurchargeName) &gt; 0 and (not(number($surchargeNameWidth)=$surchargeNameWidth) or $surchargeNameWidth &gt; 0)"><xsl:choose><xsl:when test="substring-before(eform:SurchargeName, '[')"><fo:block><xsl:value-of select="substring-before(eform:SurchargeName,'[')"/></fo:block><fo:block><xsl:value-of select="'['"/><xsl:variable name="str1" select="substring-after(eform:SurchargeName,'[')"/><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="$str1"/></xsl:with-param></xsl:call-template></fo:block></xsl:when><xsl:otherwise><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="eform:SurchargeName"/></xsl:with-param></xsl:call-template></xsl:otherwise></xsl:choose></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="center"><xsl:if test="count(eform:ReductionName) &gt; 0 and (not(number($reductionNameWidth)=$reductionNameWidth) or $reductionNameWidth &gt; 0)"><xsl:choose><xsl:when test="substring-before(eform:ReductionName, '[')"><fo:block><xsl:value-of select="substring-before(eform:ReductionName,'[')"/></fo:block><fo:block><xsl:value-of select="'['"/><xsl:variable name="str1" select="substring-after(eform:ReductionName,'[')"/><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="$str1"/></xsl:with-param></xsl:call-template></fo:block></xsl:when><xsl:otherwise><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="eform:ReductionName"/></xsl:with-param></xsl:call-template></xsl:otherwise></xsl:choose></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="center"><xsl:if test="count(eform:TaxName) &gt; 0 and (not(number($taxNameWidth)=$taxNameWidth) or $taxNameWidth &gt; 0)"><xsl:choose><xsl:when test="substring-before(eform:TaxName, '[')"><fo:block><xsl:value-of select="substring-before(eform:TaxName,'[')"/></fo:block><fo:block><xsl:value-of select="'['"/><xsl:variable name="str1" select="substring-after(eform:TaxName,'[')"/><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="$str1"/></xsl:with-param></xsl:call-template></fo:block></xsl:when><xsl:otherwise><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="eform:TaxName"/></xsl:with-param></xsl:call-template></xsl:otherwise></xsl:choose></xsl:if></fo:block></fo:table-cell></fo:table-row></fo:table-header></xsl:for-each></xsl:if><xsl:if test="count(eform:Types) &gt; 0"><fo:table-body><xsl:for-each select="eform:Types"><fo:table-row><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="center"><xsl:if test="count(eform:Kind) &gt; 0 and (not(number($kindNameWidth)=$kindNameWidth) or $kindNameWidth &gt; 0)"><xsl:value-of select="eform:Kind"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="left"><xsl:if test="count(eform:Address) &gt; 0 and (not(number($addressNameWidth)=$addressNameWidth) or $addressNameWidth &gt; 0)"><xsl:value-of select="eform:Address"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Area) &gt; 0 and (not(number($areaNameWidth)=$areaNameWidth) or $areaNameWidth &gt; 0)"><xsl:call-template name="FormatNumber"><xsl:with-param name="price" select="normalize-space(eform:Area)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:AreaShare) &gt; 0 and (not(number($areaShareNameWidth)=$areaShareNameWidth) or $areaShareNameWidth &gt; 0)"><xsl:call-template name="FormatNumber"><xsl:with-param name="price" select="normalize-space(eform:AreaShare)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:AreaExemption) &gt; 0 and (not(number($areaExemptionNameWidth)=$areaExemptionNameWidth) or $areaExemptionNameWidth &gt; 0)"><xsl:call-template name="FormatNumber"><xsl:with-param name="price" select="normalize-space(eform:AreaExemption)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Floor) &gt; 0 and (not(number($floorNameWidth)=$floorNameWidth) or $floorNameWidth &gt; 0)"><xsl:value-of select="eform:Floor"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Rate) &gt; 0 and (not(number($rateNameWidth)=$rateNameWidth) or $rateNameWidth &gt; 0)"><xsl:call-template name="FormatNumber3Digits"><xsl:with-param name="price" select="normalize-space(eform:Rate)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Surcharge) &gt; 0 and (not(number($surchargeNameWidth)=$surchargeNameWidth) or $surchargeNameWidth &gt; 0)"><xsl:call-template name="FormatNumber3Digits"><xsl:with-param name="price" select="normalize-space(eform:Surcharge)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Reduction) &gt; 0 and (not(number($reductionNameWidth)=$reductionNameWidth) or $reductionNameWidth &gt; 0)"><xsl:call-template name="FormatNumber"><xsl:with-param name="price" select="normalize-space(eform:Reduction)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Tax) &gt; 0 and (not(number($taxNameWidth)=$taxNameWidth) or $taxNameWidth &gt; 0)"><xsl:call-template name="FormatNumber3Digits"><xsl:with-param name="price" select="normalize-space(eform:Tax)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell></fo:table-row></xsl:for-each></fo:table-body></xsl:if></fo:table></xsl:if></xsl:for-each></xsl:if><xsl:if test="count(eform:ReasoningMultiPurposeBuilding) &gt; 0"><xsl:for-each select="eform:ReasoningMultiPurposeBuilding"><xsl:if test="count(eform:Name) &gt; 0"><fo:block font-weight="bold"><xsl:value-of select="eform:Name"/></fo:block></xsl:if><xsl:if test="count(eform:TypesNames) + count(eform:Types) &gt; 0"><fo:table margin-bottom="5mm"><xsl:variable name="kindNameWidth" select="eform:TypesNames/eform:KindName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$kindNameWidth"/><xsl:with-param name="defaultValue" select="10"/></xsl:call-template><xsl:variable name="addressNameWidth" select="eform:TypesNames/eform:AddressName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$addressNameWidth"/><xsl:with-param name="defaultValue" select="32"/></xsl:call-template><xsl:variable name="areaNameWidth" select="eform:TypesNames/eform:AreaName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$areaNameWidth"/><xsl:with-param name="defaultValue" select="18"/></xsl:call-template><xsl:variable name="areaShareNameWidth" select="eform:TypesNames/eform:AreaShareName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$areaShareNameWidth"/><xsl:with-param name="defaultValue" select="20"/></xsl:call-template><xsl:variable name="areaExemptionNameWidth" select="eform:TypesNames/eform:AreaExemptionName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$areaExemptionNameWidth"/><xsl:with-param name="defaultValue" select="20"/></xsl:call-template><xsl:variable name="floorNameWidth" select="eform:TypesNames/eform:FloorName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$floorNameWidth"/><xsl:with-param name="defaultValue" select="18"/></xsl:call-template><xsl:variable name="rateNameWidth" select="eform:TypesNames/eform:RateName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$rateNameWidth"/><xsl:with-param name="defaultValue" select="18"/></xsl:call-template><xsl:variable name="surchargeNameWidth" select="eform:TypesNames/eform:SurchargeName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$surchargeNameWidth"/><xsl:with-param name="defaultValue" select="18"/></xsl:call-template><xsl:variable name="reductionNameWidth" select="eform:TypesNames/eform:ReductionName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$reductionNameWidth"/><xsl:with-param name="defaultValue" select="18"/></xsl:call-template><xsl:variable name="taxNameWidth" select="eform:TypesNames/eform:TaxName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$taxNameWidth"/><xsl:with-param name="defaultValue" select="18"/></xsl:call-template><xsl:if test="count(eform:TypesNames) &gt; 0"><xsl:for-each select="eform:TypesNames"><fo:table-header><fo:table-row><fo:table-cell border-style="solid"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="center"><xsl:if test="count(eform:KindName) &gt; 0 and (not(number($kindNameWidth)=$kindNameWidth) or $kindNameWidth &gt; 0)"><xsl:choose><xsl:when test="substring-before(eform:KindName,'[')"><fo:block><xsl:value-of select="substring-before(eform:KindName,'[')"/></fo:block><fo:block><xsl:value-of select="'['"/><xsl:variable name="str1" select="substring-after(eform:KindName,'[')"/><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="$str1"/></xsl:with-param></xsl:call-template></fo:block></xsl:when><xsl:otherwise><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="eform:KindName"/></xsl:with-param></xsl:call-template></xsl:otherwise></xsl:choose></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="center"><xsl:if test="count(eform:AddressName) &gt; 0 and (not(number($addressNameWidth)=$addressNameWidth) or $addressNameWidth &gt; 0)"><xsl:choose><xsl:when test="substring-before(eform:AddressName,'[')"><fo:block><xsl:value-of select="substring-before(eform:AddressName,'[')"/></fo:block><fo:block><xsl:value-of select="'['"/><xsl:variable name="str1" select="substring-after(eform:AddressName,'[')"/><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="$str1"/></xsl:with-param></xsl:call-template></fo:block></xsl:when><xsl:otherwise><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="eform:AddressName"/></xsl:with-param></xsl:call-template></xsl:otherwise></xsl:choose></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="center"><xsl:if test="count(eform:AreaName) &gt; 0 and (not(number($areaNameWidth)=$areaNameWidth) or $areaNameWidth &gt; 0)"><xsl:choose><xsl:when test="substring-before(eform:AreaName,'[')"><fo:block><xsl:value-of select="substring-before(eform:AreaName,'[')"/></fo:block><fo:block><xsl:value-of select="'['"/><xsl:variable name="str1" select="substring-after(eform:AreaName,'[')"/><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="$str1"/></xsl:with-param></xsl:call-template></fo:block></xsl:when><xsl:otherwise><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="eform:AreaName"/></xsl:with-param></xsl:call-template></xsl:otherwise></xsl:choose></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="center"><xsl:if test="count(eform:AreaShareName) &gt; 0 and (not(number($areaShareNameWidth)=$areaShareNameWidth) or $areaShareNameWidth &gt; 0)"><xsl:choose><xsl:when test="substring-before(eform:AreaShareName,'[')"><fo:block><xsl:value-of select="substring-before(eform:AreaShareName,'[')"/></fo:block><fo:block><xsl:value-of select="'['"/><xsl:variable name="str1" select="substring-after(eform:AreaShareName,'[')"/><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="$str1"/></xsl:with-param></xsl:call-template></fo:block></xsl:when><xsl:otherwise><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="eform:AreaShareName"/></xsl:with-param></xsl:call-template></xsl:otherwise></xsl:choose></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="center"><xsl:if test="count(eform:AreaExemptionName) &gt; 0 and (not(number($areaExemptionNameWidth)=$areaExemptionNameWidth) or $areaExemptionNameWidth &gt; 0)"><xsl:choose><xsl:when test="substring-before(eform:AreaExemptionName,'[')"><fo:block><xsl:value-of select="substring-before(eform:AreaExemptionName,'[')"/></fo:block><fo:block><xsl:value-of select="'['"/><xsl:variable name="str1" select="substring-after(eform:AreaExemptionName,'[')"/><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="$str1"/></xsl:with-param></xsl:call-template></fo:block></xsl:when><xsl:otherwise><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="eform:AreaExemptionName"/></xsl:with-param></xsl:call-template></xsl:otherwise></xsl:choose></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="center"><xsl:if test="count(eform:FloorName) &gt; 0 and (not(number($floorNameWidth)=$floorNameWidth) or $floorNameWidth &gt; 0)"><xsl:choose><xsl:when test="substring-before(eform:FloorName, '[')"><fo:block><xsl:value-of select="substring-before(eform:FloorName,'[')"/></fo:block><fo:block><xsl:value-of select="'['"/><xsl:variable name="str1" select="substring-after(eform:FloorName,'[')"/><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="$str1"/></xsl:with-param></xsl:call-template></fo:block></xsl:when><xsl:otherwise><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="eform:FloorName"/></xsl:with-param></xsl:call-template></xsl:otherwise></xsl:choose></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="center"><xsl:if test="count(eform:RateName) &gt; 0 and (not(number($rateNameWidth)=$rateNameWidth) or $rateNameWidth &gt; 0)"><xsl:choose><xsl:when test="substring-before(eform:RateName, '[')"><fo:block><xsl:value-of select="substring-before(eform:RateName,'[')"/></fo:block><fo:block><xsl:value-of select="'['"/><xsl:variable name="str1" select="substring-after(eform:RateName,'[')"/><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="$str1"/></xsl:with-param></xsl:call-template></fo:block></xsl:when><xsl:otherwise><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="eform:RateName"/></xsl:with-param></xsl:call-template></xsl:otherwise></xsl:choose></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="center"><xsl:if test="count(eform:SurchargeName) &gt; 0 and (not(number($surchargeNameWidth)=$surchargeNameWidth) or $surchargeNameWidth &gt; 0)"><xsl:choose><xsl:when test="substring-before(eform:SurchargeName, '[')"><fo:block><xsl:value-of select="substring-before(eform:SurchargeName,'[')"/></fo:block><fo:block><xsl:value-of select="'['"/><xsl:variable name="str1" select="substring-after(eform:SurchargeName,'[')"/><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="$str1"/></xsl:with-param></xsl:call-template></fo:block></xsl:when><xsl:otherwise><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="eform:SurchargeName"/></xsl:with-param></xsl:call-template></xsl:otherwise></xsl:choose></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="center"><xsl:if test="count(eform:ReductionName) &gt; 0 and (not(number($reductionNameWidth)=$reductionNameWidth) or $reductionNameWidth &gt; 0)"><xsl:choose><xsl:when test="substring-before(eform:ReductionName, '[')"><fo:block><xsl:value-of select="substring-before(eform:ReductionName,'[')"/></fo:block><fo:block><xsl:value-of select="'['"/><xsl:variable name="str1" select="substring-after(eform:ReductionName,'[')"/><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="$str1"/></xsl:with-param></xsl:call-template></fo:block></xsl:when><xsl:otherwise><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="eform:ReductionName"/></xsl:with-param></xsl:call-template></xsl:otherwise></xsl:choose></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="center"><xsl:if test="count(eform:TaxName) &gt; 0 and (not(number($taxNameWidth)=$taxNameWidth) or $taxNameWidth &gt; 0)"><xsl:choose><xsl:when test="substring-before(eform:TaxName, '[')"><fo:block><xsl:value-of select="substring-before(eform:TaxName,'[')"/></fo:block><fo:block><xsl:value-of select="'['"/><xsl:variable name="str1" select="substring-after(eform:TaxName,'[')"/><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="$str1"/></xsl:with-param></xsl:call-template></fo:block></xsl:when><xsl:otherwise><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="eform:TaxName"/></xsl:with-param></xsl:call-template></xsl:otherwise></xsl:choose></xsl:if></fo:block></fo:table-cell></fo:table-row></fo:table-header></xsl:for-each></xsl:if><xsl:if test="count(eform:Types) &gt; 0"><fo:table-body><xsl:for-each select="eform:Types"><fo:table-row><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="center"><xsl:if test="count(eform:Kind) &gt; 0 and (not(number($kindNameWidth)=$kindNameWidth) or $kindNameWidth &gt; 0)"><xsl:value-of select="eform:Kind"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="left"><xsl:if test="count(eform:Address) &gt; 0 and (not(number($addressNameWidth)=$addressNameWidth) or $addressNameWidth &gt; 0)"><xsl:value-of select="eform:Address"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Area) &gt; 0 and (not(number($areaNameWidth)=$areaNameWidth) or $areaNameWidth &gt; 0)"><xsl:call-template name="FormatNumber"><xsl:with-param name="price" select="normalize-space(eform:Area)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:AreaShare) &gt; 0 and (not(number($areaShareNameWidth)=$areaShareNameWidth) or $areaShareNameWidth &gt; 0)"><xsl:call-template name="FormatNumber"><xsl:with-param name="price" select="normalize-space(eform:AreaShare)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:AreaExemption) &gt; 0 and (not(number($areaExemptionNameWidth)=$areaExemptionNameWidth) or $areaExemptionNameWidth &gt; 0)"><xsl:call-template name="FormatNumber"><xsl:with-param name="price" select="normalize-space(eform:AreaExemption)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Floor) &gt; 0 and (not(number($floorNameWidth)=$floorNameWidth) or $floorNameWidth &gt; 0)"><xsl:value-of select="eform:Floor"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Rate) &gt; 0 and (not(number($rateNameWidth)=$rateNameWidth) or $rateNameWidth &gt; 0)"><xsl:call-template name="FormatNumber3Digits"><xsl:with-param name="price" select="normalize-space(eform:Rate)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Surcharge) &gt; 0 and (not(number($surchargeNameWidth)=$surchargeNameWidth) or $surchargeNameWidth &gt; 0)"><xsl:call-template name="FormatNumber3Digits"><xsl:with-param name="price" select="normalize-space(eform:Surcharge)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Reduction) &gt; 0 and (not(number($reductionNameWidth)=$reductionNameWidth) or $reductionNameWidth &gt; 0)"><xsl:call-template name="FormatNumber"><xsl:with-param name="price" select="normalize-space(eform:Reduction)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Tax) &gt; 0 and (not(number($taxNameWidth)=$taxNameWidth) or $taxNameWidth &gt; 0)"><xsl:call-template name="FormatNumber3Digits"><xsl:with-param name="price" select="normalize-space(eform:Tax)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell></fo:table-row></xsl:for-each></fo:table-body></xsl:if></fo:table></xsl:if><xsl:if test="count(eform:TypesDetail) &gt; 0"><fo:table margin-bottom="5mm"><fo:table-column column-width="28mm"/><fo:table-column column-width="18mm"/><fo:table-column column-width="18mm"/><fo:table-column column-width="18mm"/><fo:table-column column-width="18mm"/><fo:table-column column-width="18mm"/><fo:table-column column-width="18mm"/><fo:table-column column-width="18mm"/><fo:table-column column-width="18mm"/><fo:table-column column-width="18mm"/><xsl:if test="count(eform:TypesDetail/eform:Purpose) &gt; 0"><xsl:for-each select="eform:TypesDetail/eform:Purpose"><fo:table-body><fo:table-row><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:Name) &gt; 0"><xsl:value-of select="eform:Name"/><xsl:value-of select="$sk.text.colon"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="center"><xsl:if test="count(eform:C1) &gt; 0"><xsl:value-of select="eform:C1"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="center"><xsl:if test="count(eform:C2) &gt; 0"><xsl:value-of select="eform:C2"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="center"><xsl:if test="count(eform:C3) &gt; 0"><xsl:value-of select="eform:C3"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="center"><xsl:if test="count(eform:C4) &gt; 0"><xsl:value-of select="eform:C4"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="center"><xsl:if test="count(eform:C5) &gt; 0"><xsl:value-of select="eform:C5"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="center"><xsl:if test="count(eform:C6) &gt; 0"><xsl:value-of select="eform:C6"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="center"><xsl:if test="count(eform:C7) &gt; 0"><xsl:value-of select="eform:C7"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="center"><xsl:if test="count(eform:C8) &gt; 0"><xsl:value-of select="eform:C8"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="center"><xsl:if test="count(eform:C9) &gt; 0"><xsl:value-of select="eform:C9"/></xsl:if></fo:block></fo:table-cell></fo:table-row></fo:table-body></xsl:for-each></xsl:if><xsl:if test="count(eform:TypesDetail/eform:Area) &gt; 0"><xsl:for-each select="eform:TypesDetail/eform:Area"><fo:table-body><fo:table-row><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:Name) &gt; 0"><xsl:value-of select="eform:Name"/><xsl:value-of select="$sk.text.colon"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:C1) &gt; 0"><xsl:call-template name="FormatNumber"><xsl:with-param name="price" select="normalize-space(eform:C1)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:C2) &gt; 0"><xsl:call-template name="FormatNumber"><xsl:with-param name="price" select="normalize-space(eform:C2)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:C3) &gt; 0"><xsl:call-template name="FormatNumber"><xsl:with-param name="price" select="normalize-space(eform:C3)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:C4) &gt; 0"><xsl:call-template name="FormatNumber"><xsl:with-param name="price" select="normalize-space(eform:C4)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:C5) &gt; 0"><xsl:call-template name="FormatNumber"><xsl:with-param name="price" select="normalize-space(eform:C5)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:C6) &gt; 0"><xsl:call-template name="FormatNumber"><xsl:with-param name="price" select="normalize-space(eform:C6)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:C7) &gt; 0"><xsl:call-template name="FormatNumber"><xsl:with-param name="price" select="normalize-space(eform:C7)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:C8) &gt; 0"><xsl:call-template name="FormatNumber"><xsl:with-param name="price" select="normalize-space(eform:C8)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:C9) &gt; 0"><xsl:call-template name="FormatNumber"><xsl:with-param name="price" select="normalize-space(eform:C9)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell></fo:table-row></fo:table-body></xsl:for-each></xsl:if><xsl:if test="count(eform:TypesDetail/eform:PartOfTax) &gt; 0"><xsl:for-each select="eform:TypesDetail/eform:PartOfTax"><fo:table-body><fo:table-row><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:Name) &gt; 0"><xsl:value-of select="eform:Name"/><xsl:value-of select="$sk.text.colon"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:C1) &gt; 0"><xsl:call-template name="FormatNumber5Digits"><xsl:with-param name="price" select="normalize-space(eform:C1)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:C2) &gt; 0"><xsl:call-template name="FormatNumber5Digits"><xsl:with-param name="price" select="normalize-space(eform:C2)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:C3) &gt; 0"><xsl:call-template name="FormatNumber5Digits"><xsl:with-param name="price" select="normalize-space(eform:C3)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:C4) &gt; 0"><xsl:call-template name="FormatNumber5Digits"><xsl:with-param name="price" select="normalize-space(eform:C4)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:C5) &gt; 0"><xsl:call-template name="FormatNumber5Digits"><xsl:with-param name="price" select="normalize-space(eform:C5)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:C6) &gt; 0"><xsl:call-template name="FormatNumber5Digits"><xsl:with-param name="price" select="normalize-space(eform:C6)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:C7) &gt; 0"><xsl:call-template name="FormatNumber5Digits"><xsl:with-param name="price" select="normalize-space(eform:C7)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:C8) &gt; 0"><xsl:call-template name="FormatNumber5Digits"><xsl:with-param name="price" select="normalize-space(eform:C8)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:C9) &gt; 0"><xsl:call-template name="FormatNumber5Digits"><xsl:with-param name="price" select="normalize-space(eform:C9)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell></fo:table-row></fo:table-body></xsl:for-each></xsl:if><xsl:if test="count(eform:TypesDetail/eform:Rate) &gt; 0"><xsl:for-each select="eform:TypesDetail/eform:Rate"><fo:table-body><fo:table-row><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:Name) &gt; 0"><xsl:value-of select="eform:Name"/><xsl:value-of select="$sk.text.colon"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:C1) &gt; 0"><xsl:call-template name="FormatNumber3Digits"><xsl:with-param name="price" select="normalize-space(eform:C1)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:C2) &gt; 0"><xsl:call-template name="FormatNumber3Digits"><xsl:with-param name="price" select="normalize-space(eform:C2)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:C3) &gt; 0"><xsl:call-template name="FormatNumber3Digits"><xsl:with-param name="price" select="normalize-space(eform:C3)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:C4) &gt; 0"><xsl:call-template name="FormatNumber3Digits"><xsl:with-param name="price" select="normalize-space(eform:C4)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:C5) &gt; 0"><xsl:call-template name="FormatNumber3Digits"><xsl:with-param name="price" select="normalize-space(eform:C5)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:C6) &gt; 0"><xsl:call-template name="FormatNumber3Digits"><xsl:with-param name="price" select="normalize-space(eform:C6)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:C7) &gt; 0"><xsl:call-template name="FormatNumber3Digits"><xsl:with-param name="price" select="normalize-space(eform:C7)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:C8) &gt; 0"><xsl:call-template name="FormatNumber3Digits"><xsl:with-param name="price" select="normalize-space(eform:C8)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:C9) &gt; 0"><xsl:call-template name="FormatNumber3Digits"><xsl:with-param name="price" select="normalize-space(eform:C9)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell></fo:table-row></fo:table-body></xsl:for-each></xsl:if><xsl:if test="count(eform:TypesDetail/eform:Surcharge) &gt; 0"><xsl:for-each select="eform:TypesDetail/eform:Surcharge"><fo:table-body><fo:table-row><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:Name) &gt; 0"><xsl:value-of select="eform:Name"/><xsl:value-of select="$sk.text.colon"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:C1) &gt; 0"><xsl:call-template name="FormatNumber3Digits"><xsl:with-param name="price" select="normalize-space(eform:C1)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:C2) &gt; 0"><xsl:call-template name="FormatNumber3Digits"><xsl:with-param name="price" select="normalize-space(eform:C2)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:C3) &gt; 0"><xsl:call-template name="FormatNumber3Digits"><xsl:with-param name="price" select="normalize-space(eform:C3)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:C4) &gt; 0"><xsl:call-template name="FormatNumber3Digits"><xsl:with-param name="price" select="normalize-space(eform:C4)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:C5) &gt; 0"><xsl:call-template name="FormatNumber3Digits"><xsl:with-param name="price" select="normalize-space(eform:C5)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:C6) &gt; 0"><xsl:call-template name="FormatNumber3Digits"><xsl:with-param name="price" select="normalize-space(eform:C6)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:C7) &gt; 0"><xsl:call-template name="FormatNumber3Digits"><xsl:with-param name="price" select="normalize-space(eform:C7)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:C8) &gt; 0"><xsl:call-template name="FormatNumber3Digits"><xsl:with-param name="price" select="normalize-space(eform:C8)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:C9) &gt; 0"><xsl:call-template name="FormatNumber3Digits"><xsl:with-param name="price" select="normalize-space(eform:C9)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell></fo:table-row></fo:table-body></xsl:for-each></xsl:if><xsl:if test="count(eform:TypesDetail/eform:Tax) &gt; 0"><xsl:for-each select="eform:TypesDetail/eform:Tax"><fo:table-body><fo:table-row><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:Name) &gt; 0"><xsl:value-of select="eform:Name"/><xsl:value-of select="$sk.text.colon"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:C1) &gt; 0"><xsl:call-template name="FormatNumber3Digits"><xsl:with-param name="price" select="normalize-space(eform:C1)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:C2) &gt; 0"><xsl:call-template name="FormatNumber3Digits"><xsl:with-param name="price" select="normalize-space(eform:C2)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:C3) &gt; 0"><xsl:call-template name="FormatNumber3Digits"><xsl:with-param name="price" select="normalize-space(eform:C3)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:C4) &gt; 0"><xsl:call-template name="FormatNumber3Digits"><xsl:with-param name="price" select="normalize-space(eform:C4)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:C5) &gt; 0"><xsl:call-template name="FormatNumber3Digits"><xsl:with-param name="price" select="normalize-space(eform:C5)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:C6) &gt; 0"><xsl:call-template name="FormatNumber3Digits"><xsl:with-param name="price" select="normalize-space(eform:C6)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:C7) &gt; 0"><xsl:call-template name="FormatNumber3Digits"><xsl:with-param name="price" select="normalize-space(eform:C7)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:C8) &gt; 0"><xsl:call-template name="FormatNumber3Digits"><xsl:with-param name="price" select="normalize-space(eform:C8)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="normal" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:C9) &gt; 0"><xsl:call-template name="FormatNumber3Digits"><xsl:with-param name="price" select="normalize-space(eform:C9)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell></fo:table-row></fo:table-body></xsl:for-each></xsl:if></fo:table></xsl:if></xsl:for-each></xsl:if><xsl:if test="count(eform:ReasoningFlats) &gt; 0"><xsl:for-each select="eform:ReasoningFlats"><xsl:if test="count(eform:Name) &gt; 0"><fo:block font-weight="bold"><xsl:value-of select="eform:Name"/></fo:block></xsl:if><xsl:if test="count(eform:TypesNames) + count(eform:Types) &gt; 0"><fo:table margin-bottom="5mm"><xsl:variable name="kindNameWidth" select="eform:TypesNames/eform:KindName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$kindNameWidth"/><xsl:with-param name="defaultValue" select="10"/></xsl:call-template><xsl:variable name="addressNameWidth" select="eform:TypesNames/eform:AddressName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$addressNameWidth"/><xsl:with-param name="defaultValue" select="40"/></xsl:call-template><xsl:variable name="areaNameWidth" select="eform:TypesNames/eform:AreaName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$areaNameWidth"/><xsl:with-param name="defaultValue" select="30"/></xsl:call-template><xsl:variable name="areaExemptionNameWidth" select="eform:TypesNames/eform:AreaExemptionName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$areaExemptionNameWidth"/><xsl:with-param name="defaultValue" select="30"/></xsl:call-template><xsl:variable name="rateNameWidth" select="eform:TypesNames/eform:RateName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$rateNameWidth"/><xsl:with-param name="defaultValue" select="30"/></xsl:call-template><xsl:variable name="reductionNameWidth" select="eform:TypesNames/eform:ReductionName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$reductionNameWidth"/><xsl:with-param name="defaultValue" select="30"/></xsl:call-template><xsl:variable name="taxNameWidth" select="eform:TypesNames/eform:TaxName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$taxNameWidth"/><xsl:with-param name="defaultValue" select="20"/></xsl:call-template><xsl:if test="count(eform:TypesNames) &gt; 0"><xsl:for-each select="eform:TypesNames"><fo:table-header><fo:table-row><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="center"><xsl:if test="count(eform:KindName) &gt; 0 and (not(number($kindNameWidth)=$kindNameWidth) or $kindNameWidth &gt; 0)"><xsl:value-of select="eform:KindName"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="center"><xsl:if test="count(eform:AddressName) &gt; 0 and (not(number($addressNameWidth)=$addressNameWidth) or $addressNameWidth &gt; 0)"><xsl:choose><xsl:when test="substring-before(eform:AddressName,'[')"><fo:block><xsl:value-of select="substring-before(eform:AddressName,'[')"/></fo:block><fo:block><xsl:value-of select="'['"/><xsl:variable name="str1" select="substring-after(eform:AddressName,'[')"/><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="$str1"/></xsl:with-param></xsl:call-template></fo:block></xsl:when><xsl:otherwise><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="eform:AddressName"/></xsl:with-param></xsl:call-template></xsl:otherwise></xsl:choose></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:AreaName) &gt; 0 and (not(number($areaNameWidth)=$areaNameWidth) or $areaNameWidth &gt; 0)"><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="eform:AreaName"/></xsl:with-param></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:AreaExemptionName) &gt; 0 and (not(number($areaExemptionNameWidth)=$areaExemptionNameWidth) or $areaExemptionNameWidth &gt; 0)"><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="eform:AreaExemptionName"/></xsl:with-param></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:RateName) &gt; 0 and (not(number($rateNameWidth)=$rateNameWidth) or $rateNameWidth &gt; 0)"><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="eform:RateName"/></xsl:with-param></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:ReductionName) &gt; 0 and (not(number($reductionNameWidth)=$reductionNameWidth) or $reductionNameWidth &gt; 0)"><xsl:value-of select="eform:ReductionName"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:TaxName) &gt; 0 and (not(number($taxNameWidth)=$taxNameWidth) or $taxNameWidth &gt; 0)"><xsl:value-of select="eform:TaxName"/></xsl:if></fo:block></fo:table-cell></fo:table-row></fo:table-header></xsl:for-each></xsl:if><xsl:if test="count(eform:Types) &gt; 0"><fo:table-body><xsl:for-each select="eform:Types"><fo:table-row><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="center"><xsl:if test="count(eform:Kind) &gt; 0 and (not(number($kindNameWidth)=$kindNameWidth) or $kindNameWidth &gt; 0)"><xsl:value-of select="eform:Kind"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="left"><xsl:if test="count(eform:Address) &gt; 0 and (not(number($addressNameWidth)=$addressNameWidth) or $addressNameWidth &gt; 0)"><xsl:value-of select="eform:Address"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Area) &gt; 0 and (not(number($areaNameWidth)=$areaNameWidth) or $areaNameWidth &gt; 0)"><xsl:call-template name="FormatNumber"><xsl:with-param name="price" select="normalize-space(eform:Area)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:AreaExemption) &gt; 0 and (not(number($areaExemptionNameWidth)=$areaExemptionNameWidth) or $areaExemptionNameWidth &gt; 0)"><xsl:call-template name="FormatNumber"><xsl:with-param name="price" select="normalize-space(eform:AreaExemption)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Rate) &gt; 0 and (not(number($rateNameWidth)=$rateNameWidth) or $rateNameWidth &gt; 0)"><xsl:call-template name="FormatNumber3Digits"><xsl:with-param name="price" select="normalize-space(eform:Rate)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Reduction) &gt; 0 and (not(number($reductionNameWidth)=$reductionNameWidth) or $reductionNameWidth &gt; 0)"><xsl:call-template name="FormatNumber"><xsl:with-param name="price" select="normalize-space(eform:Reduction)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Tax) &gt; 0 and (not(number($taxNameWidth)=$taxNameWidth) or $taxNameWidth &gt; 0)"><xsl:call-template name="FormatNumber3Digits"><xsl:with-param name="price" select="normalize-space(eform:Tax)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell></fo:table-row></xsl:for-each></fo:table-body></xsl:if></fo:table></xsl:if></xsl:for-each></xsl:if></xsl:for-each></xsl:if><xsl:if test="count(eform:TaxForDog) &gt; 0"><xsl:for-each select="eform:TaxForDog"><xsl:if test="count(eform:ReasoningDog) &gt; 0"><xsl:for-each select="eform:ReasoningDog"><xsl:if test="count(eform:Name) &gt; 0"><fo:block font-weight="bold"><xsl:value-of select="eform:Name"/></fo:block></xsl:if><xsl:if test="count(eform:TypesNames) + count(eform:Types) &gt; 0"><fo:table margin-bottom="5mm"><xsl:variable name="countNameWidth" select="eform:TypesNames/eform:CountName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$countNameWidth"/><xsl:with-param name="defaultValue" select="10"/></xsl:call-template><xsl:variable name="registrationNumberNameWidth" select="eform:TypesNames/eform:RegistrationNumberName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$registrationNumberNameWidth"/><xsl:with-param name="defaultValue" select="28"/></xsl:call-template><xsl:variable name="dogAgeNameWidth" select="eform:TypesNames/eform:DogAgeName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$dogAgeNameWidth"/><xsl:with-param name="defaultValue" select="20"/></xsl:call-template><xsl:variable name="dogBreedNameWidth" select="eform:TypesNames/eform:DogBreedName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$dogBreedNameWidth"/><xsl:with-param name="defaultValue" select="35"/></xsl:call-template><xsl:variable name="identificationNameWidth" select="eform:TypesNames/eform:IdentificationName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$identificationNameWidth"/><xsl:with-param name="defaultValue" select="20"/></xsl:call-template><xsl:variable name="rateNameWidth" select="eform:TypesNames/eform:RateName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$rateNameWidth"/><xsl:with-param name="defaultValue" select="30"/></xsl:call-template><xsl:variable name="reductionNameWidth" select="eform:TypesNames/eform:ReductionName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$reductionNameWidth"/><xsl:with-param name="defaultValue" select="30"/></xsl:call-template><xsl:variable name="taxNameWidth" select="eform:TypesNames/eform:TaxName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$taxNameWidth"/><xsl:with-param name="defaultValue" select="17"/></xsl:call-template><xsl:if test="count(eform:TypesNames) &gt; 0"><xsl:for-each select="eform:TypesNames"><fo:table-header><fo:table-row><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="center"><xsl:if test="count(eform:CountName) &gt; 0 and (not(number($countNameWidth)=$countNameWidth) or $countNameWidth &gt; 0)"><xsl:value-of select="eform:CountName"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="center"><xsl:if test="count(eform:RegistrationNumberName) &gt; 0 and (not(number($registrationNumberNameWidth)=$registrationNumberNameWidth) or $registrationNumberNameWidth &gt; 0)"><xsl:value-of select="eform:RegistrationNumberName"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="center"><xsl:if test="count(eform:DogAgeName) &gt; 0 and (not(number($dogAgeNameWidth)=$dogAgeNameWidth) or $dogAgeNameWidth &gt; 0)"><xsl:value-of select="eform:DogAgeName"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="center"><xsl:if test="count(eform:DogBreedName) &gt; 0 and (not(number($dogBreedNameWidth)=$dogBreedNameWidth) or $dogBreedNameWidth &gt; 0)"><xsl:value-of select="eform:DogBreedName"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="center"><xsl:if test="count(eform:IdentificationName) &gt; 0 and (not(number($identificationNameWidth)=$identificationNameWidth) or $identificationNameWidth &gt; 0)"><xsl:value-of select="eform:IdentificationName"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:RateName) &gt; 0 and (not(number($rateNameWidth)=$rateNameWidth) or $rateNameWidth &gt; 0)"><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="eform:RateName"/></xsl:with-param></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:ReductionName) &gt; 0 and (not(number($reductionNameWidth)=$reductionNameWidth) or $reductionNameWidth &gt; 0)"><xsl:value-of select="eform:ReductionName"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:TaxName) &gt; 0 and (not(number($taxNameWidth)=$taxNameWidth) or $taxNameWidth &gt; 0)"><xsl:value-of select="eform:TaxName"/></xsl:if></fo:block></fo:table-cell></fo:table-row></fo:table-header></xsl:for-each></xsl:if><xsl:if test="count(eform:Types) &gt; 0"><fo:table-body><xsl:for-each select="eform:Types"><fo:table-row><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="center"><xsl:if test="count(eform:Count) &gt; 0 and (not(number($countNameWidth)=$countNameWidth) or $countNameWidth &gt; 0)"><xsl:value-of select="eform:Count"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="center"><xsl:if test="count(eform:RegistrationNumber) &gt; 0 and (not(number($registrationNumberNameWidth)=$registrationNumberNameWidth) or $registrationNumberNameWidth &gt; 0)"><xsl:value-of select="eform:RegistrationNumber"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="center"><xsl:if test="count(eform:DogAge) &gt; 0 and (not(number($dogAgeNameWidth)=$dogAgeNameWidth) or $dogAgeNameWidth &gt; 0)"><xsl:value-of select="eform:DogAge"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="center"><xsl:if test="count(eform:DogBreed) &gt; 0 and (not(number($dogBreedNameWidth)=$dogBreedNameWidth) or $dogBreedNameWidth &gt; 0)"><xsl:value-of select="eform:DogBreed"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="center"><xsl:if test="count(eform:Identification) &gt; 0 and (not(number($identificationNameWidth)=$identificationNameWidth) or $identificationNameWidth &gt; 0)"><xsl:value-of select="eform:Identification"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Rate) &gt; 0 and (not(number($rateNameWidth)=$rateNameWidth) or $rateNameWidth &gt; 0)"><xsl:call-template name="FormatNumber"><xsl:with-param name="price" select="normalize-space(eform:Rate)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Reduction) &gt; 0 and (not(number($reductionNameWidth)=$reductionNameWidth) or $reductionNameWidth &gt; 0)"><xsl:call-template name="FormatNumber"><xsl:with-param name="price" select="normalize-space(eform:Reduction)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Tax) &gt; 0 and (not(number($taxNameWidth)=$taxNameWidth) or $taxNameWidth &gt; 0)"><xsl:call-template name="FormatNumber"><xsl:with-param name="price" select="normalize-space(eform:Tax)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell></fo:table-row></xsl:for-each></fo:table-body></xsl:if></fo:table></xsl:if></xsl:for-each></xsl:if></xsl:for-each></xsl:if><xsl:if test="count(eform:TaxForNonWinningMachines) &gt; 0"><xsl:for-each select="eform:TaxForNonWinningMachines"><xsl:if test="count(eform:ReasoningNonWinningMachines) &gt; 0"><xsl:for-each select="eform:ReasoningNonWinningMachines"><xsl:if test="count(eform:Name) &gt; 0"><fo:block font-weight="bold"><xsl:value-of select="eform:Name"/></fo:block></xsl:if><xsl:if test="count(eform:TypesNames) + count(eform:Types) &gt; 0"><fo:table margin-bottom="5mm"><xsl:variable name="countNameWidth" select="eform:TypesNames/eform:CountName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$countNameWidth"/><xsl:with-param name="defaultValue" select="20"/></xsl:call-template><xsl:variable name="registrationNumberNameWidth" select="eform:TypesNames/eform:RegistrationNumberName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$registrationNumberNameWidth"/><xsl:with-param name="defaultValue" select="25"/></xsl:call-template><xsl:variable name="serialNumberNameWidth" select="eform:TypesNames/eform:SerialNumberName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$serialNumberNameWidth"/><xsl:with-param name="defaultValue" select="25"/></xsl:call-template><xsl:variable name="addressNameWidth" select="eform:TypesNames/eform:AddressName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$addressNameWidth"/><xsl:with-param name="defaultValue" select="25"/></xsl:call-template><xsl:variable name="locationNameWidth" select="eform:TypesNames/eform:LocationName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$locationNameWidth"/><xsl:with-param name="defaultValue" select="25"/></xsl:call-template><xsl:variable name="titleNameWidth" select="eform:TypesNames/eform:TitleName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$titleNameWidth"/><xsl:with-param name="defaultValue" select="25"/></xsl:call-template><xsl:variable name="kindNameWidth" select="eform:TypesNames/eform:KindName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$kindNameWidth"/><xsl:with-param name="defaultValue" select="28"/></xsl:call-template><xsl:variable name="rateNameWidth" select="eform:TypesNames/eform:RateName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$rateNameWidth"/><xsl:with-param name="defaultValue" select="25"/></xsl:call-template><xsl:variable name="reductionNameWidth" select="eform:TypesNames/eform:ReductionName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$reductionNameWidth"/><xsl:with-param name="defaultValue" select="25"/></xsl:call-template><xsl:variable name="taxNameWidth" select="eform:TypesNames/eform:TaxName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$taxNameWidth"/><xsl:with-param name="defaultValue" select="17"/></xsl:call-template><xsl:if test="count(eform:TypesNames) &gt; 0"><xsl:for-each select="eform:TypesNames"><fo:table-header><fo:table-row><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="center"><xsl:if test="count(eform:CountName) &gt; 0 and (not(number($countNameWidth)=$countNameWidth) or $countNameWidth &gt; 0)"><xsl:value-of select="eform:CountName"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="center"><xsl:if test="count(eform:RegistrationNumberName) &gt; 0 and (not(number($registrationNumberNameWidth)=$registrationNumberNameWidth) or $registrationNumberNameWidth &gt; 0)"><xsl:value-of select="eform:RegistrationNumberName"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="center"><xsl:if test="count(eform:SerialNumberName) &gt; 0 and (not(number($serialNumberNameWidth)=$serialNumberNameWidth) or $serialNumberNameWidth &gt; 0)"><xsl:value-of select="eform:SerialNumberName"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="center"><xsl:if test="count(eform:AddressName) &gt; 0 and (not(number($addressNameWidth)=$addressNameWidth) or $addressNameWidth &gt; 0)"><xsl:value-of select="eform:AddressName"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="center"><xsl:if test="count(eform:LocationName) &gt; 0 and (not(number($locationNameWidth)=$locationNameWidth) or $locationNameWidth &gt; 0)"><xsl:value-of select="eform:LocationName"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="center"><xsl:if test="count(eform:TitleName) &gt; 0 and (not(number($titleNameWidth)=$titleNameWidth) or $titleNameWidth &gt; 0)"><xsl:value-of select="eform:TitleName"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="center"><xsl:if test="count(eform:KindName) &gt; 0 and (not(number($kindNameWidth)=$kindNameWidth) or $kindNameWidth &gt; 0)"><xsl:value-of select="eform:KindName"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:RateName) &gt; 0 and (not(number($rateNameWidth)=$rateNameWidth) or $rateNameWidth &gt; 0)"><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="eform:RateName"/></xsl:with-param></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:ReductionName) &gt; 0 and (not(number($reductionNameWidth)=$reductionNameWidth) or $reductionNameWidth &gt; 0)"><xsl:value-of select="eform:ReductionName"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:TaxName) &gt; 0 and (not(number($taxNameWidth)=$taxNameWidth) or $taxNameWidth &gt; 0)"><xsl:value-of select="eform:TaxName"/></xsl:if></fo:block></fo:table-cell></fo:table-row></fo:table-header></xsl:for-each></xsl:if><xsl:if test="count(eform:Types) &gt; 0"><fo:table-body><xsl:for-each select="eform:Types"><fo:table-row><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="center"><xsl:if test="count(eform:Count) &gt; 0 and (not(number($countNameWidth)=$countNameWidth) or $countNameWidth &gt; 0)"><xsl:value-of select="eform:Count"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="center"><xsl:if test="count(eform:RegistrationNumber) &gt; 0 and (not(number($registrationNumberNameWidth)=$registrationNumberNameWidth) or $registrationNumberNameWidth &gt; 0)"><xsl:value-of select="eform:RegistrationNumber"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="center"><xsl:if test="count(eform:SerialNumber) &gt; 0 and (not(number($serialNumberNameWidth)=$serialNumberNameWidth) or $serialNumberNameWidth &gt; 0)"><xsl:value-of select="eform:SerialNumber"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="center"><xsl:if test="count(eform:Address) &gt; 0 and (not(number($addressNameWidth)=$addressNameWidth) or $addressNameWidth &gt; 0)"><xsl:value-of select="eform:Address"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="center"><xsl:if test="count(eform:Location) &gt; 0 and (not(number($locationNameWidth)=$locationNameWidth) or $locationNameWidth &gt; 0)"><xsl:value-of select="eform:Location"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="center"><xsl:if test="count(eform:Title) &gt; 0 and (not(number($titleNameWidth)=$titleNameWidth) or $titleNameWidth &gt; 0)"><xsl:value-of select="eform:Title"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="center"><xsl:if test="count(eform:Kind) &gt; 0 and (not(number($kindNameWidth)=$kindNameWidth) or $kindNameWidth &gt; 0)"><xsl:value-of select="eform:Kind"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Rate) &gt; 0 and (not(number($rateNameWidth)=$rateNameWidth) or $rateNameWidth &gt; 0)"><xsl:call-template name="FormatNumber"><xsl:with-param name="price" select="normalize-space(eform:Rate)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Reduction) &gt; 0 and (not(number($reductionNameWidth)=$reductionNameWidth) or $reductionNameWidth &gt; 0)"><xsl:call-template name="FormatNumber"><xsl:with-param name="price" select="normalize-space(eform:Reduction)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Tax) &gt; 0 and (not(number($taxNameWidth)=$taxNameWidth) or $taxNameWidth &gt; 0)"><xsl:call-template name="FormatNumber"><xsl:with-param name="price" select="normalize-space(eform:Tax)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell></fo:table-row></xsl:for-each></fo:table-body></xsl:if></fo:table></xsl:if></xsl:for-each></xsl:if></xsl:for-each></xsl:if><xsl:if test="count(eform:TaxForVendingMachines) &gt; 0"><xsl:for-each select="eform:TaxForVendingMachines"><xsl:if test="count(eform:ReasoningVendingMachines) &gt; 0"><xsl:for-each select="eform:ReasoningVendingMachines"><xsl:if test="count(eform:Name) &gt; 0"><fo:block font-weight="bold"><xsl:value-of select="eform:Name"/></fo:block></xsl:if><xsl:if test="count(eform:TypesNames) + count(eform:Types) &gt; 0"><fo:table margin-bottom="5mm"><xsl:variable name="countNameWidth" select="eform:TypesNames/eform:CountName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$countNameWidth"/><xsl:with-param name="defaultValue" select="20"/></xsl:call-template><xsl:variable name="registrationNumberNameWidth" select="eform:TypesNames/eform:RegistrationNumberName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$registrationNumberNameWidth"/><xsl:with-param name="defaultValue" select="25"/></xsl:call-template><xsl:variable name="serialNumberNameWidth" select="eform:TypesNames/eform:SerialNumberName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$serialNumberNameWidth"/><xsl:with-param name="defaultValue" select="25"/></xsl:call-template><xsl:variable name="addressNameWidth" select="eform:TypesNames/eform:AddressName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$addressNameWidth"/><xsl:with-param name="defaultValue" select="25"/></xsl:call-template><xsl:variable name="locationNameWidth" select="eform:TypesNames/eform:LocationName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$locationNameWidth"/><xsl:with-param name="defaultValue" select="25"/></xsl:call-template><xsl:variable name="titleNameWidth" select="eform:TypesNames/eform:TitleName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$titleNameWidth"/><xsl:with-param name="defaultValue" select="25"/></xsl:call-template><xsl:variable name="kindNameWidth" select="eform:TypesNames/eform:KindName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$kindNameWidth"/><xsl:with-param name="defaultValue" select="28"/></xsl:call-template><xsl:variable name="rateNameWidth" select="eform:TypesNames/eform:RateName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$rateNameWidth"/><xsl:with-param name="defaultValue" select="25"/></xsl:call-template><xsl:variable name="reductionNameWidth" select="eform:TypesNames/eform:ReductionName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$reductionNameWidth"/><xsl:with-param name="defaultValue" select="25"/></xsl:call-template><xsl:variable name="taxNameWidth" select="eform:TypesNames/eform:TaxName/@Width"/><xsl:call-template name="createFoColumnWithWidth"><xsl:with-param name="fieldValue" select="$taxNameWidth"/><xsl:with-param name="defaultValue" select="17"/></xsl:call-template><xsl:if test="count(eform:TypesNames) &gt; 0"><xsl:for-each select="eform:TypesNames"><fo:table-header><fo:table-row><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="center"><xsl:if test="count(eform:CountName) &gt; 0 and (not(number($countNameWidth)=$countNameWidth) or $countNameWidth &gt; 0)"><xsl:value-of select="eform:CountName"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="center"><xsl:if test="count(eform:RegistrationNumberName) &gt; 0 and (not(number($registrationNumberNameWidth)=$registrationNumberNameWidth) or $registrationNumberNameWidth &gt; 0)"><xsl:value-of select="eform:RegistrationNumberName"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="center"><xsl:if test="count(eform:SerialNumberName) &gt; 0 and (not(number($serialNumberNameWidth)=$serialNumberNameWidth) or $serialNumberNameWidth &gt; 0)"><xsl:value-of select="eform:SerialNumberName"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="center"><xsl:if test="count(eform:AddressName) &gt; 0 and (not(number($addressNameWidth)=$addressNameWidth) or $addressNameWidth &gt; 0)"><xsl:value-of select="eform:AddressName"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="center"><xsl:if test="count(eform:LocationName) &gt; 0 and (not(number($locationNameWidth)=$locationNameWidth) or $locationNameWidth &gt; 0)"><xsl:value-of select="eform:LocationName"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="center"><xsl:if test="count(eform:TitleName) &gt; 0 and (not(number($titleNameWidth)=$titleNameWidth) or $titleNameWidth &gt; 0)"><xsl:value-of select="eform:TitleName"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="center"><xsl:if test="count(eform:KindName) &gt; 0 and (not(number($kindNameWidth)=$kindNameWidth) or $kindNameWidth &gt; 0)"><xsl:value-of select="eform:KindName"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:RateName) &gt; 0 and (not(number($rateNameWidth)=$rateNameWidth) or $rateNameWidth &gt; 0)"><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input"><xsl:value-of select="eform:RateName"/></xsl:with-param></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:ReductionName) &gt; 0 and (not(number($reductionNameWidth)=$reductionNameWidth) or $reductionNameWidth &gt; 0)"><xsl:value-of select="eform:ReductionName"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block font-weight="bold" margin-left="0.5mm" margin-right="0.5mm" margin-top="0.5mm" text-align="right"><xsl:if test="count(eform:TaxName) &gt; 0 and (not(number($taxNameWidth)=$taxNameWidth) or $taxNameWidth &gt; 0)"><xsl:value-of select="eform:TaxName"/></xsl:if></fo:block></fo:table-cell></fo:table-row></fo:table-header></xsl:for-each></xsl:if><xsl:if test="count(eform:Types) &gt; 0"><fo:table-body><xsl:for-each select="eform:Types"><fo:table-row><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="center"><xsl:if test="count(eform:Count) &gt; 0 and (not(number($countNameWidth)=$countNameWidth) or $countNameWidth &gt; 0)"><xsl:value-of select="eform:Count"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="center"><xsl:if test="count(eform:RegistrationNumber) &gt; 0 and (not(number($registrationNumberNameWidth)=$registrationNumberNameWidth) or $registrationNumberNameWidth &gt; 0)"><xsl:value-of select="eform:RegistrationNumber"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="center"><xsl:if test="count(eform:SerialNumber) &gt; 0 and (not(number($serialNumberNameWidth)=$serialNumberNameWidth) or $serialNumberNameWidth &gt; 0)"><xsl:value-of select="eform:SerialNumber"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="center"><xsl:if test="count(eform:Address) &gt; 0 and (not(number($addressNameWidth)=$addressNameWidth) or $addressNameWidth &gt; 0)"><xsl:value-of select="eform:Address"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="center"><xsl:if test="count(eform:Location) &gt; 0 and (not(number($locationNameWidth)=$locationNameWidth) or $locationNameWidth &gt; 0)"><xsl:value-of select="eform:Location"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="center"><xsl:if test="count(eform:Title) &gt; 0 and (not(number($titleNameWidth)=$titleNameWidth) or $titleNameWidth &gt; 0)"><xsl:value-of select="eform:Title"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="center"><xsl:if test="count(eform:Kind) &gt; 0 and (not(number($kindNameWidth)=$kindNameWidth) or $kindNameWidth &gt; 0)"><xsl:value-of select="eform:Kind"/></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Rate) &gt; 0 and (not(number($rateNameWidth)=$rateNameWidth) or $rateNameWidth &gt; 0)"><xsl:call-template name="FormatNumber"><xsl:with-param name="price" select="normalize-space(eform:Rate)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Reduction) &gt; 0 and (not(number($reductionNameWidth)=$reductionNameWidth) or $reductionNameWidth &gt; 0)"><xsl:call-template name="FormatNumber"><xsl:with-param name="price" select="normalize-space(eform:Reduction)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell><fo:table-cell border-style="solid" display-align="after"><fo:block margin-left="0.5mm" margin-right="0.5mm" text-align="right"><xsl:if test="count(eform:Tax) &gt; 0 and (not(number($taxNameWidth)=$taxNameWidth) or $taxNameWidth &gt; 0)"><xsl:call-template name="FormatNumber"><xsl:with-param name="price" select="normalize-space(eform:Tax)"/></xsl:call-template></xsl:if></fo:block></fo:table-cell></fo:table-row></xsl:for-each></fo:table-body></xsl:if></fo:table></xsl:if></xsl:for-each></xsl:if></xsl:for-each></xsl:if></xsl:for-each></xsl:if><xsl:if test="count(eform:Decision/eform:Instruction) &gt; 0"><fo:block-container page-break-inside="avoid"><xsl:for-each select="eform:Decision/eform:Instruction"><xsl:if test="count(eform:Title) &gt; 0"><fo:block margin-top="5mm" xsl:use-attribute-sets="prop-h2"><xsl:value-of select="eform:Title"/></fo:block></xsl:if><xsl:if test="count(eform:Text) &gt; 0"><fo:block text-align="justify" white-space-collapse="false"><xsl:value-of select="eform:Text"/></fo:block></xsl:if></xsl:for-each></fo:block-container></xsl:if><xsl:if test="count(eform:Statutory) &gt; 0"><xsl:for-each select="eform:Statutory"><fo:block font-size="9pt" font-weight="bold" margin-bottom="5mm" margin-right="10mm" margin-top="5mm" text-align="right"><xsl:if test="count(eform:PersonData/eform:PhysicalPerson/eform:PersonName/eform:FormattedName) &gt; 0"><xsl:value-of select="eform:PersonData/eform:PhysicalPerson/eform:PersonName/eform:FormattedName"/></xsl:if><xsl:if test="count(eform:OfficeHolds) &gt; 0"><xsl:value-of select="$sk.text.comma"/><xsl:value-of select="$sk.text.space"/><xsl:value-of select="eform:OfficeHolds"/></xsl:if></fo:block></xsl:for-each></xsl:if><fo:block font-size="9pt"><xsl:choose><xsl:when test="count(eform:DeliveryTo/eform:TaxPayerPP) &gt; 0"><xsl:if test="count(eform:DeliveryTo/eform:TaxPayerPP/eform:DeliveryName) &gt; 0"><fo:inline font-weight="bold"><xsl:value-of select="eform:DeliveryTo/eform:TaxPayerPP/eform:DeliveryName"/><xsl:value-of select="$sk.text.colon"/><xsl:value-of select="$sk.text.space"/></fo:inline></xsl:if><xsl:if test="count(eform:DeliveryTo/eform:DeliveryToUnformatted) &gt; 0"><xsl:value-of select="eform:DeliveryTo/eform:DeliveryToUnformatted"/></xsl:if></xsl:when><xsl:when test="count(eform:DeliveryTo/eform:TaxPayerCB) &gt; 0"><xsl:if test="count(eform:DeliveryTo/eform:TaxPayerCB/eform:DeliveryName) &gt; 0"><fo:inline font-weight="bold"><xsl:value-of select="eform:DeliveryTo/eform:TaxPayerCB/eform:DeliveryName"/><xsl:value-of select="$sk.text.colon"/><xsl:value-of select="$sk.text.space"/></fo:inline></xsl:if><xsl:if test="count(eform:DeliveryTo/eform:DeliveryToUnformatted) &gt; 0"><xsl:value-of select="eform:DeliveryTo/eform:DeliveryToUnformatted"/></xsl:if></xsl:when></xsl:choose></fo:block></fo:block></fo:flow></fo:page-sequence></fo:root></xsl:template><xsl:template name="Header"><xsl:if test="count(eform:MunicipalityHeader) + count(eform:Decision/eform:DeliveryReport) &gt; 0"><fo:block border-color="#a8a9ad" border-style="solid" border-width="0.5pt"><fo:table margin="2mm"><fo:table-column column-number="1" column-width="18mm"/><fo:table-column column-number="2" column-width="120mm"/><fo:table-column column-number="3" column-width="48mm"/><fo:table-body><fo:table-row><fo:table-cell column-number="1"><fo:block text-align="center"><xsl:if test="count(eform:MunicipalityHeader) &gt; 0"><xsl:for-each select="eform:MunicipalityHeader"><xsl:if test="eform:CoatOfArms != ''"><fo:external-graphic content-height="scale-to-fit" width="14mm"><xsl:attribute name="src"><xsl:value-of select="concat('data:image/png;base64,', eform:CoatOfArms)"/></xsl:attribute></fo:external-graphic></xsl:if></xsl:for-each></xsl:if></fo:block></fo:table-cell><fo:table-cell column-number="2"><fo:block><xsl:if test="count(eform:MunicipalityHeader) &gt; 0"><xsl:for-each select="eform:MunicipalityHeader"><fo:block font-size="9pt" font-weight="bold" margin-bottom="1mm"><xsl:choose><xsl:when test="count(eform:NameOfOffice/eform:Codelist/eform:CodelistItem/eform:ItemName) &gt; 0"><xsl:value-of select="eform:NameOfOffice/eform:Codelist/eform:CodelistItem/eform:ItemName"/></xsl:when><xsl:when test="count(eform:NameOfOffice/eform:NonCodelistData) &gt; 0"><xsl:value-of select="eform:NameOfOffice/eform:NonCodelistData"/></xsl:when></xsl:choose></fo:block><fo:block><xsl:choose><xsl:when test="count(eform:NameOfOffice/eform:Codelist/eform:CodelistItem/eform:ItemName) &gt; 0"><xsl:value-of select="eform:NameOfOffice/eform:Codelist/eform:CodelistItem/eform:ItemName"/></xsl:when><xsl:when test="count(eform:NameOfOffice/eform:NonCodelistData) &gt; 0"><xsl:value-of select="eform:NameOfOffice/eform:NonCodelistData"/></xsl:when></xsl:choose><xsl:if test="count(eform:NameOfOffice) &gt; 0 and count(eform:PersonData/eform:PhysicalAddress) &gt; 0"><xsl:value-of select="$sk.text.comma"/><xsl:value-of select="$sk.text.space"/></xsl:if><xsl:if test="count(eform:PersonData/eform:PhysicalAddress) &gt; 0"><xsl:for-each select="eform:PersonData/eform:PhysicalAddress"><xsl:call-template name="PhysicalAddress"/></xsl:for-each></xsl:if></fo:block><fo:block><xsl:if test="count(eform:EquippedName) &gt; 0"><xsl:value-of select="eform:EquippedName"/><xsl:value-of select="$sk.text.colon"/><xsl:value-of select="$sk.text.space"/></xsl:if><xsl:if test=" count(eform:Equipped) &gt; 0"><xsl:value-of select="eform:Equipped"/></xsl:if><xsl:if test="count(eform:TelephoneAddressName) &gt; 0"><xsl:value-of select="$sk.text.comma"/><xsl:value-of select="$sk.text.space"/><xsl:value-of select="eform:TelephoneAddressName"/><xsl:value-of select="$sk.text.colon"/><xsl:value-of select="$sk.text.space"/></xsl:if><xsl:if test="count(eform:PersonData/eform:TelephoneAddress/eform:Number/eform:FormattedNumber) &gt; 0"><xsl:value-of select="eform:PersonData/eform:TelephoneAddress/eform:Number/eform:FormattedNumber"/></xsl:if></fo:block><fo:block><xsl:if test="count(eform:ElectronicAddressMail) &gt; 0"><xsl:value-of select="eform:ElectronicAddressMail"/><xsl:value-of select="$sk.text.colon"/><xsl:value-of select="$sk.text.space"/></xsl:if><xsl:if test="count(eform:PersonData/eform:ElectronicAddress/eform:InternetAddress[contains(text(),'mailto')]) &gt; 0"><xsl:for-each select="eform:PersonData/eform:ElectronicAddress/eform:InternetAddress[contains(text(),'mailto')]"><xsl:call-template name="FormatAnyUri"><xsl:with-param name="anyUri" select="."/></xsl:call-template></xsl:for-each></xsl:if><xsl:if test="count(eform:TelephoneAddressName) + count(eform:PersonData/eform:TelephoneAddress/eform:Number/eform:FormattedNumber) + count(eform:ElectronicAddressMail) + count(eform:PersonData/eform:ElectronicAddress/eform:InternetAddress[contains(text(),'mailto')]) &gt; 0"><xsl:if test="count(eform:ElectronicAddressWeb) + count(eform:PersonData/eform:ElectronicAddress/eform:InternetAddress[contains(text(),'http')]) &gt; 0"><xsl:value-of select="$sk.text.comma"/><xsl:value-of select="$sk.text.space"/></xsl:if></xsl:if><xsl:if test="count(eform:ElectronicAddressWeb) &gt; 0"><xsl:value-of select="eform:ElectronicAddressWeb"/><xsl:value-of select="$sk.text.colon"/><xsl:value-of select="$sk.text.space"/></xsl:if><xsl:if test="count(eform:PersonData/eform:ElectronicAddress/eform:InternetAddress[contains(text(),'http')]) &gt; 0"><xsl:for-each select="eform:PersonData/eform:ElectronicAddress/eform:InternetAddress[contains(text(),'http')]"><xsl:call-template name="FormatAnyUri"><xsl:with-param name="anyUri" select="."/></xsl:call-template></xsl:for-each></xsl:if></fo:block><fo:block><xsl:if test="count(eform:RegistrationCodeName) &gt; 0"><xsl:value-of select="eform:RegistrationCodeName"/><xsl:value-of select="$sk.text.colon"/><xsl:value-of select="$sk.text.space"/></xsl:if><xsl:if test="count(eform:RegistrationCode) &gt; 0"><xsl:value-of select="eform:RegistrationCode"/></xsl:if></fo:block></xsl:for-each></xsl:if></fo:block></fo:table-cell><fo:table-cell column-number="3"><fo:block><xsl:if test="count(eform:Decision/eform:DeliveryReport) &gt; 0"><xsl:for-each select="eform:Decision/eform:DeliveryReport"><fo:block text-align="center"><xsl:if test="count(eform:Municipality) &gt; 0"><xsl:value-of select="eform:Municipality"/></xsl:if><xsl:if test="count(eform:Municipality) &gt; 0 and count(eform:Date) &gt; 0"><xsl:value-of select="$sk.text.comma"/><xsl:value-of select="$sk.text.space"/></xsl:if><xsl:if test="count(eform:Date) &gt; 0"><xsl:call-template name="FormatDate"><xsl:with-param name="date" select="eform:Date"/><xsl:with-param name="locale">sk</xsl:with-param></xsl:call-template></xsl:if></fo:block><fo:block text-align="center"><xsl:if test="count(eform:IDOName) &gt; 0"><xsl:value-of select="eform:IDOName"/><xsl:value-of select="$sk.text.colon"/><xsl:value-of select="$sk.text.space"/></xsl:if><xsl:if test="count(eform:PersonData/eform:ID[eform:IdentifierType/eform:Codelist/eform:CodelistItem/eform:ItemName = 'IČO (Identifikačné číslo organizácie)' or eform:IdentifierType/eform:Codelist/eform:CodelistItem/eform:ItemCode = '7']/eform:IdentifierValue) &gt; 0"><xsl:value-of select="eform:PersonData/eform:ID[eform:IdentifierType/eform:Codelist/eform:CodelistItem/eform:ItemName = 'IČO (Identifikačné číslo organizácie)' or eform:IdentifierType/eform:Codelist/eform:CodelistItem/eform:ItemCode = '7']/eform:IdentifierValue"/></xsl:if><xsl:if test="count(eform:IDOName) + count(eform:PersonData/eform:ID[eform:IdentifierType/eform:Codelist/eform:CodelistItem/eform:ItemName = 'IČO (Identifikačné číslo organizácie)' or eform:IdentifierType/eform:Codelist/eform:CodelistItem/eform:ItemCode = '7']/eform:IdentifierValue) &gt; 0"><xsl:if test="count(eform:IDTName) + count(eform:PersonData/eform:ID[eform:IdentifierType/eform:Codelist/eform:CodelistItem/eform:ItemName = 'Daňové identifikačné číslo' or eform:IdentifierType/eform:Codelist/eform:CodelistItem/eform:ItemCode = '8']/eform:IdentifierValue) &gt; 0"><xsl:value-of select="$sk.text.comma"/><xsl:value-of select="$sk.text.space"/></xsl:if></xsl:if><xsl:if test="count(eform:IDTName) &gt; 0"><xsl:value-of select="eform:IDTName"/><xsl:value-of select="$sk.text.colon"/><xsl:value-of select="$sk.text.space"/></xsl:if><xsl:if test="count(eform:PersonData/eform:ID[eform:IdentifierType/eform:Codelist/eform:CodelistItem/eform:ItemName = 'Daňové identifikačné číslo' or eform:IdentifierType/eform:Codelist/eform:CodelistItem/eform:ItemCode = '8']/eform:IdentifierValue) &gt; 0"><xsl:value-of select="eform:PersonData/eform:ID[eform:IdentifierType/eform:Codelist/eform:CodelistItem/eform:ItemName = 'Daňové identifikačné číslo' or eform:IdentifierType/eform:Codelist/eform:CodelistItem/eform:ItemCode = '8']/eform:IdentifierValue"/></xsl:if></fo:block><fo:block text-align="center"><xsl:if test="eform:Barcode != ''"><fo:external-graphic content-height="scale-to-fit" width="40mm"><xsl:attribute name="src"><xsl:value-of select="concat('data:image/png;base64,', eform:Barcode)"/></xsl:attribute></fo:external-graphic></xsl:if></fo:block><fo:block text-align="center"><xsl:if test="count(eform:BarcodeName) &gt; 0"><xsl:value-of select="eform:BarcodeName"/></xsl:if></fo:block></xsl:for-each></xsl:if></fo:block></fo:table-cell></fo:table-row></fo:table-body></fo:table></fo:block></xsl:if><xsl:if test="count(eform:DeliveryTo) + count(eform:Decision/eform:QRCodeNote) &gt; 0"><fo:block padding-top="5mm"><fo:table><fo:table-column column-width="37mm"/><fo:table-column column-width="58mm"/><fo:table-column column-width="58mm"/><fo:table-column column-width="37mm"/><fo:table-body><fo:table-row><fo:table-cell number-rows-spanned="8"><fo:block/></fo:table-cell><fo:table-cell><fo:block/></fo:table-cell><fo:table-cell><fo:block padding-top="0.5mm"><xsl:choose><xsl:when test="count(eform:DeliveryTo/eform:TaxPayerPP) &gt; 0"><xsl:if test="count(eform:DeliveryTo/eform:TaxPayerPP/eform:PersonData/eform:PhysicalPerson/eform:PersonName/eform:FormattedName) &gt; 0"><fo:inline font-weight="bold"><xsl:value-of select="eform:DeliveryTo/eform:TaxPayerPP/eform:PersonData/eform:PhysicalPerson/eform:PersonName/eform:FormattedName"/></fo:inline></xsl:if></xsl:when><xsl:when test="count(eform:DeliveryTo/eform:TaxPayerCB) &gt; 0"><xsl:if test="count(eform:DeliveryTo/eform:TaxPayerCB/eform:PersonData/eform:CorporateBody/eform:CorporateBodyFullName) &gt; 0"><fo:inline font-weight="bold"><xsl:value-of select="eform:DeliveryTo/eform:TaxPayerCB/eform:PersonData/eform:CorporateBody/eform:CorporateBodyFullName"/></fo:inline></xsl:if></xsl:when></xsl:choose></fo:block></fo:table-cell><fo:table-cell number-rows-spanned="8"><fo:block><xsl:if test="eform:Decision/eform:QRCode != ''"><fo:external-graphic content-height="scale-to-fit" content-width="36mm"><xsl:attribute name="src"><xsl:value-of select="concat('data:image/png;base64,', eform:Decision/eform:QRCode)"/></xsl:attribute></fo:external-graphic></xsl:if></fo:block></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell><fo:block/></fo:table-cell><fo:table-cell><fo:block><xsl:choose><xsl:when test="count(eform:DeliveryTo/eform:TaxPayerPP) &gt; 0"><xsl:if test="count(eform:DeliveryTo/eform:TaxPayerPP/eform:PersonData/eform:PhysicalAddress[eform:AddressType/eform:AddressClass/eform:Codelist/eform:CodelistItem/eform:ItemName = 'Trvalý pobyt' or eform:AddressType/eform:AddressClass/eform:Codelist/eform:CodelistItem/eform:ItemCode = '100001']) &gt; 0"><xsl:for-each select="eform:DeliveryTo/eform:TaxPayerPP/eform:PersonData/eform:PhysicalAddress[eform:AddressType/eform:AddressClass/eform:Codelist/eform:CodelistItem/eform:ItemName = 'Trvalý pobyt' or eform:AddressType/eform:AddressClass/eform:Codelist/eform:CodelistItem/eform:ItemCode = '100001']"><xsl:if test="count(eform:StreetName) &gt; 0"><xsl:value-of select="eform:StreetName"/><xsl:value-of select="$sk.text.space"/></xsl:if><xsl:choose><xsl:when test="count(eform:PropertyRegistrationNumber) + count(eform:BuildingNumber) &gt; 1"><xsl:value-of select="eform:PropertyRegistrationNumber"/><xsl:value-of select="$sk.text.slash"/><xsl:value-of select="eform:BuildingNumber"/><xsl:value-of select="$sk.text.space"/></xsl:when><xsl:when test="count(eform:PropertyRegistrationNumber) &gt; 0"><xsl:value-of select="eform:PropertyRegistrationNumber"/><xsl:value-of select="$sk.text.space"/></xsl:when><xsl:when test="count(eform:BuildingNumber) &gt; 0"><xsl:value-of select="eform:BuildingNumber"/><xsl:value-of select="$sk.text.space"/></xsl:when></xsl:choose></xsl:for-each></xsl:if></xsl:when><xsl:when test="count(eform:DeliveryTo/eform:TaxPayerCB) &gt; 0"><xsl:if test="count(eform:DeliveryTo/eform:TaxPayerCB/eform:PersonData/eform:PhysicalAddress[eform:AddressType/eform:AddressClass/eform:Codelist/eform:CodelistItem/eform:ItemName = 'Sídlo právnickej osoby' or eform:AddressType/eform:AddressClass/eform:Codelist/eform:CodelistItem/eform:ItemCode = '100101']) &gt; 0"><xsl:for-each select="eform:DeliveryTo/eform:TaxPayerCB/eform:PersonData/eform:PhysicalAddress[eform:AddressType/eform:AddressClass/eform:Codelist/eform:CodelistItem/eform:ItemName = 'Sídlo právnickej osoby' or eform:AddressType/eform:AddressClass/eform:Codelist/eform:CodelistItem/eform:ItemCode = '100101']"><xsl:if test="count(eform:StreetName) &gt; 0"><xsl:value-of select="eform:StreetName"/><xsl:value-of select="$sk.text.space"/></xsl:if><xsl:choose><xsl:when test="count(eform:PropertyRegistrationNumber) + count(eform:BuildingNumber) &gt; 1"><xsl:value-of select="eform:PropertyRegistrationNumber"/><xsl:value-of select="$sk.text.slash"/><xsl:value-of select="eform:BuildingNumber"/><xsl:value-of select="$sk.text.space"/></xsl:when><xsl:when test="count(eform:PropertyRegistrationNumber) &gt; 0"><xsl:value-of select="eform:PropertyRegistrationNumber"/><xsl:value-of select="$sk.text.space"/></xsl:when><xsl:when test="count(eform:BuildingNumber) &gt; 0"><xsl:value-of select="eform:BuildingNumber"/><xsl:value-of select="$sk.text.space"/></xsl:when></xsl:choose></xsl:for-each></xsl:if></xsl:when></xsl:choose></fo:block></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell><fo:block/></fo:table-cell><fo:table-cell><fo:block><xsl:choose><xsl:when test="count(eform:DeliveryTo/eform:TaxPayerPP) &gt; 0"><xsl:if test="count(eform:DeliveryTo/eform:TaxPayerPP/eform:PersonData/eform:PhysicalAddress[eform:AddressType/eform:AddressClass/eform:Codelist/eform:CodelistItem/eform:ItemName = 'Trvalý pobyt' or eform:AddressType/eform:AddressClass/eform:Codelist/eform:CodelistItem/eform:ItemCode = '100001']) &gt; 0"><xsl:for-each select="eform:DeliveryTo/eform:TaxPayerPP/eform:PersonData/eform:PhysicalAddress[eform:AddressType/eform:AddressClass/eform:Codelist/eform:CodelistItem/eform:ItemName = 'Trvalý pobyt' or eform:AddressType/eform:AddressClass/eform:Codelist/eform:CodelistItem/eform:ItemCode = '100001']"><xsl:if test="count(eform:DeliveryAddress/eform:PostalCode) &gt; 0"><xsl:for-each select="eform:DeliveryAddress/eform:PostalCode"><xsl:call-template name="FormatPostalCode"/></xsl:for-each></xsl:if><xsl:if test="count(eform:Municipality) &gt; 0"><xsl:value-of select="$sk.text.space"/><xsl:value-of select="$sk.text.space"/><xsl:for-each select="eform:Municipality"><xsl:choose><xsl:when test="count(eform:Codelist/eform:CodelistItem/eform:ItemName) &gt; 0"><xsl:value-of select="eform:Codelist/eform:CodelistItem/eform:ItemName"/></xsl:when><xsl:when test="count(eform:NonCodelistData) &gt; 0"><xsl:value-of select="eform:NonCodelistData"/></xsl:when></xsl:choose></xsl:for-each></xsl:if></xsl:for-each></xsl:if></xsl:when><xsl:when test="count(eform:DeliveryTo/eform:TaxPayerCB) &gt; 0"><xsl:if test="count(eform:DeliveryTo/eform:TaxPayerCB/eform:PersonData/eform:PhysicalAddress[eform:AddressType/eform:AddressClass/eform:Codelist/eform:CodelistItem/eform:ItemName = 'Sídlo právnickej osoby' or eform:AddressType/eform:AddressClass/eform:Codelist/eform:CodelistItem/eform:ItemCode = '100101']) &gt; 0"><xsl:for-each select="eform:DeliveryTo/eform:TaxPayerCB/eform:PersonData/eform:PhysicalAddress[eform:AddressType/eform:AddressClass/eform:Codelist/eform:CodelistItem/eform:ItemName = 'Sídlo právnickej osoby' or eform:AddressType/eform:AddressClass/eform:Codelist/eform:CodelistItem/eform:ItemCode = '100101']"><xsl:if test="count(eform:DeliveryAddress/eform:PostalCode) &gt; 0"><xsl:for-each select="eform:DeliveryAddress/eform:PostalCode"><xsl:call-template name="FormatPostalCode"/></xsl:for-each></xsl:if><xsl:if test="count(eform:Municipality) &gt; 0"><xsl:value-of select="$sk.text.space"/><xsl:value-of select="$sk.text.space"/><xsl:for-each select="eform:Municipality"><xsl:choose><xsl:when test="count(eform:Codelist/eform:CodelistItem/eform:ItemName) &gt; 0"><xsl:value-of select="eform:Codelist/eform:CodelistItem/eform:ItemName"/></xsl:when><xsl:when test="count(eform:NonCodelistData) &gt; 0"><xsl:value-of select="eform:NonCodelistData"/></xsl:when></xsl:choose></xsl:for-each></xsl:if></xsl:for-each></xsl:if></xsl:when></xsl:choose></fo:block></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell><fo:block/></fo:table-cell><fo:table-cell><fo:block><xsl:choose><xsl:when test="count(eform:DeliveryTo/eform:TaxPayerPP) &gt; 0"><xsl:if test="count(eform:DeliveryTo/eform:TaxPayerPP/eform:PersonData/eform:PhysicalAddress[eform:AddressType/eform:AddressClass/eform:Codelist/eform:CodelistItem/eform:ItemName = 'Trvalý pobyt' or eform:AddressType/eform:AddressClass/eform:Codelist/eform:CodelistItem/eform:ItemCode = '100001']) &gt; 0"><xsl:for-each select="eform:DeliveryTo/eform:TaxPayerPP/eform:PersonData/eform:PhysicalAddress[eform:AddressType/eform:AddressClass/eform:Codelist/eform:CodelistItem/eform:ItemName = 'Trvalý pobyt' or eform:AddressType/eform:AddressClass/eform:Codelist/eform:CodelistItem/eform:ItemCode = '100001']"><xsl:if test="count(eform:Country) &gt; 0"><xsl:for-each select="eform:Country"><xsl:choose><xsl:when test="count(eform:Codelist/eform:CodelistItem/eform:ItemName) &gt; 0"><xsl:value-of select="eform:Codelist/eform:CodelistItem/eform:ItemName"/></xsl:when><xsl:when test="count(eform:NonCodelistData) &gt; 0"><xsl:value-of select="eform:NonCodelistData"/></xsl:when></xsl:choose></xsl:for-each></xsl:if></xsl:for-each></xsl:if></xsl:when><xsl:when test="count(eform:DeliveryTo/eform:TaxPayerCB) &gt; 0"><xsl:if test="count(eform:DeliveryTo/eform:TaxPayerCB/eform:PersonData/eform:PhysicalAddress[eform:AddressType/eform:AddressClass/eform:Codelist/eform:CodelistItem/eform:ItemName = 'Sídlo právnickej osoby' or eform:AddressType/eform:AddressClass/eform:Codelist/eform:CodelistItem/eform:ItemCode = '100101']) &gt; 0"><xsl:for-each select="eform:DeliveryTo/eform:TaxPayerCB/eform:PersonData/eform:PhysicalAddress[eform:AddressType/eform:AddressClass/eform:Codelist/eform:CodelistItem/eform:ItemName = 'Sídlo právnickej osoby' or eform:AddressType/eform:AddressClass/eform:Codelist/eform:CodelistItem/eform:ItemCode = '100101']"><xsl:if test="count(eform:Country) &gt; 0"><xsl:for-each select="eform:Country"><xsl:choose><xsl:when test="count(eform:Codelist/eform:CodelistItem/eform:ItemName) &gt; 0"><xsl:value-of select="eform:Codelist/eform:CodelistItem/eform:ItemName"/></xsl:when><xsl:when test="count(eform:NonCodelistData) &gt; 0"><xsl:value-of select="eform:NonCodelistData"/></xsl:when></xsl:choose></xsl:for-each></xsl:if></xsl:for-each></xsl:if></xsl:when></xsl:choose></fo:block></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell><fo:block/></fo:table-cell><fo:table-cell><fo:block/></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell><fo:block/></fo:table-cell><fo:table-cell padding-right="2mm" padding-top="7mm" text-align="right"><fo:block><xsl:if test="count(eform:Decision/eform:QRCodeNote) &gt; 0"><xsl:value-of select="eform:Decision/eform:QRCodeNote"/></xsl:if></fo:block></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell><fo:block/></fo:table-cell><fo:table-cell><fo:block/></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell number-columns-spanned="2"><fo:block font-weight="bold" padding-top="5mm" text-align="center" vertical-align="middle"/></fo:table-cell></fo:table-row></fo:table-body></fo:table></fo:block></xsl:if></xsl:template><xsl:template name="Pages"><fo:block><fo:table><fo:table-column column-number="1" column-width="190mm"/><fo:table-body><fo:table-row><fo:table-cell column-number="1"><fo:block color="#A8A9AD" font-weight="normal" text-align="end"><xsl:value-of select="$sk.text.page"/><xsl:value-of select="$sk.text.space"/><fo:page-number/><xsl:value-of select="$sk.text.slash"/><fo:page-number-citation-last ref-id="document"/></fo:block></fo:table-cell></fo:table-row></fo:table-body></fo:table></fo:block></xsl:template><xsl:template name="FormatTelephoneNumber"><xsl:for-each select="eform:FormattedNumber"><xsl:choose><xsl:when test="substring(.,1,4) = '+421'"><xsl:value-of select="substring(.,1,4)"/><xsl:value-of select="$sk.text.space"/><xsl:choose><xsl:when test="substring(.,5,1) = '2'"><xsl:value-of select="substring(.,5,1)"/><xsl:value-of select="$sk.text.space"/><xsl:value-of select="substring(.,6,4)"/><xsl:value-of select="$sk.text.space"/><xsl:value-of select="substring(.,10,4)"/></xsl:when><xsl:when test="substring(.,5,1) &gt; '2' and substring(.,5,1) &lt; '6'"><xsl:value-of select="substring(.,5,2)"/><xsl:value-of select="$sk.text.space"/><xsl:value-of select="substring(.,7,3)"/><xsl:value-of select="$sk.text.space"/><xsl:value-of select="substring(.,10,4)"/></xsl:when><xsl:when test="substring(.,5,1) = '9'"><xsl:value-of select="substring(.,5,3)"/><xsl:value-of select="$sk.text.space"/><xsl:value-of select="substring(.,8,3)"/><xsl:value-of select="$sk.text.space"/><xsl:value-of select="substring(.,11,3)"/></xsl:when><xsl:otherwise><xsl:value-of select="substring(.,5)"/></xsl:otherwise></xsl:choose></xsl:when><xsl:otherwise><xsl:value-of select="."/></xsl:otherwise></xsl:choose></xsl:for-each></xsl:template><xsl:template name="FormatAnyUri"><xsl:param name="anyUri"/><xsl:variable name="anyUriString" select="string($anyUri)"/><xsl:variable name="anyUriSubString"><xsl:choose><xsl:when test="$anyUriString != '' and contains($anyUriString, 'mailto:') and contains($anyUriString, '@')"><xsl:value-of select="substring($anyUriString, 8, string-length($anyUriString))"/></xsl:when><xsl:when test="$anyUriString != '' and contains($anyUriString, 'http://')"><xsl:value-of select="substring($anyUriString, 8, string-length($anyUriString))"/></xsl:when><xsl:when test="$anyUriString != '' and contains($anyUriString, 'https://')"><xsl:value-of select="substring($anyUriString, 9, string-length($anyUriString))"/></xsl:when><xsl:otherwise><xsl:value-of select="$anyUriString"/></xsl:otherwise></xsl:choose></xsl:variable><xsl:value-of select="$anyUriSubString"/></xsl:template><xsl:template name="PhysicalAddress"><xsl:if test="count(eform:StreetName) + count(eform:PropertyRegistrationNumber) + count(eform:BuildingNumber) + count(eform:BuildingUnit) + count(eform:DeliveryAddress/eform:PostalCode)+ count(eform:Municipality/eform:Codelist/eform:CodelistItem/eform:ItemName) + count(eform:Municipality/eform:NonCodelistData) + count(eform:District/eform:Codelist/eform:CodelistItem/eform:ItemName) + count(eform:County/eform:Codelist/eform:CodelistItem/eform:ItemName) + count(eform:Region/eform:Codelist/eform:CodelistItem/eform:ItemName) + count(eform:Country/eform:Codelist/eform:CodelistItem/eform:ItemName) + count(eform:Country/eform:NonCodelistData) + count(eform:County/eform:NonCodelistData) + count(eform:Region/eform:NonCodelistData) &gt; 0"><xsl:if test="count(eform:StreetName) + count(eform:PropertyRegistrationNumber) + count(eform:BuildingNumber) + count(eform:BuildingUnit) &gt; 0"><xsl:value-of select="eform:StreetName"/><xsl:value-of select="$sk.text.space"/><xsl:value-of select="eform:PropertyRegistrationNumber"/><xsl:if test="count(eform:BuildingNumber) + count(eform:PropertyRegistrationNumber) &gt; 1"><xsl:value-of select="$sk.text.slash"/></xsl:if><xsl:if test="count(eform:BuildingNumber) &gt; 0"><xsl:value-of select="eform:BuildingNumber"/></xsl:if><xsl:if test="count(eform:BuildingUnit) &gt; 0"><xsl:value-of select="$sk.text.comma"/><xsl:value-of select="$sk.text.space"/><xsl:value-of select="eform:BuildingUnit"/></xsl:if><xsl:value-of select="$sk.text.comma"/><xsl:value-of select="$sk.text.space"/></xsl:if><xsl:if test="count(eform:DeliveryAddress/eform:PostalCode) + count(eform:Municipality) + count(eform:District) &gt; 0"><xsl:if test="count(eform:DeliveryAddress/eform:PostalCode) &gt; 0"><xsl:for-each select="eform:DeliveryAddress/eform:PostalCode"><xsl:call-template name="FormatPostalCode"/></xsl:for-each><xsl:value-of select="$sk.text.space"/><xsl:value-of select="$sk.text.space"/></xsl:if><xsl:choose><xsl:when test="count(eform:Municipality/eform:Codelist/eform:CodelistItem/eform:ItemName) &gt; 0"><xsl:value-of select="eform:Municipality/eform:Codelist/eform:CodelistItem/eform:ItemName"/></xsl:when><xsl:when test="count(eform:Municipality/eform:NonCodelistData) &gt; 0"><xsl:value-of select="eform:Municipality/eform:NonCodelistData"/></xsl:when><xsl:otherwise/></xsl:choose><xsl:choose><xsl:when test="count(eform:District/eform:Codelist/eform:CodelistItem/eform:ItemName) &gt; 0"><xsl:value-of select="$sk.text.space"/><xsl:value-of select="$sk.text.dash"/><xsl:value-of select="$sk.text.space"/><xsl:value-of select="eform:District/eform:Codelist/eform:CodelistItem/eform:ItemName"/></xsl:when><xsl:when test="count(eform:District/eform:NonCodelistData) &gt; 0"><xsl:value-of select="$sk.text.space"/><xsl:value-of select="$sk.text.dash"/><xsl:value-of select="$sk.text.space"/><xsl:value-of select="eform:District/eform:NonCodelistData"/></xsl:when><xsl:otherwise/></xsl:choose><xsl:value-of select="$sk.text.newline"/></xsl:if><xsl:choose><xsl:when test="count(eform:County/eform:Codelist/eform:CodelistItem/eform:ItemName) &gt; 0"><xsl:value-of select="eform:County/eform:Codelist/eform:CodelistItem/eform:ItemName"/><xsl:value-of select="$sk.text.comma"/><xsl:value-of select="$sk.text.space"/></xsl:when><xsl:when test="count(eform:County/eform:NonCodelistData) &gt; 0"><xsl:value-of select="eform:County/eform:NonCodelistData"/><xsl:value-of select="$sk.text.comma"/><xsl:value-of select="$sk.text.space"/></xsl:when><xsl:otherwise/></xsl:choose><xsl:choose><xsl:when test="count(eform:Region/eform:Codelist/eform:CodelistItem/eform:ItemName) &gt; 0"><xsl:value-of select="eform:Region/eform:Codelist/eform:CodelistItem/eform:ItemName"/><xsl:value-of select="$sk.text.comma"/><xsl:value-of select="$sk.text.space"/></xsl:when><xsl:when test="count(eform:Region/eform:NonCodelistData) &gt; 0"><xsl:value-of select="eform:Region/eform:NonCodelistData"/><xsl:value-of select="$sk.text.comma"/><xsl:value-of select="$sk.text.space"/></xsl:when><xsl:otherwise/></xsl:choose><xsl:choose><xsl:when test="count(eform:Country/eform:Codelist/eform:CodelistItem/eform:ItemName) &gt; 0"><xsl:value-of select="eform:Country/eform:Codelist/eform:CodelistItem/eform:ItemName"/></xsl:when><xsl:when test="count(eform:Country/eform:NonCodelistData) &gt; 0"><xsl:value-of select="eform:Country/eform:NonCodelistData"/></xsl:when><xsl:otherwise/></xsl:choose></xsl:if></xsl:template><xsl:template name="FormatPostalCode"><xsl:choose><xsl:when test="string(number(.)) != 'NaN' and . != '' and string-length(.) = 5"><xsl:value-of select="concat(substring(., 1, 3), ' ', substring(., 4, 5))"/></xsl:when><xsl:otherwise><xsl:value-of select="."/></xsl:otherwise></xsl:choose></xsl:template><xsl:template name="FormatDate"><xsl:param name="date"/><xsl:param name="locale"/><xsl:if test="boolean($date) and $date != ''"><xsl:variable name="year" select="substring-before($date,'-')"/><xsl:variable name="month" select="substring-before(substring-after($date,'-'),'-')"/><xsl:variable name="day" select="substring-after(substring-after($date,'-'),'-')"/><xsl:choose><xsl:when test="normalize-space($locale)='sk'"><xsl:value-of select="format-number(number($day),'00')"/><xsl:value-of select="$sk.text.dot"/><xsl:value-of select="format-number(number($month),'00')"/><xsl:value-of select="$sk.text.dot"/><xsl:value-of select="$year"/></xsl:when><xsl:otherwise><xsl:value-of select="$month"/><xsl:value-of select="$sk.text.slash"/><xsl:value-of select="$day"/><xsl:value-of select="$sk.text.slash"/><xsl:value-of select="$year"/></xsl:otherwise></xsl:choose></xsl:if></xsl:template><xsl:template name="FormatPrice"><xsl:param name="price"/><xsl:param name="currency"/><xsl:choose><xsl:when test="boolean($price) and $price !=''"><xsl:value-of select="translate(format-number($price,'#,##0.00'),',.',' ,')"/></xsl:when><xsl:otherwise><xsl:value-of select="$sk.text.zero"/></xsl:otherwise></xsl:choose><xsl:if test="boolean($currency) and $currency !=''"><xsl:value-of select="$sk.text.space"/><xsl:value-of select="$currency"/></xsl:if></xsl:template><xsl:template name="FormatNumber"><xsl:param name="price"/><xsl:choose><xsl:when test="boolean($price) and $price !=''"><xsl:value-of select="translate(format-number($price,'#,##0.00'),',.',' ,')"/></xsl:when><xsl:otherwise><xsl:value-of select="$sk.text.zero"/></xsl:otherwise></xsl:choose></xsl:template><xsl:template name="FormatNumber3Digits"><xsl:param name="price"/><xsl:choose><xsl:when test="boolean($price) and $price !=''"><xsl:value-of select="translate(format-number($price,'#,##0.000'),',.',' ,')"/></xsl:when><xsl:otherwise><xsl:value-of select="$sk.text.zero"/></xsl:otherwise></xsl:choose></xsl:template><xsl:template name="FormatNumber4Digits"><xsl:param name="price"/><xsl:choose><xsl:when test="boolean($price) and $price !=''"><xsl:value-of select="translate(format-number($price,'#,##0.0000'),',.',' ,')"/></xsl:when><xsl:otherwise><xsl:value-of select="$sk.text.zero"/></xsl:otherwise></xsl:choose></xsl:template><xsl:template name="FormatNumber5Digits"><xsl:param name="price"/><xsl:choose><xsl:when test="boolean($price) and $price !=''"><xsl:value-of select="translate(format-number($price,'#,##0.00000'),',.',' ,')"/></xsl:when><xsl:otherwise><xsl:value-of select="$sk.text.zero"/></xsl:otherwise></xsl:choose></xsl:template><xsl:template name="FormatStringCharacter"><xsl:param name="input"/><xsl:if test="string-length($input)"><xsl:choose><xsl:when test="substring($input, 1, 1) = '2'"><fo:inline baseline-shift="3pt" font-size="6pt" padding-left="-3pt" vertical-align="super"><xsl:value-of select="substring($input, 1, 1)"/></fo:inline></xsl:when><xsl:otherwise><xsl:value-of select="substring($input, 1, 1)"/></xsl:otherwise></xsl:choose><xsl:call-template name="FormatStringCharacter"><xsl:with-param name="input" select="substring($input, 2)"/></xsl:call-template></xsl:if></xsl:template><xsl:template match="include-xsl-fo"><xsl:copy-of select="@*"/></xsl:template><xsl:template match="eform:a|a"><fo:inline><xsl:if test="@name and not(@id)"><xsl:attribute name="id"><xsl:value-of select="@name"/></xsl:attribute></xsl:if><xsl:apply-templates/></fo:inline></xsl:template><xsl:template match="eform:a[@href]|a[@href]"><fo:basic-link color="blue" text-decoration="underline"><xsl:if test="@type"><xsl:attribute name="content-type"><xsl:value-of select="@type"/></xsl:attribute></xsl:if><xsl:choose><xsl:when test="starts-with(@href,'#')"><xsl:attribute name="internal-destination"><xsl:value-of select="substring-after(@href,'#')"/></xsl:attribute></xsl:when><xsl:otherwise><xsl:attribute name="external-destination"><xsl:text>url('</xsl:text><xsl:value-of select="concat(//base/@href,@href)"/><xsl:text>')</xsl:text></xsl:attribute></xsl:otherwise></xsl:choose><xsl:apply-templates/></fo:basic-link></xsl:template><xsl:template match="eform:ol|ol|eform:ul|ul"><fo:list-block provisional-distance-between-starts="{string-length(count(li))*.9+.6}em" provisional-label-separation=".2em"><xsl:apply-templates/></fo:list-block></xsl:template><xsl:template match="eform:ol/eform:li|ol/li"><fo:list-item><fo:list-item-label end-indent="label-end()"><fo:block text-align="end"><xsl:variable name="value"><xsl:choose><xsl:when test="@value"><xsl:value-of select="@value"/></xsl:when><xsl:otherwise><xsl:number/></xsl:otherwise></xsl:choose></xsl:variable></fo:block></fo:list-item-label><fo:list-item-body start-indent="body-start()"><fo:block><xsl:apply-templates/></fo:block></fo:list-item-body></fo:list-item></xsl:template><xsl:template match="eform:ul/eform:li|ul/li"><fo:list-item><fo:list-item-label end-indent="label-end()"><fo:block text-align="end"><fo:inline font-family="Arial"><xsl:text>•</xsl:text></fo:inline></fo:block></fo:list-item-label><fo:list-item-body start-indent="body-start()"><fo:block><xsl:apply-templates/></fo:block></fo:list-item-body></fo:list-item></xsl:template><xsl:template match="eform:br|br"><fo:block white-space="pre"><xsl:text disable-output-escaping="yes"/></fo:block></xsl:template><xsl:template match="eform:b|b|eform:strong|strong"><fo:inline font-weight="bold"><xsl:apply-templates/></fo:inline></xsl:template><xsl:template match="eform:i|i"><fo:inline font-style="italic"><xsl:apply-templates/></fo:inline></xsl:template><xsl:template match="eform:big|big"><fo:inline font-size="larger"><xsl:apply-templates/></fo:inline></xsl:template><xsl:template match="eform:ins|ins|eform:u|u"><fo:inline text-decoration="underline"><xsl:apply-templates/></fo:inline></xsl:template><xsl:template match="eform:q|q"><fo:inline><xsl:text disable-output-escaping="yes">“</xsl:text><xsl:apply-templates/><xsl:text disable-output-escaping="yes">”</xsl:text></fo:inline></xsl:template><xsl:template match="eform:q[starts-with(.,'&quot;') or starts-with(.,'“') or starts-with(.,'‟')]|q[starts-with(.,'&quot;') or starts-with(.,'“') or starts-with(.,'‟')]"><fo:inline><xsl:apply-templates/></fo:inline></xsl:template><xsl:template match="eform:small|small"><fo:inline font-size="smaller"><xsl:apply-templates/></fo:inline></xsl:template><xsl:template name="createFoColumnWithWidth"><xsl:param name="fieldValue"/><xsl:param name="defaultValue"/><fo:table-column><xsl:attribute name="column-width"><xsl:choose><xsl:when test="number($fieldValue)=$fieldValue"><xsl:value-of select="$fieldValue"/><xsl:value-of select="$mm"/></xsl:when><xsl:otherwise><xsl:value-of select="$defaultValue"/><xsl:value-of select="$mm"/></xsl:otherwise></xsl:choose></xsl:attribute><xsl:if test="number($fieldValue)=$fieldValue and $fieldValue = 0"><xsl:attribute name="visibility"><xsl:text>hidden</xsl:text></xsl:attribute></xsl:if></fo:table-column></xsl:template></xsl:stylesheet>