<?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/13/1555/" 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:DataUtworzeniaWniosku,9,2)"/>-<xsl:value-of select="substring(wnio:TrescDokumentu/wnio:Wartosc/wnio:DataUtworzeniaWniosku,6,2)"/>-<xsl:value-of select="substring(wnio:TrescDokumentu/wnio:Wartosc/wnio:DataUtworzeniaWniosku,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:ID0"/>
									</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:Budynek"/><xsl:if test="wnio:TrescDokumentu/wnio:Wartosc/wnio:Lokal != ''">
										/<xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:Lokal"/>
										</xsl:if>
									</td>
								</tr>
								<tr>
									<td> 
										<span class="male"><b>Adres zamieszkania</b></span>
									</td>
								</tr>
								<tr>
									<td style="padding-top:8px;"> 
										<xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:Pesel"/>
									</td>
								</tr>
								<tr>
									<td> 
										<span class="male"><b>Pesel</b></span>
									</td>
								</tr>
								<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/><br/>
		<h3><center>WNIOSEK</center></h3>
		<center><b>o wydanie zaświadczenia w celu wykreślenia hipoteki <xsl:variable name="ComboID250">--wybierz--</xsl:variable>
															<xsl:if test="wnio:TrescDokumentu/wnio:Wartosc/wnio:TypHipoteki = $ComboID250">--wybierz--</xsl:if>
															<xsl:variable name="ComboID251">umownej</xsl:variable>
															<xsl:if test="wnio:TrescDokumentu/wnio:Wartosc/wnio:TypHipoteki = $ComboID251">umownej</xsl:if>
															<xsl:variable name="ComboID252">kaucyjnej</xsl:variable>
															<xsl:if test="wnio:TrescDokumentu/wnio:Wartosc/wnio:TypHipoteki = $ComboID252">kaucyjnej</xsl:if>
															z tytułu wykupu nieruchomości 
		</b></center>
		<br/>
		<br/>
		<div style="text-align:justify;">
			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 spłacie całości zadłużenia z tytułu wykupu od Gminy Wrocław nieruchomości o numerze księgi wieczystej 
			<xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:NrKsiegiWieczystej"/>
			 położonej we Wrocławiu przy ul. <xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:UlicaNieruchomosci"/>
			, nabytej aktem notarialnym nr <xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:AktNotarialny"/> z dnia 
			<xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:DataPodpisaniaAktu"/> w celu wykreślenia w księdze wieczystej hipoteki
			<xsl:variable name="ComboID250">--wybierz--</xsl:variable>
			<xsl:if test="wnio:TrescDokumentu/wnio:Wartosc/wnio:TypHipoteki = $ComboID250">--wybierz--</xsl:if>
			<xsl:variable name="ComboID251">umownej</xsl:variable>
			<xsl:if test="wnio:TrescDokumentu/wnio:Wartosc/wnio:TypHipoteki = $ComboID251">umownej</xsl:if>
			<xsl:variable name="ComboID252">kaucyjnej</xsl:variable>
			<xsl:if test="wnio:TrescDokumentu/wnio:Wartosc/wnio:TypHipoteki = $ComboID252">kaucyjnej</xsl:if>.
		</div>
		<br/>
		Opłata skarbowa:
			<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:for-each select="wnio:TrescDokumentu/wnio:Wartosc/wnio:OplataSekcja">
				<xsl:if test="../wnio:OplataSkarbowa = '1'">
					<table>
						<tbody>
							<tr>
								<td>
									Kwota opłaty:
								</td>
								<td>
									<xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:KwotaOplaty"/>zł
								</td>
							</tr>
							<tr>
								<td>
									Data wykonania opłaty:
								</td>
								<td>
									<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.
								</td>
							</tr>
						</tbody>
					</table>
				</xsl:if>
			</xsl:for-each>
			<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>
		<br/>
		<div>
			<b>Forma odbioru zaświadczenia:</b>  <xsl:if test="wnio:TrescDokumentu/wnio:Wartosc/wnio:WyborOdbioru = 1">--wybierz--</xsl:if>
										<xsl:if test="wnio:TrescDokumentu/wnio:Wartosc/wnio:WyborOdbioru = 2">odbiór osobisty</xsl:if>
										<xsl:if test="wnio:TrescDokumentu/wnio:Wartosc/wnio:WyborOdbioru = 3">odbiór przez pełnomocnika/osobę upoważnioną</xsl:if>
										<xsl:if test="wnio:TrescDokumentu/wnio:Wartosc/wnio:WyborOdbioru = 4">proszę przekazać na adres</xsl:if>
			<xsl:for-each select="wnio:TrescDokumentu/wnio:Wartosc/wnio:SekcjaWyborOdbioru">
				<xsl:if test="../wnio:WyborOdbioru = 4">
					<table>
						<tbody>
							<tr>
								<td>
									Miejscowość:
								</td>
								<td>
									<xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:MiejscowoscOdbioru"/>
								</td>
							</tr>
							<tr>
								<td>
									Ulica:
								</td>
								<td>
									<xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:UlicaOdbioru"/>
								</td>
							</tr>
							<tr>
								<td>
									Nr budynku:
								</td>
								<td>
									<xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:BudynekWysylka"/>
								</td>
							</tr>
							<tr>
								<td>
									Nr lokalu:
								</td>
								<td>
									<xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:LokalWysylka"/>
								</td>
							</tr>
							<tr>
								<td>
									Kod pocztowy:
								</td>
								<td>
									<xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:KodPocztowyOdbioru"/>
								</td>
							</tr>
						</tbody>
					</table>
				</xsl:if>
			</xsl:for-each>
		</div>
		<br/>
		<br/>
		<div>
			<strong>Załączniki:</strong><br/>
			<xsl:for-each select="wnio:TrescDokumentu/wnio:Wartosc/wnio:ZalBank/str:Zalaczniki/str:Zalacznik">
				<xsl:if test="true()">
					1. Zaświadczenie z banku (jeżeli spłata całości nastąpiła przed rokiem 1992)
					<table>
						<tbody>
							<tr>
								<td>Nazwa pliku:</td>
								<td>
									<xsl:value-of select="str:DaneZalacznika/../@nazwaPliku"/>
								</td>
							</tr>
							<tr>
								<td>Opis załącznika:</td>
								<td>
									<xsl:value-of select="str:OpisZalacznika"/>
								</td>
							</tr>
						</tbody>
					</table>
				</xsl:if>
			</xsl:for-each>
			<br/>
			<xsl:for-each select="wnio:TrescDokumentu/wnio:Wartosc/wnio:ZalOdpisKW/str:Zalaczniki/str:Zalacznik">
				<xsl:if test="true()">
					2. Aktualny odpis z księgi wieczystej
					<table>
						<tbody>
							<tr>
								<td>Nazwa pliku:</td>
								<td>
									<xsl:value-of select="str:DaneZalacznika/../@nazwaPliku"/>
								</td>
							</tr>
							<tr>
								<td>Opis załącznika:</td>
								<td>
									<xsl:value-of select="str:OpisZalacznika"/>
								</td>
							</tr>
						</tbody>
					</table>
				</xsl:if>
			</xsl:for-each>
			<br/>
			<xsl:for-each select="wnio:TrescDokumentu/wnio:Wartosc/wnio:ZalAktNot/str:Zalaczniki/str:Zalacznik">
				<xsl:if test="true()">
					3. Akt notarialny nabycia nieruchomości od Gminy
					<table>
						<tbody>
							<tr>
								<td>Nazwa pliku:</td>
								<td>
									<xsl:value-of select="str:DaneZalacznika/../@nazwaPliku"/>
								</td>
							</tr>
							<tr>
								<td>Opis załącznika:</td>
								<td>
									<xsl:value-of select="str:OpisZalacznika"/>
								</td>
							</tr>
						</tbody>
					</table>
				</xsl:if>
			</xsl:for-each>
			<br/>
			<xsl:if test="/wnio:Dokument/wnio:TrescDokumentu/wnio:Wartosc/wnio:OplataSkarbowa = '1'">
				<xsl:for-each select="wnio:TrescDokumentu/wnio:Wartosc/wnio:ZalOplata/str:Zalaczniki/str:Zalacznik">
					<xsl:if test="true()">
						4. Potwierdzenie uiszczenia opłaty skarbowej
						<table>
							<tbody>
								<tr>
									<td>Nazwa pliku:</td>
									<td>
										<xsl:value-of select="str:DaneZalacznika/../@nazwaPliku"/>
									</td>
								</tr>
								<tr>
									<td>Opis załącznika:</td>
									<td>
										<xsl:value-of select="str:OpisZalacznika"/>
									</td>
								</tr>
							</tbody>
						</table>
					</xsl:if>
				</xsl:for-each>
			</xsl:if>
		</div>
		<br/>
		<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>