<?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/1556/" 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:DataZlozeniaWniosku,9,2)"/>-<xsl:value-of select="substring(wnio:TrescDokumentu/wnio:Wartosc/wnio:DataZlozeniaWniosku,6,2)"/>-<xsl:value-of select="substring(wnio:TrescDokumentu/wnio:Wartosc/wnio:DataZlozeniaWniosku,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:PelnaNazwaSpolki"/>
									</td>
								</tr>
								<tr>
									<td style="padding-bottom:8px;"> 
										<span class="male"><b>Pełna nazwa spółki</b></span>
									</td>
								</tr>
								<tr>
									<td> 
										<xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:NipSpolki"/>
									</td>
								</tr>
								<tr>
									<td> 
										<span class="male"><b>NIP</b></span>
									</td>
								</tr>
								<tr>
									<td> 
										<xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:KRS"/>
									</td>
								</tr>
								<tr>
									<td> 
										<span class="male"><b>KRS</b></span>
									</td>
								</tr>
								<tr>
									<td style="padding-top:8px;"> 
										<xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:SiedzibaSpolki"/>
									</td>
								</tr>
								<tr>
									<td> 
										<span class="male"><b>Siedziba</b></span>
									</td>
								</tr>
								<tr>
									<td style="padding-top:8px;"> 
										<xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:KodPocztowySpolki"/>
									</td>
								</tr>
								<tr>
									<td> 
										<span class="male"><b>Kod pocztowy</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>
			<p>
				Na podstawie  <em>art. 306a –306 n ustawy z dnia 29 sierpnia 1997 r.- Ordynacja podatkowa (Dz.U. z 2012 poz. 749 ze zm.)</em>
			</p>
			<strong>
				Proszę o wydanie zaświadczenia o: 
			</strong> <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 (jakie?)</xsl:if>	
			<xsl:for-each select="wnio:TrescDokumentu/wnio:Wartosc/wnio:SekcjaInneZaswiadczenie">
				<xsl:if test="../wnio:WyborZaswiadczenia = 3">
					<br/><xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:InneZaswiadczenie"/>
				</xsl:if>
			</xsl:for-each>
			<br/><br/>
			<b>w celu</b>:<br/>
			<xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:CelZaswiadczenia"/>
		</div>
		<br/>
		<br/>
		<div>
			<table>
				<tbody>
					<tr>
						<td>
							<b>Opłata skarbowa:</b>
						</td>
						<td>
							<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>
						</td>
					</tr>
				</tbody>
			</table>
			<xsl:for-each select="wnio:TrescDokumentu/wnio:Wartosc/wnio:ID3">
				<xsl:if test="../wnio:Oplata = '1'">
					<table>
						<tbody>
							<tr>
								<td>
									Kwota opłaty:
								</td>
								<td>
									<xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:ID1"/>zł
								</td>
							</tr>
							<tr>
								<td>
									Data wykonania opłaty:
								</td>
								<td>
									<xsl:value-of select="substring(wnio:TrescDokumentu/wnio:Wartosc/wnio:ID2,9,2)"/>-<xsl:value-of select="substring(wnio:TrescDokumentu/wnio:Wartosc/wnio:ID2,6,2)"/>-<xsl:value-of select="substring(wnio:TrescDokumentu/wnio:Wartosc/wnio:ID2,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: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">--wybór--</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>
			<xsl:for-each select="wnio:TrescDokumentu/wnio:Wartosc/wnio:SekcjaAdresDostarczenia">
				<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:UlicaObioru"/>
								</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/>
			1. Aktualny odpis z Krajowego Rejestru Sądowego
			<br/>
			<xsl:for-each select="wnio:TrescDokumentu/wnio:Wartosc/wnio:ZalOdpis/str:Zalaczniki/str:Zalacznik">
				<xsl:if test="true()">  
					<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:ZalOplata/str:Zalaczniki/str:Zalacznik">
				<xsl:if test="/wnio:Dokument/wnio:TrescDokumentu/wnio:Wartosc/wnio:Oplata = '1'">
					2. Dowód 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>
		</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>