<?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/1557/" 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: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"/><br/>
										<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:Budynek != ''">
										/<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> 
										<xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:NipPesel"/>
									</td>
								</tr>
								<tr>
									<td> 
										<span class="male"><b>NIP/Pesel</b></span>
									</td>
								</tr>
								<tr>
									<td style="padding-top:8px;"> 
										<xsl:value-of select="substring(wnio:TrescDokumentu/wnio:Wartosc/wnio:DataUrodzenia,9,2)"/>-<xsl:value-of select="substring(wnio:TrescDokumentu/wnio:Wartosc/wnio:DataUrodzenia,6,2)"/>-<xsl:value-of select="substring(wnio:TrescDokumentu/wnio:Wartosc/wnio:DataUrodzenia,1,4)"/>
									</td>
								</tr>
								<tr>
									<td> 
										<span class="male"><b>Data urodzenia</b></span>
									</td>
								</tr>
								<tr>
									<td style="padding-top:8px;"> 
										<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 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>
		<br/>
		<br/><br/>
		<div>
			<br/><br/>
			Na podstawie  <em>art. 306a - 306n ustawy z dnia 29 sierpnia 1997 r. - Ordynacja podatkowa (Dz.U. z 2012 poz. 749 ze zm.)</em>
			<br/>
			<br/>
			<b>Proszę o wydanie zaświadczenia:</b>
			<xsl:if test="wnio:TrescDokumentu/wnio:Wartosc/wnio:WyborZaswiadczenia = 1">--wybierz--</xsl:if>
			<xsl:if test="wnio:TrescDokumentu/wnio:Wartosc/wnio:WyborZaswiadczenia = 2">o niezaleganiu w podatkach lub stwierdzające stan zaległości</xsl:if>
			<xsl:if test="wnio:TrescDokumentu/wnio:Wartosc/wnio:WyborZaswiadczenia = 3">inne</xsl:if>
			<br/>
			<xsl:if test="wnio:TrescDokumentu/wnio:Wartosc/wnio:WyborZaswiadczenia = 3">
				<xsl:value-of select="/wnio:Dokument/wnio:TrescDokumentu/wnio:Wartosc/wnio:ID2/wnio:TrescDokumentu/wnio:Wartosc/wnio:InneZaswiadczenie"/><br/><br/>
			</xsl:if>
			<b>w celu</b><br/>
			<xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:CelZaswiadczenia"/>
		</div>
		<br/><br/>
		<div>
			<b>Opłata skarbowa:</b> <xsl:if test="normalize-space(wnio:TrescDokumentu/wnio:Wartosc/wnio:Oplata) = normalize-space(' 1 ')">uiściłem/am opłatę</xsl:if><xsl:if test="normalize-space(wnio:TrescDokumentu/wnio:Wartosc/wnio:Oplata) = 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:Oplata = '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)"/>
								</td>
							</tr>
						</tbody>
					</table>
				</xsl:if>
			</xsl:for-each>
			<xsl:for-each select="wnio:TrescDokumentu/wnio:Wartosc/wnio:ID0">
				<xsl:if test="../wnio:Oplata = 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>
			<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ę przesłać na adres</xsl:if>
			<br/>
			<xsl:for-each select="wnio:TrescDokumentu/wnio:Wartosc/wnio:SekcjaAdresOdbioru">
				<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>
			<xsl:for-each select="wnio:TrescDokumentu/wnio:Wartosc/str:Zalaczniki/str:Zalacznik">
				<xsl:if test="../../wnio:Oplata = '1'">
					<strong>Załącznik</strong>
					<br/>
					<span style="font-size: small;">Dowód uiszczenia opłaty skarbowej</span>
					<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>
		</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>