<?xml version="1.0" encoding="windows-1251"?>
<xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" exclude-result-prefixes="fo">
	<xsl:output method="xml" version="1.0" omit-xml-declaration="no" indent="yes"/>
	<xsl:template match="DECLARBODY">
		<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
			<fo:layout-master-set>
				<fo:simple-page-master margin-right="0.5cm" margin-left="2cm" margin-bottom="1cm" margin-top="0.5cm" page-width="29.7cm" page-height="21cm" master-name="first">
					<fo:region-body margin-top="0cm" margin-bottom="0cm"/>
					<fo:region-before extent="0cm"/>
					<fo:region-after extent="0cm"/>
				</fo:simple-page-master>
			</fo:layout-master-set>
			<fo:page-sequence font-family="TimesNewRoman" master-reference="first" font-size="10pt">
				<fo:flow flow-name="xsl-region-body">
					<fo:table table-layout="fixed">
						<fo:table-column column-number="1" column-width="10.7cm"/>
						<fo:table-column column-number="2" column-width="16cm"/>
						<fo:table-body>
							<fo:table-row>
								<fo:table-cell text-align="left">
									<fo:block font-size="6pt" font-weight="bold">
										J0119801
									</fo:block>
								</fo:table-cell>
								<fo:table-cell text-align="right">
									<fo:block font-size="6pt" font-weight="bold">
										<xsl:value-of select="/DECLAR/DECLARHEAD/TIN"/>
									</fo:block>
								</fo:table-cell>
							</fo:table-row>
						</fo:table-body>
					</fo:table>
					<fo:table space-before="11pt" font-size="8pt">
						<fo:table-column column-number="1" column-width="1cm"/>
						<fo:table-column column-number="2" column-width="2cm"/>
						<fo:table-column column-number="3" column-width="11.1cm"/>
						<fo:table-column column-number="4" column-width="13cm"/>
						<fo:table-body>
							<fo:table-row>
								<fo:table-cell border-style="solid" border-width="0.25pt" display-align="center">
									<fo:block text-align="center">
										<xsl:if test="HZ=1">X</xsl:if>
									</fo:block>
								</fo:table-cell>
								<fo:table-cell padding-left="0.1cm" border-style="solid" border-width="0.25pt">
									<fo:block>Звітний</fo:block>
								</fo:table-cell>
								<fo:table-cell number-rows-spanned="3">
									<fo:block>
										<fo:leader leader-pattern="space" leader-length="5pt"/>
									</fo:block>
								</fo:table-cell>
								<fo:table-cell padding-left="0.1cm" text-align="left" number-rows-spanned="3">
									<fo:block>Додаток ГД</fo:block>
									<fo:block>
