<?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:ds="http://www.w3.org/2000/09/xmldsig#" 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:str="http://crd.gov.pl/xml/schematy/struktura/2009/11/16/" xmlns:wnio="http://crd.gov.pl/wzor/2014/03/06/1553/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" version="1.0">
<xsl:template match="/">
<xsl:for-each select="wnio:Dokument">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<style>
		.male {font-size:xx-small;}
	</style>
</head>
<body>
	<div style="width:700px;">
		<span style="position:relative;left:80%;">Wrocław, dnia <xsl:value-of select="substring(wnio:TrescDokumentu/wnio:Wartosc/wnio:ID11,9,2)"/>-<xsl:value-of select="substring(wnio:TrescDokumentu/wnio:Wartosc/wnio:ID11,6,2)"/>-<xsl:value-of select="substring(wnio:TrescDokumentu/wnio:Wartosc/wnio:ID11,1,4)"/> r.
		</span>
		<table style="width: 100%">
			<tbody>
				<tr>
					<td style="padding-right:150px;">
						<table>
							<tbody>
								<tr>
									<td> 
										<xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:Nazwisko"/>, <xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:Imie"/>
									</td>
								</tr>
								<tr>
									<td style="padding-bottom:8px;"> 
										<span class="male"><b>Nazwisko i Imię</b></span>
									</td>
								</tr>
								<tr>
									<td> 
										<xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:Miejscowosc"/>, <xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:KodPocztowy"/>
									</td>
								</tr>
								<tr>
									<td> 
										<xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:Ulica"/>  <xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:NumerBudynku"/> <xsl:if test="wnio:TrescDokumentu/wnio:Wartosc/wnio:NumerLokalu != ''">
										/<xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:NumerLokalu"/>
										</xsl:if>
									</td>
								</tr>
								<tr>
									<td> 
										<span class="male"><b>Adres zamieszkania</b></span>
									</td>
								</tr>
								<tr>
									<td style="padding-bottom:8px;"> 
										<xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:Pesel"/>
									</td>
								</tr>
								<tr>
									<td> 
										<span class="male"><b>Pesel</b></span>
									</td>
								</tr>
								<tr>
									<td> 
										<xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:DataUrodzenia"/>
									</td>
								</tr>
								<tr>
									<td> 
										<span class="male"><b>Data urodzenia</b></span>
									</td>
								</tr>
								<xsl:if test="wnio:TrescDokumentu/wnio:Wartosc/wnio:KodPocztowy != ''">
									<tr>
										<td> 
											<xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:ImieOjca"/>, <xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:ImieMatki"/>
										</td>
									</tr>
									<tr>
										<td> 
											<span class="male"><b>Imiona rodziców</b></span>
										</td>
									</tr>
								</xsl:if>
								<xsl:if test="wnio:TrescDokumentu/wnio:Wartosc/wnio:Telefon != ''">
									<tr>
										<td> 
											<xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:Telefon"/>
										</td>
									</tr>
									<tr>
										<td> 
											<span class="male"><b>Telefon kontaktowy</b></span>
										</td>
									</tr>
								</xsl:if>
							</tbody>
						</table>
					</td>
					<td>
						<table>
							<tbody>
								<tr>
									<td>
										<b>URZĄD MIEJSKI WROCŁAWIA</b><br/>
										WYDZIAŁ PODATKÓW I OPŁAT<br/><br/><br/>
										ul. Kotlarska 41<br/>
										50-151 Wrocław
									</td>
								</tr>
							</tbody>
						</table>
					</td>
				</tr>
			</tbody>
		</table>
		<br/>
		<br/>
		<center><h3>WNIOSEK</h3></center>
		<div>
			Na podstawie art . 217 ustawy z dnia 14 czerwca Kodeksu postępowania administracyjnego ( j.t. Dz. z 2013 r., poz. 267) proszę o wydanie zaświadczenia o:
			<xsl:if test="wnio:TrescDokumentu/wnio:Wartosc/wnio:TypZaswiadczenia = 1">--wybierz--</xsl:if>
			<xsl:if test="wnio:TrescDokumentu/wnio:Wartosc/wnio:TypZaswiadczenia = 2">powierzchni użytków rolnych w hektarach fizycznych.</xsl:if>
			<xsl:if test="wnio:TrescDokumentu/wnio:Wartosc/wnio:TypZaswiadczenia = 3">powierzchni użytków rolnych w hektarach fizycznych i przeliczeniowych.</xsl:if>
			<xsl:if test="wnio:TrescDokumentu/wnio:Wartosc/wnio:TypZaswiadczenia = 4">powierzchniach zgłoszonych do opodatkowania podatkiem od nieruchomości.</xsl:if>
			<xsl:if test="wnio:TrescDokumentu/wnio:Wartosc/wnio:TypZaswiadczenia = 5">nieposiadaniu użytków rolnych / gospodarstwa rolnego na terenie Gminy Wrocław.</xsl:if>
			<xsl:if test="wnio:TrescDokumentu/wnio:Wartosc/wnio:TypZaswiadczenia = 6">dochodzie otrzymywanym z pracy w indywidualnym gospodarstwie rolnym.</xsl:if>
			<xsl:if test="wnio:TrescDokumentu/wnio:Wartosc/wnio:TypZaswiadczenia = 7">spłacie ciężaru realnego na rzecz Skarbu Państwa figurującego w księdze wieczystej.<br/>
				<xsl:for-each select="wnio:TrescDokumentu/wnio:Wartosc/wnio:ID13">
				<xsl:if test="../wnio:TypZaswiadczenia = 7"> Nr księgi wieczystej
				<xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:NrKsiegi"/> w ilości 
				<xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:IloscZyta"/>
				q żyta.
				</xsl:if>
				</xsl:for-each>
			</xsl:if>
			<xsl:if test="wnio:TrescDokumentu/wnio:Wartosc/wnio:TypZaswiadczenia = 8">okresie płacenia składki na Fundusz Emerytalny Rolników / Fundusz Ubezpieczenia  Społecznego Rolników </xsl:if>
			<xsl:if test="wnio:TrescDokumentu/wnio:Wartosc/wnio:TypZaswiadczenia = 9">okresie posiadania działów specjalnych produkcji rolnej (dotyczy okresu do 1984.12.31)</xsl:if>
			<xsl:if test="wnio:TrescDokumentu/wnio:Wartosc/wnio:TypZaswiadczenia = 10">inne</xsl:if>
			<xsl:if test="wnio:TrescDokumentu/wnio:Wartosc/wnio:TypZaswiadczenia = 10"><br/><xsl:value-of select="/wnio:Dokument/wnio:TrescDokumentu/wnio:Wartosc/wnio:ID14/wnio:TrescDokumentu/wnio:Wartosc/wnio:InneZaswiadczenie"/></xsl:if>
		</div>
		<br/>
		<div>
			<b>Zaświadczenie będzie przedstawione w:</b><br/>
			<xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:PrzedstawioneW"/>
			<br/><br/>
			<b>w celu:</b> <br/>
			<xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:CelZaswiadczenia"/>
		</div>
		<br/>
		<div>
			<b>Opłata skarbowa:</b>
			<xsl:if test="normalize-space(wnio:TrescDokumentu/wnio:Wartosc/wnio:OplataSkarbowa) = normalize-space(' 1 ')">
				uiściłem/am opłatę
			</xsl:if>
			<xsl:if test="normalize-space(wnio:TrescDokumentu/wnio:Wartosc/wnio:OplataSkarbowa) = normalize-space(' 2 ')">
				jestem zwolniony/a z opłaty skarbowej
			</xsl:if>
			<br/>
			<xsl:if test="normalize-space(wnio:TrescDokumentu/wnio:Wartosc/wnio:OplataSkarbowa) = normalize-space(' 1 ')">
				<xsl:for-each select="wnio:TrescDokumentu/wnio:Wartosc/wnio:ID33">
				<xsl:if test="../wnio:OplataSkarbowa = '1'">
				<table>
					<tbody>
						<tr>
							<td>
								Kwota opłaty:
							</td>
							<td>
								<xsl:if test="true()">
									<xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:KwotaOplaty"/>
								</xsl:if>
								zł
							</td>
						</tr>
						<tr>
							<td>
								Data wykonania opłaty:
							</td>
							<td>
								<xsl:if test="true()">
									<xsl:value-of select="substring(wnio:TrescDokumentu/wnio:Wartosc/wnio:DataOplaty,9,2)"/>-<xsl:value-of select="substring(wnio:TrescDokumentu/wnio:Wartosc/wnio:DataOplaty,6,2)"/>-<xsl:value-of select="substring(wnio:TrescDokumentu/wnio:Wartosc/wnio:DataOplaty,1,4)"/> r.
								</xsl:if>
							</td>
						</tr>
					</tbody>
				</table>
				</xsl:if>
				</xsl:for-each>
			</xsl:if>
			<xsl:for-each select="wnio:TrescDokumentu/wnio:Wartosc/wnio:PodstawaZwolnienia">
			<xsl:if test="../wnio:OplataSkarbowa = 2">
				<table>
					<tbody>
						<tr>
							<td><b>Podstawa prawna zwolnienia z opłaty skarbowej:</b></td>
						</tr>
						<tr>
							<td>
								<xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:ID1"/>
							</td>
						</tr>
					</tbody>
				</table>
			</xsl:if>
		</xsl:for-each>
		</div>
		<br/>
		<div>
			Forma odbioru zaświadczenia: 
			<xsl:if test="wnio:TrescDokumentu/wnio:Wartosc/wnio:FormaOdbioru = 1">--wybierz--</xsl:if>
			<xsl:if test="wnio:TrescDokumentu/wnio:Wartosc/wnio:FormaOdbioru = 2">odbiór osobisty</xsl:if>
			<xsl:if test="wnio:TrescDokumentu/wnio:Wartosc/wnio:FormaOdbioru = 3">odbiór przez pełnomocnika/osobę upoważnioną</xsl:if>
			<xsl:if test="wnio:TrescDokumentu/wnio:Wartosc/wnio:FormaOdbioru = 4">proszę przekazać na adres</xsl:if>
			<br/>
			<xsl:for-each select="wnio:TrescDokumentu/wnio:Wartosc/wnio:ID21">
				<xsl:if test="../wnio:FormaOdbioru = &#34;4&#34;">
					<table>
						<tbody>
							<tr>
								<td>Miejscowość:</td>
								<td>
									<xsl:if test="true()">
									<xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:MiejscowoscOdbioru"/>
									</xsl:if>
								</td>
							</tr>
							<tr>
								<td>Ulica</td>
								<td>
									<xsl:if test="true()">
									<xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:UlicaObioru"/>
									</xsl:if>
								</td>
							</tr>
							<tr>
								<td>Nr budynku:</td>
								<td>
									<xsl:if test="true()">
									<xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:BudynekObioru"/>
									</xsl:if>
								</td>
							</tr>
							<tr>
								<td>Nr lokalu:</td>
								<td>
									<xsl:if test="true()">
									<xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:LokalObioru"/>
									</xsl:if>
								</td>
							</tr>
							<tr>
								<td>Kod pocztowy:</td>
								<td>
									<xsl:if test="true()">
									<xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:KodPocztowyOdbioru"/>
									</xsl:if>
								</td>
							</tr>
						</tbody>
					</table>
				</xsl:if>
			</xsl:for-each>
		</div>
		<xsl:for-each select="wnio:TrescDokumentu/wnio:Wartosc/str:Zalaczniki/str:Zalacznik">
			<xsl:if test="../../wnio:OplataSkarbowa = '1'">
				<p> <span style="font-size: small;">Załączniki:</span>
				</p>
				<p>
				<span style="font-size: small;">1. Dowód uiszczenia opłaty skarbowej</span>
				</p>
				<table>
					<tbody>
						<tr>
							<td>
								<span style="font-size: small;">Nazwa pliku załącznika:</span>
							</td>
							<td> 
								<xsl:value-of select="str:DaneZalacznika/../@nazwaPliku"/>
							</td>
						</tr>
						<tr>
							<td>
								<span style="font-size: small;">Opis załącznika:</span>
							</td>
							<td>
								<xsl:if test="true()">
								<xsl:value-of select="str:OpisZalacznika"/>
								</xsl:if>
							</td>
						</tr>
					</tbody>
				</table>
			</xsl:if>
		</xsl:for-each>
		<div align="right" style="text-align: right;font-size: 10px;font-family: Verdana;line-height: 20px;">
		  <table style="float: right;">
			<tr>
			  <td style="width: 340px;">
				<p align="center" style="text-align: center;font-size: 10px;font-family: Verdana;line-height: 20px;">
				  <xsl:choose>
					<xsl:when test="string-length(//wnio:Dokument/ds:Signature/ds:SignatureValue) &gt; 0">
					  <xsl:text>Dokument został podpisany, aby go zweryfikować należy użyć oprogramowania do weryfikacji podpisu</xsl:text>
					  <xsl:choose>
						<xsl:when test="count(//wnio:Dokument/ds:Signature/ds:Object/descendant::*[local-name() = 'SigningTime']) &gt; 1">
						  <br/>
						  <xsl:text>Daty złożenia podpisu: </xsl:text>
						  <xsl:for-each select="//wnio:Dokument/ds:Signature/ds:Object/descendant::*[local-name() = 'SigningTime']">
							<xsl:value-of select="."/>
						  </xsl:for-each>
						</xsl:when>
						<xsl:when test="count(//wnio:Dokument/ds:Signature/ds:Object/descendant::*[local-name() = 'SigningTime']) = 1">
						  <br/>
						  <xsl:text>Data złożenia podpisu: </xsl:text>
						  <xsl:for-each select="//wnio:Dokument/ds:Signature/ds:Object/descendant::*[local-name() = 'SigningTime']">
							<xsl:value-of select="."/>
						  </xsl:for-each>
						</xsl:when>
						<xsl:when test="0 &gt;= count(//wnio:Dokument/ds:Signature/ds:Object/descendant::*[local-name() = 'SigningTime'])">
						</xsl:when>
					  </xsl:choose>
					</xsl:when>
					<xsl:otherwise>
					  <xsl:text>Dokument nie zawiera podpisu</xsl:text>
					</xsl:otherwise>
				  </xsl:choose>
				  <br/>
				  <span style="font-size: 7pt;font-weight: bold;">
					Podpis elektroniczny
				  </span>
				</p>
			  </td>
			</tr>
		  </table>
		</div>
		<div style="clear: both;"/>
	</div>
</body>
</html>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>