<?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/1550/" 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:750px;">
	<center><span><b><h2>OSOBA FIZYCZNA</h2></b></span></center>
	<br/>
	<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>
	<br/>
	<br/>
	<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:Budynek"/>/<xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:Lokal"/>
								</td>
							</tr>
							<tr>
								<td style="padding-bottom:8px;"> 
									<span class="male"><b>Adres zamieszkania</b></span>
								</td>
							</tr>
							<tr>
								<td> 
									<span class="male"><b>PESEL</b></span>  <xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:Pesel"/>
								</td>
							</tr>
							<xsl:if test="wnio:TrescDokumentu/wnio:Wartosc/wnio:NIP != ''">
								<tr>
									<td> 
										<span class="male"><b>NIP</b></span>  <xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:NIP"/>
									</td>
								</tr>
							</xsl:if>
							<tr>
								<td> 
									<span class="male"><b>Data urodzenia</b></span>  <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> 
									<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/>
	<center><span><b><h2>WNIOSEK</h2></b></span></center>
	<br/>
	<div>
		Na podstawie art. 217 ustawy z dnia 14 czerwca Kodeks postępowania administracyjnego ( j.t. Dz. z 2013 r., poz. 267)
		<br/>
		<br/>
		<br/>
		<b>Proszę o wydanie zaświadczenia o stanie majątkowym w celu:<br/></b>
		<xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:CelZaswiadczenia"/>
		<br/>
		<br/>
		<br/>
	</div>
	<table>
		<tbody>
			<tr>
				<td><b>Opłata skarbowa:</b></td>
				<td>
					<xsl:choose>
						<xsl:when test="normalize-space(wnio:TrescDokumentu/wnio:Wartosc/wnio:DokonanaOplata) = normalize-space(' 1 ')">
							☒
						</xsl:when>
						<xsl:otherwise>
							☐
						</xsl:otherwise>
					</xsl:choose>
					uiściłem opłatę<br/>
					<xsl:choose>
						<xsl:when test="normalize-space(wnio:TrescDokumentu/wnio:Wartosc/wnio:DokonanaOplata) = normalize-space(' 2 ')">
							☒
						</xsl:when>
						<xsl:otherwise>
							☐
						</xsl:otherwise>
					</xsl:choose>
					jestem zwolniony/a z opłaty skarbowej
				</td>
			</tr>
		</tbody>
	</table>
	<br/>
	<xsl:for-each select="wnio:TrescDokumentu/wnio:Wartosc/wnio:ID0">
		<xsl:if test="../wnio:DokonanaOplata = 1">
			<table>
				<tbody>
					<tr>
						<td><b>Kwota opłaty:</b></td>
						<td>
							<xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:KwotaOplaty"/>zł
						</td>
					</tr>
					<tr>
						<td><b>Data wykonania opłaty:</b></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:PodstawaZwolnienia">
		<xsl:if test="../wnio:DokonanaOplata = 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:ID2"/>
						</td>
					</tr>
				</tbody>
			</table>
		</xsl:if>
	</xsl:for-each>
	<br/>
	<br/>
	<div>
		<b>Forma odbioru zaświadczenia:</b><br/>
		<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>
	</div>
	<xsl:for-each select="wnio:TrescDokumentu/wnio:Wartosc/wnio:SekcjaAdresOdbioru">
		<xsl:if test="../wnio:WyborOdbioru = 4">
			<xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:MiejscowoscOdbioru"/>, <xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:UlicaOdbioru"/>  <xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:BudynekWysylka"/>/<xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:LokalWysylka"/>, <xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:KodPocztowyOdbioru"/>
		</xsl:if>
	</xsl:for-each>
	<xsl:for-each select="wnio:TrescDokumentu/wnio:Wartosc/str:Zalaczniki/str:Zalacznik">
		<xsl:if test="../../wnio:DokonanaOplata = 1">
			<br/>
			<b>Załącznik:</b><br/>
			1. Dowód uiszczenia opłaty skarbowej<br/>
			<table style="margin-left:10px;">
				<tbody>
					<tr>
						<td><b>Nazwa pliku:</b></td>
						<td>
							<xsl:value-of select="/wnio:Dokument/wnio:TrescDokumentu/wnio:Wartosc/str:Zalaczniki/str:Zalacznik/@nazwaPliku"/>
						</td>
					</tr>
					<tr>
						<td><b>Opis załącznika:</b></td>
						<td>
							<xsl:value-of select="str:OpisZalacznika"/>
						</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>