до рядків 10.1, 13.1 та 16.1 Податкового звіту про використання коштів неприбуткових установ та організацій
									</fo:block>
								</fo:table-cell>
							</fo:table-row>
							<fo:table-row>
								<fo:table-cell border-style="solid" border-width="0.25pt" display-align="center">
									<fo:block text-align="center">
										<xsl:if test="HZN=1">X</xsl:if>
									</fo:block>
								</fo:table-cell>
								<fo:table-cell padding-left="0.1cm" border-style="solid" border-width="0.25pt">
									<fo:block>
				Звітний новий
							</fo:block>
								</fo:table-cell>
							</fo:table-row>
							<fo:table-row>
								<fo:table-cell border-style="solid" border-width="0.25pt" display-align="center">
									<fo:block text-align="center">
										<xsl:if test="HZU=1">X</xsl:if>
									</fo:block>
								</fo:table-cell>
								<fo:table-cell padding-left="0.1cm" border-style="solid" border-width="0.25pt">
									<fo:block>
				Уточнюючий
							</fo:block>
								</fo:table-cell>
							</fo:table-row>
						</fo:table-body>
					</fo:table>
					<fo:table space-before.optimum="0.5cm" font-size="8pt">
						<fo:table-column column-number="1" column-width="3cm"/>
						<fo:table-column column-number="2" column-width="13.1cm"/>
						<fo:table-column column-number="3" column-width="8cm"/>
						<fo:table-column column-number="4" column-width="2cm"/>
						<fo:table-column column-number="5" column-width="1cm"/>
						<fo:table-body>
							<fo:table-row>
								<fo:table-cell display-align="center">
									<fo:block text-align="center">	
							Код за ЄДРПОУ			
							</fo:block>
								</fo:table-cell>
								<fo:table-cell number-rows-spanned="2">
									<fo:block>
										<fo:leader leader-pattern="space" leader-length="5pt"/>
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt">
									<fo:block>	
							Звітний  (податковий) період  
							<fo:leader leader-pattern="space" leader-length="5pt"/>
										<fo:inline font-weight="bold">
											<xsl:value-of select="HZY"/>
										</fo:inline>
										<fo:leader leader-pattern="space" leader-length="5pt"/>
							  року
							  </fo:block>
								</fo:table-cell>
								<fo:table-cell border-style="solid" border-width="0.25pt">
									<fo:block>
										<fo:leader leader-pattern="space" leader-length="5pt"/>
									</fo:block>
								</fo:table-cell>
								<fo:table-cell border-style="solid" border-width="0.25pt" text-align="center">
									<fo:block>
										Рік 
									</fo:block>
								</fo:table-cell>
							</fo:table-row>
							<fo:table-row>
								<fo:table-cell border-style="solid" border-width="0.25pt" font-size="10pt" padding-right="0.1cm" display-align="center">
									<fo:block text-align="right" font-weight="bold" font-size="10pt">
										<xsl:value-of select="HTIN"/>
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt">
									<fo:block>	
						Звітний (податковий) період, що уточнюється      
							<fo:leader leader-pattern="space" leader-length="5pt"/>
										<fo:inline font-weight="bold">
											<xsl:value-of select="HZYP"/>
										</fo:inline>
										<fo:leader leader-pattern="space" leader-length="5pt"/>
							  року
							  </fo:block>
								</fo:table-cell>
								<fo:table-cell border-style="solid" border-width="0.25pt">
									<fo:block>
										<fo:leader leader-pattern="space" leader-length="5pt"/>
									</fo:block>
								</fo:table-cell>
								<fo:table-cell border-style="solid" border-width="0.25pt">
									<fo:block>
										<fo:leader leader-pattern="space" leader-length="5pt"/>
									</fo:block>
								</fo:table-cell>
							</fo:table-row>
						</fo:table-body>
					</fo:table>
					<fo:block text-align="center" space-before="0.5cm" font-weight="bold">
						Розшифровка операцій з гуманітарної допомоги
					</fo:block>
					<fo:block space-before="0.5cm" font-weight="bold">
					1. Залишок нерозподіленої гуманітарної допомоги на початок звітного (податкового) року
					</fo:block>
					<fo:table font-size="8pt" display-align="center" hyphenate="true" space-before="0.2cm">
						<fo:table-column column-number="1" column-width="1cm"/>
						<fo:table-column column-number="2" column-width="8.05cm"/>
						<fo:table-column column-number="3" column-width="3cm"/>
						<fo:table-column column-number="4" column-width="8.05cm"/>
						<fo:table-column column-number="5" column-width="2cm"/>
						<fo:table-column column-number="6" column-width="2cm"/>
						<fo:table-column column-number="7" column-width="3cm"/>
						<fo:table-body>
							<fo:table-row>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
								№ з/п
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
								Найменування організації, яка надала гуманітарну допомогу, країна
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt">
									<fo:block text-align="center"/>
									<fo:block text-align="center">
									Дата, номер наказу про визнання гуманітарної допомоги, за яким відбувся її розподіл
									</fo:block>
									<fo:block text-align="center"/>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
								Найменування гуманітарної допомоги (транспортні засоби, товари, кошти, виконані роботи, надані послуги)
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
								Одиниця виміру (кг, шт. тощо)
									</fo:block>
									<fo:block text-align="center"/>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
								Кількість (вага, об’єм, обсяг)
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
							Вартість транспортних засобів, товарів (коштів), виконаних робіт, наданих послуг (грн.)
									</fo:block>
								</fo:table-cell>
							</fo:table-row>
							<fo:table-row>
								<fo:table-cell border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
									1
									</fo:block>
								</fo:table-cell>
								<fo:table-cell border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
									2
									</fo:block>
								</fo:table-cell>
								<fo:table-cell border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
									3
									</fo:block>
								</fo:table-cell>
								<fo:table-cell border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
									4
									</fo:block>
								</fo:table-cell>
								<fo:table-cell border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
									5
									</fo:block>
								</fo:table-cell>
								<fo:table-cell border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
								6
									</fo:block>
								</fo:table-cell>
								<fo:table-cell border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
								7
									</fo:block>
								</fo:table-cell>
							</fo:table-row>
							<xsl:if test="count(//DECLARBODY/*[substring(name(),1,7)='T1RXXXX'])=0">
								<xsl:call-template name="t1_row">
									<xsl:with-param name="rownum" select="1"/>
									<xsl:with-param name="iden" select="'T1RXXXX'"/>
								</xsl:call-template>
							</xsl:if>
							<xsl:for-each select="//DECLARBODY/*[substring(name(), 1,4)='T1RX']">
								<xsl:sort select="./@ROWNUM" data-type="number"/>
								<xsl:variable name="n" select="./@ROWNUM"/>
								<xsl:if test="count(following-sibling::*[substring(name(), 1,4)='T1RX' and @ROWNUM=$n])=0">
									<xsl:call-template name="t1_row">
										<xsl:with-param name="rownum" select="$n"/>
										<xsl:with-param name="iden" select="'T1RXXXX'"/>
									</xsl:call-template>
								</xsl:if>
							</xsl:for-each>
							<fo:table-row>
								<fo:table-cell number-columns-spanned="2" border-style="solid" border-width="0.25pt" padding-left="0.1cm" padding-top="0.1cm">
									<fo:block font-weight="bold">
									Усього
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
										X
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
										X
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
										X
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
										X
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt" padding-right="0.1cm">
									<fo:block text-align="right" font-weight="bold">
										<xsl:if test="string-length(R01G7) = 0">-</xsl:if>
										<xsl:if test="string-length(R01G7) &gt; 0">
											<xsl:value-of select="R01G7"/>
										</xsl:if>
									</fo:block>
								</fo:table-cell>
							</fo:table-row>
						</fo:table-body>
					</fo:table>
					<fo:block space-before="0.5cm" font-weight="bold">
							2. Отримано гуманітарну допомогу за звітний (податковий) рік
					</fo:block>
					<fo:table font-size="8pt" display-align="center" hyphenate="true" space-before="0.2cm">
						<fo:table-column column-number="1" column-width="1cm"/>
						<fo:table-column column-number="2" column-width="5.6cm"/>
						<fo:table-column column-number="3" column-width="3cm"/>
						<fo:table-column column-number="4" column-width="5.5cm"/>
						<fo:table-column column-number="5" column-width="2cm"/>
						<fo:table-column column-number="6" column-width="2cm"/>
						<fo:table-column column-number="7" column-width="2cm"/>
						<fo:table-column column-number="8" column-width="3cm"/>
						<fo:table-column column-number="9" column-width="3cm"/>
						<fo:table-body>
							<fo:table-row>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt" number-rows-spanned="2">
									<fo:block text-align="center">
								№ з/п
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt" number-rows-spanned="2">
									<fo:block text-align="center">
								Найменування організації, яка надала гуманітарну допомогу, країна
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt" number-rows-spanned="2 ">
									<fo:block text-align="center">
									Дата, номер наказу про визнання гуманітарної допомоги, за яким відбувся її розподіл
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt" number-rows-spanned="2">
									<fo:block text-align="center">
								Найменування гуманітарної допомоги (транспортні засоби, товари, кошти, виконані роботи, надані послуги)
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt" number-rows-spanned="2">
									<fo:block text-align="center">
								Одиниця виміру (кг, шт. тощо)
									</fo:block>
									<fo:block text-align="center"/>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt" number-rows-spanned="2">
									<fo:block text-align="center">
								Кількість (вага, об’єм, обсяг)
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt" number-columns-spanned="3">
									<fo:block text-align="center">
							Вартість транспортних засобів, товарів (коштів), виконаних робіт, наданих послуг 
									</fo:block>
								</fo:table-cell>
							</fo:table-row>
							<fo:table-row>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
							код валюти
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
							сума у валюті
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
						в грн. за курсом НБУ на дату отримання
									</fo:block>
								</fo:table-cell>
							</fo:table-row>
							<fo:table-row>
								<fo:table-cell border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
									1
									</fo:block>
								</fo:table-cell>
								<fo:table-cell border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
									2
									</fo:block>
								</fo:table-cell>
								<fo:table-cell border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
									3
									</fo:block>
								</fo:table-cell>
								<fo:table-cell border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
									4
									</fo:block>
								</fo:table-cell>
								<fo:table-cell border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
									5
									</fo:block>
								</fo:table-cell>
								<fo:table-cell border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
								6
									</fo:block>
								</fo:table-cell>
								<fo:table-cell border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
								7
									</fo:block>
								</fo:table-cell>
								<fo:table-cell border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
								8
									</fo:block>
								</fo:table-cell>
								<fo:table-cell border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
								9
									</fo:block>
								</fo:table-cell>
							</fo:table-row>
							<xsl:if test="count(//DECLARBODY/*[substring(name(),1,7)='T2RXXXX'])=0">
								<xsl:call-template name="t2_row">
									<xsl:with-param name="rownum" select="1"/>
									<xsl:with-param name="iden" select="'T2RXXXX'"/>
								</xsl:call-template>
							</xsl:if>
							<xsl:for-each select="//DECLARBODY/*[substring(name(), 1,4)='T2RX']">
								<xsl:sort select="./@ROWNUM" data-type="number"/>
								<xsl:variable name="n" select="./@ROWNUM"/>
								<xsl:if test="count(following-sibling::*[substring(name(), 1,4)='T2RX' and @ROWNUM=$n])=0">
									<xsl:call-template name="t2_row">
										<xsl:with-param name="rownum" select="$n"/>
										<xsl:with-param name="iden" select="'T2RXXXX'"/>
									</xsl:call-template>
								</xsl:if>
							</xsl:for-each>
							<fo:table-row>
								<fo:table-cell number-columns-spanned="2" border-style="solid" border-width="0.25pt" padding-left="0.1cm" padding-top="0.1cm">
									<fo:block font-weight="bold">
									Усього
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
										X
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
										X
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
										X
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
										X
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
										X
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
										X
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt" padding-right="0.1cm">
									<fo:block text-align="right" font-weight="bold">
										<xsl:if test="string-length(R02G9) = 0">-</xsl:if>
										<xsl:if test="string-length(R02G9) &gt; 0">
											<xsl:value-of select="R02G9"/>
										</xsl:if>
									</fo:block>
								</fo:table-cell>
							</fo:table-row>
						</fo:table-body>
					</fo:table>
					<fo:block space-before="0.5cm" font-weight="bold">
								3. Розподілено гуманітарну допомогу за цільовим призначенням за звітний (податковий) рік*
					</fo:block>
					<fo:table font-size="8pt" display-align="center" hyphenate="true" space-before="0.2cm">
						<fo:table-column column-number="1" column-width="1cm"/>
						<fo:table-column column-number="2" column-width="3cm"/>
						<fo:table-column column-number="3" column-width="5.1cm"/>
						<fo:table-column column-number="4" column-width="3cm"/>
						<fo:table-column column-number="5" column-width="5cm"/>
						<fo:table-column column-number="6" column-width="2cm"/>
						<fo:table-column column-number="7" column-width="2cm"/>
						<fo:table-column column-number="8" column-width="3cm"/>
						<fo:table-column column-number="9" column-width="3cm"/>
						<fo:table-body>
							<fo:table-row>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt" number-rows-spanned="2">
									<fo:block text-align="center">
								№ з/п
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt" number-columns-spanned="2">
									<fo:block text-align="center">
								Набувач
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt" number-rows-spanned="2 ">
									<fo:block text-align="center">
									Дата, номер наказу про визнання гуманітарної допомоги, за яким відбувся її розподіл
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt" number-rows-spanned="2">
									<fo:block text-align="center">
								Найменування гуманітарної допомоги (транспортні засоби, товари, кошти, виконані роботи, надані послуги)
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt" number-rows-spanned="2">
									<fo:block text-align="center">
								Одиниця виміру (кг, шт. тощо)
									</fo:block>
									<fo:block text-align="center"/>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt" number-rows-spanned="2">
									<fo:block text-align="center">
								Кількість (вага, об’єм, обсяг)
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt" number-rows-spanned="2">
									<fo:block text-align="center">
							Вартість товарів (коштів), виконаних робіт, наданих послуг (грн.)
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt" number-rows-spanned="2">
									<fo:block text-align="center">
							Дата та номер акта передачі гуманітарної допомоги
									</fo:block>
								</fo:table-cell>
							</fo:table-row>
							<fo:table-row>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
							код за ЕДРПОУ
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
						найменування
									</fo:block>
								</fo:table-cell>
							</fo:table-row>
							<fo:table-row>
								<fo:table-cell border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
									1
									</fo:block>
								</fo:table-cell>
								<fo:table-cell border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
									2
									</fo:block>
								</fo:table-cell>
								<fo:table-cell border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
									3
									</fo:block>
								</fo:table-cell>
								<fo:table-cell border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
									4
									</fo:block>
								</fo:table-cell>
								<fo:table-cell border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
									5
									</fo:block>
								</fo:table-cell>
								<fo:table-cell border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
								6
									</fo:block>
								</fo:table-cell>
								<fo:table-cell border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
								7
									</fo:block>
								</fo:table-cell>
								<fo:table-cell border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
								8
									</fo:block>
								</fo:table-cell>
								<fo:table-cell border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
								9
									</fo:block>
								</fo:table-cell>
							</fo:table-row>
							<xsl:if test="count(//DECLARBODY/*[substring(name(),1,7)='T3RXXXX'])=0">
								<xsl:call-template name="t3_row">
									<xsl:with-param name="rownum" select="1"/>
									<xsl:with-param name="iden" select="'T3RXXXX'"/>
								</xsl:call-template>
							</xsl:if>
							<xsl:for-each select="//DECLARBODY/*[substring(name(), 1,4)='T3RX']">
								<xsl:sort select="./@ROWNUM" data-type="number"/>
								<xsl:variable name="n" select="./@ROWNUM"/>
								<xsl:if test="count(following-sibling::*[substring(name(), 1,4)='T3RX' and @ROWNUM=$n])=0">
									<xsl:call-template name="t3_row">
										<xsl:with-param name="rownum" select="$n"/>
										<xsl:with-param name="iden" select="'T3RXXXX'"/>
									</xsl:call-template>
								</xsl:if>
							</xsl:for-each>
							<fo:table-row>
								<fo:table-cell number-columns-spanned="3" border-style="solid" border-width="0.25pt" padding-left="0.1cm" padding-top="0.1cm">
									<fo:block font-weight="bold">
									Усього
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
										X
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
										X
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
										X
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
										X
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt" padding-right="0.1cm">
									<fo:block text-align="right" font-weight="bold">
										<xsl:if test="string-length(R03G8) = 0">-</xsl:if>
										<xsl:if test="string-length(R03G8) &gt; 0">
											<xsl:value-of select="R03G8"/>
										</xsl:if>
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
										X
									</fo:block>
								</fo:table-cell>
							</fo:table-row>
						</fo:table-body>
					</fo:table>
					<fo:block space-before="0.5cm" font-weight="bold">
							4. Залишок нерозподіленої гуманітарної допомоги  на кінець звітного (податкового) року 
					</fo:block>
					<fo:table font-size="8pt" display-align="center" hyphenate="true" space-before="0.2cm">
						<fo:table-column column-number="1" column-width="1cm"/>
						<fo:table-column column-number="2" column-width="8.05cm"/>
						<fo:table-column column-number="3" column-width="3cm"/>
						<fo:table-column column-number="4" column-width="8.05cm"/>
						<fo:table-column column-number="5" column-width="2cm"/>
						<fo:table-column column-number="6" column-width="2cm"/>
						<fo:table-column column-number="7" column-width="3cm"/>
						<fo:table-body>
							<fo:table-row>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
								№ з/п
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
								Найменування організації, яка надала гуманітарну допомогу, країна
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
									Дата, номер наказу про визнання гуманітарної допомоги, за яким відбувся її розподіл
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
								Найменування гуманітарної допомоги (транспортні засоби, товари, кошти, виконані роботи, надані послуги)
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
								Одиниця виміру (кг, шт. тощо)
									</fo:block>
									<fo:block text-align="center"/>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
								Кількість (вага, об’єм, обсяг)
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
							Вартість транспортних засобів, товарів (коштів), виконаних робіт, наданих послуг (грн.)
									</fo:block>
								</fo:table-cell>
							</fo:table-row>
							<fo:table-row>
								<fo:table-cell border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
									1
									</fo:block>
								</fo:table-cell>
								<fo:table-cell border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
									2
									</fo:block>
								</fo:table-cell>
								<fo:table-cell border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
									3
									</fo:block>
								</fo:table-cell>
								<fo:table-cell border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
									4
									</fo:block>
								</fo:table-cell>
								<fo:table-cell border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
									5
									</fo:block>
								</fo:table-cell>
								<fo:table-cell border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
								6
									</fo:block>
								</fo:table-cell>
								<fo:table-cell border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
								7
									</fo:block>
								</fo:table-cell>
							</fo:table-row>
							<xsl:if test="count(//DECLARBODY/*[substring(name(),1,7)='T4RXXXX'])=0">
								<xsl:call-template name="t4_row">
									<xsl:with-param name="rownum" select="1"/>
									<xsl:with-param name="iden" select="'T4RXXXX'"/>
								</xsl:call-template>
							</xsl:if>
							<xsl:for-each select="//DECLARBODY/*[substring(name(), 1,4)='T4RX']">
								<xsl:sort select="./@ROWNUM" data-type="number"/>
								<xsl:variable name="n" select="./@ROWNUM"/>
								<xsl:if test="count(following-sibling::*[substring(name(), 1,4)='T4RX' and @ROWNUM=$n])=0">
									<xsl:call-template name="t4_row">
										<xsl:with-param name="rownum" select="$n"/>
										<xsl:with-param name="iden" select="'T4RXXXX'"/>
									</xsl:call-template>
								</xsl:if>
							</xsl:for-each>
							<fo:table-row>
								<fo:table-cell number-columns-spanned="2" border-style="solid" border-width="0.25pt" padding-left="0.1cm" padding-top="0.1cm">
									<fo:block font-weight="bold">
									Усього
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
										X
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
										X
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
										X
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
										X
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt" padding-right="0.1cm">
									<fo:block text-align="right" font-weight="bold">
										<xsl:if test="string-length(R04G7) = 0">-</xsl:if>
										<xsl:if test="string-length(R04G7) &gt; 0">
											<xsl:value-of select="R04G7"/>
										</xsl:if>
									</fo:block>
								</fo:table-cell>
							</fo:table-row>
						</fo:table-body>
					</fo:table>
					<fo:block space-before="0.5cm" font-weight="bold">
							5. Гуманітарна допомога, використана не за цільовим призначенням за звітний (податковий) рік  
					</fo:block>
					<fo:table font-size="8pt" display-align="center" hyphenate="true" space-before="0.2cm">
						<fo:table-column column-number="1" column-width="1cm"/>
						<fo:table-column column-number="2" column-width="8.05cm"/>
						<fo:table-column column-number="3" column-width="3cm"/>
						<fo:table-column column-number="4" column-width="8.05cm"/>
						<fo:table-column column-number="5" column-width="2cm"/>
						<fo:table-column column-number="6" column-width="2cm"/>
						<fo:table-column column-number="7" column-width="3cm"/>
						<fo:table-body>
							<fo:table-row>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
								№ з/п
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
								Найменування організації, яка надала гуманітарну допомогу, країна
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
									Дата, номер наказу про визнання гуманітарної допомоги, за яким відбувся її розподіл
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
								Найменування гуманітарної допомоги (транспортні засоби, товари, кошти, виконані роботи, надані послуги)
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
								Одиниця виміру (кг, шт. тощо)
									</fo:block>
									<fo:block text-align="center"/>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
								Кількість (вага, об’єм, обсяг)
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
							Вартість транспортних засобів, товарів (коштів), виконаних робіт, наданих послуг (грн.)
									</fo:block>
								</fo:table-cell>
							</fo:table-row>
							<fo:table-row>
								<fo:table-cell border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
									1
									</fo:block>
								</fo:table-cell>
								<fo:table-cell border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
									2
									</fo:block>
								</fo:table-cell>
								<fo:table-cell border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
									3
									</fo:block>
								</fo:table-cell>
								<fo:table-cell border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
									4
									</fo:block>
								</fo:table-cell>
								<fo:table-cell border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
									5
									</fo:block>
								</fo:table-cell>
								<fo:table-cell border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
								6
									</fo:block>
								</fo:table-cell>
								<fo:table-cell border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
								7
									</fo:block>
								</fo:table-cell>
							</fo:table-row>
							<xsl:if test="count(//DECLARBODY/*[substring(name(),1,7)='T5RXXXX'])=0">
								<xsl:call-template name="t5_row">
									<xsl:with-param name="rownum" select="1"/>
									<xsl:with-param name="iden" select="'T5RXXXX'"/>
								</xsl:call-template>
							</xsl:if>
							<xsl:for-each select="//DECLARBODY/*[substring(name(), 1,4)='T5RX']">
								<xsl:sort select="./@ROWNUM" data-type="number"/>
								<xsl:variable name="n" select="./@ROWNUM"/>
								<xsl:if test="count(following-sibling::*[substring(name(), 1,4)='T5RX' and @ROWNUM=$n])=0">
									<xsl:call-template name="t5_row">
										<xsl:with-param name="rownum" select="$n"/>
										<xsl:with-param name="iden" select="'T5RXXXX'"/>
									</xsl:call-template>
								</xsl:if>
							</xsl:for-each>
							<fo:table-row>
								<fo:table-cell number-columns-spanned="2" border-style="solid" border-width="0.25pt" padding-left="0.1cm" padding-top="0.1cm">
									<fo:block font-weight="bold">
									Усього
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
										X
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
										X
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
										X
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt">
									<fo:block text-align="center">
										X
									</fo:block>
								</fo:table-cell>
								<fo:table-cell display-align="center" border-style="solid" border-width="0.25pt" padding-right="0.1cm">
									<fo:block text-align="right" font-weight="bold">
										<xsl:if test="string-length(R05G7) = 0">-</xsl:if>
										<xsl:if test="string-length(R05G7) &gt; 0">
											<xsl:value-of select="R05G7"/>
										</xsl:if>
									</fo:block>
								</fo:table-cell>
							</fo:table-row>
						</fo:table-body>
					</fo:table>
					<fo:block font-size="6pt" space-before="0.2cm">
						* У разі коли набувачами гуманітарної допомоги  є фізичні особи, у графі 3 розділу 3 зазначається загальна кількість фізичних осіб-набувачів, які отримали гуманітарну допомогу в звітному (податковому) періоді; графа 2 розділу 3 не заповнюється.
					</fo:block>
					<fo:table space-before.optimum="0.5cm" start-indent="0pt" font-size="8pt" width="25cm">
						<fo:table-column column-number="1" column-width="8cm"/>
						<fo:table-column column-number="2" column-width="5.5cm"/>
						<fo:table-column column-number="3" column-width="0.5cm"/>
						<fo:table-column column-number="4" column-width="7.5cm"/>
						<fo:table-column column-number="5" column-width="1cm"/>
						<fo:table-column column-number="6" column-width="2cm"/>
						<fo:table-body>
							<fo:table-row>
								<fo:table-cell padding-left="0.1cm" number-rows-spanned="2">
									<fo:block>
									Керівник (уповноважена особа)
									</fo:block>
								</fo:table-cell>
								<fo:table-cell padding-left="0.1cm" border-bottom-style="solid" border-width="0.25pt">
									<fo:block>
										<fo:leader leader-pattern="space" leader-length="5pt"/>
									</fo:block>
								</fo:table-cell>
								<fo:table-cell padding-left="0.1cm">
									<fo:block>
										<fo:leader leader-pattern="space" leader-length="5pt"/>
									</fo:block>
								</fo:table-cell>
								<fo:table-cell padding-left="0.1cm" border-bottom-style="solid" border-width="0.25pt">
									<fo:block font-weight="bold">
										<fo:inline font-size="10pt">
											<xsl:value-of select="HBOS"/>
										</fo:inline>
									</fo:block>
								</fo:table-cell>
								<fo:table-cell padding-left="0.1cm" number-rows-spanned="5">
									<fo:block>
										<fo:leader leader-pattern="space" leader-length="5pt"/>
									</fo:block>
								</fo:table-cell>
								<fo:table-cell>
									<fo:block>
										<fo:leader leader-pattern="space" leader-length="5pt"/>
									</fo:block>
								</fo:table-cell>
							</fo:table-row>
							<fo:table-row>
								<fo:table-cell padding-left="0.1cm" border-top-style="solid" border-width="0.25pt" font-size="6pt">
									<fo:block text-align="center">
										(підпис)
									</fo:block>
								</fo:table-cell>
								<fo:table-cell padding-left="0.1cm">
									<fo:block>
										<fo:leader leader-pattern="space" leader-length="5pt"/>
									</fo:block>
								</fo:table-cell>
								<fo:table-cell padding-left="0.1cm" border-top-style="solid" border-width="0.25pt" font-size="6pt">
									<fo:block text-align="center">
										(ініціали, прізвище)
									</fo:block>
								</fo:table-cell>
								<fo:table-cell padding-left="0.1cm" number-rows-spanned="4" display-align="center">
									<fo:block text-align="center">
										<fo:leader leader-pattern="space" leader-length="5pt"/>
									</fo:block>
								</fo:table-cell>
							</fo:table-row>
							<fo:table-row>
								<fo:table-cell padding-left="0.1cm" display-align="center">
									<fo:block text-align="center">
										<fo:leader leader-pattern="space" leader-length="5pt"/>
									</fo:block>
								</fo:table-cell>
								<fo:table-cell padding-left="0.1cm" display-align="center">
									<fo:block text-align="center">
									М.П.
									</fo:block>
								</fo:table-cell>
								<fo:table-cell padding-left="0.1cm" display-align="center" number-columns-spanned="3">
									<fo:block text-align="center">
										<fo:leader leader-pattern="space" leader-length="5pt"/>
									</fo:block>
								</fo:table-cell>
							</fo:table-row>
							<fo:table-row>
								<fo:table-cell padding-left="0.1cm" number-rows-spanned="2">
									<fo:block>
										Головний бухгалтер (особа, відповідальна за ведення бухгалтерського обліку)
									</fo:block>
								</fo:table-cell>
								<fo:table-cell padding-left="0.1cm" border-bottom-style="solid" border-width="0.25pt">
									<fo:block>
										<fo:leader leader-pattern="space" leader-length="5pt"/>
									</fo:block>
								</fo:table-cell>
								<fo:table-cell padding-left="0.1cm">
									<fo:block>
										<fo:leader leader-pattern="space" leader-length="5pt"/>
									</fo:block>
								</fo:table-cell>
								<fo:table-cell padding-left="0.1cm" border-bottom-style="solid" border-width="0.25pt">
									<fo:block font-weight="bold">
										<fo:inline font-size="10pt">
											<xsl:value-of select="HBUH"/>
										</fo:inline>
									</fo:block>
								</fo:table-cell>
							</fo:table-row>
							<fo:table-row>
								<fo:table-cell padding-left="0.1cm" border-top-style="solid" border-width="0.25pt" font-size="6pt">
									<fo:block text-align="center">
										<fo:inline>(підпис)</fo:inline>
									</fo:block>
								</fo:table-cell>
								<fo:table-cell padding-left="0.1cm">
									<fo:block>
										<fo:leader leader-pattern="space" leader-length="5pt"/>
									</fo:block>
								</fo:table-cell>
								<fo:table-cell padding-left="0.1cm" border-top-style="solid" border-width="0.25pt" font-size="6pt">
									<fo:block text-align="center">
										<fo:inline>(ініціали, прізвище)</fo:inline>
									</fo:block>
								</fo:table-cell>
							</fo:table-row>
						</fo:table-body>
					</fo:table>
				</fo:flow>
			</fo:page-sequence>
		</fo:root>
	</xsl:template>
	<xsl:template name="t1_row">
		<xsl:param name="rownum"/>
		<xsl:variable name="iden" select="'T1RXXXX'"/>
		<fo:table-row>
			<fo:table-cell padding-left="0.1cm" border-style="solid" border-width="0.25pt" display-align="center">
				<fo:block text-align="center">
					<xsl:value-of select="$rownum"/>
				</fo:block>
			</fo:table-cell>
			<fo:table-cell border-style="solid" border-width="0.25pt" padding-left="0.1cm">
				<fo:block font-weight="bold">
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G21S')][@ROWNUM=$rownum]) = 0">-</xsl:if>
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G21S')][@ROWNUM=$rownum]) &gt; 0">
						<xsl:value-of select="//DECLARBODY/*[name()=concat($iden, 'G21S')][@ROWNUM=$rownum]"/>
					</xsl:if>
				</fo:block>
				<fo:block font-weight="bold">
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G22S')][@ROWNUM=$rownum]) = 0">-</xsl:if>
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G22S')][@ROWNUM=$rownum]) &gt; 0">
						<xsl:value-of select="//DECLARBODY/*[name()=concat($iden, 'G22S')][@ROWNUM=$rownum]"/>
					</xsl:if>
				</fo:block>
			</fo:table-cell>
			<fo:table-cell border-style="solid" border-width="0.25pt" padding-left="0.1cm">
				<fo:block text-align="center" font-weight="bold">
					<xsl:variable name="dat2" select="//DECLARBODY/*[name()=concat($iden, 'G3D')][@ROWNUM=$rownum]"/>
					<xsl:value-of select="concat(substring($dat2, 1,2),substring($dat2, 3,2),substring($dat2,5,4))"/>
				</fo:block>
				<fo:block font-weight="bold">
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G3S')][@ROWNUM=$rownum]) = 0">-</xsl:if>
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G3S')][@ROWNUM=$rownum]) &gt; 0">
						<xsl:value-of select="//DECLARBODY/*[name()=concat($iden, 'G3S')][@ROWNUM=$rownum]"/>
					</xsl:if>
				</fo:block>
			</fo:table-cell>
			<fo:table-cell border-style="solid" border-width="0.25pt" padding-left="0.1cm">
				<fo:block font-weight="bold">
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G4S')][@ROWNUM=$rownum]) = 0">-</xsl:if>
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G4S')][@ROWNUM=$rownum]) &gt; 0">
						<xsl:value-of select="//DECLARBODY/*[name()=concat($iden, 'G4S')][@ROWNUM=$rownum]"/>
					</xsl:if>
				</fo:block>
			</fo:table-cell>
			<fo:table-cell border-style="solid" border-width="0.25pt" padding-left="0.1cm">
				<fo:block font-weight="bold">
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G5S')][@ROWNUM=$rownum]) = 0">-</xsl:if>
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G5S')][@ROWNUM=$rownum]) &gt; 0">
						<xsl:value-of select="//DECLARBODY/*[name()=concat($iden, 'G5S')][@ROWNUM=$rownum]"/>
					</xsl:if>
				</fo:block>
			</fo:table-cell>
			<fo:table-cell border-style="solid" border-width="0.25pt" padding-right="0.1cm">
				<fo:block text-align="right" font-weight="bold">
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G6')][@ROWNUM=$rownum]) = 0">-</xsl:if>
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G6')][@ROWNUM=$rownum]) &gt; 0">
						<xsl:value-of select="//DECLARBODY/*[name()=concat($iden, 'G6')][@ROWNUM=$rownum]"/>
					</xsl:if>
				</fo:block>
			</fo:table-cell>
			<fo:table-cell border-style="solid" border-width="0.25pt" padding-right="0.1cm">
				<fo:block text-align="right" font-weight="bold">
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G7')][@ROWNUM=$rownum]) = 0">-</xsl:if>
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G7')][@ROWNUM=$rownum]) &gt; 0">
						<xsl:value-of select="//DECLARBODY/*[name()=concat($iden, 'G7')][@ROWNUM=$rownum]"/>
					</xsl:if>
				</fo:block>
			</fo:table-cell>
		</fo:table-row>
	</xsl:template>
	<xsl:template name="t2_row">
		<xsl:param name="rownum"/>
		<xsl:variable name="iden" select="'T2RXXXX'"/>
		<fo:table-row>
			<fo:table-cell padding-left="0.1cm" border-style="solid" border-width="0.25pt" display-align="center">
				<fo:block text-align="center">
					<xsl:value-of select="$rownum"/>
				</fo:block>
			</fo:table-cell>
			<fo:table-cell border-style="solid" border-width="0.25pt" padding-left="0.1cm">
				<fo:block font-weight="bold">
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G21S')][@ROWNUM=$rownum]) = 0">-</xsl:if>
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G21S')][@ROWNUM=$rownum]) &gt; 0">
						<xsl:value-of select="//DECLARBODY/*[name()=concat($iden, 'G21S')][@ROWNUM=$rownum]"/>
					</xsl:if>
				</fo:block>
				<fo:block font-weight="bold">
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G22S')][@ROWNUM=$rownum]) = 0">-</xsl:if>
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G22S')][@ROWNUM=$rownum]) &gt; 0">
						<xsl:value-of select="//DECLARBODY/*[name()=concat($iden, 'G22S')][@ROWNUM=$rownum]"/>
					</xsl:if>
				</fo:block>
			</fo:table-cell>
			<fo:table-cell border-style="solid" border-width="0.25pt" padding-left="0.1cm">
				<fo:block text-align="center" font-weight="bold">
					<xsl:variable name="dat2" select="//DECLARBODY/*[name()=concat($iden, 'G3D')][@ROWNUM=$rownum]"/>
					<xsl:value-of select="concat(substring($dat2, 1,2),substring($dat2, 3,2),substring($dat2,5,4))"/>
				</fo:block>
				<fo:block font-weight="bold">
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G3S')][@ROWNUM=$rownum]) = 0">-</xsl:if>
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G3S')][@ROWNUM=$rownum]) &gt; 0">
						<xsl:value-of select="//DECLARBODY/*[name()=concat($iden, 'G3S')][@ROWNUM=$rownum]"/>
					</xsl:if>
				</fo:block>
			</fo:table-cell>
			<fo:table-cell border-style="solid" border-width="0.25pt" padding-left="0.1cm">
				<fo:block font-weight="bold">
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G4S')][@ROWNUM=$rownum]) = 0">-</xsl:if>
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G4S')][@ROWNUM=$rownum]) &gt; 0">
						<xsl:value-of select="//DECLARBODY/*[name()=concat($iden, 'G4S')][@ROWNUM=$rownum]"/>
					</xsl:if>
				</fo:block>
			</fo:table-cell>
			<fo:table-cell border-style="solid" border-width="0.25pt" padding-left="0.1cm">
				<fo:block font-weight="bold">
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G5S')][@ROWNUM=$rownum]) = 0">-</xsl:if>
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G5S')][@ROWNUM=$rownum]) &gt; 0">
						<xsl:value-of select="//DECLARBODY/*[name()=concat($iden, 'G5S')][@ROWNUM=$rownum]"/>
					</xsl:if>
				</fo:block>
			</fo:table-cell>
			<fo:table-cell border-style="solid" border-width="0.25pt" padding-right="0.1cm">
				<fo:block text-align="right" font-weight="bold">
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G6')][@ROWNUM=$rownum]) = 0">-</xsl:if>
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G6')][@ROWNUM=$rownum]) &gt; 0">
						<xsl:value-of select="//DECLARBODY/*[name()=concat($iden, 'G6')][@ROWNUM=$rownum]"/>
					</xsl:if>
				</fo:block>
			</fo:table-cell>
			<fo:table-cell border-style="solid" border-width="0.25pt" padding-right="0.1cm">
				<fo:block text-align="right" font-weight="bold">
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G7')][@ROWNUM=$rownum]) = 0">-</xsl:if>
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G7')][@ROWNUM=$rownum]) &gt; 0">
						<xsl:value-of select="//DECLARBODY/*[name()=concat($iden, 'G7')][@ROWNUM=$rownum]"/>
					</xsl:if>
				</fo:block>
			</fo:table-cell>
			<fo:table-cell border-style="solid" border-width="0.25pt" padding-right="0.1cm">
				<fo:block text-align="right" font-weight="bold">
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G8')][@ROWNUM=$rownum]) = 0">-</xsl:if>
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G8')][@ROWNUM=$rownum]) &gt; 0">
						<xsl:value-of select="//DECLARBODY/*[name()=concat($iden, 'G8')][@ROWNUM=$rownum]"/>
					</xsl:if>
				</fo:block>
			</fo:table-cell>
			<fo:table-cell border-style="solid" border-width="0.25pt" padding-right="0.1cm">
				<fo:block text-align="right" font-weight="bold">
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G9')][@ROWNUM=$rownum]) = 0">-</xsl:if>
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G9')][@ROWNUM=$rownum]) &gt; 0">
						<xsl:value-of select="//DECLARBODY/*[name()=concat($iden, 'G9')][@ROWNUM=$rownum]"/>
					</xsl:if>
				</fo:block>
			</fo:table-cell>
		</fo:table-row>
	</xsl:template>
	<xsl:template name="t3_row">
		<xsl:param name="rownum"/>
		<xsl:variable name="iden" select="'T3RXXXX'"/>
		<fo:table-row>
			<fo:table-cell padding-left="0.1cm" border-style="solid" border-width="0.25pt" display-align="center">
				<fo:block text-align="center">
					<xsl:value-of select="$rownum"/>
				</fo:block>
			</fo:table-cell>
			<fo:table-cell border-style="solid" border-width="0.25pt" padding-left="0.1cm">
				<fo:block font-weight="bold">
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G2S')][@ROWNUM=$rownum]) = 0">-</xsl:if>
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G2S')][@ROWNUM=$rownum]) &gt; 0">
						<xsl:value-of select="//DECLARBODY/*[name()=concat($iden, 'G2S')][@ROWNUM=$rownum]"/>
					</xsl:if>
				</fo:block>
			</fo:table-cell>
			<fo:table-cell border-style="solid" border-width="0.25pt" padding-left="0.1cm">
				<fo:block font-weight="bold">
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G3S')][@ROWNUM=$rownum]) = 0">-</xsl:if>
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G3S')][@ROWNUM=$rownum]) &gt; 0">
						<xsl:value-of select="//DECLARBODY/*[name()=concat($iden, 'G3S')][@ROWNUM=$rownum]"/>
					</xsl:if>
				</fo:block>
			</fo:table-cell>
			<fo:table-cell border-style="solid" border-width="0.25pt" padding-left="0.1cm">
				<fo:block text-align="center" font-weight="bold">
					<xsl:variable name="dat2" select="//DECLARBODY/*[name()=concat($iden, 'G4D')][@ROWNUM=$rownum]"/>
					<xsl:value-of select="concat(substring($dat2, 1,2),substring($dat2, 3,2),substring($dat2,5,4))"/>
				</fo:block>
				<fo:block font-weight="bold">
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G4S')][@ROWNUM=$rownum]) = 0">-</xsl:if>
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G4S')][@ROWNUM=$rownum]) &gt; 0">
						<xsl:value-of select="//DECLARBODY/*[name()=concat($iden, 'G4S')][@ROWNUM=$rownum]"/>
					</xsl:if>
				</fo:block>
			</fo:table-cell>
			<fo:table-cell border-style="solid" border-width="0.25pt" padding-left="0.1cm">
				<fo:block font-weight="bold">
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G5S')][@ROWNUM=$rownum]) = 0">-</xsl:if>
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G5S')][@ROWNUM=$rownum]) &gt; 0">
						<xsl:value-of select="//DECLARBODY/*[name()=concat($iden, 'G5S')][@ROWNUM=$rownum]"/>
					</xsl:if>
				</fo:block>
			</fo:table-cell>
			<fo:table-cell border-style="solid" border-width="0.25pt" padding-left="0.1cm">
				<fo:block font-weight="bold">
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G6S')][@ROWNUM=$rownum]) = 0">-</xsl:if>
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G6S')][@ROWNUM=$rownum]) &gt; 0">
						<xsl:value-of select="//DECLARBODY/*[name()=concat($iden, 'G6S')][@ROWNUM=$rownum]"/>
					</xsl:if>
				</fo:block>
			</fo:table-cell>
			<fo:table-cell border-style="solid" border-width="0.25pt" padding-right="0.1cm">
				<fo:block text-align="right" font-weight="bold">
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G7')][@ROWNUM=$rownum]) = 0">-</xsl:if>
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G7')][@ROWNUM=$rownum]) &gt; 0">
						<xsl:value-of select="//DECLARBODY/*[name()=concat($iden, 'G7')][@ROWNUM=$rownum]"/>
					</xsl:if>
				</fo:block>
			</fo:table-cell>
			<fo:table-cell border-style="solid" border-width="0.25pt" padding-right="0.1cm">
				<fo:block text-align="right" font-weight="bold">
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G8')][@ROWNUM=$rownum]) = 0">-</xsl:if>
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G8')][@ROWNUM=$rownum]) &gt; 0">
						<xsl:value-of select="//DECLARBODY/*[name()=concat($iden, 'G8')][@ROWNUM=$rownum]"/>
					</xsl:if>
				</fo:block>
			</fo:table-cell>
			<fo:table-cell border-style="solid" border-width="0.25pt" padding-left="0.1cm">
				<fo:block text-align="center" font-weight="bold">
					<xsl:variable name="dat2" select="//DECLARBODY/*[name()=concat($iden, 'G9D')][@ROWNUM=$rownum]"/>
					<xsl:value-of select="concat(substring($dat2, 1,2),substring($dat2, 3,2),substring($dat2,5,4))"/>
				</fo:block>
				<fo:block font-weight="bold">
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G9S')][@ROWNUM=$rownum]) = 0">-</xsl:if>
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G9S')][@ROWNUM=$rownum]) &gt; 0">
						<xsl:value-of select="//DECLARBODY/*[name()=concat($iden, 'G9S')][@ROWNUM=$rownum]"/>
					</xsl:if>
				</fo:block>
			</fo:table-cell>
		</fo:table-row>
	</xsl:template>
	<xsl:template name="t4_row">
		<xsl:param name="rownum"/>
		<xsl:variable name="iden" select="'T4RXXXX'"/>
		<fo:table-row>
			<fo:table-cell padding-left="0.1cm" border-style="solid" border-width="0.25pt" display-align="center">
				<fo:block text-align="center">
					<xsl:value-of select="$rownum"/>
				</fo:block>
			</fo:table-cell>
			<fo:table-cell border-style="solid" border-width="0.25pt" padding-left="0.1cm">
				<fo:block font-weight="bold">
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G21S')][@ROWNUM=$rownum]) = 0">-</xsl:if>
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G21S')][@ROWNUM=$rownum]) &gt; 0">
						<xsl:value-of select="//DECLARBODY/*[name()=concat($iden, 'G21S')][@ROWNUM=$rownum]"/>
					</xsl:if>
				</fo:block>
				<fo:block font-weight="bold">
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G22S')][@ROWNUM=$rownum]) = 0">-</xsl:if>
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G22S')][@ROWNUM=$rownum]) &gt; 0">
						<xsl:value-of select="//DECLARBODY/*[name()=concat($iden, 'G22S')][@ROWNUM=$rownum]"/>
					</xsl:if>
				</fo:block>
			</fo:table-cell>
			<fo:table-cell border-style="solid" border-width="0.25pt" padding-left="0.1cm">
				<fo:block text-align="center" font-weight="bold">
					<xsl:variable name="dat2" select="//DECLARBODY/*[name()=concat($iden, 'G3D')][@ROWNUM=$rownum]"/>
					<xsl:value-of select="concat(substring($dat2, 1,2),substring($dat2, 3,2),substring($dat2,5,4))"/>
				</fo:block>
				<fo:block font-weight="bold">
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G3S')][@ROWNUM=$rownum]) = 0">-</xsl:if>
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G3S')][@ROWNUM=$rownum]) &gt; 0">
						<xsl:value-of select="//DECLARBODY/*[name()=concat($iden, 'G3S')][@ROWNUM=$rownum]"/>
					</xsl:if>
				</fo:block>
			</fo:table-cell>
			<fo:table-cell border-style="solid" border-width="0.25pt" padding-left="0.1cm">
				<fo:block font-weight="bold">
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G4S')][@ROWNUM=$rownum]) = 0">-</xsl:if>
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G4S')][@ROWNUM=$rownum]) &gt; 0">
						<xsl:value-of select="//DECLARBODY/*[name()=concat($iden, 'G4S')][@ROWNUM=$rownum]"/>
					</xsl:if>
				</fo:block>
			</fo:table-cell>
			<fo:table-cell border-style="solid" border-width="0.25pt" padding-left="0.1cm">
				<fo:block font-weight="bold">
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G5S')][@ROWNUM=$rownum]) = 0">-</xsl:if>
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G5S')][@ROWNUM=$rownum]) &gt; 0">
						<xsl:value-of select="//DECLARBODY/*[name()=concat($iden, 'G5S')][@ROWNUM=$rownum]"/>
					</xsl:if>
				</fo:block>
			</fo:table-cell>
			<fo:table-cell border-style="solid" border-width="0.25pt" padding-right="0.1cm">
				<fo:block text-align="right" font-weight="bold">
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G6')][@ROWNUM=$rownum]) = 0">-</xsl:if>
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G6')][@ROWNUM=$rownum]) &gt; 0">
						<xsl:value-of select="//DECLARBODY/*[name()=concat($iden, 'G6')][@ROWNUM=$rownum]"/>
					</xsl:if>
				</fo:block>
			</fo:table-cell>
			<fo:table-cell border-style="solid" border-width="0.25pt" padding-right="0.1cm">
				<fo:block text-align="right" font-weight="bold">
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G7')][@ROWNUM=$rownum]) = 0">-</xsl:if>
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G7')][@ROWNUM=$rownum]) &gt; 0">
						<xsl:value-of select="//DECLARBODY/*[name()=concat($iden, 'G7')][@ROWNUM=$rownum]"/>
					</xsl:if>
				</fo:block>
			</fo:table-cell>
		</fo:table-row>
	</xsl:template>
	<xsl:template name="t5_row">
		<xsl:param name="rownum"/>
		<xsl:variable name="iden" select="'T5RXXXX'"/>
		<fo:table-row>
			<fo:table-cell padding-left="0.1cm" border-style="solid" border-width="0.25pt" display-align="center">
				<fo:block text-align="center">
					<xsl:value-of select="$rownum"/>
				</fo:block>
			</fo:table-cell>
			<fo:table-cell border-style="solid" border-width="0.25pt" padding-left="0.1cm">
				<fo:block font-weight="bold">
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G21S')][@ROWNUM=$rownum]) = 0">-</xsl:if>
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G21S')][@ROWNUM=$rownum]) &gt; 0">
						<xsl:value-of select="//DECLARBODY/*[name()=concat($iden, 'G21S')][@ROWNUM=$rownum]"/>
					</xsl:if>
				</fo:block>
				<fo:block font-weight="bold">
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G22S')][@ROWNUM=$rownum]) = 0">-</xsl:if>
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G22S')][@ROWNUM=$rownum]) &gt; 0">
						<xsl:value-of select="//DECLARBODY/*[name()=concat($iden, 'G22S')][@ROWNUM=$rownum]"/>
					</xsl:if>
				</fo:block>
			</fo:table-cell>
			<fo:table-cell border-style="solid" border-width="0.25pt" padding-left="0.1cm">
				<fo:block text-align="center" font-weight="bold">
					<xsl:variable name="dat2" select="//DECLARBODY/*[name()=concat($iden, 'G3D')][@ROWNUM=$rownum]"/>
					<xsl:value-of select="concat(substring($dat2, 1,2),substring($dat2, 3,2),substring($dat2,5,4))"/>
				</fo:block>
				<fo:block font-weight="bold">
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G3S')][@ROWNUM=$rownum]) = 0">-</xsl:if>
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G3S')][@ROWNUM=$rownum]) &gt; 0">
						<xsl:value-of select="//DECLARBODY/*[name()=concat($iden, 'G3S')][@ROWNUM=$rownum]"/>
					</xsl:if>
				</fo:block>
			</fo:table-cell>
			<fo:table-cell border-style="solid" border-width="0.25pt" padding-left="0.1cm">
				<fo:block font-weight="bold">
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G4S')][@ROWNUM=$rownum]) = 0">-</xsl:if>
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G4S')][@ROWNUM=$rownum]) &gt; 0">
						<xsl:value-of select="//DECLARBODY/*[name()=concat($iden, 'G4S')][@ROWNUM=$rownum]"/>
					</xsl:if>
				</fo:block>
			</fo:table-cell>
			<fo:table-cell border-style="solid" border-width="0.25pt" padding-left="0.1cm">
				<fo:block font-weight="bold">
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G5S')][@ROWNUM=$rownum]) = 0">-</xsl:if>
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G5S')][@ROWNUM=$rownum]) &gt; 0">
						<xsl:value-of select="//DECLARBODY/*[name()=concat($iden, 'G5S')][@ROWNUM=$rownum]"/>
					</xsl:if>
				</fo:block>
			</fo:table-cell>
			<fo:table-cell border-style="solid" border-width="0.25pt" padding-right="0.1cm">
				<fo:block text-align="right" font-weight="bold">
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G6')][@ROWNUM=$rownum]) = 0">-</xsl:if>
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G6')][@ROWNUM=$rownum]) &gt; 0">
						<xsl:value-of select="//DECLARBODY/*[name()=concat($iden, 'G6')][@ROWNUM=$rownum]"/>
					</xsl:if>
				</fo:block>
			</fo:table-cell>
			<fo:table-cell border-style="solid" border-width="0.25pt" padding-right="0.1cm">
				<fo:block text-align="right" font-weight="bold">
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G7')][@ROWNUM=$rownum]) = 0">-</xsl:if>
					<xsl:if test="string-length(//DECLARBODY/*[name()=concat($iden, 'G7')][@ROWNUM=$rownum]) &gt; 0">
						<xsl:value-of select="//DECLARBODY/*[name()=concat($iden, 'G7')][@ROWNUM=$rownum]"/>
					</xsl:if>
				</fo:block>
			</fo:table-cell>
		</fo:table-row>
	</xsl:template>
</xsl:stylesheet>
