4519

ID4519
Data2017-10-12
Symbol2017/10/12/4519
InstytucjaUrząd Miejski Wrocławia
NazwaDeklaracja na podatek rolny DR-1 za rok 2016
Czy Aktualny1

Ustawy (1)

  • URI://Dziennik_Ustaw/2016/617/6a/12/1
  • Ustawa z dnia 15 listopada 1984 r. o podatku rolnym

    Pliki

    Styl

    <?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:adr="http://crd.gov.pl/xml/schematy/adres/2009/11/09/" xmlns:inst="http://crd.gov.pl/xml/schematy/instytucja/2009/11/16/" xmlns:meta="http://crd.gov.pl/xml/schematy/meta/2009/11/16/" xmlns:oso="http://crd.gov.pl/xml/schematy/osoba/2009/11/16/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:str="http://crd.gov.pl/xml/schematy/struktura/2009/11/16/" xmlns:wnio="http://crd.gov.pl/wzor/2017/10/12/4519/" version="1.0">
    	<xsl:output version="4.0" method="html" indent="yes" encoding="UTF-8"/>
    	<xsl:variable name="XML" select="/"/>
    	<xsl:decimal-format name="Polish" decimal-separator="," grouping-separator="."/>
    	<xsl:template match="/">
    		<html>
    			<head>
    				<title>
    					<xsl:text>DEKLARACJA NA PODATEK ROLNY</xsl:text>
    				</title>
    				<style type="text/css"> .fh {font-size: 7pt; font-weight: bold;}</style>
    				<style type="text/css"> body { font-family: Arial; font-size: 8pt; color: #000000; text-align: left}</style>
    				<style type="text/css"> table {; border-width: 1px; border-style: solid; border-collapse: collapse; font-size: 8pt; border-color: black}</style>
    				<style type="text/css"> .dt { border-width: 0 0 1px 1px;  border-style: solid;border-collapse: collapse; border-color:black;  margin: 3px 3px 3px 3px;}</style>
    				<style type="text/css"> .innerBox { position:relative; border: solid 1px; top:5px; left:20px;  background: white; min-height:30px;overflow:hidden }</style>
    				<style type="text/css"> td {vertical-align:top; text-align: left; font-size:8pt}</style>
    				<style type="text/css"> .def { width:100px; border-width: 1px 1px 0 0; border-style: solid; vertical-align:top}</style>
    				<style type="text/css"> .defg { width:100px; border-width: 1px 1px 0 0; border-style: solid;background: #aaaaaa; vertical-align:top}</style>
    				<style type="text/css"> .section {width:4px; background: #aaaaaa}</style>
    				<style type="text/css"> .tableHeader {border-width: 0 0 1px 1px;  border-style: solid;border-collapse: collapse; border-color:black; font-weight: bold;text-align:center; background: #eeeeee}</style>
    				<style type="text/css"> .tableHeader2 {border-color:black; font-weight: bold;text-align:center; background: #eeeeee}</style>
    				<!-- NOWE STYLE -->
    				<style type="text/css"> .blockLabel { font-size: 7pt; margin: 0 0 0 1px; text-align:left; font-weight:bold}</style>
    				<style type="text/css"> .docHeader { font-size: 12pt; font-weight:bold }</style>
    				<style type="text/css"> .sectionHeader { font-size: 12pt; font-weight:bold }</style>
    				<style type="text/css"> .mainBlockHeader {  font-size: 12pt; font-weight:bold;margin: 5px 5px 2px 5px  }</style>
    				<style type="text/css"> .innerBlock { background: white; margin: 5px 0px 0px 30px; border: solid 1px; border-bottom:0px; border-right:0px;}</style>
    				<style type="text/css"> .blockContent { height:20px; margin: 3px 3px 0 3px; height:auto }</style>
    				<style type="text/css"> .tdContent {background: white;  height:20px; margin: 3px 0 0 3px; border:solid 1px black }</style>
    				<style type="text/css">	
    				
    					#mainBlock { border: solid 1px; background: #eeeeee}				
    					
    					.gridCell {font-size:8pt; vertical-align:middle;border: solid 1px black;  height:30px; }
    					.gridValue {font-size:8pt; vertical-align:top;text-align:center; border: solid 1px black; background: white; height:30px; }
    					</style>
    			</head>
    			<body>
    				<div style="border: solid 1px; width:350px;float:left; height:35px">
    					<div style="text-align:left; font-size:7pt;font-weight:bold;margin: 3px;">
    					1. Numer Identyfikacji Podatkowej podatnika 					
    				 </div>
    					<center>
    						<xsl:value-of select="wnio:Dokument/wnio:TrescDokumentu/wnio:Deklaracja/wnio:Podmiot/wnio:Osoba/wnio:Identyfikatory/wnio:NIP"/>
    						<xsl:value-of select="wnio:Dokument/wnio:TrescDokumentu/wnio:Deklaracja/wnio:Podmiot/wnio:Osoba/wnio:Identyfikatory/wnio:PESEL"/>
    						<xsl:value-of select="wnio:Dokument/wnio:TrescDokumentu/wnio:Deklaracja/wnio:Podmiot/wnio:Instytucja/wnio:Identyfikatory/wnio:NIP"/>
    					</center>
    				</div>
    				<div style="border: solid 1px; width:100px;float:left; height:35px; border-left: 0px; background: #eeeeee">
    					<xsl:call-template name="BlockLabel">
    						<xsl:with-param name="text">2. Nr ewidencyjny</xsl:with-param>
    					</xsl:call-template> 
    				</div>
    			
    			
    				<div style="clear:both"/>
    				<div class="docHeader" style="position:relative">
    					<div style="position:absolute; top:0px; left: 0px; width:100%">
    				DR - 1			
    				<center>DEKLARACJA NA PODATEK ROLNY</center>
    					</div>
    				</div>
    				<br/>
    				<br/>
    				<br/>
    				<br/>
    				<center>
    					<div style="text-align: left; border: solid 1px; width:100px; min-height:30px; margin: 10px 0 10px 0;">
    						<xsl:call-template name="BlockLabel">
    							<xsl:with-param name="text">3. Rok</xsl:with-param>
    						</xsl:call-template>
    						<center>
    							<xsl:value-of select="wnio:Dokument/wnio:TrescDokumentu/wnio:Deklaracja/wnio:Rok"/>
    						</center>
    					</div>
    				</center>
    				<table cellspacing="0" cellpadding="4" style="border-width: 1px 1px 1px 1px;  border-style: solid;border-collapse: collapse; font-size: 8pt; border-color:black;background: #eeeeee" width="100%">
    					<tr>
    						<td width="140" style="font-size: 8pt">Podstawa prawna:</td>
    						<td style="font-size: 8pt">
    						Ustawa z dnia 15 listopada 1984r. o podatku rolnym (t. j. Dz. U. z 2013 r., poz. 1381 z późn. zm.)	
    					</td>
    					</tr>
    					<tr>
    						<td width="140" style="font-size: 8pt">Składający:</td>
    						<td style="font-size: 8pt">
    						Podatnicy będący osobami prawnymi, jednostki organizacyjne oraz spółki nieposiadające osobowości prawnej będących właścicielami gruntów, posiadaczami samoistnymi gruntów, użytkownikami wieczystymi gruntów, posiadaczami gruntów stanowiących własność Skarbu Państwa lub jednostki samorządu terytorialnego oraz dla osób fizycznych będących współwłaścicielami lub współposiadaczami z osobami prawnymi lub z jednostkami organizacyjnymi, w tym spółkami, nieposiadającymi osobowości prawnej.	
    					</td>
    					</tr>
    					<tr>
    						<td width="140" style="font-size: 8pt">Termin składania:</td>
    						<td style="font-size: 8pt">
    						Do 15 stycznia każdego roku podatkowego lub w terminie 14 dni od zaistnienia okoliczności mających wpływ na powstanie (wygaśnięcie) obowiązku podatkowego, lub wysokości opodatkowania.
    					</td>
    					</tr>
    					<tr>
    						<td width="140" style="font-size: 8pt">Organ podatkowy:</td>
    						<td style="font-size: 8pt">
    						Prezydent Wrocławia
    					</td>
    					</tr>
    				</table>
    				<br/>
    				<div id="mainBlock">
    					<div class="mainBlockHeader">A. MIEJSCE SKŁADANIA DEKLARACJI</div>
    					<div class="innerBlock" style="vertical-align:center">
    						4. <span style="font-size:10pt;font-weight:bold; vertical-align:middle;height:30px;"><xsl:value-of select="/wnio:Dokument/wnio:DaneDokumentu//inst:NazwaInstytucji"/></span>
    						<br/>
    					</div>
    				</div>
    				<xsl:for-each select="wnio:Dokument/wnio:TrescDokumentu/wnio:Deklaracja">
    					<table width="100%" style="background:#eeeeee; border: solid 1px black; border-bottom: 0px">
    						<tr>
    							<td>
    								<div class="mainBlockHeader">B. OBOWIĄZEK ZŁOŻENIA DEKLARACJI
    								<br/><span style="font-size: 11px">Podatnik ma obowiązek złożyć wraz z korektą deklaracji pisemne uzasadnienie przyczyn korekty - art. 81 ustawy Ordynacja podatkowa.</span>
    								</div>
    							</td>
    						</tr>
    					</table>
    					<table width="100%" style="background:#eeeeee; border: solid 1px black; border-top: 0px" cellspacing="0">
    						<tr>
    							<td style="width:30px;"/>
    							<td style="border:solid 1px black; border-bottom:0px; border-right:0px; background: white">
    								<xsl:call-template name="BlockLabel">
    									<xsl:with-param name="text">5. Okoliczności powodujące obowiązek złożenia deklaracji:</xsl:with-param>
    								</xsl:call-template>
    								<table width="100%" style="border: 0px">
    									<tr>
    										<td/>
    										<td width="20">
    											<div style="foat:left; border: solid 1px black; width:13px;height: 12px">
    												<xsl:if test="wnio:Typ='D'">
    													<b>
    														<center>X</center>
    													</b>
    												</xsl:if>
    											</div>
    										</td>
    										<td>1. deklaracja roczna od miesiąca 
    										<xsl:if test="wnio:Typ='D'">
    												<xsl:call-template name="Miesiac">
    													<xsl:with-param name="miesiac" select="wnio:Miesiac"/>
    												</xsl:call-template>
    											</xsl:if>
    											<xsl:if test="wnio:Typ='K'">
    											 
    										</xsl:if>
    										</td>
    										<td/>
    										<td width="20">
    											<div style="foat:left; border: solid 1px black; width:13px;height: 12px">
    												<xsl:if test="wnio:Typ='K'">
    													<b>
    														<center>X</center>
    													</b>
    												</xsl:if>
    											</div>
    										</td>
    										<td>
    										2. korekta deklaracji rocznej od miesiąca 
    										<xsl:if test="wnio:Typ='K'">
    												<xsl:call-template name="Miesiac">
    													<xsl:with-param name="miesiac" select="wnio:Miesiac"/>
    												</xsl:call-template>
    											</xsl:if>
    											<xsl:if test="wnio:Typ='D'">
    											 
    										</xsl:if>
    										</td>
    										<td/>
    									</tr>
    									<tr>
    										<td colspan="2"/>
    										<td colspan="5"/>
    									</tr>
    								</table>
    							</td>
    						</tr>
    					</table>
    					<table width="100%" style="background:#eeeeee; border: solid 1px black; border-bottom: 0px">
    						<tr>
    							<td>
    								<div class="mainBlockHeader">C. PODMIOT ZOBOWIĄZANY DO ZŁOŻENIA DEKLARACJI</div>
    							</td>
    						</tr>
    					</table>
    					<table width="100%" style="background:#eeeeee; border: solid 1px black; border-top: 0px" cellspacing="0">
    						<tr>
    							<td style="width:30px;"/>
    							<td style="border:solid 1px black; border-bottom:0px; border-right:0px; background: white">
    								<xsl:call-template name="BlockLabel">
    									<xsl:with-param name="text">6. Rodzaj podmiotu:</xsl:with-param>
    								</xsl:call-template>
    								<table width="100%" style="border: 0px">
    									<tr>
    										<td/>
    										<td width="20">
    											<div style="foat:left; border: solid 1px black; width:13px;height: 12px">
    												<xsl:if test="wnio:RodzajPodmiotu='WLS'">
    													<b>
    														<center>X</center>
    													</b>
    												</xsl:if>
    											</div>
    										</td>
    										<td>właściciel, użytkownik lub posiadacz</td>
    										<td/>
    										<td width="20">
    											<div style="foat:left; border: solid 1px black; width:13px;height: 12px">
    												<xsl:if test="wnio:RodzajPodmiotu='WSP'">
    													<b>
    														<center>X</center>
    													</b>
    												</xsl:if>
    											</div>
    										</td>
    										<td>współwłaściciel, współużytkownik lub współposiadacz</td>										
    									</tr>
    								</table>
    							</td>
    						</tr>
    					</table>
    					<table width="100%" style="background:#eeeeee; border: solid 1px black; border-bottom: 0px">
    						<tr>
    							<td>
    								<div class="mainBlockHeader">D. DANE PODATNIKA</div>
    								<div style="font-size:9pt; margin: 0 0 0 30px"> * - dotyczy podatnika niebędącego osobą fizyczną, ** - dotyczy podatnika będącego osobą fizyczną</div>
    							</td>
    						</tr>
    					</table>
    					<table width="100%" style="background:#eeeeee; border: solid 1px black; border-bottom: 0px">
    						<tr>
    							<td>
    								<div class="mainBlockHeader">D.1. DANE IDENTYFIKACYJNE </div>
    							</td>
    						</tr>
    					</table>
    					<xsl:for-each select="wnio:Podmiot">
    						<table width="100%" style="background:#eeeeee; border: solid 1px black; border-top: 0px" cellspacing="0">
    							<tr>
    								<td style="width:30px;"/>
    								<td style="border:solid 1px black; border-bottom:0px; border-right:0px; background: white">
    									<xsl:call-template name="BlockLabel">
    										<xsl:with-param name="text">7. Rodzaj podatnika:</xsl:with-param>
    									</xsl:call-template>
    									<xsl:call-template name="RodzajPodatnika">
    										<xsl:with-param name="podatnik" select="@rodzaj"/>
    									</xsl:call-template>
    								</td>
    							</tr>
    							<tr>
    								<td style="width:30px;"/>
    								<td style="border:solid 1px black; border-bottom:0px; border-right:0px; background: white">
    									<xsl:call-template name="BlockLabel">
    										<xsl:with-param name="text">8. Nazwa pełna * / Nazwisko **</xsl:with-param>
    									</xsl:call-template>
    									<div class="blockContent">
    										<xsl:value-of select="wnio:Instytucja/inst:NazwaInstytucji"/>
    										<xsl:value-of select="wnio:Osoba/oso:Nazwisko"/>
    									</div>
    								</td>
    							</tr>
    							<tr>
    								<td style="width:30px;"/>
    								<td style="border:solid 1px black; border-bottom:0px; border-right:0px; background: white">
    									<xsl:call-template name="BlockLabel">
    										<xsl:with-param name="text">9. Nazwa skrócona * / Pierwsze imię, drugie imię**</xsl:with-param>
    									</xsl:call-template>
    									<div class="blockContent" style="overflow:hidden">
    										<xsl:value-of select="wnio:Instytucja/wnio:NazwaSkrInstytucji"/>
    										<xsl:value-of select="wnio:Osoba/oso:Imie"/>
    										<xsl:text> </xsl:text>
    										<xsl:value-of select="wnio:Osoba/oso:ImieDrugie"/>
    									</div>
    								</td>
    							</tr>
    							<tr>
    								<td style="width:30px;"/>
    								<td style="border:solid 1px black; border-bottom:0px; border-right:0px; background: white">
    									<table width="100%" style="border: 0px">
    										<tr>
    											<td width="50%" style="vertical-align:top;height:25px">
    												<xsl:call-template name="BlockLabel">
    													<xsl:with-param name="text">10. REGON / PKD / Nr Krajowego Rejestru Sądowego</xsl:with-param>
    												</xsl:call-template>
    												<div class="blockContent">
    													<xsl:value-of select="wnio:Instytucja/wnio:Identyfikatory/wnio:REGON"/> / <xsl:value-of select="wnio:Instytucja/wnio:Cechy/wnio:PKD"/> /
    													<xsl:value-of select="wnio:Instytucja/wnio:Identyfikatory/wnio:KRS"/>
    												</div>
    											</td>
    											<td style="vertical-align:top; border-left: solid 1px #000000">
    												<xsl:call-template name="BlockLabel">
    													<xsl:with-param name="text">11. PESEL **</xsl:with-param>
    												</xsl:call-template>
    												<div class="blockContent">
    													<xsl:value-of select="*/wnio:Identyfikatory/wnio:PESEL"/>
    												</div>
    											</td>
    										</tr>
    									</table>
    								</td>
    							</tr>
    							<tr>
    								<td style="width:30px;"/>
    								<td style="border:solid 1px black; border-bottom:0px; border-right:0px; background: white">
    									<table width="100%" style="border: 0px">
    										<tr>
    											<td width="50%" style="vertical-align:top;height:25px">
    												<xsl:call-template name="BlockLabel">
    													<xsl:with-param name="text">Wielkość przedsiębiorcy w świetle art. 104 - 106 ustawy z dnia 2 lipca 2004 r. o swobodzie działalności gospodarczej. (Dz. U. z 2015 r., poz. 584 z późn. zm.) </xsl:with-param>
    												</xsl:call-template>
    												<div class="blockContent">
    													<xsl:value-of select="*/wnio:Cechy/wnio:WielkoscPrzedsiebiorcy"/>
    													<table width="100%" style="border: 0px">
    														<tr>
    															<td/>
    															<td width="20">
    																<div style="foat:left; border: solid 1px black; width:13px;height: 12px">
    																	<xsl:if test="*/wnio:Cechy/wnio:WielkoscPrzedsiebiorcy='0'">
    																		<b>
    																			<center>X</center>
    																		</b>
    																	</xsl:if>
    																</div>
    															</td>
    															<td>mikroprzedsiębiorca (kod - 0)</td>
    															<td/>
    															<td width="20">
    																<div style="foat:left; border: solid 1px black; width:13px;height: 12px">
    																	<xsl:if test="*/wnio:Cechy/wnio:WielkoscPrzedsiebiorcy='1'">
    																		<b>
    																			<center>X</center>
    																		</b>
    																	</xsl:if>
    																</div>
    															</td>
    															<td>mały przedsiębiorca (kod - 1)</td>
    															<td/>
    															<td width="20">
    																<div style="foat:left; border: solid 1px black; width:13px;height: 12px">
    																	<xsl:if test="*/wnio:Cechy/wnio:WielkoscPrzedsiebiorcy='2'">
    																		<b>
    																			<center>X</center>
    																		</b>
    																	</xsl:if>
    																</div>
    															</td>
    															<td>średni przedsiębiorca (kod - 2)</td>
    														</tr>
    														<tr>
    															<td/>
    															<td width="20">
    																<div style="foat:left; border: solid 1px black; width:13px;height: 12px">
    																	<xsl:if test="*/wnio:Cechy/wnio:WielkoscPrzedsiebiorcy='3'">
    																		<b>
    																			<center>X</center>
    																		</b>
    																	</xsl:if>
    																</div>
    															</td>
    															<td>inny przedsiębiorca (duży przedsiębiorca) (kod - 3)</td>
    															<td/>
    															<td width="20">
    																<div style="foat:left; border: solid 1px black; width:13px;height: 12px">
    																	<xsl:if test="*/wnio:Cechy/wnio:WielkoscPrzedsiebiorcy='nd'">
    																		<b>
    																			<center>X</center>
    																		</b>
    																	</xsl:if>
    																</div>
    															</td>
    															<td>nie dotyczy</td>
    															<td/>
    															<td width="20">
    															</td>
    															<td/>
    														</tr>
    													</table>
    												</div>
    											</td>
    										</tr>
    									</table>
    								</td>
    							</tr>
    						</table>
    						<table width="100%" style="background:#eeeeee; border: solid 1px black; border-top: 0px" cellspacing="0">
    							<tr>
    								<td style="width:30px;"/>
    								<td style="border:solid 1px black; border-bottom:0px; border-right:0px; background: white">
    									<table width="100%" style="border: 0px">
    										<tr>
    											<td width="33%" style="height:30px;vertical-align:top;">
    												<xsl:call-template name="BlockLabel">
    													<xsl:with-param name="text">12. Data urodzenia</xsl:with-param>
    												</xsl:call-template>
    												<div class="blockContent">
    													<xsl:value-of select="wnio:Osoba/wnio:DataUrodzenia"/>
    												</div>
    											</td>
    											<td width="34%" style="vertical-align:top; border-left: solid 1px #000000">
    												<xsl:call-template name="BlockLabel">
    													<xsl:with-param name="text">13. Imię ojca</xsl:with-param>
    												</xsl:call-template>
    												<div class="blockContent">
    													<xsl:value-of select="wnio:Osoba/oso:ImieOjca"/>
    												</div>
    											</td>
    											<td width="33%" style="vertical-align:top; border-left: solid 1px #000000">
    												<xsl:call-template name="BlockLabel">
    													<xsl:with-param name="text">14. Imię matki</xsl:with-param>
    												</xsl:call-template>
    												<div class="blockContent">
    													<xsl:value-of select="wnio:Osoba/oso:ImieMatki"/>
    												</div>
    											</td>
    										</tr>
    									</table>
    								</td>
    							</tr>
    						</table>
    						<table width="100%" style="background:#eeeeee; border: solid 1px black; border-bottom: 0px">
    							<tr>
    								<td>
    									<div class="mainBlockHeader">D.2. ADRES SIEDZIBY * / ADRES ZAMIESZKANIA **</div>
    								</td>
    							</tr>
    						</table>
    						<table width="100%" style="background:#eeeeee; border: solid 1px black; border-top: 0px;" cellspacing="0">
    							<tr>
    								<td style="width:30px;"/>
    								<td style="border:solid 1px black; border-bottom:0px; border-right:0px; background: white">
    									<table width="100%" style="border: 0px">
    										<tr>
    											<td width="33%" style="height:30px;vertical-align:top;">
    												<xsl:call-template name="BlockLabel">
    													<xsl:with-param name="text">15. Kraj</xsl:with-param>
    												</xsl:call-template>
    												<div class="blockContent">
    													<xsl:apply-templates select="*/adr:Adres/adr:Kraj"/>
    												</div>
    											</td>
    											<td width="34%" style="vertical-align:top; border-left: solid 1px #000000">
    												<xsl:call-template name="BlockLabel">
    													<xsl:with-param name="text">16. Województwo</xsl:with-param>
    												</xsl:call-template>
    												<div class="blockContent">
    													<xsl:value-of select="*/adr:Adres/adr:Wojewodztwo"/>
    												</div>
    											</td>
    											<td width="33%" style="vertical-align:top; border-left: solid 1px #000000">
    												<xsl:call-template name="BlockLabel">
    													<xsl:with-param name="text">17. Powiat</xsl:with-param>
    												</xsl:call-template>
    												<div class="blockContent">
    													<xsl:value-of select="*/adr:Adres/adr:Powiat"/>
    												</div>
    											</td>
    										</tr>
    									</table>
    								</td>
    							</tr>
    							<tr>
    								<td style="width:30px;"/>
    								<td style="border:solid 1px black; border-bottom:0px; border-right:0px; background: white">
    									<table width="90%" style="border: 0px">
    										<tr>
    											<td width="30%" style="height:30px;vertical-align:top;">
    												<xsl:call-template name="BlockLabel">
    													<xsl:with-param name="text">18. Gmina</xsl:with-param>
    												</xsl:call-template>
    												<div class="blockContent">
    													<xsl:value-of select="*/adr:Adres/adr:Gmina"/>
    												</div>
    											</td>
    											<td width="40%" style="vertical-align:top; border-left: solid 1px #000000">
    												<xsl:call-template name="BlockLabel">
    													<xsl:with-param name="text">19. Ulica</xsl:with-param>
    												</xsl:call-template>
    												<div class="blockContent">
    													<xsl:if test="*/adr:Adres/adr:Ulica!=''">
    														<xsl:for-each select="*/adr:Adres/adr:Ulica[@rodzajUlicy != 'inna' and @rodzajUlicy != 'ulica']">
    															<xsl:value-of select="@rodzajUlicy"/>
    															<xsl:text> </xsl:text>
    														</xsl:for-each>
    														<xsl:value-of select="*/adr:Adres/adr:Ulica"/>
    													</xsl:if>
    												</div>
    											</td>
    											<td width="15%" style="vertical-align:top; border-left: solid 1px #000000">
    												<xsl:call-template name="BlockLabel">
    													<xsl:with-param name="text">20. Nr domu</xsl:with-param>
    												</xsl:call-template>
    												<div class="blockContent">
    													<xsl:value-of select="*/adr:Adres/adr:Budynek"/>
    												</div>
    											</td>
    											<td width="15%" style="vertical-align:top; border-left: solid 1px #000000">
    												<xsl:call-template name="BlockLabel">
    													<xsl:with-param name="text">21. Nr lokalu</xsl:with-param>
    												</xsl:call-template>
    												<div class="blockContent">
    													<xsl:value-of select="*/adr:Adres/adr:Lokal"/>
    												</div>
    											</td>
    										</tr>
    									</table>
    								</td>
    							</tr>
    							<tr>
    								<td style="width:30px;"/>
    								<td style="border:solid 1px black; border-bottom:0px; border-right:0px; background: white">
    									<table width="100%" style="border: 0px">
    										<tr>
    											<td width="40%" style="height:30px;vertical-align:top;">
    												<xsl:call-template name="BlockLabel">
    													<xsl:with-param name="text">22. Miejscowość</xsl:with-param>
    												</xsl:call-template>
    												<div class="blockContent">
    													<xsl:value-of select="*/adr:Adres/adr:Miejscowosc"/>
    												</div>
    											</td>
    											<td width="200" style="vertical-align:top; border-left: solid 1px #000000">
    												<xsl:call-template name="BlockLabel">
    													<xsl:with-param name="text">23. Kod pocztowy</xsl:with-param>
    												</xsl:call-template>
    												<div class="blockContent">
    													<xsl:value-of select="*/adr:Adres/adr:KodPocztowy"/>
    												</div>
    											</td>
    											<td style="vertical-align:top; border-left: solid 1px #000000">
    												<xsl:call-template name="BlockLabel">
    													<xsl:with-param name="text">24. Poczta</xsl:with-param>
    												</xsl:call-template>
    												<div class="blockContent">
    													<xsl:value-of select="*/adr:Adres/adr:Poczta"/>
    												</div>
    											</td>
    										</tr>
    									</table>
    								</td>
    							</tr>
    						</table>
    					</xsl:for-each>
    					<table width="100%" style="background:#eeeeee; border: solid 1px black; border-bottom: 0px">
    						<tr>
    							<td>
    								<div class="mainBlockHeader">E. DANE DOTYCZĄCE UŻYTKÓW ROLNYCH NIEPODLEGAJĄCYCH ZWOLNIENIU</div>
    							</td>
    						</tr>
    					</table>
    
    					<xsl:for-each select="wnio:Opodatkowanie/wnio:Uzytki[count(wnio:Uzytek[@klasa!='']) &gt; 0]">
    						<xsl:variable name="pozycja1" select="position()"/>
    						<xsl:variable name="size" select="2*count(../wnio:Uzytki[position() &lt; $pozycja1]/wnio:Uzytek)"/>
    						<div id="mainBlock" style="margin: -1px 0 0 0; font-size:8pt">
    							<table cellpadding="0" cellspacing="0" width="100%" style="border:none">
    								<tr>
    									<td colspan="3">
    										<div class="mainBlockHeader"> E.<xsl:value-of select="position()"/>. <xsl:value-of select="@nazwa"/></div>
    									</td>
    								</tr>
    							</table>	
    							<table cellpadding="0" cellspacing="0" width="100%" style="border:none">	
    								<tr>
    									<td width="30"/>
    									<td>
    										<table cellspacing="0" cellpadding="1" width="100%" style="border-collapse: collapse">
    											<xsl:if test="position()=1">
    												<tr>
    													<td class="gridCell" style="width:10%;border: solid 1px black; text-align:center;font-weight:bold">Klasa</td>
    													<td class="gridCell" style="width:30%; border: solid 1px black; text-align:center;font-weight:bold">Powierzchnia w ha</td>
    													<td class="gridCell" style="width:30%;border: solid 1px black; text-align:center;font-weight:bold">Przelicznik</td>
    													<td class="gridCell" style="width:30%;border: solid 1px black; text-align:center;font-weight:bold">Powierzchnia w hektarach przeliczeniowych <sup>1)</sup></td>
    												</tr>
    												<tr>
    													<td class="gridCell" style="border: solid 1px black; text-align:center;font-weight:bold"/>
    													<td class="gridCell" style="border: solid 1px black; text-align:center;font-weight:bold">a</td>
    													<td class="gridCell" style="border: solid 1px black; text-align:center;font-weight:bold">b</td>
    													<td class="gridCell" style="border: solid 1px black; text-align:center;font-weight:bold">c</td>
    												</tr>												
    											</xsl:if>
    											<xsl:for-each select="wnio:Uzytek">
    												<xsl:variable name="pozycja2" select="$size +2*(position()-1) + 25"/>
    												<xsl:variable name="size2" select="count(../wnio:Uzytek)"/>
    												<tr>
    													<td class="gridCell" style="width:10%;text-align:center; vertical-align: top">
    														<xsl:value-of select="@klasa"/>
    													</td>
    													<td class="gridValue" style="width:30%;text-align:center; vertical-align: top">
    														<xsl:call-template name="BlockLabel">
    															<xsl:with-param name="text"><xsl:value-of select="$pozycja2"/>.</xsl:with-param>
    														</xsl:call-template>
    														<table style="border: none">														
    															<xsl:for-each select="wnio:Pozycje/wnio:Pozycja">
    																<tr>
    																	<td style="vertical-align:bottom;padding-right:10px">
    																		<xsl:call-template name="Miesiac">
    																			<xsl:with-param name="miesiac" select="wnio:Miesiac"/>
    																		</xsl:call-template>:	
    																	</td>	
    																	<td style="vertical-align:bottom">														
    																		<xsl:call-template name="Number4">
    																			<xsl:with-param name="number" select="wnio:HaFizyczne"/>
    																		</xsl:call-template>
    																	</td>
    																</tr>		
    															</xsl:for-each>
    														</table>
    													</td>
    
    													<td class="gridCell" style="width:30%;text-align:center; vertical-align: center">
    														<xsl:value-of select="format-number(wnio:Przelicznik, '###.##0,00', 'Polish')"/>
    													</td>
    													
    													<td class="gridValue" style="width:30%;text-align:center; vertical-align:center">
    														<xsl:call-template name="BlockLabel">
    															<xsl:with-param name="text"><xsl:value-of select="$pozycja2+1"/>.</xsl:with-param>
    														</xsl:call-template>													
    														<xsl:value-of select="format-number(wnio:HaProporcjonalnie, '###.##0,0000', 'Polish')"/>
    													</td>
    												</tr>
    											</xsl:for-each>
    										</table>
    										<br/>
    									</td>
    									<td width="5"/>
    								</tr>
    							</table>
    						</div>
    					</xsl:for-each>
    					
    					<xsl:for-each select="wnio:Opodatkowanie/wnio:Uzytki[@grupa='e.10']">
    						<div id="mainBlock" style="margin: -1px 0 0 0; font-size:8pt">
    							<table cellpadding="0" cellspacing="0" width="100%" style="border:none">
    								<tr>
    									<td colspan="3">
    										<div class="mainBlockHeader"> E.10. <xsl:value-of select="@nazwa"/></div>
    									</td>
    								</tr>
    							</table>	
    							<table cellpadding="0" cellspacing="0" width="100%" style="border:none">	
    								<tr>
    									<td width="30"/>
    									<td>
    										<table cellspacing="0" cellpadding="1" width="100%" style="border-collapse: collapse">
    											<xsl:for-each select="wnio:Uzytek">
    												<tr>
    													<td class="gridCell" style="width:10%;text-align:center; vertical-align: top">
    													</td>
    													<td class="gridValue" style="width:30%;text-align:center; vertical-align: top">
    														<xsl:call-template name="BlockLabel">
    															<xsl:with-param name="text">117. Powierzchnia w ha</xsl:with-param>
    														</xsl:call-template>
    														<table style="border: none">														
    															<xsl:for-each select="wnio:Pozycje/wnio:Pozycja">
    																<tr>
    																	<td style="vertical-align:bottom;padding-right:10px">
    																		<xsl:call-template name="Miesiac">
    																			<xsl:with-param name="miesiac" select="wnio:Miesiac"/>
    																		</xsl:call-template>:	
    																	</td>	
    																	<td style="vertical-align:bottom">														
    																		<xsl:call-template name="Number4">
    																			<xsl:with-param name="number" select="wnio:HaFizyczne"/>
    																		</xsl:call-template>
    																	</td>
    																</tr>		
    															</xsl:for-each>
    														</table>
    													</td>
    													<td class="gridCell" style="width:30%;text-align:center; vertical-align: center">
    														<xsl:value-of select="format-number(wnio:Przelicznik, '###.##0,00', 'Polish')"/>
    													</td>
    													
    													<td class="gridValue" style="width:30%;text-align:center; vertical-align:center">
    														<xsl:call-template name="BlockLabel">
    															<xsl:with-param name="text">118.</xsl:with-param>
    														</xsl:call-template>													
    														<xsl:value-of select="format-number(wnio:HaProporcjonalnie, '###.##0,0000', 'Polish')"/>
    													</td>
    												</tr>
    											</xsl:for-each>
    										</table>
    										<br/>
    									</td>
    									<td width="5"/>
    								</tr>
    							</table>								
    						</div>		
    					</xsl:for-each>						
    
    
    					<xsl:for-each select="wnio:Opodatkowanie/wnio:Uzytki[@grupa='e.11']">
    						<div id="mainBlock" style="margin: -1px 0 0 0; font-size:8pt">
    							<table cellpadding="0" cellspacing="0" width="100%" style="border:none">
    								<tr>
    									<td colspan="3">
    										<div class="mainBlockHeader"> E.11. <xsl:value-of select="@nazwa"/></div>
    									</td>
    								</tr>
    							</table>	
    							<table cellpadding="0" cellspacing="0" width="100%" style="border:none">	
    								<tr>
    									<td width="30"/>
    									<td>
    										<table cellspacing="0" cellpadding="1" width="100%" style="border-collapse: collapse">
    											<xsl:for-each select="wnio:Uzytek">
    												<tr>
    													<td class="gridCell" style="width:10%;text-align:center; vertical-align: top">
    													</td>
    													<td class="gridValue" style="width:30%;text-align:center; vertical-align: top">
    														<xsl:call-template name="BlockLabel">
    															<xsl:with-param name="text">119.</xsl:with-param>
    														</xsl:call-template>
    														<table style="border: none">														
    															<xsl:for-each select="wnio:Pozycje/wnio:Pozycja">
    																<tr>
    																	<td style="vertical-align:bottom;padding-right:10px">
    																		<xsl:call-template name="Miesiac">
    																			<xsl:with-param name="miesiac" select="wnio:Miesiac"/>
    																		</xsl:call-template>:	
    																	</td>	
    																	<td style="vertical-align:bottom">														
    																		<xsl:call-template name="Number4">
    																			<xsl:with-param name="number" select="wnio:HaFizyczne"/>
    																		</xsl:call-template>
    																	</td>
    																</tr>		
    															</xsl:for-each>
    														</table>
    													</td>
    
    													<td class="gridCell" style="width:30%;text-align:center; vertical-align: center">
    														<xsl:value-of select="format-number(wnio:Przelicznik, '###.##0,00', 'Polish')"/>
    													</td>
    													
    													<td class="gridValue" style="width:30%;text-align:center; vertical-align:center">
    														<xsl:call-template name="BlockLabel">
    															<xsl:with-param name="text">120.</xsl:with-param>
    														</xsl:call-template>													
    														<xsl:value-of select="format-number(wnio:HaProporcjonalnie, '###.##0,0000', 'Polish')"/>
    													</td>
    												</tr>
    
    												
    											</xsl:for-each>
    										</table>
    										<br/>
    									</td>
    									<td width="5"/>
    								</tr>
    							</table>							
    						</div>		
    					</xsl:for-each>	
    
    
    					<xsl:for-each select="wnio:Opodatkowanie/wnio:Uzytki[@grupa='e.12']">
    						<div id="mainBlock" style="margin: -1px 0 0 0; font-size:8pt">
    							<table cellpadding="0" cellspacing="0" width="100%" style="border:none">
    								<tr>
    									<td colspan="3">
    										<div class="mainBlockHeader"> E.12. <xsl:value-of select="@nazwa"/></div>
    									</td>
    								</tr>
    							</table>	
    							<table cellpadding="0" cellspacing="0" width="100%" style="border:none">	
    								<tr>
    									<td width="30"/>
    									<td>
    										<table cellspacing="0" cellpadding="1" width="100%" style="border-collapse: collapse">
    											<xsl:for-each select="wnio:Uzytek">
    												<tr>
    													<td class="gridCell" style="width:10%;text-align:center; vertical-align: top">
    													</td>
    													<td class="gridValue" style="width:30%;text-align:center; vertical-align: top">
    														<xsl:call-template name="BlockLabel">
    															<xsl:with-param name="text">121.</xsl:with-param>
    														</xsl:call-template>
    														<table style="border: none">														
    															<xsl:for-each select="wnio:Pozycje/wnio:Pozycja">
    																<tr>
    																	<td style="vertical-align:bottom;padding-right:10px">
    																		<xsl:call-template name="Miesiac">
    																			<xsl:with-param name="miesiac" select="wnio:Miesiac"/>
    																		</xsl:call-template>:	
    																	</td>	
    																	<td style="vertical-align:bottom">														
    																		<xsl:call-template name="Number4">
    																			<xsl:with-param name="number" select="wnio:HaFizyczne"/>
    																		</xsl:call-template>
    																	</td>
    																</tr>		
    															</xsl:for-each>
    														</table>
    													</td>
    
    													<td class="gridCell" style="width:30%;text-align:center; vertical-align: center">
    														<xsl:value-of select="format-number(wnio:Przelicznik, '###.##0,00', 'Polish')"/>
    													</td>
    													
    													<td class="gridValue" style="width:30%;text-align:center; vertical-align:center">
    														<xsl:call-template name="BlockLabel">
    															<xsl:with-param name="text">122.</xsl:with-param>
    														</xsl:call-template>													
    														<xsl:value-of select="format-number(wnio:HaProporcjonalnie, '###.##0,0000', 'Polish')"/>
    													</td>
    												</tr>
    
    												
    											</xsl:for-each>
    										</table>
    										<br/>
    									</td>
    									<td width="5"/>
    								</tr>
    							</table>							
    						</div>		
    					</xsl:for-each>	
    
    
    					<div id="mainBlock" style="margin: -1px 0 0 0; font-size:8pt">
    						<table cellpadding="0" cellspacing="0" width="100%" style="border:none">
    							<tr>
    								<td colspan="3">
    									<div class="mainBlockHeader"> E.13. ŁĄCZNA POWIERZCHNIA UŻYTKÓW ROLNYCH STANOWIĄCYCH GOSPODARSTWO ROLNE</div>
    								</td>
    							</tr>
    						</table>	
    						<table cellpadding="0" cellspacing="0" width="100%" style="border:none">	
    							<tr>
    								<td width="30"/>
    								<td>
    									<table cellspacing="0" cellpadding="1" width="100%" style="border-collapse: collapse">
    										<xsl:for-each select="wnio:Opodatkowanie">
    											<tr>
    												<td class="gridValue" style="width:30%;text-align:center; vertical-align: top">
    													<xsl:call-template name="BlockLabel">
    														<xsl:with-param name="text">123. Powierzchnia w ha (Suma części od E.1 do E.12 kol. a)</xsl:with-param>
    													</xsl:call-template>
    													<xsl:variable name="e1I">
    														<xsl:for-each select="wnio:Uzytki[@grupa = 'e.1']/wnio:Uzytek[@klasa = 'I']/wnio:Pozycje/wnio:Pozycja">
    															<xsl:sort select="wnio:Miesiac" order="descending" data-type="number"/>
    															<xsl:if test="position()=1">
    																<xsl:value-of select="wnio:Miesiac"/>
    															</xsl:if>
    														</xsl:for-each>
    														
    													</xsl:variable>
    													
    													<xsl:variable name="e1II">
    														<xsl:for-each select="wnio:Uzytki[@grupa = 'e.1']/wnio:Uzytek[@klasa = 'II']/wnio:Pozycje/wnio:Pozycja">
    															<xsl:sort select="wnio:Miesiac" order="descending" data-type="number"/>
    															<xsl:if test="position()=1">
    																<xsl:value-of select="wnio:Miesiac"/>
    															</xsl:if>
    														</xsl:for-each>
    													</xsl:variable>
    													
    													<xsl:variable name="e1IIIa">
    														<xsl:for-each select="wnio:Uzytki[@grupa = 'e.1']/wnio:Uzytek[@klasa = 'IIIa']/wnio:Pozycje/wnio:Pozycja">
    															<xsl:sort select="wnio:Miesiac" order="descending" data-type="number"/>
    															<xsl:if test="position()=1">
    																<xsl:value-of select="wnio:Miesiac"/>
    															</xsl:if>
    														</xsl:for-each>
    													</xsl:variable>
    													
    													<xsl:variable name="e1IIIb">
    														<xsl:for-each select="wnio:Uzytki[@grupa = 'e.1']/wnio:Uzytek[@klasa = 'IIIb']/wnio:Pozycje/wnio:Pozycja">
    															<xsl:sort select="wnio:Miesiac" order="descending" data-type="number"/>
    															<xsl:if test="position()=1">
    																<xsl:value-of select="wnio:Miesiac"/>
    															</xsl:if>
    														</xsl:for-each>
    													</xsl:variable>
    													
    													<xsl:variable name="e1IVa">
    														<xsl:for-each select="wnio:Uzytki[@grupa = 'e.1']/wnio:Uzytek[@klasa = 'IVa']/wnio:Pozycje/wnio:Pozycja">
    															<xsl:sort select="wnio:Miesiac" order="descending" data-type="number"/>
    															<xsl:if test="position()=1">
    																<xsl:value-of select="wnio:Miesiac"/>
    															</xsl:if>
    														</xsl:for-each>
    													</xsl:variable>
    													
    													<xsl:variable name="e1IVb">
    														<xsl:for-each select="wnio:Uzytki[@grupa = 'e.1']/wnio:Uzytek[@klasa = 'IVb']/wnio:Pozycje/wnio:Pozycja">
    															<xsl:sort select="wnio:Miesiac" order="descending" data-type="number"/>
    															<xsl:if test="position()=1">
    																<xsl:value-of select="wnio:Miesiac"/>
    															</xsl:if>
    														</xsl:for-each>
    													</xsl:variable>
    													
    													<xsl:variable name="e2I">
    														<xsl:for-each select="wnio:Uzytki[@grupa = 'e.2']/wnio:Uzytek[@klasa = 'I']/wnio:Pozycje/wnio:Pozycja">
    															<xsl:sort select="wnio:Miesiac" order="descending" data-type="number"/>
    															<xsl:if test="position()=1">
    																<xsl:value-of select="wnio:Miesiac"/>
    															</xsl:if>
    														</xsl:for-each>
    													</xsl:variable>
    													
    													<xsl:variable name="e2II">
    														<xsl:for-each select="wnio:Uzytki[@grupa = 'e.2']/wnio:Uzytek[@klasa = 'II']/wnio:Pozycje/wnio:Pozycja">
    															<xsl:sort select="wnio:Miesiac" order="descending" data-type="number"/>
    															<xsl:if test="position()=1">
    																<xsl:value-of select="wnio:Miesiac"/>
    															</xsl:if>
    														</xsl:for-each>
    													</xsl:variable>
    													
    													<xsl:variable name="e2III">
    														<xsl:for-each select="wnio:Uzytki[@grupa = 'e.2']/wnio:Uzytek[@klasa = 'III']/wnio:Pozycje/wnio:Pozycja">
    															<xsl:sort select="wnio:Miesiac" order="descending" data-type="number"/>
    															<xsl:if test="position()=1">
    																<xsl:value-of select="wnio:Miesiac"/>
    															</xsl:if>
    														</xsl:for-each>
    													</xsl:variable>
    													
    													<xsl:variable name="e2IV">
    														<xsl:for-each select="wnio:Uzytki[@grupa = 'e.2']/wnio:Uzytek[@klasa = 'IV']/wnio:Pozycje/wnio:Pozycja">
    															<xsl:sort select="wnio:Miesiac" order="descending" data-type="number"/>
    															<xsl:if test="position()=1">
    																<xsl:value-of select="wnio:Miesiac"/>
    															</xsl:if>
    														</xsl:for-each>
    													</xsl:variable>
    													
    													<xsl:variable name="e3I">
    														<xsl:for-each select="wnio:Uzytki[@grupa = 'e.3']/wnio:Uzytek[@klasa = 'I']/wnio:Pozycje/wnio:Pozycja">
    															<xsl:sort select="wnio:Miesiac" order="descending" data-type="number"/>
    															<xsl:if test="position()=1">
    																<xsl:value-of select="wnio:Miesiac"/>
    															</xsl:if>
    														</xsl:for-each>
    													</xsl:variable>
    													
    													<xsl:variable name="e3II">
    														<xsl:for-each select="wnio:Uzytki[@grupa = 'e.3']/wnio:Uzytek[@klasa = 'II']/wnio:Pozycje/wnio:Pozycja">
    															<xsl:sort select="wnio:Miesiac" order="descending" data-type="number"/>
    															<xsl:if test="position()=1">
    																<xsl:value-of select="wnio:Miesiac"/>
    															</xsl:if>
    														</xsl:for-each>
    													</xsl:variable>
    													
    													<xsl:variable name="e3IIIa">
    														<xsl:for-each select="wnio:Uzytki[@grupa = 'e.3']/wnio:Uzytek[@klasa = 'III,IIIa']/wnio:Pozycje/wnio:Pozycja">
    															<xsl:sort select="wnio:Miesiac" order="descending" data-type="number"/>
    															<xsl:if test="position()=1">
    																<xsl:value-of select="wnio:Miesiac"/>
    															</xsl:if>
    														</xsl:for-each>
    													</xsl:variable>
    													
    													<xsl:variable name="e3IIIb">
    														<xsl:for-each select="wnio:Uzytki[@grupa = 'e.3']/wnio:Uzytek[@klasa = 'IIIb']/wnio:Pozycje/wnio:Pozycja">
    															<xsl:sort select="wnio:Miesiac" order="descending" data-type="number"/>
    															<xsl:if test="position()=1">
    																<xsl:value-of select="wnio:Miesiac"/>
    															</xsl:if>
    														</xsl:for-each>
    													</xsl:variable>
    													
    													<xsl:variable name="e3IVa">
    														<xsl:for-each select="wnio:Uzytki[@grupa = 'e.3']/wnio:Uzytek[@klasa = 'IV,IVa']/wnio:Pozycje/wnio:Pozycja">
    															<xsl:sort select="wnio:Miesiac" order="descending" data-type="number"/>
    															<xsl:if test="position()=1">
    																<xsl:value-of select="wnio:Miesiac"/>
    															</xsl:if>
    														</xsl:for-each>
    													</xsl:variable>
    													
    													<xsl:variable name="e3IVb">
    														<xsl:for-each select="wnio:Uzytki[@grupa = 'e.3']/wnio:Uzytek[@klasa = 'IVb']/wnio:Pozycje/wnio:Pozycja">
    															<xsl:sort select="wnio:Miesiac" order="descending" data-type="number"/>
    															<xsl:if test="position()=1">
    																<xsl:value-of select="wnio:Miesiac"/>
    															</xsl:if>
    														</xsl:for-each>
    													</xsl:variable>
    													
    													<xsl:variable name="e4I">
    														<xsl:for-each select="wnio:Uzytki[@grupa = 'e.4']/wnio:Uzytek[@klasa = 'I']/wnio:Pozycje/wnio:Pozycja">
    															<xsl:sort select="wnio:Miesiac" order="descending" data-type="number"/>
    															<xsl:if test="position()=1">
    																<xsl:value-of select="wnio:Miesiac"/>
    															</xsl:if>
    														</xsl:for-each>
    													</xsl:variable>
    													
    													<xsl:variable name="e4II">
    														<xsl:for-each select="wnio:Uzytki[@grupa = 'e.4']/wnio:Uzytek[@klasa = 'II']/wnio:Pozycje/wnio:Pozycja">
    															<xsl:sort select="wnio:Miesiac" order="descending" data-type="number"/>
    															<xsl:if test="position()=1">
    																<xsl:value-of select="wnio:Miesiac"/>
    															</xsl:if>
    														</xsl:for-each>
    													</xsl:variable>
    													
    													<xsl:variable name="e4IIIa">
    														<xsl:for-each select="wnio:Uzytki[@grupa = 'e.4']/wnio:Uzytek[@klasa = 'IIIa']/wnio:Pozycje/wnio:Pozycja">
    															<xsl:sort select="wnio:Miesiac" order="descending" data-type="number"/>
    															<xsl:if test="position()=1">
    																<xsl:value-of select="wnio:Miesiac"/>
    															</xsl:if>
    														</xsl:for-each>
    													</xsl:variable>
    													
    													<xsl:variable name="e4IIIb">
    														<xsl:for-each select="wnio:Uzytki[@grupa = 'e.4']/wnio:Uzytek[@klasa = 'IIIb']/wnio:Pozycje/wnio:Pozycja">
    															<xsl:sort select="wnio:Miesiac" order="descending" data-type="number"/>
    															<xsl:if test="position()=1">
    																<xsl:value-of select="wnio:Miesiac"/>
    															</xsl:if>
    														</xsl:for-each>
    													</xsl:variable>
    													
    													<xsl:variable name="e4IVa">
    														<xsl:for-each select="wnio:Uzytki[@grupa = 'e.4']/wnio:Uzytek[@klasa = 'IVa']/wnio:Pozycje/wnio:Pozycja">
    															<xsl:sort select="wnio:Miesiac" order="descending" data-type="number"/>
    															<xsl:if test="position()=1">
    																<xsl:value-of select="wnio:Miesiac"/>
    															</xsl:if>
    														</xsl:for-each>
    													</xsl:variable>
    													
    													<xsl:variable name="e4IVb">
    														<xsl:for-each select="wnio:Uzytki[@grupa = 'e.4']/wnio:Uzytek[@klasa = 'IVb']/wnio:Pozycje/wnio:Pozycja">
    															<xsl:sort select="wnio:Miesiac" order="descending" data-type="number"/>
    															<xsl:if test="position()=1">
    																<xsl:value-of select="wnio:Miesiac"/>
    															</xsl:if>
    														</xsl:for-each>
    													</xsl:variable>
    													
    													<xsl:variable name="e5I">
    														<xsl:for-each select="wnio:Uzytki[@grupa = 'e.5']/wnio:Uzytek[@klasa = 'I']/wnio:Pozycje/wnio:Pozycja">
    															<xsl:sort select="wnio:Miesiac" order="descending" data-type="number"/>
    															<xsl:if test="position()=1">
    																<xsl:value-of select="wnio:Miesiac"/>
    															</xsl:if>
    														</xsl:for-each>
    													</xsl:variable>
    													
    													<xsl:variable name="e5II">
    														<xsl:for-each select="wnio:Uzytki[@grupa = 'e.5']/wnio:Uzytek[@klasa = 'II']/wnio:Pozycje/wnio:Pozycja">
    															<xsl:sort select="wnio:Miesiac" order="descending" data-type="number"/>
    															<xsl:if test="position()=1">
    																<xsl:value-of select="wnio:Miesiac"/>
    															</xsl:if>
    														</xsl:for-each>
    													</xsl:variable>
    													
    													<xsl:variable name="e5III">
    														<xsl:for-each select="wnio:Uzytki[@grupa = 'e.5']/wnio:Uzytek[@klasa = 'III']/wnio:Pozycje/wnio:Pozycja">
    															<xsl:sort select="wnio:Miesiac" order="descending" data-type="number"/>
    															<xsl:if test="position()=1">
    																<xsl:value-of select="wnio:Miesiac"/>
    															</xsl:if>
    														</xsl:for-each>
    													</xsl:variable>
    													
    													<xsl:variable name="e5IV">
    														<xsl:for-each select="wnio:Uzytki[@grupa = 'e.5']/wnio:Uzytek[@klasa = 'IV']/wnio:Pozycje/wnio:Pozycja">
    															<xsl:sort select="wnio:Miesiac" order="descending" data-type="number"/>
    															<xsl:if test="position()=1">
    																<xsl:value-of select="wnio:Miesiac"/>
    															</xsl:if>
    														</xsl:for-each>
    													</xsl:variable>
    													
    													<xsl:variable name="e6I">
    														<xsl:for-each select="wnio:Uzytki[@grupa = 'e.6']/wnio:Uzytek[@klasa = 'I']/wnio:Pozycje/wnio:Pozycja">
    															<xsl:sort select="wnio:Miesiac" order="descending" data-type="number"/>
    															<xsl:if test="position()=1">
    																<xsl:value-of select="wnio:Miesiac"/>
    															</xsl:if>
    														</xsl:for-each>
    													</xsl:variable>
    													
    													<xsl:variable name="e6II">
    														<xsl:for-each select="wnio:Uzytki[@grupa = 'e.6']/wnio:Uzytek[@klasa = 'II']/wnio:Pozycje/wnio:Pozycja">
    															<xsl:sort select="wnio:Miesiac" order="descending" data-type="number"/>
    															<xsl:if test="position()=1">
    																<xsl:value-of select="wnio:Miesiac"/>
    															</xsl:if>
    														</xsl:for-each>
    													</xsl:variable>
    													
    													<xsl:variable name="e6IIIa">
    														<xsl:for-each select="wnio:Uzytki[@grupa = 'e.6']/wnio:Uzytek[@klasa = 'IIIa']/wnio:Pozycje/wnio:Pozycja">
    															<xsl:sort select="wnio:Miesiac" order="descending" data-type="number"/>
    															<xsl:if test="position()=1">
    																<xsl:value-of select="wnio:Miesiac"/>
    															</xsl:if>
    														</xsl:for-each>
    													</xsl:variable>
    													
    													<xsl:variable name="e6IIIb">
    														<xsl:for-each select="wnio:Uzytki[@grupa = 'e.6']/wnio:Uzytek[@klasa = 'IIIb']/wnio:Pozycje/wnio:Pozycja">
    															<xsl:sort select="wnio:Miesiac" order="descending" data-type="number"/>
    															<xsl:if test="position()=1">
    																<xsl:value-of select="wnio:Miesiac"/>
    															</xsl:if>
    														</xsl:for-each>
    													</xsl:variable>
    													
    													<xsl:variable name="e6IVa">
    														<xsl:for-each select="wnio:Uzytki[@grupa = 'e.6']/wnio:Uzytek[@klasa = 'IVa']/wnio:Pozycje/wnio:Pozycja">
    															<xsl:sort select="wnio:Miesiac" order="descending" data-type="number"/>
    															<xsl:if test="position()=1">
    																<xsl:value-of select="wnio:Miesiac"/>
    															</xsl:if>
    														</xsl:for-each>
    													</xsl:variable>
    													
    													<xsl:variable name="e6IVb">
    														<xsl:for-each select="wnio:Uzytki[@grupa = 'e.6']/wnio:Uzytek[@klasa = 'IVb']/wnio:Pozycje/wnio:Pozycja">
    															<xsl:sort select="wnio:Miesiac" order="descending" data-type="number"/>
    															<xsl:if test="position()=1">
    																<xsl:value-of select="wnio:Miesiac"/>
    															</xsl:if>
    														</xsl:for-each>
    													</xsl:variable>
    													
    													<xsl:variable name="e7I">
    														<xsl:for-each select="wnio:Uzytki[@grupa = 'e.7']/wnio:Uzytek[@klasa = 'I']/wnio:Pozycje/wnio:Pozycja">
    															<xsl:sort select="wnio:Miesiac" order="descending" data-type="number"/>
    															<xsl:if test="position()=1">
    																<xsl:value-of select="wnio:Miesiac"/>
    															</xsl:if>
    														</xsl:for-each>
    													</xsl:variable>
    													
    													<xsl:variable name="e7II">
    														<xsl:for-each select="wnio:Uzytki[@grupa = 'e.7']/wnio:Uzytek[@klasa = 'II']/wnio:Pozycje/wnio:Pozycja">
    															<xsl:sort select="wnio:Miesiac" order="descending" data-type="number"/>
    															<xsl:if test="position()=1">
    																<xsl:value-of select="wnio:Miesiac"/>
    															</xsl:if>
    														</xsl:for-each>
    													</xsl:variable>
    													
    													<xsl:variable name="e7III">
    														<xsl:for-each select="wnio:Uzytki[@grupa = 'e.7']/wnio:Uzytek[@klasa = 'III']/wnio:Pozycje/wnio:Pozycja">
    															<xsl:sort select="wnio:Miesiac" order="descending" data-type="number"/>
    															<xsl:if test="position()=1">
    																<xsl:value-of select="wnio:Miesiac"/>
    															</xsl:if>
    														</xsl:for-each>
    													</xsl:variable>
    													
    													<xsl:variable name="e7IV">
    														<xsl:for-each select="wnio:Uzytki[@grupa = 'e.7']/wnio:Uzytek[@klasa = 'IV']/wnio:Pozycje/wnio:Pozycja">
    															<xsl:sort select="wnio:Miesiac" order="descending" data-type="number"/>
    															<xsl:if test="position()=1">
    																<xsl:value-of select="wnio:Miesiac"/>
    															</xsl:if>
    														</xsl:for-each>
    													</xsl:variable>
    													
    													<xsl:variable name="e8I">
    														<xsl:for-each select="wnio:Uzytki[@grupa = 'e.8']/wnio:Uzytek[@klasa = 'I']/wnio:Pozycje/wnio:Pozycja">
    															<xsl:sort select="wnio:Miesiac" order="descending" data-type="number"/>
    															<xsl:if test="position()=1">
    																<xsl:value-of select="wnio:Miesiac"/>
    															</xsl:if>
    														</xsl:for-each>
    													</xsl:variable>
    													
    													<xsl:variable name="e8II">
    														<xsl:for-each select="wnio:Uzytki[@grupa = 'e.8']/wnio:Uzytek[@klasa = 'II']/wnio:Pozycje/wnio:Pozycja">
    															<xsl:sort select="wnio:Miesiac" order="descending" data-type="number"/>
    															<xsl:if test="position()=1">
    																<xsl:value-of select="wnio:Miesiac"/>
    															</xsl:if>
    														</xsl:for-each>
    													</xsl:variable>
    													
    													<xsl:variable name="e8IIIa">
    														<xsl:for-each select="wnio:Uzytki[@grupa = 'e.8']/wnio:Uzytek[@klasa = 'IIIa']/wnio:Pozycje/wnio:Pozycja">
    															<xsl:sort select="wnio:Miesiac" order="descending" data-type="number"/>
    															<xsl:if test="position()=1">
    																<xsl:value-of select="wnio:Miesiac"/>
    															</xsl:if>
    														</xsl:for-each>
    													</xsl:variable>
    													
    													<xsl:variable name="e8IIIb">
    														<xsl:for-each select="wnio:Uzytki[@grupa = 'e.8']/wnio:Uzytek[@klasa = 'IIIb']/wnio:Pozycje/wnio:Pozycja">
    															<xsl:sort select="wnio:Miesiac" order="descending" data-type="number"/>
    															<xsl:if test="position()=1">
    																<xsl:value-of select="wnio:Miesiac"/>
    															</xsl:if>
    														</xsl:for-each>
    													</xsl:variable>
    													
    													<xsl:variable name="e8IVa">
    														<xsl:for-each select="wnio:Uzytki[@grupa = 'e.8']/wnio:Uzytek[@klasa = 'IVa']/wnio:Pozycje/wnio:Pozycja">
    															<xsl:sort select="wnio:Miesiac" order="descending" data-type="number"/>
    															<xsl:if test="position()=1">
    																<xsl:value-of select="wnio:Miesiac"/>
    															</xsl:if>
    														</xsl:for-each>
    													</xsl:variable>
    													
    													<xsl:variable name="e8IVb">
    														<xsl:for-each select="wnio:Uzytki[@grupa = 'e.8']/wnio:Uzytek[@klasa = 'IVb']/wnio:Pozycje/wnio:Pozycja">
    															<xsl:sort select="wnio:Miesiac" order="descending" data-type="number"/>
    															<xsl:if test="position()=1">
    																<xsl:value-of select="wnio:Miesiac"/>
    															</xsl:if>
    														</xsl:for-each>
    													</xsl:variable>
    													
    													<xsl:variable name="e9I">
    														<xsl:for-each select="wnio:Uzytki[@grupa = 'e.9']/wnio:Uzytek[@klasa = 'I']/wnio:Pozycje/wnio:Pozycja">
    															<xsl:sort select="wnio:Miesiac" order="descending" data-type="number"/>
    															<xsl:if test="position()=1">
    																<xsl:value-of select="wnio:Miesiac"/>
    															</xsl:if>
    														</xsl:for-each>
    													</xsl:variable>
    													
    													<xsl:variable name="e9II">
    														<xsl:for-each select="wnio:Uzytki[@grupa = 'e.9']/wnio:Uzytek[@klasa = 'II']/wnio:Pozycje/wnio:Pozycja">
    															<xsl:sort select="wnio:Miesiac" order="descending" data-type="number"/>
    															<xsl:if test="position()=1">
    																<xsl:value-of select="wnio:Miesiac"/>
    															</xsl:if>
    														</xsl:for-each>
    													</xsl:variable>
    													
    													<xsl:variable name="e9III">
    														<xsl:for-each select="wnio:Uzytki[@grupa = 'e.9']/wnio:Uzytek[@klasa = 'III']/wnio:Pozycje/wnio:Pozycja">
    															<xsl:sort select="wnio:Miesiac" order="descending" data-type="number"/>
    															<xsl:if test="position()=1">
    																<xsl:value-of select="wnio:Miesiac"/>
    															</xsl:if>
    														</xsl:for-each>
    													</xsl:variable>
    													
    													<xsl:variable name="e9IV">
    														<xsl:for-each select="wnio:Uzytki[@grupa = 'e.9']/wnio:Uzytek[@klasa = 'IV']/wnio:Pozycje/wnio:Pozycja">
    															<xsl:sort select="wnio:Miesiac" order="descending" data-type="number"/>
    															<xsl:if test="position()=1">
    																<xsl:value-of select="wnio:Miesiac"/>
    															</xsl:if>
    														</xsl:for-each>
    													</xsl:variable>
    													
    													<xsl:variable name="e10">
    														<xsl:for-each select="wnio:Uzytki[@grupa = 'e.10']/wnio:Uzytek/wnio:Pozycje/wnio:Pozycja">
    															<xsl:sort select="wnio:Miesiac" order="descending" data-type="number"/>
    															<xsl:if test="position()=1">
    																<xsl:value-of select="wnio:Miesiac"/>
    															</xsl:if>
    														</xsl:for-each>
    													</xsl:variable>
    													
    													<xsl:variable name="e11">
    														<xsl:for-each select="wnio:Uzytki[@grupa = 'e.11']/wnio:Uzytek/wnio:Pozycje/wnio:Pozycja">
    															<xsl:sort select="wnio:Miesiac" order="descending" data-type="number"/>
    															<xsl:if test="position()=1">
    																<xsl:value-of select="wnio:Miesiac"/>
    															</xsl:if>
    														</xsl:for-each>
    													</xsl:variable>
    													
    													<xsl:variable name="e12">
    														<xsl:for-each select="wnio:Uzytki[@grupa = 'e.12']/wnio:Uzytek/wnio:Pozycje/wnio:Pozycja">
    															<xsl:sort select="wnio:Miesiac" order="descending" data-type="number"/>
    															<xsl:if test="position()=1">
    																<xsl:value-of select="wnio:Miesiac"/>
    															</xsl:if>
    														</xsl:for-each>
    													</xsl:variable>
    													
    													
    													<xsl:variable name="e1Is">
    														<xsl:value-of select="sum(wnio:Uzytki[@grupa = 'e.1']/wnio:Uzytek[@klasa = 'I']/wnio:Pozycje/wnio:Pozycja[wnio:Miesiac = $e1I]/wnio:HaFizyczne)"/>
    													</xsl:variable>
    													
    													<xsl:variable name="e1IIs">
    														<xsl:value-of select="sum(wnio:Uzytki[@grupa = 'e.1']/wnio:Uzytek[@klasa = 'II']/wnio:Pozycje/wnio:Pozycja[wnio:Miesiac = $e1II]/wnio:HaFizyczne)"/>
    													</xsl:variable>
    													
    													<xsl:variable name="e1IIIas">
    														<xsl:value-of select="sum(wnio:Uzytki[@grupa = 'e.1']/wnio:Uzytek[@klasa = 'IIIa']/wnio:Pozycje/wnio:Pozycja[wnio:Miesiac = $e1IIIa]/wnio:HaFizyczne)"/>
    													</xsl:variable>
    													
    													<xsl:variable name="e1IIIbs">
    														<xsl:value-of select="sum(wnio:Uzytki[@grupa = 'e.1']/wnio:Uzytek[@klasa = 'IIIb']/wnio:Pozycje/wnio:Pozycja[wnio:Miesiac = $e1IIIb]/wnio:HaFizyczne)"/>
    													</xsl:variable>
    													
    													<xsl:variable name="e1IVas">
    														<xsl:value-of select="sum(wnio:Uzytki[@grupa = 'e.1']/wnio:Uzytek[@klasa = 'IVa']/wnio:Pozycje/wnio:Pozycja[wnio:Miesiac = $e1IVa]/wnio:HaFizyczne)"/>
    													</xsl:variable>
    													
    													<xsl:variable name="e1IVbs">
    														<xsl:value-of select="sum(wnio:Uzytki[@grupa = 'e.1']/wnio:Uzytek[@klasa = 'IVb']/wnio:Pozycje/wnio:Pozycja[wnio:Miesiac = $e1IVb]/wnio:HaFizyczne)"/>
    													</xsl:variable>
    													
    													<xsl:variable name="e2Is">
    														<xsl:value-of select="sum(wnio:Uzytki[@grupa = 'e.2']/wnio:Uzytek[@klasa = 'I']/wnio:Pozycje/wnio:Pozycja[wnio:Miesiac = $e2I]/wnio:HaFizyczne)"/>
    													</xsl:variable>
    													
    													<xsl:variable name="e2IIs">
    														<xsl:value-of select="sum(wnio:Uzytki[@grupa = 'e.2']/wnio:Uzytek[@klasa = 'II']/wnio:Pozycje/wnio:Pozycja[wnio:Miesiac = $e2II]/wnio:HaFizyczne)"/>
    													</xsl:variable>
    													
    													<xsl:variable name="e2IIIs">
    														<xsl:value-of select="sum(wnio:Uzytki[@grupa = 'e.2']/wnio:Uzytek[@klasa = 'III']/wnio:Pozycje/wnio:Pozycja[wnio:Miesiac = $e2III]/wnio:HaFizyczne)"/>
    													</xsl:variable>
    													
    													<xsl:variable name="e2IVs">
    														<xsl:value-of select="sum(wnio:Uzytki[@grupa = 'e.2']/wnio:Uzytek[@klasa = 'IV']/wnio:Pozycje/wnio:Pozycja[wnio:Miesiac = $e2IV]/wnio:HaFizyczne)"/>
    													</xsl:variable>
    													
    													<xsl:variable name="e3Is">
    														<xsl:value-of select="sum(wnio:Uzytki[@grupa = 'e.3']/wnio:Uzytek[@klasa = 'I']/wnio:Pozycje/wnio:Pozycja[wnio:Miesiac = $e3I]/wnio:HaFizyczne)"/>
    													</xsl:variable>
    													
    													<xsl:variable name="e3IIs">
    														<xsl:value-of select="sum(wnio:Uzytki[@grupa = 'e.3']/wnio:Uzytek[@klasa = 'II']/wnio:Pozycje/wnio:Pozycja[wnio:Miesiac = $e3II]/wnio:HaFizyczne)"/>
    													</xsl:variable>
    													
    													<xsl:variable name="e3IIIas">
    														<xsl:value-of select="sum(wnio:Uzytki[@grupa = 'e.3']/wnio:Uzytek[@klasa = 'III,IIIa']/wnio:Pozycje/wnio:Pozycja[wnio:Miesiac = $e3IIIa]/wnio:HaFizyczne)"/>
    													</xsl:variable>
    													
    													<xsl:variable name="e3IIIbs">
    														<xsl:value-of select="sum(wnio:Uzytki[@grupa = 'e.3']/wnio:Uzytek[@klasa = 'IIIb']/wnio:Pozycje/wnio:Pozycja[wnio:Miesiac = $e3IIIb]/wnio:HaFizyczne)"/>
    													</xsl:variable>
    													
    													<xsl:variable name="e3IVas">
    														<xsl:value-of select="sum(wnio:Uzytki[@grupa = 'e.3']/wnio:Uzytek[@klasa = 'IV,IVa']/wnio:Pozycje/wnio:Pozycja[wnio:Miesiac = $e3IVa]/wnio:HaFizyczne)"/>
    													</xsl:variable>
    													
    													<xsl:variable name="e3IVbs">
    														<xsl:value-of select="sum(wnio:Uzytki[@grupa = 'e.3']/wnio:Uzytek[@klasa = 'IVb']/wnio:Pozycje/wnio:Pozycja[wnio:Miesiac = $e3IVb]/wnio:HaFizyczne)"/>
    													</xsl:variable>
    													
    													<xsl:variable name="e4Is">
    														<xsl:value-of select="sum(wnio:Uzytki[@grupa = 'e.4']/wnio:Uzytek[@klasa = 'I']/wnio:Pozycje/wnio:Pozycja[wnio:Miesiac = $e4I]/wnio:HaFizyczne)"/>
    													</xsl:variable>
    													
    													<xsl:variable name="e4IIs">
    														<xsl:value-of select="sum(wnio:Uzytki[@grupa = 'e.4']/wnio:Uzytek[@klasa = 'II']/wnio:Pozycje/wnio:Pozycja[wnio:Miesiac = $e4II]/wnio:HaFizyczne)"/>
    													</xsl:variable>
    													
    													<xsl:variable name="e4IIIas">
    														<xsl:value-of select="sum(wnio:Uzytki[@grupa = 'e.4']/wnio:Uzytek[@klasa = 'IIIa']/wnio:Pozycje/wnio:Pozycja[wnio:Miesiac = $e4IIIa]/wnio:HaFizyczne)"/>
    													</xsl:variable>
    													
    													<xsl:variable name="e4IIIbs">
    														<xsl:value-of select="sum(wnio:Uzytki[@grupa = 'e.4']/wnio:Uzytek[@klasa = 'IIIb']/wnio:Pozycje/wnio:Pozycja[wnio:Miesiac = $e4IIIb]/wnio:HaFizyczne)"/>
    													</xsl:variable>
    													
    													<xsl:variable name="e4IVas">
    														<xsl:value-of select="sum(wnio:Uzytki[@grupa = 'e.4']/wnio:Uzytek[@klasa = 'IVa']/wnio:Pozycje/wnio:Pozycja[wnio:Miesiac = $e4IVa]/wnio:HaFizyczne)"/>
    													</xsl:variable>
    													
    													<xsl:variable name="e4IVbs">
    														<xsl:value-of select="sum(wnio:Uzytki[@grupa = 'e.4']/wnio:Uzytek[@klasa = 'IVb']/wnio:Pozycje/wnio:Pozycja[wnio:Miesiac = $e4IVb]/wnio:HaFizyczne)"/>
    													</xsl:variable>
    													
    													<xsl:variable name="e5Is">
    														<xsl:value-of select="sum(wnio:Uzytki[@grupa = 'e.5']/wnio:Uzytek[@klasa = 'I']/wnio:Pozycje/wnio:Pozycja[wnio:Miesiac = $e5I]/wnio:HaFizyczne)"/>
    													</xsl:variable>
    													
    													<xsl:variable name="e5IIs">
    														<xsl:value-of select="sum(wnio:Uzytki[@grupa = 'e.5']/wnio:Uzytek[@klasa = 'II']/wnio:Pozycje/wnio:Pozycja[wnio:Miesiac = $e5II]/wnio:HaFizyczne)"/>
    													</xsl:variable>
    													
    													<xsl:variable name="e5IIIs">
    														<xsl:value-of select="sum(wnio:Uzytki[@grupa = 'e.5']/wnio:Uzytek[@klasa = 'III']/wnio:Pozycje/wnio:Pozycja[wnio:Miesiac = $e5III]/wnio:HaFizyczne)"/>
    													</xsl:variable>
    													
    													<xsl:variable name="e5IVs">
    														<xsl:value-of select="sum(wnio:Uzytki[@grupa = 'e.5']/wnio:Uzytek[@klasa = 'IV']/wnio:Pozycje/wnio:Pozycja[wnio:Miesiac = $e5IV]/wnio:HaFizyczne)"/>
    													</xsl:variable>
    													
    													<xsl:variable name="e6Is">
    														<xsl:value-of select="sum(wnio:Uzytki[@grupa = 'e.6']/wnio:Uzytek[@klasa = 'I']/wnio:Pozycje/wnio:Pozycja[wnio:Miesiac = $e6I]/wnio:HaFizyczne)"/>
    													</xsl:variable>
    													
    													<xsl:variable name="e6IIs">
    														<xsl:value-of select="sum(wnio:Uzytki[@grupa = 'e.6']/wnio:Uzytek[@klasa = 'II']/wnio:Pozycje/wnio:Pozycja[wnio:Miesiac = $e6II]/wnio:HaFizyczne)"/>
    													</xsl:variable>
    													
    													<xsl:variable name="e6IIIas">
    														<xsl:value-of select="sum(wnio:Uzytki[@grupa = 'e.6']/wnio:Uzytek[@klasa = 'IIIa']/wnio:Pozycje/wnio:Pozycja[wnio:Miesiac = $e6IIIa]/wnio:HaFizyczne)"/>
    													</xsl:variable>
    													
    													<xsl:variable name="e6IIIbs">
    														<xsl:value-of select="sum(wnio:Uzytki[@grupa = 'e.6']/wnio:Uzytek[@klasa = 'IIIb']/wnio:Pozycje/wnio:Pozycja[wnio:Miesiac = $e6IIIb]/wnio:HaFizyczne)"/>
    													</xsl:variable>
    													
    													<xsl:variable name="e6IVas">
    														<xsl:value-of select="sum(wnio:Uzytki[@grupa = 'e.6']/wnio:Uzytek[@klasa = 'IVa']/wnio:Pozycje/wnio:Pozycja[wnio:Miesiac = $e6IVa]/wnio:HaFizyczne)"/>
    													</xsl:variable>
    													
    													<xsl:variable name="e6IVbs">
    														<xsl:value-of select="sum(wnio:Uzytki[@grupa = 'e.6']/wnio:Uzytek[@klasa = 'IVb']/wnio:Pozycje/wnio:Pozycja[wnio:Miesiac = $e6IVb]/wnio:HaFizyczne)"/>
    													</xsl:variable>
    													
    													<xsl:variable name="e7Is">
    														<xsl:value-of select="sum(wnio:Uzytki[@grupa = 'e.7']/wnio:Uzytek[@klasa = 'I']/wnio:Pozycje/wnio:Pozycja[wnio:Miesiac = $e7I]/wnio:HaFizyczne)"/>
    													</xsl:variable>
    													
    													<xsl:variable name="e7IIs">
    														<xsl:value-of select="sum(wnio:Uzytki[@grupa = 'e.7']/wnio:Uzytek[@klasa = 'II']/wnio:Pozycje/wnio:Pozycja[wnio:Miesiac = $e7II]/wnio:HaFizyczne)"/>
    													</xsl:variable>
    													
    													<xsl:variable name="e7IIIs">
    														<xsl:value-of select="sum(wnio:Uzytki[@grupa = 'e.7']/wnio:Uzytek[@klasa = 'III']/wnio:Pozycje/wnio:Pozycja[wnio:Miesiac = $e7III]/wnio:HaFizyczne)"/>
    													</xsl:variable>
    													
    													<xsl:variable name="e7IVs">
    														<xsl:value-of select="sum(wnio:Uzytki[@grupa = 'e.7']/wnio:Uzytek[@klasa = 'IV']/wnio:Pozycje/wnio:Pozycja[wnio:Miesiac = $e7IV]/wnio:HaFizyczne)"/>
    													</xsl:variable>
    													
    													<xsl:variable name="e8Is">
    														<xsl:value-of select="sum(wnio:Uzytki[@grupa = 'e.8']/wnio:Uzytek[@klasa = 'I']/wnio:Pozycje/wnio:Pozycja[wnio:Miesiac = $e8I]/wnio:HaFizyczne)"/>
    													</xsl:variable>
    													
    													<xsl:variable name="e8IIs">
    														<xsl:value-of select="sum(wnio:Uzytki[@grupa = 'e.8']/wnio:Uzytek[@klasa = 'II']/wnio:Pozycje/wnio:Pozycja[wnio:Miesiac = $e8II]/wnio:HaFizyczne)"/>
    													</xsl:variable>
    													
    													<xsl:variable name="e8IIIas">
    														<xsl:value-of select="sum(wnio:Uzytki[@grupa = 'e.8']/wnio:Uzytek[@klasa = 'IIIa']/wnio:Pozycje/wnio:Pozycja[wnio:Miesiac = $e8IIIa]/wnio:HaFizyczne)"/>
    													</xsl:variable>
    													
    													<xsl:variable name="e8IIIbs">
    														<xsl:value-of select="sum(wnio:Uzytki[@grupa = 'e.8']/wnio:Uzytek[@klasa = 'IIIb']/wnio:Pozycje/wnio:Pozycja[wnio:Miesiac = $e8IIIb]/wnio:HaFizyczne)"/>
    													</xsl:variable>
    													
    													<xsl:variable name="e8IVas">
    														<xsl:value-of select="sum(wnio:Uzytki[@grupa = 'e.8']/wnio:Uzytek[@klasa = 'IVa']/wnio:Pozycje/wnio:Pozycja[wnio:Miesiac = $e8IVa]/wnio:HaFizyczne)"/>
    													</xsl:variable>
    													
    													<xsl:variable name="e8IVbs">
    														<xsl:value-of select="sum(wnio:Uzytki[@grupa = 'e.8']/wnio:Uzytek[@klasa = 'IVb']/wnio:Pozycje/wnio:Pozycja[wnio:Miesiac = $e8IVb]/wnio:HaFizyczne)"/>
    													</xsl:variable>
    													
    													<xsl:variable name="e9Is">
    														<xsl:value-of select="sum(wnio:Uzytki[@grupa = 'e.9']/wnio:Uzytek[@klasa = 'I']/wnio:Pozycje/wnio:Pozycja[wnio:Miesiac = $e9I]/wnio:HaFizyczne)"/>
    													</xsl:variable>
    													
    													<xsl:variable name="e9IIs">
    														<xsl:value-of select="sum(wnio:Uzytki[@grupa = 'e.9']/wnio:Uzytek[@klasa = 'II']/wnio:Pozycje/wnio:Pozycja[wnio:Miesiac = $e9II]/wnio:HaFizyczne)"/>
    													</xsl:variable>
    													
    													<xsl:variable name="e9IIIs">
    														<xsl:value-of select="sum(wnio:Uzytki[@grupa = 'e.9']/wnio:Uzytek[@klasa = 'III']/wnio:Pozycje/wnio:Pozycja[wnio:Miesiac = $e9III]/wnio:HaFizyczne)"/>
    													</xsl:variable>
    													
    													<xsl:variable name="e9IVs">
    														<xsl:value-of select="sum(wnio:Uzytki[@grupa = 'e.9']/wnio:Uzytek[@klasa = 'IV']/wnio:Pozycje/wnio:Pozycja[wnio:Miesiac = $e9IV]/wnio:HaFizyczne)"/>
    													</xsl:variable>
    													
    													<xsl:variable name="e10s">
    														<xsl:value-of select="sum(wnio:Uzytki[@grupa = 'e.10']/wnio:Uzytek/wnio:Pozycje/wnio:Pozycja[wnio:Miesiac = $e10]/wnio:HaFizyczne)"/>
    													</xsl:variable>
    													
    													<xsl:variable name="e11s">
    														<xsl:value-of select="sum(wnio:Uzytki[@grupa = 'e.11']/wnio:Uzytek/wnio:Pozycje/wnio:Pozycja[wnio:Miesiac = $e11]/wnio:HaFizyczne)"/>
    													</xsl:variable>
    													
    													<xsl:variable name="e12s">
    														<xsl:value-of select="sum(wnio:Uzytki[@grupa = 'e.12']/wnio:Uzytek/wnio:Pozycje/wnio:Pozycja[wnio:Miesiac = $e12]/wnio:HaFizyczne)"/>
    													</xsl:variable>
    													
    													<xsl:value-of select="format-number($e1Is + $e1IIs + $e1IIIas + $e1IIIbs + $e1IVas + $e1IVbs + $e2Is + $e2IIs + $e2IIIs + $e2IVs + $e3Is + $e3IIs + $e3IIIas + $e3IIIbs + $e3IVas + $e3IVbs + $e4Is + $e4IIs + $e4IIIas + $e4IIIbs + $e4IVas + $e4IVbs + $e5Is + $e5IIs + $e5IIIs + $e5IVs + $e6Is + $e6IIs + $e6IIIas + $e6IIIbs + $e6IVas + $e6IVbs + $e7Is + $e7IIs + $e7IIIs + $e7IVs + $e8Is + $e8IIs + $e8IIIas + $e8IIIbs + $e8IVas + $e8IVbs + $e9Is + $e9IIs + $e9IIIs + $e9IVs + $e10s + $e11s + $e12s,'###.##0,0000', 'Polish')"/>
    												</td>
    
    													
    												<td class="gridValue" style="width:30%;text-align:center; vertical-align:center">
    													<xsl:call-template name="BlockLabel">
    														<xsl:with-param name="text">124. Powierzchnia w ha przeliczeniowych (Suma części od E.1 do E.12 kol. c)</xsl:with-param>
    													</xsl:call-template>													
    													<xsl:value-of select="format-number(@haProporcjonalnie, '###.##0,0000', 'Polish')"/>
    												</td>
    											</tr>
    
    											
    										</xsl:for-each>
    									</table>
    									<br/>
    								</td>
    								<td width="5"/>
    							</tr>
    						</table>							
    					</div>		
    	
    
    					<div id="mainBlock">
    						<div class="mainBlockHeader">F. ŁĄCZNA KWOTA PODATKU OD GOSPODARSTW ROLNYCH</div>
    						<table cellpadding="0" cellspacing="0" width="100%" style="border:0px">
    							<tr>
    								<td width="30"/>
    								<td>
    									<table cellspacing="0" cellpadding="1" width="100%" style="border-collapse: collapse">
    										<tr>
    											<td class="gridCell" style=" border: solid 1px black; vertical-align:top;font-size:9pt  ">
    											<b>Łączna powierzchnia w ha przeliczeniowych</b>
    											</td>
    											<td class="gridValue" style="width:120px">
    												<xsl:call-template name="BlockLabel">
    													<xsl:with-param name="text">125.</xsl:with-param>
    												</xsl:call-template>
    												<b>
    													<xsl:value-of select="format-number(wnio:Opodatkowanie/@haProporcjonalnie, '###.##0,0000', 'Polish')"/></b>
    											</td>
    										</tr>
    										<tr>
    											<td class="gridCell" style=" border: solid 1px black; vertical-align:top;font-size:9pt  ">
    											<b>Stawka podatku</b></td>
    											<td class="gridValue" style="width:120px">
    												<xsl:call-template name="BlockLabel">
    													<xsl:with-param name="text">126.</xsl:with-param>
    												</xsl:call-template>
    												
    													<xsl:if test="wnio:Opodatkowanie/@stawkaPodatku != ''">
    														<b><xsl:value-of select="format-number(wnio:Opodatkowanie/@stawkaPodatku, '###.##0,0000', 'Polish')"/> zł</b>
    													</xsl:if>
    											</td>
    										</tr>		
    										<tr>
    											<td class="gridCell" style=" border: solid 1px black; vertical-align:top;font-size:9pt  ">
    											<b>Kwota podatku</b> (po zaokrągleniu do pełnych złotych) <sup>***)</sup></td>
    											<td class="gridValue" style="width:120px">
    												<xsl:call-template name="BlockLabel">
    													<xsl:with-param name="text">127.</xsl:with-param>
    												</xsl:call-template>
    												<b>
    													<xsl:value-of select="format-number(round(wnio:Opodatkowanie/@kwotaPodatku), '###.##0', 'Polish')"/> zł</b>
    											</td>
    										</tr>																			
    									</table>
    								</td>
    							</tr>
    						</table>
    					</div>
    					
    					
    					<div id="mainBlock" style="margin: -1px 0 0 0; font-size:8pt">
    						<table cellpadding="0" cellspacing="0" width="100%" style="border:none">
    							<tr>
    								<td colspan="3">
    									<div class="mainBlockHeader"> G. DANE DOTYCZĄCE UŻYTKÓW ROLNYCH NIESTANOWIĄCYCH GOSPODARSTW ROLNYCH NIEPODLEGAJĄCYCH ZWOLNIENIU</div>
    								</td>
    							</tr>
    						</table>	
    						<table cellpadding="0" cellspacing="0" width="100%" style="border:none">	
    							<tr>
    								<td width="30"/>
    								<td>
    										<table cellspacing="0" cellpadding="1" width="100%" style="border-collapse: collapse">
    											<tr>
    												<td class="gridValue" style="width:30%;text-align:center; vertical-align: top;;border-bottom:0px;border-top:0px">
    													<xsl:call-template name="BlockLabel">
    														<xsl:with-param name="text">128. Powierzchnia w ha</xsl:with-param>
    													</xsl:call-template>
    												</td>
    												<td class="gridValue" style="width:30%;text-align:center; vertical-align: top;;border-bottom:0px;border-top:0px">
    													<xsl:call-template name="BlockLabel">
    														<xsl:with-param name="text">129. Stawka podatku</xsl:with-param>
    													</xsl:call-template>
    												</td>
    												<td class="gridValue" style="width:30%;text-align:center; vertical-align: top;;border-bottom:0px;border-top:0px">
    													<xsl:call-template name="BlockLabel">
    														<xsl:with-param name="text">130. Kwota podatku (po zaokrągleniu do pełnych złotych) <sup>***)</sup></xsl:with-param>
    													</xsl:call-template>
    												</td>
    											</tr>
    											<xsl:for-each select="wnio:OpodatkowanieInne/wnio:Pozycje/wnio:Pozycja">
    												<tr>
    													<td class="gridValue" style="width:30%;text-align:center; vertical-align: top;;border-bottom:0px;border-top:0px">
    														<xsl:if test="position()=1">
    															
    														</xsl:if>
    														<xsl:call-template name="Miesiac">
    															<xsl:with-param name="miesiac" select="wnio:Miesiac"/>
    														</xsl:call-template>:		
    														<xsl:call-template name="Number4">
    															<xsl:with-param name="number" select="wnio:Powierzchnia"/>
    														</xsl:call-template>													
    													</td>
    
    													<td class="gridValue" style="width:30%;text-align:center; vertical-align: center;border-bottom:0px;border-top:0px">
    														<xsl:if test="position()=1">
    																												
    														</xsl:if>
    															
    														<xsl:call-template name="Number">
    															<xsl:with-param name="number" select="wnio:Stawka"/>
    														</xsl:call-template> zł
    													</td>
    													
    													<td class="gridValue" style="width:30%;text-align:center; vertical-align:center;border-bottom:0px;border-top:0px">
    														<xsl:if test="position()=1">
    																												
    														</xsl:if>	
    														<xsl:value-of select="format-number(round(wnio:Kwota), '###.##0', 'Polish')"/> zł
    													</td>
    												</tr>
    											</xsl:for-each>
    										</table>
    								</td>
    								<td width="5"/>
    							</tr>
    						</table>							
    					</div>		
    						
    					
    					
    					
    					
    					
    					
    					<table width="100%" style="background:#eeeeee; border: solid 1px black; border-bottom: 0px">
    						<tr>
    							<td>
    								<div class="mainBlockHeader">H. INFORMACJE UZUPEŁNIAJĄCE (do niniejszej deklaracji dołączono)</div>
    							</td>
    						</tr>
    					</table>
    					<table width="100%" style="background:#eeeeee; border: solid 1px black; border-top: 0px;" cellspacing="0">
    						<tr>
    							<td style="width:30px;"/>
    							<td style="border:solid 1px black; border-bottom:0px; border-right:0px; background: white">
    								<table width="100%" style="border: 0px">
    									<tr>
    										<td width="50%" style="height:30px;vertical-align:top;">
    											<xsl:call-template name="BlockLabel">
    												<xsl:with-param name="text">131.Liczba formularzy DR-1/A</xsl:with-param>
    											</xsl:call-template>
    											<div class="blockContent">
    												<center><xsl:value-of select="count(wnio:PrzedmiotyOpodatkowania/wnio:Przedmiot)"/></center>
    											</div>
    										</td>
    										<td width="50%" style="vertical-align:top; border-left: solid 1px #000000">
    											<xsl:call-template name="BlockLabel">
    												<xsl:with-param name="text">132. Formularz DR-1/B składany</xsl:with-param>
    											</xsl:call-template>
    
    	
    												<table width="100%" style="border: 0px">
    													<tr>
    														<td/>
    														<td width="20">
    															<div style="foat:left; border: solid 1px black; width:13px;height: 12px">
    																<xsl:if test="wnio:ZwolnieniaUlgi/@dotyczy='true'">
    																	<b>
    																		<center>X</center>
    																	</b>
    																</xsl:if>
    															</div>
    														</td>
    														<td>tak</td>
    														<td/>
    														<td width="20">
    															<div style="foat:left; border: solid 1px black; width:13px;height: 12px">
    																<xsl:if test="wnio:ZwolnieniaUlgi/@dotyczy='false'">
    																	<b>
    																		<center>X</center>
    																	</b>
    																</xsl:if>
    															</div>
    														</td>
    														<td>nie</td>
    														<td/>
    													</tr>
    												</table>
    										</td>
    									</tr>
    								</table>
    							</td>
    						</tr>
    					</table>
    					<div id="mainBlock">
    						<div class="mainBlockHeader">I. PODATNIK / OSOBA REPREZENTUJĄCA PODATNIKA</div>
    						<div style="margin: 0 0 0 30px">Oświadczam, że są mi znane przepisy Kodeksu karnego skarbowego o odpowiedzialności za podanie danych niezgodnych z rzeczywistością.</div>
    						<table style="border: 0px" width="100%">
    							<tr>
    								<td width="30"/>
    								<td>
    									<table cellspacing="0" cellpadding="2" width="100%" style="border-collapse: collapse">
    										<tr>
    											<td class="gridValue" style="width:50%;text-align:left">
    												<xsl:call-template name="BlockLabel">
    													<xsl:with-param name="text">133. Imię</xsl:with-param>
    												</xsl:call-template>
    												<div style="margin: 0 0 0 4px">
    													<xsl:value-of select="wnio:OswiadczeniaOsob/wnio:Osoba/wnio:Imie"/>
    												</div>
    											</td>
    											<td class="gridValue" style="width:50%;text-align:left">
    												<xsl:call-template name="BlockLabel">
    													<xsl:with-param name="text">134. Nazwisko</xsl:with-param>
    												</xsl:call-template>
    												<div style="margin: 0 0 0 4px">
    													<xsl:value-of select="wnio:OswiadczeniaOsob/wnio:Osoba/wnio:Nazwisko"/>
    												</div>
    											</td>
    										</tr>
    										<tr>
    											<td class="gridValue" style="width:50%;text-align:left">
    												<xsl:call-template name="BlockLabel">
    													<xsl:with-param name="text">135. Data wypełnienia deklaracji</xsl:with-param>
    												</xsl:call-template>
    												<div style="margin: 0 0 0 4px">
    													<xsl:value-of select="/wnio:Dokument/wnio:TrescDokumentu/wnio:Wartosc/wnio:RodzajWniosku/wnio:DataDokumentu/meta:Czas"/>
    												</div>
    											</td>
    											<td class="gridValue" style="width:50%;text-align:left" colspan="2">
    												
    											</td>
    										</tr>
    									</table>
    								</td>
    								<td width="5"/>
    							</tr>
    						</table>
    						<br/>
    					</div>
    					<div id="mainBlock">
    						<div class="mainBlockHeader">J. ADNOTACJE ORGANU PODATKOWEGO</div>
    						<table style="border: 0px" width="100%">
    							<tr>
    								<td width="30"/>
    								<td>
    									<table cellspacing="0" cellpadding="0" width="100%" style="border-collapse: collapse">
    										<tr>
    											<td height="25" style="border: solid 1px black;height:50px" colspan="2">
    												<xsl:call-template name="BlockLabel">
    													<xsl:with-param name="text">136. Uwagi organu podatkowego</xsl:with-param>
    												</xsl:call-template>
    											</td>
    										</tr>
    									</table>
    								</td>
    								<td width="5"/>
    							</tr>
    						</table>
    						<br/>
    					</div>
    
    					<br/>
    					<span style="font-size:11pt;">
    						<center>Pouczenie</center>
    						<br/>
    
    						1)	Powierzchnię należy podać w hektarach z dokładnością do czterech miejsc po przecinku.
    						<br/>
    						2)	Osoby prawne, jednostki organizacyjne oraz spółki nieposiadające osobowości prawnej, jednostki organizacyjne Lasów Państwowych, a także jednostki organizacyjne Agencji Nieruchomości Rolnych obowiązane są: wpłacać obliczony w deklaracji podatek rolny – bez wezwania – na rachunek budżetu gminy, w ratach proporcjonalnych do czasu trwania obowiązku podatkowego w terminie do dnia                  15 marca, 15 maja, 15 września i 15 listopada. W przypadku gdy kwota podatku po zaokrągleniu nie przekracza 100 zł, podatek jest płatny jednorazowo w terminie płatności pierwszej raty.
    						W przypadku niezapłacenia należnego podatku w terminach określonych ustawowo lub zapłacenia go w niepełnej wysokości, niniejsza deklaracja stanowi podstawę do wystawienia tytułu wykonawczego, zgodnie z przepisami ustawy z dnia 17 czerwca 1966r. o postępowaniu egzekucyjnym w administracji (Dz. U. z  2014 r., poz. 1619 z poźn. zm.).
    					</span>
    
    					<br/>
    					<br/>
    					<br/>
    					<br/>
    				</xsl:for-each>
    				<br clear="ALL" style="page-break-before:always;mso-break-type:section-break"/>			
    				
    				<!-- Załacznik DR-1/A -->
    				
    				<xsl:for-each select="wnio:Dokument/wnio:TrescDokumentu/wnio:Deklaracja/wnio:PrzedmiotyOpodatkowania/wnio:Przedmiot">
    					<xsl:variable name="aPozycja" select="position()"/>
    					<hr/>
    					<div style="border: solid 1px; width:350px;float:left; height:35px">
    						<div style="text-align:left; font-size:7pt;font-weight:bold;margin: 3px;">
    						1. Numer Identyfikacji Podatkowej Podatnika 
    						
    						<xsl:if test="/wnio:Dokument/wnio:TrescDokumentu/wnio:Deklaracja/wnio:Podmiot/wnio:Osoba/wnio:Identyfikatory/wnio:NIP">
    							NIP/<strike>PESEL</strike>
    							</xsl:if>
    							<xsl:if test="/wnio:Dokument/wnio:TrescDokumentu/wnio:Deklaracja/wnio:Podmiot/wnio:Osoba/wnio:Identyfikatory/wnio:PESEL">
    								<strike>NIP</strike>/PESEL
    						</xsl:if>
    							<xsl:if test="/wnio:Dokument/wnio:TrescDokumentu/wnio:Deklaracja/wnio:Podmiot/wnio:Instytucja/wnio:Identyfikatory/wnio:NIP">
    							NIP/<strike>PESEL</strike>
    							</xsl:if>					
    					 </div>
    						<center>
    							<xsl:value-of select="/wnio:Dokument/wnio:TrescDokumentu/wnio:Deklaracja/wnio:Podmiot/wnio:Osoba/wnio:Identyfikatory/wnio:NIP"/>
    							<xsl:value-of select="/wnio:Dokument/wnio:TrescDokumentu/wnio:Deklaracja/wnio:Podmiot/wnio:Osoba/wnio:Identyfikatory/wnio:PESEL"/>
    							<xsl:value-of select="/wnio:Dokument/wnio:TrescDokumentu/wnio:Deklaracja/wnio:Podmiot/wnio:Instytucja/wnio:Identyfikatory/wnio:NIP"/>
    						</center>
    					</div>
    					<div style="border: solid 1px; width:100px;float:left; height:35px; border-left: 0px; background: #eeeeee">
    						<xsl:call-template name="BlockLabel">
    							<xsl:with-param name="text">2. Nr ewidencyjny</xsl:with-param>
    						</xsl:call-template> 
    					</div>
    					<div style="clear:both"/>
    					<br/>
    					<div class="docHeader" style="position:relative">
    						<div style="position:absolute; top:0px; left: 0px; width:100%">
    					DR-1/A<br/>
    							<center> DEKLARACJA NA PODATEK ROLNY</center>
    						</div>
    					</div>
    					
    					<br/>
    					<br/>
    					<br/>
    					<br/>
    					<center>
    						<div style="text-align: left; border: solid 1px; width:100px; min-height:30px; margin: 10px 0 10px 0;">
    							<xsl:call-template name="BlockLabel">
    								<xsl:with-param name="text">3. Rok</xsl:with-param>
    							</xsl:call-template>
    							<center>
    								<xsl:value-of select="/wnio:Dokument/wnio:TrescDokumentu/wnio:Deklaracja/wnio:Rok"/>
    							</center>
    						</div>
    						
    						<div class="docHeader">
    							<center>CZĘŚĆ UZUPEŁNIAJĄCA<br/>DANE O NIERUCHOMOŚCIACH ROLNYCH</center>
    						</div> 
    						
    					</center>
    					<br/>
    	
    					<table style="border:none" width="100%">
    						<tr>
    							<td>
    				
    							</td>
    							<td width="120">
    								<div style="text-align: right; border: solid 1px; width:100px; min-height:30px; margin:0px 0 10px 0;">
    									<xsl:call-template name="BlockLabel">
    										<xsl:with-param name="text">4. Nr załącznika</xsl:with-param>
    									</xsl:call-template>
    									<center>
    										<xsl:value-of select="$aPozycja"/>
    									</center>
    								</div>					
    							</td>
    						</tr>
    					</table>
    		
    					
    					
    					<xsl:for-each select="/wnio:Dokument/wnio:TrescDokumentu/wnio:Deklaracja">
    						<table width="100%" style="background:#eeeeee; border: solid 1px black; border-bottom: 0px">
    							<tr>
    								<td>
    									<div class="mainBlockHeader">A. PRZEZNACZENIE</div>
    								</td>
    							</tr>
    						</table>
    						<table width="100%" style="background:#eeeeee; border: solid 1px black; border-top: 0px" cellspacing="0">
    							<tr>
    								<td style="width:30px;"/>
    								<td style="border:solid 1px black; border-bottom:0px; border-right:0px; background: white; height:30px">
    									<xsl:call-template name="BlockLabel">
    										<xsl:with-param name="text">5. Niniejsze informacje są częścią uzupełniającą deklaracji DR-1</xsl:with-param>
    									</xsl:call-template>
    								</td>
    							</tr>
    						</table>
    						<table width="100%" style="background:#eeeeee; border: solid 1px black; border-bottom: 0px">
    							<tr>
    								<td>
    									<div class="mainBlockHeader">B. DANE PODATNIKA</div>
    									<div style="font-size:8pt; margin: 0 0 0 30px"> * - dotyczy podatnika niebędącego osobą fizyczną, ** - dotyczy podatnika będącego osobą fizyczną</div>
    								</td>
    							</tr>
    						</table>
    						<xsl:for-each select="wnio:Podmiot">
    							<table width="100%" style="background:#eeeeee; border: solid 1px black; border-top: 0px" cellspacing="0">
    								<tr>
    									<td style="width:30px;"/>
    									<td style="border:solid 1px black; border-bottom:0px; border-right:0px; background: white">
    										<xsl:call-template name="BlockLabel">
    											<xsl:with-param name="text">6. Rodzaj podatnika:</xsl:with-param>
    										</xsl:call-template>
    										<xsl:call-template name="RodzajPodatnika">
    											<xsl:with-param name="podatnik" select="@rodzaj"/>
    										</xsl:call-template>
    									</td>
    								</tr>
    								<tr>
    									<td style="width:30px;"/>
    									<td style="border:solid 1px black; border-bottom:0px; border-right:0px; background: white">
    										<xsl:call-template name="BlockLabel">
    											<xsl:with-param name="text">7. Nazwa pełna * / Nazwisko **</xsl:with-param>
    										</xsl:call-template>
    										<div class="blockContent">
    											<xsl:value-of select="wnio:Instytucja/inst:NazwaInstytucji"/>
    											<xsl:value-of select="wnio:Osoba/oso:Nazwisko"/>
    										</div>
    									</td>
    								</tr>
    								<tr>
    									<td style="width:30px;"/>
    									<td style="border:solid 1px black; border-bottom:0px; border-right:0px; background: white">
    										<xsl:call-template name="BlockLabel">
    											<xsl:with-param name="text">8. Nazwa skrócona * / Pierwsze imię, drugie imię **</xsl:with-param>
    										</xsl:call-template>
    										<div class="blockContent" style="overflow:hidden">
    											<xsl:value-of select="wnio:Instytucja/wnio:NazwaSkrInstytucji"/>
    											<xsl:value-of select="wnio:Osoba/oso:Imie"/>
    											<xsl:text> </xsl:text>
    											<xsl:value-of select="wnio:Osoba/oso:ImieDrugie"/>
    										</div>
    									</td>
    								</tr>
    								<tr>
    									<td style="width:30px;"/>
    									<td style="border:solid 1px black; border-bottom:0px; border-right:0px; background: white">
    										<table width="100%" style="border:0px">
    											<tr>
    												<td width="50%" style="vertical-align:top;">
    													<xsl:call-template name="BlockLabel">
    														<xsl:with-param name="text">9. Identyfikator REGON</xsl:with-param>
    													</xsl:call-template>
    													<div class="blockContent">
    														<xsl:value-of select="*/wnio:Identyfikatory/wnio:REGON"/>
    													</div>
    												</td>
    												<td width="50%" style="vertical-align:top; border-left: solid 1px #000000">
    													<xsl:call-template name="BlockLabel">
    														<xsl:with-param name="text">10. Numer PESEL **</xsl:with-param>
    													</xsl:call-template>
    													<div class="blockContent">
    														<xsl:value-of select="*/wnio:Identyfikatory/wnio:PESEL"/>
    													</div>
    												</td>
    											</tr>
    										</table>
    									</td>
    								</tr>
    							</table>
    						</xsl:for-each>
    					</xsl:for-each>	
    					
    					<table width="100%" style="background:#eeeeee; border: solid 1px black; border-bottom: 0px">
    						<tr>
    							<td>
    								<div class="mainBlockHeader">C. DANE O NIERUCHOMOŚCIACH ROLNYCH PODLEGAJĄCYCH OPODATKOWANIU LUB ZWOLNIENIU</div>
    							</td>
    						</tr>
    					</table>
    					<table width="100%" style="background:#eeeeee; border: solid 1px black; border-bottom: 0px">
    						<tr>
    							<td>
    								<div class="mainBlockHeader">C.1. POŁOŻENIE NIERUCHOMOŚCI</div>
    							</td>
    						</tr>
    					</table>						
    					<table width="100%" style="background:#eeeeee; border: solid 1px black; border-top: 0px" cellspacing="0">
    						<tr>
    							<td style="width:30px;"/>
    							<td style="border:solid 1px black; border-bottom:0px; border-right:0px; background: white">
    								<xsl:call-template name="BlockLabel">
    									<xsl:with-param name="text">11. Położenie nieruchomości (adres)</xsl:with-param>
    								</xsl:call-template>
    								<div class="blockContent" style="overflow:hidden">
    									<xsl:value-of select="wnio:Miejscowosc"/>, <xsl:value-of select="wnio:Ulica"/> <xsl:value-of select="wnio:NrBudynku"/>
    								</div>
    							</td>
    						</tr>
    					</table>
    					<table width="100%" style="background:#eeeeee; border: solid 1px black; border-bottom: 0px">
    						<tr>
    							<td>
    								<div class="mainBlockHeader">C.2. TYTUŁ PRAWNY</div>
    							</td>
    						</tr>
    					</table>						
    					
    					
    					<table width="100%" style="background:#eeeeee; border: solid 1px black; border-top: 0px" cellspacing="0" cellpadding="0">
    						<tr>
    							<td width="30" style="border:0px"/>
    							<td style="border:0px">
    								<table width="100%" border="0" cellpadding="0" cellspacing="0" style="vertical-align:top;height:30px;background-color:white;border:solid 1px #000000; border-bottom:0px;border-right:0px">
    									<tr>
    										<td width="50%" style="vertical-align:top;height:30px;background-color:white;border:solid 1px #000000; border-bottom:0px;border-right:0px">
    											<xsl:call-template name="BlockLabel"><xsl:with-param name="text">12. Rodzaj własności</xsl:with-param></xsl:call-template>
    											<div class="blockContent">
    												<table width="100%" cellspacing="0" cellpadding="2" style="border: none">
    													<tr>
    														<td style="width:50%">
    															<div style="float:left; border: solid 1px black; width:13px;height: 12px">
    																<xsl:if test="wnio:TytulPrawny='WLS'">
    																	<b><center>X</center></b>
    																</xsl:if>
    															</div>  1. własność
    															
    														</td>
    														<td style="width:50%">
    															<div style="float:left; border: solid 1px black; width:13px;height: 12px">
    																<xsl:if test="wnio:TytulPrawny='WSP'">
    																	<b><center>X</center></b>
    																</xsl:if>
    															</div>  2. współwłasność</td>
    													</tr>										
    												</table>
    											</div>			
    										</td>	
    										
    										<td width="50%" style="vertical-align:top;height:30px;background-color:white;border:solid 1px #000000; border-bottom:0px;border-right:0px">
    											<xsl:call-template name="BlockLabel"><xsl:with-param name="text">13. Rodzaj posiadania samoistnego</xsl:with-param></xsl:call-template>
    											<div class="blockContent">
    												<table width="100%" cellspacing="0" cellpadding="2" style="border: none">
    													<tr>
    														<td style="width:50%">
    															<div style="float:left; border: solid 1px black; width:13px;height: 12px">
    																<xsl:if test="wnio:TytulPrawny='PSM'">
    																	<b><center>X</center></b>
    																</xsl:if>
    															</div> 1. posiadanie</td>
    														<td style="width:50%">
    															<div style="float:left; border: solid 1px black; width:13px;height: 12px">
    																<xsl:if test="wnio:TytulPrawny='WSM'">
    																	<b><center>X</center></b>
    																</xsl:if>
    															</div> 2. współposiadanie</td>										
    													</tr>	
    												</table>
    											</div>			
    										</td>									
    									
    											
    									</tr>
    								</table>
    							</td>			
    						</tr>
    						<tr>
    							<td width="30" style="border:0px"/>
    							<td style="border:0px">
    								<table width="100%" border="0" cellpadding="0" cellspacing="0" style="vertical-align:top;height:30px;background-color:white;border:solid 1px #000000; border-bottom:0px;border-right:0px">
    									<tr>
    										<td width="50%" style="vertical-align:top;height:30px;background-color:white;border:solid 1px #000000; border-bottom:0px;border-right:0px">
    											<xsl:call-template name="BlockLabel"><xsl:with-param name="text">14. Rodzaj użytkowania</xsl:with-param></xsl:call-template>
    											<div class="blockContent">
    												<table width="100%" cellspacing="0" cellpadding="2" style="border: none">
    													<tr>
    														<td style="width:50%"> 
    															<div style="float:left; border: solid 1px black; width:13px;height: 12px">
    																<xsl:if test="wnio:TytulPrawny='UWG'">
    																	<b><center>X</center></b>
    																</xsl:if>
    															</div>  1. użytkowanie wieczyste</td>
    														<td style="width:50%">
    															<div style="float:left; border: solid 1px black; width:13px;height: 12px">
    																<xsl:if test="wnio:TytulPrawny='WWG'">
    																	<b><center>X</center></b>
    																</xsl:if>
    															</div> 2. współużytkowanie wieczyste</td>
    													</tr>										
    												</table>
    											</div>			
    										</td>	
    										
    										<td width="50%" style="vertical-align:top;height:30px;background-color:white;border:solid 1px #000000; border-bottom:0px;border-right:0px">
    											<xsl:call-template name="BlockLabel"><xsl:with-param name="text">15. Rodzaj posiadania zależnego</xsl:with-param></xsl:call-template>
    											<div class="blockContent">
    												<table width="100%" cellspacing="0" cellpadding="2" style="border: none">
    													<tr>
    														<td style="width:50%">
    															<div style="float:left; border: solid 1px black; width:13px;height: 12px">
    																<xsl:if test="wnio:TytulPrawny='PZL'">
    																	<b><center>X</center></b>
    																</xsl:if>
    															</div> 1. posiadanie</td>
    														<td style="width:50%">
    															<div style="float:left; border: solid 1px black; width:13px;height: 12px">
    																<xsl:if test="wnio:TytulPrawny='WZL'">
    																	<b><center>X</center></b>
    																</xsl:if>
    															</div> 2. współposiadanie</td>										
    													</tr>	
    												</table>
    											</div>			
    										</td>									
    									
    											
    									</tr>
    								</table>
    							</td>			
    						</tr>					
    					</table>
    				
    				
    					<table width="100%" style="background:#eeeeee; border: solid 1px black; border-bottom: 0px">
    						<tr>
    							<td>
    								<div class="mainBlockHeader">C.3. IDENTYFIKATORY GEODEZYJNE DZIAŁEK</div>
    							</td>
    						</tr>
    					</table>	
    					<table width="100%" style="background:#eeeeee; border: solid 1px black; border-top: 0px" cellspacing="0">
    						<tr>
    							<td style="width:30px;"/>
    							<td style="border:solid 1px black; border-bottom:0px; border-right:0px; background: white">
    								<xsl:call-template name="BlockLabel">
    									<xsl:with-param name="text">16. Działki</xsl:with-param>
    								</xsl:call-template>
    								<div class="blockContent" style="overflow:hidden">
    									<xsl:value-of select="wnio:NrDzialki"/>
    								</div>
    							</td>
    						</tr>
    					</table>
    					
    					
    					<table width="100%" style="background:#eeeeee; border: solid 1px black; border-bottom: 0px">
    						<tr>
    							<td>
    								<div class="mainBlockHeader">C.4. KSIĘGA WIECZYSTA</div>
    							</td>
    						</tr>
    					</table>	
    					<table width="100%" style="background:#eeeeee; border: solid 1px black; border-top: 0px" cellspacing="0">				
    						<tr>
    							<td style="width:30px;"/>
    							<td style="border:solid 1px black; border-bottom:0px; border-right:0px; background: white">
    								<table width="100%" style="border:0px">
    									<tr>
    										<td width="50%" style="vertical-align:top;">
    											<xsl:call-template name="BlockLabel">
    												<xsl:with-param name="text">17. Numer księgi wieczystej (zbioru dokumentów)</xsl:with-param>
    											</xsl:call-template>
    											<div class="blockContent">
    												<xsl:value-of select="wnio:NrKW"/>
    											</div>
    										</td>
    										<td width="50%" style="vertical-align:top; border-left: solid 1px #000000">
    											<xsl:call-template name="BlockLabel">
    												<xsl:with-param name="text">18. Nazwa sądu</xsl:with-param>
    											</xsl:call-template>
    											<div class="blockContent">
    												<xsl:value-of select="wnio:Sad"/>
    											</div>
    										</td>
    									</tr>
    								</table>
    							</td>
    						</tr>				
    					</table>	
    					<br/>
    					<br/>
    					<br/>
    					<br/>
    					<br/>	
    				</xsl:for-each>				
    				
    				
    				
    				
    				
    				
    				
    				
    				
    				
    				
    				
    				
    				
    				
    				
    				
    				
    				
    				
    				<!-- Załacznik DR-1/B -->
    				
    				<br clear="ALL" style="page-break-before:always;mso-break-type:section-break"/>				
    				<xsl:for-each select="/wnio:Dokument/wnio:TrescDokumentu/wnio:Deklaracja/wnio:ZwolnieniaUlgi[@dotyczy='true']">
    
    
    					<hr/>
    					<div style="border: solid 1px; width:350px;float:left; height:35px">
    						<div style="text-align:left; font-size:7pt;font-weight:bold;margin: 3px;">
    						1. Numer Identyfikacji Podatkowej podatnika
    											
    					 </div>
    						<center>
    							<xsl:value-of select="/wnio:Dokument/wnio:TrescDokumentu/wnio:Deklaracja/wnio:Podmiot/wnio:Osoba/wnio:Identyfikatory/wnio:NIP"/>
    							<xsl:value-of select="/wnio:Dokument/wnio:TrescDokumentu/wnio:Deklaracja/wnio:Podmiot/wnio:Osoba/wnio:Identyfikatory/wnio:PESEL"/>
    							<xsl:value-of select="/wnio:Dokument/wnio:TrescDokumentu/wnio:Deklaracja/wnio:Podmiot/wnio:Instytucja/wnio:Identyfikatory/wnio:NIP"/>
    						</center>
    					</div>
    					<div style="border: solid 1px; width:100px;float:left; height:35px; border-left: 0px; background: #eeeeee">
    						<xsl:call-template name="BlockLabel">
    							<xsl:with-param name="text">2. Nr ewidencyjny</xsl:with-param>
    						</xsl:call-template> 
    					</div>
    					<div style="clear:both"/>
    					<br/>
    					<div class="docHeader" style="position:relative">
    						<div style="position:absolute; top:0px; left: 0px; width:100%">
    					DR-1/B<br/>
    							<center> DEKLARACJA NA PODATEK ROLNY</center>
    						</div>
    					</div>
    					
    					<br/>
    					<br/>
    					<br/>
    					<br/>
    					<center>
    						<div style="text-align: left; border: solid 1px; width:100px; min-height:30px; margin: 10px 0 10px 0;">
    							<xsl:call-template name="BlockLabel">
    								<xsl:with-param name="text">3. Rok</xsl:with-param>
    							</xsl:call-template>
    							<center>
    								<xsl:value-of select="/wnio:Dokument/wnio:TrescDokumentu/wnio:Deklaracja/wnio:Rok"/>
    							</center>
    						</div>
    						
    						<div class="docHeader">
    							<center>CZĘŚĆ UZUPEŁNIAJĄCA<br/>DANE O ZWOLNIENIACH I ULGACH PODATKOWYCH<br/> W PODATKU ROLNYM</center>
    						</div> 
    						
    					</center>
    					<br/>
    	
    
    		
    					
    					
    					<xsl:for-each select="/wnio:Dokument/wnio:TrescDokumentu/wnio:Deklaracja">
    						<table width="100%" style="background:#eeeeee; border: solid 1px black; border-bottom: 0px">
    							<tr>
    								<td>
    									<div class="mainBlockHeader">A. PRZEZNACZENIE</div>
    								</td>
    							</tr>
    						</table>
    						<table width="100%" style="background:#eeeeee; border: solid 1px black; border-top: 0px" cellspacing="0">
    							<tr>
    								<td style="width:30px;"/>
    								<td style="border:solid 1px black; border-bottom:0px; border-right:0px; background: white; height:30px">
    									<xsl:call-template name="BlockLabel">
    										<xsl:with-param name="text">4. Niniejsze informacje są częścią uzupełniającą deklaracji DR-1</xsl:with-param>
    									</xsl:call-template>
    								</td>
    							</tr>
    						</table>
    						<table width="100%" style="background:#eeeeee; border: solid 1px black; border-bottom: 0px">
    							<tr>
    								<td>
    									<div class="mainBlockHeader">B. DANE PODATNIKA</div>
    									<div style="font-size:8pt; margin: 0 0 0 30px"> * - dotyczy podatnika niebędącego osobą fizyczną, ** - dotyczy podatnika będącego osobą fizyczną</div>
    								</td>
    							</tr>
    							<tr>
    								<td style="border-top:1px solid black;">
    									<div class="mainBlockHeader">B.1. DANE IDENTYFIKACYJNE</div>
    								</td>
    							</tr>
    						</table>
    						<xsl:for-each select="wnio:Podmiot">
    							<table width="100%" style="background:#eeeeee; border: solid 1px black; border-top: 0px" cellspacing="0">
    								<tr>
    									<td style="width:30px;"/>
    									<td style="border:solid 1px black; border-bottom:0px; border-right:0px; background: white">
    										<xsl:call-template name="BlockLabel">
    											<xsl:with-param name="text">5. Rodzaj podatnika:</xsl:with-param>
    										</xsl:call-template>
    										<xsl:call-template name="RodzajPodatnika">
    											<xsl:with-param name="podatnik" select="@rodzaj"/>
    										</xsl:call-template>
    									</td>
    								</tr>
    								<tr>
    									<td style="width:30px;"/>
    									<td style="border:solid 1px black; border-bottom:0px; border-right:0px; background: white">
    										<xsl:call-template name="BlockLabel">
    											<xsl:with-param name="text">6. Nazwa pełna * / Nazwisko **</xsl:with-param>
    										</xsl:call-template>
    										<div class="blockContent">
    											<xsl:value-of select="wnio:Instytucja/inst:NazwaInstytucji"/>
    											<xsl:value-of select="wnio:Osoba/oso:Nazwisko"/>
    										</div>
    									</td>
    								</tr>
    								<tr>
    									<td style="width:30px;"/>
    									<td style="border:solid 1px black; border-bottom:0px; border-right:0px; background: white">
    										<xsl:call-template name="BlockLabel">
    											<xsl:with-param name="text">7. Nazwa skrócona * / Pierwsze imię, drugie imię **</xsl:with-param>
    										</xsl:call-template>
    										<div class="blockContent" style="overflow:hidden">
    											<xsl:value-of select="wnio:Instytucja/wnio:NazwaSkrInstytucji"/>
    											<xsl:value-of select="wnio:Osoba/oso:Imie"/>
    											<xsl:text> </xsl:text>
    											<xsl:value-of select="wnio:Osoba/oso:ImieDrugie"/>
    										</div>
    									</td>
    								</tr>
    								<tr>
    									<td style="width:30px;"/>
    									<td style="border:solid 1px black; border-bottom:0px; border-right:0px; background: white">
    										<table width="100%" style="border:0px">
    											<tr>
    												<td width="50%" style="vertical-align:top;">
    													<xsl:call-template name="BlockLabel">
    														<xsl:with-param name="text">8. Identyfikator REGON</xsl:with-param>
    													</xsl:call-template>
    													<div class="blockContent">
    														<xsl:value-of select="*/wnio:Identyfikatory/wnio:REGON"/>
    													</div>
    												</td>
    												<td width="50%" style="vertical-align:top; border-left: solid 1px #000000">
    													<xsl:call-template name="BlockLabel">
    														<xsl:with-param name="text">9. Numer PESEL **</xsl:with-param>
    													</xsl:call-template>
    													<div class="blockContent">
    														<xsl:value-of select="*/wnio:Identyfikatory/wnio:PESEL"/>
    													</div>
    												</td>
    											</tr>
    										</table>
    									</td>
    								</tr>
    							</table>
    						</xsl:for-each>
    					</xsl:for-each>	
    
    					<xsl:for-each select="wnio:Zwolnienia">
    						<table width="100%" style="background:#eeeeee; border: solid 1px black; border-bottom: 0px">
    							<tr>
    								<td>
    									<div class="mainBlockHeader">C. DANE DOTYCZĄCE ZWOLNIEŃ PODATKOWYCH WYNIKAJĄCYCH Z USTAWY LUB    UCHWAŁY RADY GMINY</div>
    								</td>
    							</tr>
    						</table>
    
    						
    						<table width="100%" style="background:#eeeeee; border: solid 1px black; border-top: 0px" cellspacing="0">
    							<tr>
    								<td style="width:30px;"/>
    								<td style="border:none">
    									<table cellspacing="0" cellpadding="2" width="100%">
    										<tr>
    											<td class="gridCell" style="solid 1px black; font-weight:bold; text-align:center" colspan="2">Tytuł prawny zwolnienia</td>
    											<td class="gridCell" style="width:120px; border: solid 1px black; text-align:center; font-weight:bold">Powierzchnia w ha fizycznych <sup>1)</sup></td>
    										</tr>
    	
    										<tr>
    											<td class="gridCell" style="border: solid 1px black" colspan="2">Art. 12 ust. 1, pkt 1 -  użytki rolne klasy V, VI, i VIz</td>
    											<xsl:call-template name="Zwolnienie">
    												<xsl:with-param name="kod" select="'12.1.1ur'"/>
    												<xsl:with-param name="numer" select="10"/>
    											</xsl:call-template>
    										</tr>			
    										<tr>
    											<td class="gridCell" style="border: solid 1px black" colspan="2">Art. 12 ust. 1, pkt 1 - grunty zadrzewione i zakrzewione ustanowione na użytkach rolnych</td>
    											<xsl:call-template name="Zwolnienie">
    												<xsl:with-param name="kod" select="'12.1.1gz'"/>
    												<xsl:with-param name="numer" select="11"/>
    											</xsl:call-template>
    										</tr>		
    										<tr>
    											<td class="gridCell" style="border: solid 1px black" colspan="2">Art. 12 ust. 1, pkt 2 - grunty położone w pasie drogi granicznej</td>
    											<xsl:call-template name="Zwolnienie">
    												<xsl:with-param name="kod" select="'12.1.2'"/>
    												<xsl:with-param name="numer" select="12"/>
    											</xsl:call-template>
    										</tr>		
    										<tr>
    											<td class="gridCell" style="border: solid 1px black" colspan="2">Art. 12 ust. 1, pkt 3 - grunty orne, łąki i pastwiska objęte melioracją - w roku, w którym uprawy zostały zniszczone wskutek robót drenarskich</td>
    											<xsl:call-template name="Zwolnienie">
    												<xsl:with-param name="kod" select="'12.1.3'"/>
    												<xsl:with-param name="numer" select="13"/>
    											</xsl:call-template>
    										</tr>		
    										<tr>
    											<td class="gridCell" style="border: solid 1px black" colspan="2">
    												Art. 12 ust. 1, pkt 4 - grunty przeznaczone na utworzenie nowego gospodarstwa rolnego lub powiększenie już istniejącego do powierzchni nieprzekraczającej 100 ha: <br/>
    												a) będące przedmiotem prawa własności lub prawa użytkowania wieczystego, nabyte w drodze umowy sprzedaży, 
    												b) będące przedmiotem umowy o oddanie gruntów w użytkowanie wieczyste, 
    												c) wchodzące w skład Zasobu Własności Rolnej Skarbu Państwa, objęte w trwałe zagospodarowanie
    											</td>
    											<xsl:call-template name="Zwolnienie">
    												<xsl:with-param name="kod" select="'12.1.4'"/>
    												<xsl:with-param name="numer" select="14"/>
    											</xsl:call-template>
    										</tr>		
    										<tr>
    											<td class="gridCell" style="border: solid 1px black">W przypadku korzystania z ulgi, po upływie okresu zwolnienia</td>
    											<td class="gridValue" style="border: solid 1px black">
    												<xsl:call-template name="BlockLabel"><xsl:with-param name="text">15. Ulga</xsl:with-param></xsl:call-template>
    												<table style="border:0px" cellpadding="0" cellspacing="0">
    													<tr>
    														<td style="padding:4px;width:15px">
    															<div style="foat:left; border: solid 1px black; width:13px;height: 12px">
    																<xsl:if test="wnio:Zwolnienie[@kod='12.1.4']/@ulga='75'">
    																	<b>
    																		<center>X</center>
    																	</b>
    																</xsl:if>
    															</div>
    														</td>
    														<td style="padding:4px">75%</td>
    														<td style="padding:4px;width:15px">
    															<div style="foat:left; border: solid 1px black; width:13px;height: 12px">
    																<xsl:if test="wnio:Zwolnienie[@kod='12.1.4']/@ulga='50'">
    																	<b>
    																		<center>X</center>
    																	</b>
    																</xsl:if>
    															</div>
    														</td>
    														<td style="padding:4px">50%</td>
    													</tr>
    												</table>																																		
    											</td>
    											<td class="gridCell" style="border: solid 1px black"/>
    										</tr>	
    										<tr>
    											<td class="gridCell" style="border: solid 1px black" colspan="2">
    												Art. 12 ust. 1, pkt 5 - grunty gospodarstw rolnych powstałe z zagospodarowania nieużytków
    											</td>
    											<xsl:call-template name="Zwolnienie">
    												<xsl:with-param name="kod" select="'12.1.5'"/>
    												<xsl:with-param name="numer" select="16"/>
    											</xsl:call-template>
    										</tr>	
    										<tr>
    											<td class="gridCell" style="border: solid 1px black">W przypadku korzystania z ulgi, po upływie okresu zwolnienia</td>
    											<td class="gridValue" style="border: solid 1px black">
    												<xsl:call-template name="BlockLabel"><xsl:with-param name="text">17. Ulga</xsl:with-param></xsl:call-template>
    												<table style="border:0px" cellpadding="0" cellspacing="0">
    													<tr>
    														<td style="padding:4px;width:15px">
    															<div style="foat:left; border: solid 1px black; width:13px;height: 12px">
    																<xsl:if test="wnio:Zwolnienie[@kod='12.1.5']/@ulga='75'">
    																	<b>
    																		<center>X</center>
    																	</b>
    																</xsl:if>
    															</div>
    														</td>
    														<td style="padding:4px">75%</td>
    														<td style="padding:4px;width:15px">
    															<div style="foat:left; border: solid 1px black; width:13px;height: 12px">
    																<xsl:if test="wnio:Zwolnienie[@kod='12.1.5']/@ulga='50'">
    																	<b>
    																		<center>X</center>
    																	</b>
    																</xsl:if>
    															</div>
    														</td>
    														<td style="padding:4px">50%</td>
    													</tr>
    												</table>																																		
    											</td>
    											<td class="gridCell" style="border: solid 1px black"/>
    										</tr>																			
    										<tr>
    											<td class="gridCell" style="border: solid 1px black" colspan="2">
    												Art. 12 ust. 1, pkt 6 - grunty gospodarstw rolnych otrzymane w drodze wymiany lub scalenia
    											</td>
    											<xsl:call-template name="Zwolnienie">
    												<xsl:with-param name="kod" select="'12.1.6'"/>
    												<xsl:with-param name="numer" select="18"/>
    											</xsl:call-template>
    										</tr>		
    										<tr>
    											<td class="gridCell" style="border: solid 1px black">W przypadku korzystania z ulgi, po upływie okresu zwolnienia</td>
    											<td class="gridValue" style="border: solid 1px black">
    												<xsl:call-template name="BlockLabel"><xsl:with-param name="text">19. Ulga</xsl:with-param></xsl:call-template>
    												<table style="border:0px" cellpadding="0" cellspacing="0">
    													<tr>
    														<td style="padding:4px;width:15px">
    															<div style="foat:left; border: solid 1px black; width:13px;height: 12px">
    																<xsl:if test="wnio:Zwolnienie[@kod='12.1.6']/@ulga='75'">
    																	<b>
    																		<center>X</center>
    																	</b>
    																</xsl:if>
    															</div>
    														</td>
    														<td style="padding:4px">75%</td>
    														<td style="padding:4px;width:15px">
    															<div style="foat:left; border: solid 1px black; width:13px;height: 12px">
    																<xsl:if test="wnio:Zwolnienie[@kod='12.1.6']/@ulga='50'">
    																	<b>
    																		<center>X</center>
    																	</b>
    																</xsl:if>
    															</div>
    														</td>
    														<td style="padding:4px">50%</td>
    													</tr>
    												</table>																																		
    											</td>
    											<td class="gridCell" style="border: solid 1px black"/>
    										</tr>																																								
    										<tr>
    											<td class="gridCell" style="border: solid 1px black" colspan="2">
    												Art. 12 ust.1, pkt 7 - grunty gospodarstw rolnych, na których zaprzestano produkcji rolnej
    											</td>
    											<xsl:call-template name="Zwolnienie">
    												<xsl:with-param name="kod" select="'12.1.7'"/>
    												<xsl:with-param name="numer" select="20"/>
    											</xsl:call-template>
    										</tr>	
    										<tr>
    											<td class="gridCell" style="border: solid 1px black" colspan="2">
    												Art. 12 ust.1, pkt 8 - użytki ekologiczne
    											</td>
    											<xsl:call-template name="Zwolnienie">
    												<xsl:with-param name="kod" select="'12.1.8'"/>
    												<xsl:with-param name="numer" select="21"/>
    											</xsl:call-template>
    										</tr>
    										<tr>
    											<td class="gridCell" style="border: solid 1px black" colspan="2">
    												Art. 12 ust. 1, pkt 9 - grunty zajęte przez zbiorniki wody służące do zaopatrzenia ludności w wodę
    											</td>
    											<xsl:call-template name="Zwolnienie">
    												<xsl:with-param name="kod" select="'12.1.9'"/>
    												<xsl:with-param name="numer" select="22"/>
    											</xsl:call-template>
    										</tr>
    										<tr>
    											<td class="gridCell" style="border: solid 1px black" colspan="2">
    												Art. 12 ust. 1, pkt 10 - grunty pod wałami przeciwpowodziowymi i grunty położone w międzywałach
    											</td>
    											<xsl:call-template name="Zwolnienie">
    												<xsl:with-param name="kod" select="'12.1.10'"/>
    												<xsl:with-param name="numer" select="23"/>
    											</xsl:call-template>
    										</tr>		
    										
    								<tr>
    									<td class="gridCell" style="border: solid 1px black" colspan="2">
    										Art. 12 ust. 1, pkt 11 - grunty wpisane do rejestru zabytków, pod warunkiem ich zagospodarowania i utrzymania zgodnie z przepisami o ochronie zabytków i opiece nad zabytkami
    									</td>
    									<xsl:call-template name="Zwolnienie">
    										<xsl:with-param name="kod" select="'12.1.11'"/>
    										<xsl:with-param name="numer" select="24"/>
    									</xsl:call-template>
    								</tr>
    								<tr>
    									<td class="gridCell" style="border: solid 1px black" colspan="2">
    										Art. 12 ust. 1, pkt 12 - grunty stanowiące działki przyzagrodowe członków rolniczych spółdzielni produkcyjnych, którzy:<br/>
    										a) osiągnęli wiek emerytalny,<br/>
    										b) są inwalidami zaliczonymi do I albo do II grupy<br/>
    										c) są niepełnosprawnymi o znacznym lub umiarkowanym stopniu niepełnosprawności,<br/>
    										d) są osobami całkowicie niezdolnymi do pracy w gospodarstwie rolnym albo niezdolnymi do samodzielnej egzystencji
    									</td>
    									<xsl:call-template name="Zwolnienie">
    										<xsl:with-param name="kod" select="'12.1.12'"/>
    										<xsl:with-param name="numer" select="25"/>
    									</xsl:call-template>
    								</tr>
    								<tr>
    									<td class="gridCell" style="border: solid 1px black" colspan="2">
    										Art. 12 ust. 1, pkt 13 – grunty położone na terenie rodzinnego ogrodu działkowego, z wyjątkiem będących w posiadaniu podmiotów innych niż działkowcy lub stowarzyszenia ogrodowe w rozumieniu ustawy z dnia 13 grudnia 2013 r. o rodzinnych ogrodach działkowych (Dz. U. z 2014 r. poz. 40).
    									</td>
    									<xsl:call-template name="Zwolnienie">
    										<xsl:with-param name="kod" select="'12.1.13'"/>
    										<xsl:with-param name="numer" select="26"/>
    									</xsl:call-template>
    								</tr>
    								<tr>
    									<td class="gridCell" style="border: solid 1px black" colspan="2">
    										Art. 12 ust. 2, pkt 1 - uczelnie zwolnienie nie dotyczy gruntów przekazanych w posiadanie podmiotom innym niż uczelnie
    									</td>
    									<xsl:call-template name="Zwolnienie">
    										<xsl:with-param name="kod" select="'12.2.1'"/>
    										<xsl:with-param name="numer" select="27"/>
    									</xsl:call-template>
    								</tr>
    								<tr>
    									<td class="gridCell" style="border: solid 1px black" colspan="2">
    										Art. 12 ust. 2, pkt 2 – publiczne i niepubliczne jednostki organizacyjne objęte systemem oświaty oraz prowadzące je organy, w zakresie gruntów zajętych na działalność oświatową
    									</td>
    									<xsl:call-template name="Zwolnienie">
    										<xsl:with-param name="kod" select="'12.2.2'"/>
    										<xsl:with-param name="numer" select="28"/>
    									</xsl:call-template>
    								</tr>
    								<tr>
    									<td class="gridCell" style="border: solid 1px black" colspan="2">
    										Art. 12 ust. 2, pkt 3 – instytuty naukowe i pomocnicze jednostki naukowe Polskiej Akademii Nauk, w odniesieniu do gruntów, które są niezbędne do realizacji zadań, o których mowa w art. 2 ustawy z dnia 30 kwietnia 2010 r. o Polskiej Akademii Nauk (Dz. U. Nr 96, poz. 619 ze zm., z 2011 r., Nr 84, poz. 455 oraz z 2013 r. poz. 675)
    									</td>
    									<xsl:call-template name="Zwolnienie">
    										<xsl:with-param name="kod" select="'12.2.3'"/>
    										<xsl:with-param name="numer" select="29"/>
    									</xsl:call-template>
    								</tr>
    								<tr>
    									<td class="gridCell" style="border: solid 1px black" colspan="2">
    										Art. 12 ust. 2, pkt 4 – prowadzących zakłady pracy chronionej spełniające warunek, o którym mowa w art. 28 ust. 1 pkt 1 lit. b ustawy z dnia 27 sierpnia 1997 r. o rehabilitacji zawodowej i społecznej oraz zatrudnianiu osób niepełnosprawnych (Dz. U. z 2011 r. Nr 127, poz. 721, z późn. zm.), lub zakłady aktywności zawodowej - w zakresie gruntów zgłoszonych wojewodzie, jeżeli zgłoszenie zostało potwierdzone decyzją w sprawie przyznania statusu zakładu pracy chronionej lub zakładu aktywności zawodowej albo zaświadczeniem - zajętych na prowadzenie tego zakładu, z wyjątkiem gruntów znajdujących się w posiadaniu zależnym podmiotów niebędących prowadzącymi zakłady pracy chronionej spełniające warunek, o którym mowa w art. 28 ust. 1 pkt 1 lit. b ustawy z dnia 27 sierpnia 1997 r. o rehabilitacji zawodowej i społecznej oraz zatrudnianiu osób niepełnosprawnych lub zakłady aktywności zawodowej
    									</td>
    									<xsl:call-template name="Zwolnienie">
    										<xsl:with-param name="kod" select="'12.2.4'"/>
    										<xsl:with-param name="numer" select="30"/>
    									</xsl:call-template>
    								</tr>
    								<tr>
    									<td class="gridCell" style="border: solid 1px black" colspan="2">
    										Art. 12 ust. 2, pkt 5 – instytuty badawcze
    									</td>
    									<xsl:call-template name="Zwolnienie">
    										<xsl:with-param name="kod" select="'12.2.5'"/>
    										<xsl:with-param name="numer" select="31"/>
    									</xsl:call-template>
    								</tr>
    								<tr>
    									<td class="gridCell" style="border: solid 1px black" colspan="2">
    										Art. 12 ust. 2, pkt 5a – przedsiębiorcy o statusie centrum badawczo-rozwojowego uzyskanym na zasadach określonych w przepisach o niektórych formach wspierania działalności innowacyjnej, w odniesieniu do przedmiotów opodatkowania zajętych na cele prowadzonych badań i prac rozwojowych
    									</td>
    									<xsl:call-template name="Zwolnienie">
    										<xsl:with-param name="kod" select="'12.2.5a'"/>
    										<xsl:with-param name="numer" select="32"/>
    									</xsl:call-template>
    								</tr>								
    								<tr>
    									<td class="gridCell" style="border: solid 1px black" colspan="2">
    										Inne zwolnienia na podstawie
    										<xsl:value-of select="/wnio:Dokument/wnio:TrescDokumentu/wnio:Deklaracja/wnio:InneZwolnienia"/>										
    									</td>
    									<xsl:call-template name="Zwolnienie">
    										<xsl:with-param name="kod" select="'12.2.6'"/>
    										<xsl:with-param name="numer" select="33"/>
    									</xsl:call-template>
    								</tr>																										
    									</table>
    								</td>
    							</tr>
    
    						</table>		
    					
    					</xsl:for-each>				
    					
    					
    					<xsl:for-each select="wnio:Ulgi">
    						<table width="100%" style="background:#eeeeee; border: solid 1px black; border-bottom: 0px">
    							<tr>
    								<td>
    									<div class="mainBlockHeader">D. DANE DOTYCZĄCE ULG PODATKOWYCH WYNIKAJĄCYCH Z USTAWY LUB UCHWAŁY  RADY GMINY</div>
    								</td>
    							</tr>
    						</table>
    
    						
    						<table width="100%" style="background:#eeeeee; border: solid 1px black; border-top: 0px" cellspacing="0">
    							<tr>
    								<td style="width:30px;"/>
    								<td style="border:none">
    									<table cellspacing="0" cellpadding="2" width="100%">
    										<tr>
    											<td class="gridCell" style="solid 1px black; font-weight:bold; text-align:center">Tytuł prawny zwolnienia</td>
    											<td class="gridCell" style="width:120px; border: solid 1px black; text-align:center; font-weight:bold"/>
    										</tr>
    	
    										<tr>
    											<td class="gridCell" style="border: solid 1px black">Art. 13 ust. 1 – ulga inwestycyjna</td>
    											<td class="gridValue" style="border: solid 1px black">
    												<xsl:call-template name="BlockLabel"><xsl:with-param name="text">34.</xsl:with-param></xsl:call-template>
    												<table style="border:0px" cellpadding="0" cellspacing="0">
    													<tr>
    														<td style="padding:4px;width:15px">
    															<div style="foat:left; border: solid 1px black; width:13px;height: 12px">
    																<xsl:if test="wnio:Ulga[@kod='13.1']/@ulga='Tak'">
    																	<b>
    																		<center>X</center>
    																	</b>
    																</xsl:if>
    															</div>
    														</td>
    														<td style="padding:4px">tak</td>
    														<td style="padding:4px;width:15px">
    															<div style="foat:left; border: solid 1px black; width:13px;height: 12px">
    																<xsl:if test="wnio:Ulga[@kod='13.1']/@ulga='Nie'">
    																	<b>
    																		<center>X</center>
    																	</b>
    																</xsl:if>
    															</div>
    														</td>
    														<td style="padding:4px">nie</td>
    													</tr>
    												</table>																																		
    											</td>
    										</tr>													
    										<tr>
    											<td class="gridCell" style="border: solid 1px black">Art. 13b ust. 1 – ulga dla gruntów położonych na terenach podgórskich i górskich</td>
    											<td class="gridValue" style="border: solid 1px black">
    												<xsl:call-template name="BlockLabel"><xsl:with-param name="text">35. Ulga</xsl:with-param></xsl:call-template>
    												<table style="border:0px" cellpadding="0" cellspacing="0">
    													<tr>
    														<td style="padding:4px;width:15px">
    															<div style="foat:left; border: solid 1px black; width:13px;height: 12px">
    																<xsl:if test="wnio:Ulga[@kod='13b.1']/@ulga='60'">
    																	<b>
    																		<center>X</center>
    																	</b>
    																</xsl:if>
    															</div>
    														</td>
    														<td style="padding:4px">60%</td>
    														<td style="padding:4px;width:15px">
    															<div style="foat:left; border: solid 1px black; width:13px;height: 12px">
    																<xsl:if test="wnio:Ulga[@kod='13b.1']/@ulga='30'">
    																	<b>
    																		<center>X</center>
    																	</b>
    																</xsl:if>
    															</div>
    														</td>
    														<td style="padding:4px">30%</td>
    													</tr>
    												</table>																																		
    											</td>
    										</tr>											
    										<tr>
    											<td class="gridCell" style="border: solid 1px black">Art. 13c ust. 1 – ulga z tytułu wprowadzenia stanu klęski żywiołowej </td>
    											<td class="gridValue" style="border: solid 1px black">
    												<xsl:call-template name="BlockLabel"><xsl:with-param name="text">36. Ulga</xsl:with-param></xsl:call-template>
    												<table style="border:0px" cellpadding="0" cellspacing="0">
    													<tr>
    														<td style="padding:4px;width:15px">
    															<div style="foat:left; border: solid 1px black; width:13px;height: 12px">
    																<xsl:if test="wnio:Ulga[@kod='13c.1']/@ulga='Tak'">
    																	<b>
    																		<center>X</center>
    																	</b>
    																</xsl:if>
    															</div>
    														</td>
    														<td style="padding:4px">tak</td>
    														<td style="padding:4px;width:15px">
    															<div style="foat:left; border: solid 1px black; width:13px;height: 12px">
    																<xsl:if test="wnio:Ulga[@kod='13c.1']/@ulga='Nie'">
    																	<b>
    																		<center>X</center>
    																	</b>
    																</xsl:if>
    															</div>
    														</td>
    														<td style="padding:4px">nie</td>
    													</tr>
    												</table>				
    											</td>
    										</tr>																				
    									</table>
    								</td>
    							</tr>
    						</table>
    															
    					</xsl:for-each>
    					
    					<br/>
    					
    					<span style="font-size:11pt;">
    						1)  Należy podać z dokładnością do czterech miejsc po przecinku.
    					</span>
    					<!-- Koniec-->
    				</xsl:for-each>
    				
    				
    				<br/>
    				<br/>
    				<xsl:if test="count(wnio:Dokument/wnio:TrescDokumentu/wnio:Wartosc/str:Zalaczniki/str:Zalacznik) &gt; 0">
    					<span class="sectionHeader">Załączniki</span>
    					<br/>
    					<xsl:apply-templates select="wnio:Dokument/wnio:TrescDokumentu/wnio:Wartosc/str:Zalaczniki"/>
    					<br/>
    					<b>Potwierdzona zgodność załączników z oryginałami:</b>
    					<xsl:if test="wnio:Dokument/wnio:TrescDokumentu/wnio:Wartosc/wnio:ZalacznikiEx/@zgodnoscZOryginalem='true'">Tak</xsl:if>
    					<xsl:if test="wnio:Dokument/wnio:TrescDokumentu/wnio:Wartosc/wnio:ZalacznikiEx/@zgodnoscZOryginalem='false'">Nie</xsl:if>
    					<br/>
    					<br/>
    				</xsl:if>
    			
    	
    			
    			
    			</body>
    		</html>
    	</xsl:template>
    	<!--Templates -->
    	
    	
    	
    	
    	<xsl:template name="ZwolnienieDetail">
    		<xsl:param name="numer"/>
    		<xsl:if test="wnio:HaFizyczne">
    			<td class="gridValue" style="text-align:center; vertical-align: top">
    				<xsl:call-template name="BlockLabel">
    					<xsl:with-param name="text">
    						<xsl:value-of select="$numer"/>.</xsl:with-param>
    				</xsl:call-template>
    				<xsl:if test="wnio:HaFizyczne != ''">
    					<xsl:value-of select="format-number(wnio:HaFizyczne, '###.##0,0000', 'Polish')"/>
    				</xsl:if>
    			</td>
    		</xsl:if>
    	</xsl:template>
    	
    	
    	
    	<xsl:template name="Zwolnienie">
    		<xsl:param name="kod"/>
    		<xsl:param name="numer"/>
    		<xsl:for-each select="wnio:Zwolnienie[@kod=$kod]">
    			<xsl:call-template name="ZwolnienieDetail">
    				<xsl:with-param name="numer" select="$numer"/>
    			</xsl:call-template>
    		</xsl:for-each>
    	</xsl:template>
    	
    	
    	<xsl:template name="Uzytek">
    		<xsl:param name="kod"/>
    		<xsl:param name="numer"/>
    		<xsl:for-each select="wnio:Uzytek[@kod=$kod]">
    			<tr>
    				<td class="gridCell" style="text-align:center; vertical-align: bottom">
    					<xsl:value-of select="$kod"/>
    				</td>
    				<td class="gridValue" style="text-align:center; vertical-align: top">
    					<xsl:call-template name="BlockLabel">
    						<xsl:with-param name="text">
    							<xsl:value-of select="$numer"/>.</xsl:with-param>
    					</xsl:call-template>
    					<xsl:call-template name="Number4">
    						<xsl:with-param name="number" select="wnio:HaFizyczne"/>
    					</xsl:call-template>
    				</td>
    				<td class="gridCell" style="text-align:center; vertical-align: top" colspan="2">
    					<xsl:call-template name="BlockLabel">
    						<xsl:with-param name="text"> </xsl:with-param>
    					</xsl:call-template>
    					<xsl:call-template name="Number">
    						<xsl:with-param name="number" select="wnio:Stawka"/>
    					</xsl:call-template>
    				</td>
    				<td class="gridValue">
    					<xsl:call-template name="BlockLabel">
    						<xsl:with-param name="text">
    							<xsl:value-of select="$numer+1"/>.</xsl:with-param>
    					</xsl:call-template>
    					<xsl:call-template name="Number4">
    						<xsl:with-param name="number" select="wnio:HaPrzeliczeniowe"/>
    					</xsl:call-template>
    				</td>
    			</tr>
    		</xsl:for-each>
    	</xsl:template>
    	<xsl:template name="UzytekZabudowany">
    		<xsl:param name="kod"/>
    		<xsl:param name="numer"/>
    		<xsl:for-each select="wnio:Uzytek[@kod=$kod]">
    			<tr>
    				<td class="gridCell" style="text-align:center; vertical-align: bottom">
    					<xsl:value-of select="$kod"/>
    				</td>
    				<td class="gridValue" style="text-align:center; vertical-align: top">
    					<xsl:call-template name="BlockLabel">
    						<xsl:with-param name="text">
    							<xsl:value-of select="$numer"/>.</xsl:with-param>
    					</xsl:call-template>
    					<xsl:call-template name="Number4">
    						<xsl:with-param name="number" select="wnio:HaFizyczne"/>
    					</xsl:call-template>
    				</td>
    				<td class="gridCell" style="text-align:center; vertical-align: top">
    					<xsl:call-template name="BlockLabel">
    						<xsl:with-param name="text"> </xsl:with-param>
    					</xsl:call-template>
    					<xsl:if test="wnio:StawkaGO != ''">
    						<xsl:call-template name="Number">
    							<xsl:with-param name="number" select="wnio:StawkaGO"/>
    						</xsl:call-template>
    					</xsl:if>
    					<xsl:if test="wnio:StawkaGO = ''">---</xsl:if>
    				</td>
    				<td class="gridCell" style="text-align:center; vertical-align: top">
    					<xsl:call-template name="BlockLabel">
    						<xsl:with-param name="text"> </xsl:with-param>
    					</xsl:call-template>
    					<xsl:if test="wnio:StawkaUZ != ''">
    						<xsl:call-template name="Number">
    							<xsl:with-param name="number" select="wnio:StawkaUZ"/>
    						</xsl:call-template>
    					</xsl:if>
    					<xsl:if test="wnio:StawkaUZ = ''">---</xsl:if>
    				</td>
    				<td class="gridValue">
    					<xsl:call-template name="BlockLabel">
    						<xsl:with-param name="text">
    							<xsl:value-of select="$numer+1"/>.</xsl:with-param>
    					</xsl:call-template>
    					<xsl:call-template name="Number4">
    						<xsl:with-param name="number" select="wnio:HaPrzeliczeniowe"/>
    					</xsl:call-template>
    				</td>
    			</tr>
    		</xsl:for-each>
    	</xsl:template>
    	<xsl:template name="Gps">
    		<xsl:param name="kod"/>
    		<xsl:param name="numer"/>
    		<xsl:param name="nazwa"/>
    		<xsl:for-each select="wnio:Uzytek[@kod=$kod]">
    			<tr>
    				<td class="gridCell" style="vertical-align: bottom">
    					<xsl:value-of select="$nazwa"/>
    				</td>
    				<td class="gridValue" style="text-align:center; vertical-align: top">
    					<xsl:call-template name="BlockLabel">
    						<xsl:with-param name="text">
    							<xsl:value-of select="$numer"/>.</xsl:with-param>
    					</xsl:call-template>
    					<xsl:call-template name="Number4">
    						<xsl:with-param name="number" select="wnio:HaFizyczne"/>
    					</xsl:call-template>
    				</td>
    				<td class="gridCell" style="text-align:center; vertical-align: top" colspan="2">
    					<xsl:call-template name="BlockLabel">
    						<xsl:with-param name="text"> </xsl:with-param>
    					</xsl:call-template>
    					<xsl:call-template name="Number">
    						<xsl:with-param name="number" select="wnio:Stawka"/>
    					</xsl:call-template>
    				</td>
    				<td class="gridValue">
    					<xsl:call-template name="BlockLabel">
    						<xsl:with-param name="text">
    							<xsl:value-of select="$numer+1"/>.</xsl:with-param>
    					</xsl:call-template>
    					<xsl:call-template name="Number4">
    						<xsl:with-param name="number" select="wnio:HaPrzeliczeniowe"/>
    					</xsl:call-template>
    				</td>
    			</tr>
    		</xsl:for-each>
    	</xsl:template>
    	<xsl:template name="Inny">
    		<xsl:param name="kod"/>
    		<xsl:param name="numer"/>
    		<xsl:param name="nazwa"/>
    		<xsl:for-each select="wnio:Uzytek[@kod=$kod]">
    			<tr>
    				<td class="gridCell" style="vertical-align: bottom">
    					<b>
    						<xsl:value-of select="$nazwa"/>
    					</b>
    				</td>
    				<td class="gridValue" style="text-align:center; vertical-align: top">
    					<xsl:call-template name="BlockLabel">
    						<xsl:with-param name="text">
    							<xsl:value-of select="$numer"/>.</xsl:with-param>
    					</xsl:call-template>
    					<xsl:call-template name="Number4">
    						<xsl:with-param name="number" select="wnio:HaFizyczne"/>
    					</xsl:call-template>
    				</td>
    				<td class="gridCell" style="text-align:center; vertical-align: top" colspan="2">
    					<b>-----------------</b>
    				</td>
    				<td class="gridCell"/>
    			</tr>
    		</xsl:for-each>
    	</xsl:template>
    	
    	
    	<xsl:template name="Miesiac">
    		<xsl:param name="miesiac"/>
    		<xsl:choose>
    			<xsl:when test="$miesiac='1'">Styczeń</xsl:when>
    			<xsl:when test="$miesiac='2'">Luty</xsl:when>
    			<xsl:when test="$miesiac='3'">Marzec</xsl:when>
    			<xsl:when test="$miesiac='4'">Kwiecień</xsl:when>
    			<xsl:when test="$miesiac='5'">Maj</xsl:when>
    			<xsl:when test="$miesiac='6'">Czerwiec</xsl:when>
    			<xsl:when test="$miesiac='7'">Lipiec</xsl:when>
    			<xsl:when test="$miesiac='8'">Sierpień</xsl:when>
    			<xsl:when test="$miesiac='9'">Wrzesień</xsl:when>
    			<xsl:when test="$miesiac='10'">Październik</xsl:when>
    			<xsl:when test="$miesiac='11'">Listopad</xsl:when>
    			<xsl:when test="$miesiac='12'">Grudzień</xsl:when>
    		</xsl:choose>
    	</xsl:template>
    	<xsl:template match="adr:Kraj">
    		<xsl:choose>
    			<xsl:when test=".=''"/>
    			<xsl:when test=".='AF'">AFGANISTAN</xsl:when>
    			<xsl:when test=".='AL'">ALBANIA</xsl:when>
    			<xsl:when test=".='DZ'">ALGIERIA</xsl:when>
    			<xsl:when test=".='AD'">ANDORA</xsl:when>
    			<xsl:when test=".='AO'">ANGOLA</xsl:when>
    			<xsl:when test=".='AI'">ANGUILLA</xsl:when>
    			<xsl:when test=".='AQ'">ANTARKTYDA</xsl:when>
    			<xsl:when test=".='AG'">ANTIGUA I BARBUDA</xsl:when>
    			<xsl:when test=".='AN'">ANTYLE NIDERLANDZKIE</xsl:when>
    			<xsl:when test=".='AR'">ARGENTYNA</xsl:when>
    			<xsl:when test=".='AM'">ARMENIA</xsl:when>
    			<xsl:when test=".='AW'">ARUBA</xsl:when>
    			<xsl:when test=".='AU'">AUSTRALIA</xsl:when>
    			<xsl:when test=".='AT'">AUSTRIA</xsl:when>
    			<xsl:when test=".='AZ'">AZERBEJDŻAN</xsl:when>
    			<xsl:when test=".='BS'">BAHAMY</xsl:when>
    			<xsl:when test=".='BH'">BAHRAJN</xsl:when>
    			<xsl:when test=".='BD'">BANGLADESZ</xsl:when>
    			<xsl:when test=".='BB'">BARBADOS</xsl:when>
    			<xsl:when test=".='BE'">BELGIA</xsl:when>
    			<xsl:when test=".='BZ'">BELIZE</xsl:when>
    			<xsl:when test=".='BJ'">BENIN</xsl:when>
    			<xsl:when test=".='BM'">BERMUDY</xsl:when>
    			<xsl:when test=".='BT'">BHUTAN</xsl:when>
    			<xsl:when test=".='BY'">BIAŁORUŚ</xsl:when>
    			<xsl:when test=".='BO'">BOLIWIA</xsl:when>
    			<xsl:when test=".='BW'">BOTSWANA</xsl:when>
    			<xsl:when test=".='BA'">BOŚNIA I HERCEGOWINA</xsl:when>
    			<xsl:when test=".='BR'">BRAZYLIA</xsl:when>
    			<xsl:when test=".='BN'">BRUNEI DARUSSALAM</xsl:when>
    			<xsl:when test=".='BF'">BURKINA FASO</xsl:when>
    			<xsl:when test=".='BI'">BURUNDI</xsl:when>
    			<xsl:when test=".='BG'">BUŁGARIA</xsl:when>
    			<xsl:when test=".='CL'">CHILE</xsl:when>
    			<xsl:when test=".='CN'">CHINY</xsl:when>
    			<xsl:when test=".='HR'">CHORWACJA</xsl:when>
    			<xsl:when test=".='CY'">CYPR</xsl:when>
    			<xsl:when test=".='TD'">CZAD</xsl:when>
    			<xsl:when test=".='DK'">DANIA</xsl:when>
    			<xsl:when test=".='DM'">DOMINIKA</xsl:when>
    			<xsl:when test=".='DO'">DOMINIKANA</xsl:when>
    			<xsl:when test=".='DJ'">DŻIBUTI</xsl:when>
    			<xsl:when test=".='EG'">EGIPT</xsl:when>
    			<xsl:when test=".='EC'">EKWADOR</xsl:when>
    			<xsl:when test=".='ER'">ERYTREA</xsl:when>
    			<xsl:when test=".='EE'">ESTONIA</xsl:when>
    			<xsl:when test=".='ET'">ETIOPIA</xsl:when>
    			<xsl:when test=".='FK'">FALKLANDY</xsl:when>
    			<xsl:when test=".='FJ'">FIDŻI REPUBLIKA</xsl:when>
    			<xsl:when test=".='PH'">FILIPINY</xsl:when>
    			<xsl:when test=".='FI'">FINLANDIA</xsl:when>
    			<xsl:when test=".='TF'">FRANC. TERYT. PŁD.</xsl:when>
    			<xsl:when test=".='FR'">FRANCJA</xsl:when>
    			<xsl:when test=".='GA'">GABON</xsl:when>
    			<xsl:when test=".='GM'">GAMBIA</xsl:when>
    			<xsl:when test=".='GH'">GHANA</xsl:when>
    			<xsl:when test=".='GI'">GIBRALTAR</xsl:when>
    			<xsl:when test=".='GR'">GRECJA</xsl:when>
    			<xsl:when test=".='GD'">GRENADA</xsl:when>
    			<xsl:when test=".='GL'">GRENLANDIA</xsl:when>
    			<xsl:when test=".='GE'">GRUZJA</xsl:when>
    			<xsl:when test=".='GU'">GUAM</xsl:when>
    			<xsl:when test=".='GY'">GUJANA</xsl:when>
    			<xsl:when test=".='GF'">GUJANA FRANCUSKA</xsl:when>
    			<xsl:when test=".='GP'">GWADELUPA</xsl:when>
    			<xsl:when test=".='GT'">GWATEMALA</xsl:when>
    			<xsl:when test=".='GN'">GWINEA</xsl:when>
    			<xsl:when test=".='GQ'">GWINEA RÓWNIKOWA</xsl:when>
    			<xsl:when test=".='GW'">GWINEA-BISSAU</xsl:when>
    			<xsl:when test=".='HT'">HAITI</xsl:when>
    			<xsl:when test=".='HM'">HEARD I MCDONALD WYSPY</xsl:when>
    			<xsl:when test=".='ES'">HISZPANIA</xsl:when>
    			<xsl:when test=".='HN'">HONDURAS</xsl:when>
    			<xsl:when test=".='HK'">HONGKONG</xsl:when>
    			<xsl:when test=".='IN'">INDIA</xsl:when>
    			<xsl:when test=".='ID'">INDONEZJA</xsl:when>
    			<xsl:when test=".='IQ'">IRAK</xsl:when>
    			<xsl:when test=".='IR'">IRAN</xsl:when>
    			<xsl:when test=".='IE'">IRLANDIA</xsl:when>
    			<xsl:when test=".='IS'">ISLANDIA</xsl:when>
    			<xsl:when test=".='IL'">IZRAEL</xsl:when>
    			<xsl:when test=".='JM'">JAMAJKA</xsl:when>
    			<xsl:when test=".='JP'">JAPONIA</xsl:when>
    			<xsl:when test=".='YE'">JEMEN</xsl:when>
    			<xsl:when test=".='JO'">JORDANIA</xsl:when>
    			<xsl:when test=".='KY'">KAJMANY</xsl:when>
    			<xsl:when test=".='KH'">KAMBODŻA</xsl:when>
    			<xsl:when test=".='CM'">KAMERUN</xsl:when>
    			<xsl:when test=".='CA'">KANADA</xsl:when>
    			<xsl:when test=".='QA'">KATAR</xsl:when>
    			<xsl:when test=".='KZ'">KAZACHSTAN</xsl:when>
    			<xsl:when test=".='KE'">KENIA</xsl:when>
    			<xsl:when test=".='KG'">KIRGISTAN</xsl:when>
    			<xsl:when test=".='KI'">KIRIBATI</xsl:when>
    			<xsl:when test=".='CO'">KOLUMBIA</xsl:when>
    			<xsl:when test=".='KM'">KOMORY</xsl:when>
    			<xsl:when test=".='CG'">KONGO</xsl:when>
    			<xsl:when test=".='CD'">KONGO (D. ZAIR)</xsl:when>
    			<xsl:when test=".='KP'">KOREAŃSKA REPUBLIKA LUDOWO-DEMOKRATYCZNA</xsl:when>
    			<xsl:when test=".='CR'">KOSTARYKA</xsl:when>
    			<xsl:when test=".='CU'">KUBA</xsl:when>
    			<xsl:when test=".='KW'">KUWEJT</xsl:when>
    			<xsl:when test=".='LA'">LAOS</xsl:when>
    			<xsl:when test=".='LS'">LESOTHO</xsl:when>
    			<xsl:when test=".='LB'">LIBAN</xsl:when>
    			<xsl:when test=".='LR'">LIBERIA</xsl:when>
    			<xsl:when test=".='LY'">LIBIA</xsl:when>
    			<xsl:when test=".='LI'">LIECHTENSTEIN</xsl:when>
    			<xsl:when test=".='LT'">LITWA</xsl:when>
    			<xsl:when test=".='LU'">LUKSEMBURG</xsl:when>
    			<xsl:when test=".='MK'">MACEDONIA</xsl:when>
    			<xsl:when test=".='MG'">MADAGASKAR</xsl:when>
    			<xsl:when test=".='YT'">MAJOTTA</xsl:when>
    			<xsl:when test=".='MO'">MAKAU</xsl:when>
    			<xsl:when test=".='MW'">MALAWI</xsl:when>
    			<xsl:when test=".='MV'">MALEDIWY</xsl:when>
    			<xsl:when test=".='MY'">MALEZJA</xsl:when>
    			<xsl:when test=".='ML'">MALI</xsl:when>
    			<xsl:when test=".='MT'">MALTA</xsl:when>
    			<xsl:when test=".='MP'">MARIANY PÓŁNOCNE</xsl:when>
    			<xsl:when test=".='MA'">MAROKO</xsl:when>
    			<xsl:when test=".='MQ'">MARTYNIKA</xsl:when>
    			<xsl:when test=".='MR'">MAURETANIA</xsl:when>
    			<xsl:when test=".='MU'">MAURITIUS</xsl:when>
    			<xsl:when test=".='MX'">MEKSYK</xsl:when>
    			<xsl:when test=".='XL'">MELILLA</xsl:when>
    			<xsl:when test=".='FM'">MIKRONEZJA</xsl:when>
    			<xsl:when test=".='UM'">MINOR (POWIERNICZE WYSPY PACYFIKU STANÓW ZJEDNOCZONYCH)</xsl:when>
    			<xsl:when test=".='MC'">MONAKO</xsl:when>
    			<xsl:when test=".='MN'">MONGOLIA</xsl:when>
    			<xsl:when test=".='MS'">MONTSERRAT</xsl:when>
    			<xsl:when test=".='MZ'">MOZAMBIK</xsl:when>
    			<xsl:when test=".='MD'">MOŁDOWA</xsl:when>
    			<xsl:when test=".='MM'">MYANMAR (BURMA)</xsl:when>
    			<xsl:when test=".='NA'">NAMIBIA</xsl:when>
    			<xsl:when test=".='NR'">NAURU</xsl:when>
    			<xsl:when test=".='NP'">NEPAL</xsl:when>
    			<xsl:when test=".='NL'">NIDERLANDY</xsl:when>
    			<xsl:when test=".='DE'">NIEMCY</xsl:when>
    			<xsl:when test=".='NE'">NIGER</xsl:when>
    			<xsl:when test=".='NG'">NIGERIA</xsl:when>
    			<xsl:when test=".='NI'">NIKARAGUA</xsl:when>
    			<xsl:when test=".='NU'">NIUE</xsl:when>
    			<xsl:when test=".='NF'">NORFOLK</xsl:when>
    			<xsl:when test=".='NO'">NORWEGIA</xsl:when>
    			<xsl:when test=".='NC'">NOWA KALEDONIA</xsl:when>
    			<xsl:when test=".='NZ'">NOWA ZELANDIA</xsl:when>
    			<xsl:when test=".='PS'">OKUPOWANE TERYTORIUM PALESTYNY</xsl:when>
    			<xsl:when test=".='OM'">OMAN</xsl:when>
    			<xsl:when test=".='PK'">PAKISTAN</xsl:when>
    			<xsl:when test=".='PW'">PALAU</xsl:when>
    			<xsl:when test=".='PA'">PANAMA</xsl:when>
    			<xsl:when test=".='PG'">PAPUA NOWA GWINEA</xsl:when>
    			<xsl:when test=".='PY'">PARAGWAJ</xsl:when>
    			<xsl:when test=".='PE'">PERU</xsl:when>
    			<xsl:when test=".='PN'">PITCAIRN</xsl:when>
    			<xsl:when test=".='PF'">POLINEZJA FRANC.</xsl:when>
    			<xsl:when test=".='PL'">POLSKA</xsl:when>
    			<xsl:when test=".='PR'">PORTORYKO</xsl:when>
    			<xsl:when test=".='PT'">PORTUGALIA</xsl:when>
    			<xsl:when test=".='GS'">POŁUDNIONA GEORGIA I POŁUDNIOWE WYSPY SANDWICH</xsl:when>
    			<xsl:when test=".='ZA'">REP. POŁUD. AFRYKI</xsl:when>
    			<xsl:when test=".='CF'">REP. ŚRODKOWOAFRYKAŃSKA</xsl:when>
    			<xsl:when test=".='CZ'">REPUBLIKA CZESKA</xsl:when>
    			<xsl:when test=".='KR'">REPUBLIKA KOREI</xsl:when>
    			<xsl:when test=".='RE'">REUNION</xsl:when>
    			<xsl:when test=".='RU'">ROSJA</xsl:when>
    			<xsl:when test=".='RW'">RUANDA</xsl:when>
    			<xsl:when test=".='RO'">RUMUNIA</xsl:when>
    			<xsl:when test=".='EH'">SAHARA ZACHODNIA</xsl:when>
    			<xsl:when test=".='SV'">SALWADOR</xsl:when>
    			<xsl:when test=".='AS'">SAMOA AMERYKAŃSKIE</xsl:when>
    			<xsl:when test=".='SM'">SAN MARINO</xsl:when>
    			<xsl:when test=".='SN'">SENEGAL</xsl:when>
    			<xsl:when test=".='CS'">SERBIA I CZARNOGÓRA</xsl:when>
    			<xsl:when test=".='SC'">SESZELE</xsl:when>
    			<xsl:when test=".='SL'">SIERRA LEONE</xsl:when>
    			<xsl:when test=".='SG'">SINGAPUR</xsl:when>
    			<xsl:when test=".='SO'">SOMALIA</xsl:when>
    			<xsl:when test=".='LK'">SRI LANKA</xsl:when>
    			<xsl:when test=".='KN'">ST.KITTS I NEVIS</xsl:when>
    			<xsl:when test=".='LC'">ST.LUCIA</xsl:when>
    			<xsl:when test=".='PM'">ST.PIERRE I MIQUELON</xsl:when>
    			<xsl:when test=".='US'">STANY ZJEDNOCZONE AMERYKI</xsl:when>
    			<xsl:when test=".='SZ'">SUAZI</xsl:when>
    			<xsl:when test=".='SD'">SUDAN</xsl:when>
    			<xsl:when test=".='SR'">SURINAM</xsl:when>
    			<xsl:when test=".='SJ'">SVALBARD I JAN MEYEN</xsl:when>
    			<xsl:when test=".='CH'">SZWAJCARIA</xsl:when>
    			<xsl:when test=".='SE'">SZWECJA</xsl:when>
    			<xsl:when test=".='SK'">SŁOWACJA</xsl:when>
    			<xsl:when test=".='SI'">SŁOWENIA</xsl:when>
    			<xsl:when test=".='TJ'">TADŻYKISTAN</xsl:when>
    			<xsl:when test=".='TH'">TAJLANDIA</xsl:when>
    			<xsl:when test=".='TW'">TAJWAN</xsl:when>
    			<xsl:when test=".='TZ'">TANZANIA</xsl:when>
    			<xsl:when test=".='TG'">TOGO</xsl:when>
    			<xsl:when test=".='TK'">TOKELAU</xsl:when>
    			<xsl:when test=".='TO'">TONGA</xsl:when>
    			<xsl:when test=".='TT'">TRYNIDAD I TOBAGO</xsl:when>
    			<xsl:when test=".='TN'">TUNEZJA</xsl:when>
    			<xsl:when test=".='TR'">TURCJA</xsl:when>
    			<xsl:when test=".='TM'">TURKMENISTAN</xsl:when>
    			<xsl:when test=".='TC'">TURKS I CAICOS</xsl:when>
    			<xsl:when test=".='TV'">TUVALU</xsl:when>
    			<xsl:when test=".='UG'">UGANDA</xsl:when>
    			<xsl:when test=".='UA'">UKRAINA</xsl:when>
    			<xsl:when test=".='UY'">URUGWAJ</xsl:when>
    			<xsl:when test=".='UZ'">UZBEKISTAN</xsl:when>
    			<xsl:when test=".='VU'">VANUATU</xsl:when>
    			<xsl:when test=".='VC'">VINCENT I GRENADYNY</xsl:when>
    			<xsl:when test=".='WF'">WALLIS I FUTUNA</xsl:when>
    			<xsl:when test=".='VA'">WATYKAN</xsl:when>
    			<xsl:when test=".='VE'">WENEZUELA</xsl:when>
    			<xsl:when test=".='GB'">WIELKA BRYTANIA</xsl:when>
    			<xsl:when test=".='VN'">WIETNAM</xsl:when>
    			<xsl:when test=".='TL'">WSCHODNI TIMOR</xsl:when>
    			<xsl:when test=".='CI'">WYBRZEŻE KOŚCI SŁONIOWEJ</xsl:when>
    			<xsl:when test=".='BV'">WYSPA BOUVETA</xsl:when>
    			<xsl:when test=".='CX'">WYSPA BOŻEGO NARODZENIA</xsl:when>
    			<xsl:when test=".='CK'">WYSPY COOKA</xsl:when>
    			<xsl:when test=".='VG'">WYSPY DZIEWICZE - W.B</xsl:when>
    			<xsl:when test=".='VI'">WYSPY DZIEWICZE-USA</xsl:when>
    			<xsl:when test=".='CC'">WYSPY KOKOSOWE</xsl:when>
    			<xsl:when test=".='MH'">WYSPY MARSHALLA</xsl:when>
    			<xsl:when test=".='FO'">WYSPY OWCZE</xsl:when>
    			<xsl:when test=".='ST'">WYSPY ŚW. TOMASZA I KSIĄŻĘCA</xsl:when>
    			<xsl:when test=".='HU'">WĘGRY</xsl:when>
    			<xsl:when test=".='IT'">WŁOCHY</xsl:when>
    			<xsl:when test=".='ZM'">ZAMBIA</xsl:when>
    			<xsl:when test=".='CV'">ZIELONY PRZYLĄDEK</xsl:when>
    			<xsl:when test=".='ZW'">ZIMBABWE</xsl:when>
    			<xsl:when test=".='AE'">ZJEDNOCZONE EMIRATY ARABSKIE</xsl:when>
    			<xsl:when test=".='LV'">ŁOTWA</xsl:when>
    			<xsl:when test=".='SH'">ŚWIĘTA HELENA</xsl:when>
    		</xsl:choose>
    	</xsl:template>
    	<xsl:template name="Instytucja">
    		<xsl:param name="instytucja"/>
    		<xsl:value-of select="$instytucja/inst:NazwaInstytucji"/>
    		<xsl:apply-templates select="$instytucja/adr:Adres"/>
    	</xsl:template>
    	<xsl:template match="adr:Adres" name="Adres">
    		<xsl:if test="adr:Ulica!=''">
    			<xsl:for-each select="adr:Ulica[@rodzajUlicy != 'inna']">
    				<xsl:value-of select="@rodzajUlicy"/>
    				<xsl:text> </xsl:text>
    			</xsl:for-each>
    			<xsl:value-of select="adr:Ulica"/>
    			<xsl:text> </xsl:text>
    			<xsl:value-of select="adr:Budynek"/>
    			<xsl:for-each select="adr:Lokal[text() != '']">
    				<xsl:text>/</xsl:text>
    				<xsl:value-of select="."/>
    			</xsl:for-each>
    			<br/>
    			<xsl:choose>
    				<xsl:when test="not(adr:Poczta) or adr:Poczta='' or (adr:Poczta=adr:Miejscowosc)">
    					<xsl:text/>
    					<xsl:value-of select="adr:KodPocztowy"/>
    					<xsl:text> </xsl:text>
    					<xsl:value-of select="adr:Miejscowosc"/>
    				</xsl:when>
    				<xsl:otherwise>
    					<xsl:value-of select="adr:Miejscowosc"/>
    					<xsl:text>, </xsl:text>
    					<xsl:value-of select="adr:KodPocztowy"/>
    					<xsl:text> </xsl:text>
    					<xsl:value-of select="adr:Poczta"/>
    				</xsl:otherwise>
    			</xsl:choose>
    		</xsl:if>
    	</xsl:template>
    	<xsl:template match="str:Zalaczniki">
    		<br/>
    		<xsl:variable name="aktualnyCount" select="count(../wnio:ZalacznikiEx/wnio:Zalacznik[@aktualny='true'])"/>
    		<table border="1" cellspacing="0" cellpadding="4">
    			<tr>
    				<td class="tableHeader2">L.p.</td>
    				<td class="tableHeader2">Nazwa</td>
    				<td class="tableHeader2">Opis</td>
    				<td class="tableHeader2">Plik</td>
    			</tr>
    			<xsl:for-each select="str:Zalacznik">
    				<xsl:variable name="pos" select="position()"/>
    				<tr>
    					<td>
    						<center>
    							<xsl:value-of select="$pos"/>
    						</center>
    					</td>
    					<td>
    						<xsl:value-of select="../../wnio:ZalacznikiEx/wnio:Zalacznik[$pos]/wnio:RodzajNazwa"/>
    					</td>
    					<td> <xsl:value-of select="str:OpisZalacznika"/>
    					</td>
    					<td>
    						<xsl:choose>
    							<xsl:when test="@kodowanie='URI'">
    								<A>
    									<xsl:attribute name="HREF"><xsl:value-of select="str:DaneZalacznika"/></xsl:attribute>
    									<xsl:attribute name="TARGET">_blank</xsl:attribute>
    									<B>
    										<xsl:value-of select="@nazwaPliku"/>
    									</B>
    								</A>
    							</xsl:when>
    							<xsl:otherwise>
    								<xsl:value-of select="@nazwaPliku"/>
    							</xsl:otherwise>
    						</xsl:choose>
    					</td>
    				</tr>
    			</xsl:for-each>
    		</table>
    	</xsl:template>
    	<xsl:template name="RodzajPodatnika">
    		<xsl:param name="podatnik"/>
    		<table width="100%" style="border: 0px">
    			<tr>
    				<td/>
    				<td width="20">
    					<div style="foat:left; border: solid 1px black; width:13px;height: 12px">
    						<xsl:if test="$podatnik='OF' or  $podatnik='OF' or not($podatnik)">
    							<b>
    								<center>X</center>
    							</b>
    						</xsl:if>
    					</div>
    				</td>
    				<td>1. Osoba fizyczna</td>
    				<td/>
    				<td width="20">
    					<div style="foat:left; border: solid 1px black; width:13px;height: 12px">
    						<xsl:if test="$podatnik='OP'">
    							<b>
    								<center>X</center>
    							</b>
    						</xsl:if>
    					</div>
    				</td>
    				<td>2. Osoba prawna</td>
    				<td/>
    				<td width="20">
    					<div style="foat:left; border: solid 1px black; width:13px;height: 12px">
    						<xsl:if test="$podatnik='JO'">
    							<b>
    								<center>X</center>
    							</b>
    						</xsl:if>
    					</div>
    				</td>
    				<td>3. Jednostka organizacyjna, w tym spółka nieposiadająca osobowości prawnej</td>
    				<td/>
    			</tr>
    		</table>
    	</xsl:template>
    	<xsl:template name="PrzyczynaZalacznika">
    		<xsl:param name="przyczyna"/>
    		<table width="100%">
    			<tr>
    				<td/>
    				<td width="20">
    					<div style="foat:left; border: solid 1px black; width:13px;height: 12px">
    						<xsl:if test="$przyczyna='Z'">
    							<b>
    								<center>X</center>
    							</b>
    						</xsl:if>
    					</div>
    				</td>
    				<td>Zgłoszenie obowiązku podatkowego na początku roku</td>
    			</tr>
    			<tr>
    				<td/>
    				<td width="20">
    					<div style="foat:left; border: solid 1px black; width:13px;height: 12px">
    						<xsl:if test="$przyczyna='T'">
    							<b>
    								<center>X</center>
    							</b>
    						</xsl:if>
    					</div>
    				</td>
    				<td>Powstanie obowiązku podatkowego w trakcie roku podatkowego</td>
    			</tr>
    			<tr>
    				<td/>
    				<td width="20">
    					<div style="foat:left; border: solid 1px black; width:13px;height: 12px">
    						<xsl:if test="$przyczyna='W'">
    							<b>
    								<center>X</center>
    							</b>
    						</xsl:if>
    					</div>
    				</td>
    				<td>Wygaśnięcie obowiązku podatkowego w trakcie roku podatkowego</td>
    			</tr>
    		</table>
    	</xsl:template>
    	<xsl:template name="BlockLabel">
    		<xsl:param name="text"/>
    		<div style="text-align:left;">
    			<span style="font-size:7pt;font-weight:bold;margin: 3px;">
    				<xsl:value-of select="$text"/>
    			</span>
    		</div>
    	</xsl:template>
    	<xsl:template name="Jednostka">
    		<xsl:param name="text"/>
    		<xsl:choose>
    			<xsl:when test="$text='m2'">m<sup>2</sup>
    			</xsl:when>
    			<xsl:otherwise>
    				<xsl:value-of select="$text"/>
    			</xsl:otherwise>
    		</xsl:choose>
    	</xsl:template>
    	<xsl:template name="Number">
    		<xsl:param name="number"/>
    		<xsl:if test="$number != ''">
    			<xsl:if test="string(number($number)) = 'NaN'">
    				<span style="color:red">Błędna liczba</span>
    			</xsl:if>
    			<xsl:if test="string(number($number)) != 'NaN'">
    				<xsl:value-of select="format-number($number, '###.##0,00', 'Polish')"/>
    			</xsl:if>
    		</xsl:if>
    	</xsl:template>
    	<xsl:template name="Number3">
    		<xsl:param name="number"/>
    		<xsl:if test="$number != ''">
    			<xsl:if test="string(number($number)) = 'NaN'">
    				<span style="color:red">Błędna liczba</span>
    			</xsl:if>
    			<xsl:if test="string(number($number)) != 'NaN'">
    				<xsl:value-of select="format-number($number, '###.##0,000', 'Polish')"/>
    			</xsl:if>
    		</xsl:if>
    	</xsl:template>
    	<xsl:template name="Number4">
    		<xsl:param name="number"/>
    		<xsl:if test="$number != ''">
    			<xsl:if test="string(number($number)) = 'NaN'">
    				<span style="color:red">Błędna liczba</span>
    			</xsl:if>
    			<xsl:if test="string(number($number)) != 'NaN'">
    				<xsl:value-of select="format-number($number, '###.##0,0000', 'Polish')"/>
    			</xsl:if>
    		</xsl:if>
    	</xsl:template>
    	<xsl:template name="Number0">
    		<xsl:param name="number"/>
    		<xsl:if test="$number != ''">
    			<xsl:if test="string(number($number)) = 'NaN'">
    				<span style="color:red">Błędna liczba</span>
    			</xsl:if>
    			<xsl:if test="string(number($number)) != 'NaN'">
    				<xsl:value-of select="format-number($number, '###.##0', 'Polish')"/>
    			</xsl:if>
    		</xsl:if>
    	</xsl:template>
    </xsl:stylesheet>