815

ID815
Data2012-03-30
Symbol2012/03/30/815
InstytucjaUrząd Miasta Krakowa
NazwaWniosek o udzielenie pozwolenia na przeprowadzenie zbiórki publicznej
Czy Aktualny1

Ustawy (1)

  • URI://Dziennik_Ustaw/2011/206/1216/27/2
  • Par. 27 ust. 2 rozporządzenia Prezesa Rady Ministrów z dnia 14 września 2011r. w sprawie sporządzania pism w postaci dokumentów elektronicznych, doręczania dokumentów elektronicznych oraz udostępniania formularzy, wzorów i kopii dokumentów elektronic...

    Pliki

    Styl

    <?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:meta="http://crd.gov.pl/xml/schematy/meta/2009/03/06/" xmlns:str="http://crd.gov.pl/xml/schematy/struktura/2009/03/06/" xmlns:wnio="http://crd.gov.pl/wzor/2012/03/30/815/" version="1.0">
    	<xsl:output xmlns:ds="http://www.w3.org/2000/09/xmldsig#" encoding="UTF-8" indent="yes" method="html" version="4.0"/>
    <xsl:decimal-format xmlns:ds="http://www.w3.org/2000/09/xmldsig#" grouping-separator="." decimal-separator="," name="Polish"/>
    <xsl:template xmlns:ds="http://www.w3.org/2000/09/xmldsig#" match="/">
    <html>
    <head>
    <title>
    <xsl:value-of select="wnio:Dokument/wnio:Wniosek/wnio:Naglowek/wnio:Nazwa"/>
    </title>
    <style type="text/css"> body { font-family: Arial; font-size: 10pt; color: #000000; text-align: left}</style>
    <style type="text/css"> .gridTable {; border-width: 1px; border-style: solid; border-collapse: collapse; font-size: 8pt; border-color: black}</style>
    <style type="text/css"> td { font-family: Arial; font-size: 10pt; color: #000000; text-align: left}</style>
    <style type="text/css"> .sectionHeader {font-size: 11pt; font-weight: bold;}</style>
    <style type="text/css"> .wniosekHeader {font-size: 12pt; font-weight: bold;}</style>
    <style type="text/css"> .section {width:4px; background: #aaaaaa}</style>
    <style type="text/css"> .label {background: #eeeeee}</style>
    <style type="text/css"> .tableHeader {font-weight: bold;text-align:center; background: #aaaaaa}</style>
    </head>
    <body>
    <xsl:for-each select="wnio:Dokument">
    <div style="text-align:right">
    <xsl:value-of select="wnio:Wniosek/wnio:Naglowek/wnio:Miejscowosc"/>
    <xsl:text>, </xsl:text>
    <xsl:value-of select="wnio:Wniosek/wnio:Naglowek/wnio:DataWniosku"/>
    </div>
    <br/>
    <xsl:if test="count(wnio:Wniosek/wnio:Naglowek/wnio:Wnioskodawcy/wnio:Wnioskodawca) = 1">
    <span class="sectionHeader">Wnioskodawca</span>
    <br/>
    <br/>
    </xsl:if>
    <xsl:if test="count(wnio:Wniosek/wnio:Naglowek/wnio:Wnioskodawcy/wnio:Wnioskodawca) &gt; 1">
    <span class="sectionHeader">Wnioskodawcy</span>
    <br/>
    <br/>
    </xsl:if>
    <xsl:for-each select="wnio:Wniosek/wnio:Naglowek/wnio:Wnioskodawcy/wnio:Wnioskodawca">
    <table>
    <tr>
    <td class="section"/>
    <td>
    <xsl:for-each select="wnio:Podmiot[@typ='Osoba']">
    <xsl:call-template name="Osoba">
    <xsl:with-param select="wnio:Osoba/wnio:Adres" name="adres"/>
    <xsl:with-param select="wnio:Osoba" name="osoba"/>
    </xsl:call-template>
    </xsl:for-each>
    <xsl:for-each select="wnio:Podmiot[@typ='Instytucja']">
    <xsl:call-template name="Instytucja">
    <xsl:with-param select="wnio:Instytucja/wnio:Adres" name="adres"/>
    <xsl:with-param select="wnio:Instytucja" name="instytucja"/>
    </xsl:call-template>
    </xsl:for-each>
    <xsl:for-each select="wnio:Reprezentacja/wnio:Reprezentant">
    <br/>
    <xsl:if test="@typ!='osobiscie'">
    <xsl:choose>
    <xsl:when test="@typ='przedstawiciel'">Przedstawiciel<br/>
    </xsl:when>
    <xsl:when test="@typ='pelnomocnik'">Pełnomocnik<br/>
    </xsl:when>
    </xsl:choose>
    <xsl:call-template name="Osoba">
    <xsl:with-param select="wnio:Osoba" name="osoba"/>
    <xsl:with-param select="wnio:Osoba/wnio:Adres" name="adres"/>
    </xsl:call-template>
    <br/>
    </xsl:if>
    <xsl:if test="wnio:DoreczenieZwrotne/@typ!='elektroniczne'">
    										Doręczenie zwrotne:						
    										<xsl:choose>
    <xsl:when test="wnio:DoreczenieZwrotne/@typ='brak'">Brak</xsl:when>
    <xsl:when test="wnio:DoreczenieZwrotne/@typ='listowne'">Listowne</xsl:when>
    <xsl:when test="wnio:DoreczenieZwrotne/@typ='elektroniczne-listowne'">Elektroniczne i listowne</xsl:when>
    <xsl:when test="wnio:DoreczenieZwrotne/@typ='osobiscie'">Odbiór osobisty</xsl:when>
    </xsl:choose>
    <br/>
    <br/>
    </xsl:if>
    							
    									Adres do korespondencji:<br/>
    <xsl:if test="wnio:DoreczenieZwrotne/wnio:AdresZwrotny/@typ='inny'">
    <xsl:apply-templates select="wnio:DoreczenieZwrotne/wnio:AdresZwrotny/wnio:Adres"/>
    <br/>
    </xsl:if>
    <xsl:if test="wnio:DoreczenieZwrotne/wnio:AdresZwrotny/@typ='wnioskodawcy'">
    <xsl:apply-templates select="../../wnio:Podmiot/*/wnio:Adres"/>
    <br/>
    </xsl:if>
    <xsl:if test="wnio:DoreczenieZwrotne/wnio:AdresZwrotny/@typ='pelnomocnika'">
    <xsl:apply-templates select="wnio:Osoba/wnio:Adres"/>
    <br/>
    </xsl:if>
    </xsl:for-each>
    </td>
    </tr>
    </table>
    <br/>
    </xsl:for-each>
    <table width="100%">
    <tbody>
    <tr>
    <td/>
    <td style="width:300px">
    <span class="sectionHeader">Adresat</span>
    <br/>
    <br/>
    <xsl:call-template name="Instytucja">
    <xsl:with-param select="wnio:Wniosek/wnio:Naglowek/wnio:Adresat/wnio:Adres" name="adres"/>
    <xsl:with-param select="wnio:Wniosek/wnio:Naglowek/wnio:Adresat" name="instytucja"/>
    </xsl:call-template>
    </td>
    </tr>
    </tbody>
    </table>
    <br/>
    <br/>
    <br/>
    		
    			<center>
    				<span>
    					<b>WNIOSEK O UDZIELENIE POZWOLENIA NA PRZEPROWADZENIE ZBIÓRKI PUBLICZNEJ NA TERENIE GMINY MIEJSKIEJ KRAKÓW</b>
    				</span>
    			</center>
    			<br/>
    			<xsl:for-each select="wnio:Wniosek/wnio:Tresc/wnio:Wnioskodawca">
    			<p>
    <b>Informacje dotyczące wnioskodawcy</b>
    </p>
    			<table>
    				<tr>
    					<td width="150px" class="label">
    <b>Typ wnioskodawcy: </b>
    </td>
    					<td>
    						<xsl:if test="@typ='komitet'">Komitet</xsl:if>
    						<xsl:if test="@typ='fundacja'">Fundacja</xsl:if>
    						<xsl:if test="@typ='stowarzyszenie'">Stowarzyszenie</xsl:if>
    						<xsl:if test="@typ='inna'">Inna organizacja posiadająca osobowość prawną</xsl:if>
    					</td>		
    				</tr>		
    				<xsl:if test="@typ='komitet'">
    					<tr>
    						<td width="150px" class="label">
    <b>Komitet: </b>
    </td>
    						<td>
    							<table class="gridTable" cellpadding="2" border="1">
    								<tr>
    									<td class="tableHeader">Imię</td>
    									<td class="tableHeader">Nazwisko</td>
    									<td class="tableHeader">PESEL</td>
    									<td class="tableHeader">Osoba odpowiedzialna za<br/>rozliczenie zbiórki</td>
    								</tr>
    								<xsl:for-each select="wnio:Komitet/wnio:Osoby/wnio:Osoba">
    									<tr>
    										<td>
    <xsl:value-of select="wnio:Imie"/>
    </td>
    										<td>
    <xsl:value-of select="wnio:Nazwisko"/>
    </td>
    										<td>
    <xsl:value-of select="wnio:Identyfikatory/wnio:PESEL"/>
    </td>
    										<td>
    											<center>
    												<xsl:if test="@wyrozniona='true'">Tak</xsl:if>
    												<xsl:if test="@wyrozniona='false'">Nie</xsl:if>
    											</center>	
    										</td>										
    									</tr>
    								</xsl:for-each>
    							</table>
    						</td>		
    					</tr>						
    					<tr>
    						<td width="150px" class="label">
    <b>Cel zawiązania komitetu:</b>
    </td>
    						<td>
    							<xsl:call-template name="break">
    								<xsl:with-param name="text" select="wnio:Komitet/wnio:Cel"/>
    							</xsl:call-template>								
    						</td>		
    					</tr>		
    				</xsl:if>
    							
    				<tr>
    					<td width="150px" class="label">
    <b>Organizacja pożytku publicznego:</b>
    </td>
    					<td>
    						<xsl:if test="@opp='true'">Tak</xsl:if>
    						<xsl:if test="@opp='false'">Nie</xsl:if>
    					</td>	
    				</tr>				
    			</table>
    		</xsl:for-each>
    		
    		<xsl:for-each select="wnio:Wniosek/wnio:Tresc/wnio:Zbiorka">
    			<p>
    <b>Informacje dotyczące zbiórki</b>
    </p>
    			<table>
    				<tr>
    					<td width="150px" class="label">
    <b>Cel: </b>
    </td>
    					<td>
    							<xsl:call-template name="break">
    								<xsl:with-param name="text" select="wnio:Cel"/>
    							</xsl:call-template>						
    					</td>		
    				</tr>	
    
    				<tr>
    					<td width="150px" class="label">
    <b>Forma:</b>
    </td>
    					<td>
    						<table>
    							<tr>
    								<td>
    									<xsl:call-template name="Checkbox">
    										<xsl:with-param name="value" select="wnio:Forma/wnio:Wplaty/@dotyczy"/>
    									</xsl:call-template>
    								</td>
    								<td>dobrowolne wpłaty na konto nr: <xsl:value-of select="wnio:Forma/wnio:Wplaty/wnio:Rachunek"/>
    </td>
    							</tr>
    							<tr>
    								<td>
    									<xsl:call-template name="Checkbox">
    										<xsl:with-param name="value" select="wnio:Forma/wnio:Puszki/@dotyczy"/>
    									</xsl:call-template>
    								</td>
    								<td>zbieranie ofiar do puszek kwestarskich</td>
    							</tr>				
    							<tr>
    								<td valign="top">
    									<xsl:call-template name="Checkbox">
    										<xsl:with-param name="value" select="wnio:Forma/wnio:Cegielki/@dotyczy"/>
    									</xsl:call-template>
    								</td>
    								<td>sprzedaż cegiełek wartościowych<br/>
    									<xsl:if test="wnio:Forma/wnio:Cegielki/@dotyczy='true'">
    										<table class="gridTable" cellpadding="2" cellspacing="1" border="1">
    											<tr>
    												<td class="tableHeader">Nominał cegiełki [zł]</td>
    												<td class="tableHeader">Ilość cegiełek</td>
    												<td class="tableHeader">Wartość cegiełek [zł]</td>
    											</tr>
    											<xsl:for-each select="wnio:Forma/wnio:Cegielki/wnio:Cegielka">
    												<tr>
    													<td>
    <xsl:value-of select="wnio:Nominal"/>
    </td>
    													<td style="text-align:right">
    <xsl:value-of select="wnio:Ilosc"/>
    </td>
    													<td style="text-align:right">
    <xsl:value-of select="wnio:Wartosc"/>
    </td>
    												</tr>
    											</xsl:for-each>
    										</table>
    						<br/>
    						RAZEM: <xsl:call-template name="Number">
    <xsl:with-param name="number" select="wnio:Forma/wnio:Cegielki/@razem"/>
    </xsl:call-template> zł
    										
    									</xsl:if>		
    								</td>
    							</tr>	
    							<tr>
    								<td>
    									<xsl:call-template name="Checkbox">
    										<xsl:with-param name="value" select="wnio:Forma/wnio:Sprzedaz/@dotyczy"/>
    									</xsl:call-template>
    								</td>
    								<td>sprzedaż przedmiotów i usług</td>
    							</tr>	
    							<tr>
    								<td>
    									<xsl:call-template name="Checkbox">
    										<xsl:with-param name="value" select="wnio:Forma/wnio:WNaturze/@dotyczy"/>
    									</xsl:call-template>
    								</td>
    								<td>zbieranie ofiar w naturze</td>
    							</tr>																																
    						</table>
    					</td>	
    				</tr>		
    				<tr>
    					<td width="150px" class="label">
    <b>Termin rozpoczęcia: </b>
    </td>
    					<td>
    <xsl:value-of select="wnio:Rozpoczecie"/>
    </td>		
    				</tr>			
    				<tr>
    					<td width="150px" class="label">
    <b>Termin zakończenia: </b>
    </td>
    					<td>
    <xsl:value-of select="wnio:Zakonczenie"/>
    </td>		
    				</tr>					
    				<tr>
    					<td width="150px" class="label">
    <b>Obszar na jakim ma być prowadzona zbiórka:</b>
    </td>
    					<td>
    							<xsl:call-template name="break">
    								<xsl:with-param name="text" select="wnio:Obszar"/>
    							</xsl:call-template>						
    					</td>		
    				</tr>			
    				<tr>
    					<td width="150px" class="label">
    <b>Sposób informowania o prowadzonej zbiórce:</b>
    </td>
    					<td>
    							<xsl:call-template name="break">
    								<xsl:with-param name="text" select="wnio:SposobInformowania"/>
    							</xsl:call-template>						
    					</td>		
    				</tr>		
    				<tr>
    					<td width="150px" class="label">
    <b>Liczba osób, które mają brać udział w zbiórce:</b>
    </td>
    					<td>
    <xsl:value-of select="wnio:LiczbaOsob"/>
    </td>		
    				</tr>				
    				<tr>
    					<td width="150px" class="label">
    <b>Przewidywane koszty:</b>
    </td>
    					<td>
    							<xsl:call-template name="break">
    								<xsl:with-param name="text" select="wnio:PrzewidywaneKoszty"/>
    							</xsl:call-template>						
    					</td>		
    				</tr>					
    				<tr>
    					<td width="150px" class="label">
    <b>Miejsce wydatkowania zebranych ofiar:</b>
    </td>
    					<td>
    <xsl:value-of select="wnio:MiejsceWydatkowania"/>
    </td>		
    				</tr>															
    			</table>
    			</xsl:for-each>	
    			
    		<p>
    <b>Sposób odbioru decyzji</b>
    </p>	
    		<xsl:for-each select="wnio:Wniosek/wnio:Stopka">
    			<table>
    			
    					<tr>
    						<td width="150px" class="label">
    <b>Sposób odbioru: </b>
    </td>	
    						<td>
    							<xsl:choose>
    								<xsl:when test="wnio:SposobOdbioru = 'adresKorespondencyjny'">
    									proszę przesłać na podany adres do korespondencji
    								</xsl:when>
    								<xsl:otherwise>
    									<xsl:value-of select="wnio:SposobOdbioru"/>
    								</xsl:otherwise>
    							</xsl:choose>						
    						</td>					
    					</tr>					
    				</table>			
    			
    		</xsl:for-each>		
    
    		
    	<br/>
    <xsl:if test="count(wnio:Wniosek/wnio:Stopka/str:Zalaczniki/str:Zalacznik) &gt; 0">
    <div style="width:100%; background-color:#eeeeee; font-weight:bold">
    <center>ZAŁĄCZNIKI</center>
    </div>
    <br/>
    <xsl:apply-templates select="wnio:Wniosek/wnio:Stopka/str:Zalaczniki"/>
    <br/>
    <table>
    <tr>
    <td>
    <div style="foat:left; border: solid 1px black; width:13px;height: 13px">
    <xsl:if test="wnio:Wniosek/wnio:Stopka/wnio:Zalaczniki/@zgodnoscZOryginalem='true'">
    <b>
    <center>X</center>
    </b>
    </xsl:if>
    </div>
    </td>
    <td>Potwierdzenie zgodności wszystkich załączonych dokumentów z oryginałami</td>
    </tr>
    </table>
    </xsl:if>
    <br/>
    <br/>
    <xsl:if test="count(wnio:Wniosek/wnio:Stopka/wnio:Platnosc/*/wnio:OplataEpuap[.!='']) &gt; 0">
    <div style="width:100%; background-color:#eeeeee; font-weight:bold">
    <center>PŁATNOŚĆ</center>
    </div>
    <xsl:if test="wnio:Wniosek/wnio:Stopka/wnio:Platnosc/wnio:Wniosek/wnio:OplataEpuap!=''">
    <p>
    <b>Opłata za wydanie zezwolenia</b>
    </p>
    <table cellspacing="1" cellpadding="2">
    <tr>
    <td style="background: #aaaaaa;width:120px">Przez ePUAP:</td>
    <td>
    <xsl:if test="wnio:Wniosek/wnio:Stopka/wnio:Platnosc/wnio:Wniosek/wnio:OplataEpuap='true'">Tak</xsl:if>
    <xsl:if test="wnio:Wniosek/wnio:Stopka/wnio:Platnosc/wnio:Wniosek/wnio:OplataEpuap!='true'">Nie</xsl:if>
    </td>
    </tr>
    <xsl:if test="wnio:Wniosek/wnio:Stopka/wnio:Platnosc/wnio:Wniosek/wnio:OplataEpuap='true'">
    <tr>
    <td style="background: #aaaaaa">Kwota do zapłaty:</td>
    <td>
    <xsl:call-template name="Number">
    <xsl:with-param select="wnio:Wniosek/wnio:Stopka/wnio:Platnosc/wnio:Wniosek/wnio:Kwota" name="number"/>
    </xsl:call-template> zł</td>
    </tr>
    <xsl:if test="wnio:Wniosek/wnio:Stopka/wnio:Platnosc/wnio:Wniosek/wnio:Tytul">
    <tr>
    <td style="background: #aaaaaa">Tytuł:</td>
    <td>
    <xsl:value-of select="wnio:Wniosek/wnio:Stopka/wnio:Platnosc/wnio:Wniosek/wnio:Tytul"/>
    </td>
    </tr>
    </xsl:if>
    </xsl:if>
    </table>
    </xsl:if>
    <xsl:if test="wnio:Wniosek/wnio:Stopka/wnio:Platnosc/wnio:Pelnomocnictwa/wnio:OplataEpuap!=''">
    <p>
    <b>Opłaty z tytułu pełnomocnictw</b>
    </p>
    <table cellspacing="1" cellpadding="2">
    <tr>
    <td style="background: #aaaaaa;width:120px">Przez ePUAP:</td>
    <td>
    <xsl:if test="wnio:Wniosek/wnio:Stopka/wnio:Platnosc/wnio:Pelnomocnictwa/wnio:OplataEpuap='true'">Tak</xsl:if>
    <xsl:if test="wnio:Wniosek/wnio:Stopka/wnio:Platnosc/wnio:Pelnomocnictwa/wnio:OplataEpuap!='true'">Nie</xsl:if>
    </td>
    </tr>
    <xsl:if test="wnio:Wniosek/wnio:Stopka/wnio:Platnosc/wnio:Pelnomocnictwa/wnio:OplataEpuap='true'">
    <tr>
    <td style="background: #aaaaaa">Kwota do zapłaty:</td>
    <td>
    <xsl:call-template name="Number">
    <xsl:with-param select="wnio:Wniosek/wnio:Stopka/wnio:Platnosc/wnio:Pelnomocnictwa/wnio:Kwota" name="number"/>
    </xsl:call-template> zł</td>
    </tr>
    <xsl:if test="wnio:Wniosek/wnio:Stopka/wnio:Platnosc/wnio:Pelnomocnictwa/wnio:Tytul">
    <tr>
    <td style="background: #aaaaaa">Tytuł:</td>
    <td>
    <xsl:value-of select="wnio:Wniosek/wnio:Stopka/wnio:Platnosc/wnio:Pelnomocnictwa/wnio:Tytul"/>
    </td>
    </tr>
    </xsl:if>
    </xsl:if>
    </table>
    <br/>
    <xsl:if test="wnio:Wniosek/wnio:Stopka/wnio:Platnosc/wnio:Pelnomocnictwa/wnio:OplataEpuap='true'">
    <table class="gridTable" border="1" cellpadding="2">
    <tr class="tableHeader">
    <td style="text-align:center">L.p.</td>
    <td style="text-align:center">Wnioskodawca</td>
    <td style="text-align:center">Pełnomocnik</td>
    <td style="text-align:center">Już dostarczone</td>
    <td style="text-align:center">Zwolnienie</td>
    <td style="text-align:center">Oryginał / Kopia</td>
    <td style="text-align:center">Opłata za pełnomocnictwo</td>
    <td style="text-align:center">Opłata za potwierdzenie zgodności kopii z oryginałem</td>
    <td style="text-align:center">Kwota razem</td>
    </tr>
    <xsl:for-each select="wnio:Wniosek/wnio:Naglowek/wnio:Wnioskodawcy/wnio:Wnioskodawca/wnio:Reprezentacja/wnio:Reprezentant[@typ='pelnomocnik']/wnio:Oplata">
    <tr>
    <td style="text-align:center">
    <xsl:value-of select="position()"/>
    </td>
    <td style="text-align:center">
    <xsl:value-of select="../../../wnio:Podmiot/wnio:Instytucja/wnio:Nazwa"/>
    <xsl:value-of select="../../../wnio:Podmiot/wnio:Osoba/wnio:Imie"/> <xsl:value-of select="../../../wnio:Podmiot/wnio:Osoba/wnio:Nazwisko"/>
    </td>
    <td style="text-align:center">
    <xsl:value-of select="../wnio:Osoba/wnio:Imie"/> <xsl:value-of select="../wnio:Osoba/wnio:Nazwisko"/>
    </td>
    <td style="text-align:center">
    <xsl:if test="@zlozone='true'">Tak</xsl:if>
    <xsl:if test="@zlozone='false'">Nie</xsl:if>
    </td>
    <td style="text-align:center">
    <xsl:if test="@zwolnienie='true'">Tak</xsl:if>
    <xsl:if test="@zwolnienie='false'">Nie</xsl:if>
    </td>
    <td style="text-align:center">
    <xsl:if test="@oryginal='true'">Oryginał</xsl:if>
    <xsl:if test="@oryginal='false'">Kopia</xsl:if>
    </td>
    <td style="text-align:center">
    <xsl:call-template name="Number">
    <xsl:with-param select="wnio:Kwota" name="number"/>
    </xsl:call-template> zł
    											</td>
    <td width="100" style="text-align:center">
    <xsl:call-template name="Number">
    <xsl:with-param select="wnio:Potwierdzenie" name="number"/>
    </xsl:call-template> zł
    											</td>
    <td width="100" style="text-align:center">
    <xsl:call-template name="Number">
    <xsl:with-param select="wnio:Razem" name="number"/>
    </xsl:call-template> zł
    											</td>
    </tr>
    </xsl:for-each>
    <xsl:if test="count(wnio:Wniosek/wnio:Naglowek/wnio:Wnioskodawcy/wnio:Wnioskodawca/wnio:Reprezentacja/wnio:Reprezentant[@typ='pelnomocnik']/wnio:Oplata) = 0">
    <tr>
    <td style="text-align:center" colspan="9">Nie występują we wniosku pełnomocnicy</td>
    </tr>
    </xsl:if>
    </table>
    </xsl:if>
    </xsl:if>
    <xsl:if test="count(wnio:Wniosek/wnio:Stopka/wnio:Platnosc/*/wnio:OplataEpuap[.='']) = 0">
    <p>
    <b>Podsumowanie</b>
    </p>
    <table cellspacing="1" cellpadding="2">
    <tr>
    <td style="background: #aaaaaa;width:120px">Kwota płatności razem: </td>
    <td>
    <xsl:call-template name="Number">
    <xsl:with-param select="wnio:Wniosek/wnio:Stopka/wnio:Platnosc/wnio:KwotaRazem" name="number"/>
    </xsl:call-template> zł</td>
    </tr>
    <xsl:if test="wnio:Wniosek/wnio:Stopka/wnio:Platnosc/wnio:Tytul">
    <tr>
    <td style="background: #aaaaaa">Tytuł:</td>
    <td>
    <xsl:value-of select="wnio:Wniosek/wnio:Stopka/wnio:Platnosc/wnio:Tytul"/>
    </td>
    </tr>
    </xsl:if>
    </table>
    <br/>
    </xsl:if>
    <br/>
    <div style="width:100%; background-color:#eeeeee; font-weight:bold"/>
    <br/>
    </xsl:if>
    <b>Wyrażam zgodę na wymianę korespondencji drogą elektroniczną: </b>
    <xsl:choose>
    <xsl:when test="wnio:Wniosek/wnio:Naglowek/wnio:Wnioskodawcy/wnio:Wnioskodawca/wnio:ZgodaNaKorespondencjeElektroniczna='true'">Tak</xsl:when>
    <xsl:otherwise>Nie</xsl:otherwise>
    </xsl:choose>
    <br/>
    <br/>
    <div style="width:100%; background-color:#eeeeee; font-weight:bold">
    <center>PODPIS ELEKTRONICZNY</center>
    </div>
    <br/>
    <xsl:choose>
    <xsl:when test="string-length(//wnio:Dokument/ds:Signature/ds:SignatureValue) &gt; 0">
    								Dokument został podpisany, aby go zweryfikować należy użyć oprogramowania do weryfikacji podpisu<br/>
    <br/>
    <xsl:choose>
    <xsl:when test="count(//wnio:Dokument/ds:Signature/ds:Object/descendant::*[local-name() = 'SigningTime']) &gt; 1">
    										Podpisy:<br/>
    <br/>
    <table class="gridTable" border="1" cellpadding="2">
    <tr class="tableHeader">
    <td style="text-align:center">L.p.</td>
    <td style="text-align:center">Data złożenia podpisu</td>
    </tr>
    <xsl:for-each select="//wnio:Dokument/ds:Signature/ds:Object/descendant::*[local-name() = 'SigningTime']">
    <tr>
    <td style="text-align:center">
    <xsl:value-of select="position()"/>.</td>
    <td>
    <xsl:value-of select="."/>
    </td>
    </tr>
    </xsl:for-each>
    </table>
    </xsl:when>
    <xsl:when test="1 = count(//wnio:Dokument/ds:Signature/ds:Object/descendant::*[local-name() = 'SigningTime'])">
    										Daty złożenia podpisu:
    										<xsl:value-of select="//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>
    </xsl:for-each>
    </body>
    </html>
    </xsl:template>
    <xsl:template xmlns:ds="http://www.w3.org/2000/09/xmldsig#" match="wnio:Podmiot">
    <xsl:if test="@typ='Osoba'">
    <xsl:call-template name="Osoba">
    <xsl:with-param select="wnio:Osoba/wnio:Adres" name="adres"/>
    <xsl:with-param select="wnio:Osoba" name="osoba"/>
    </xsl:call-template>
    </xsl:if>
    <xsl:if test="@typ='Instytucja'">
    <xsl:call-template name="Instytucja">
    <xsl:with-param select="wnio:Instytucja/wnio:Adres" name="adres"/>
    <xsl:with-param select="wnio:Instytucja" name="instytucja"/>
    </xsl:call-template>
    </xsl:if>
    </xsl:template>
    <xsl:template xmlns:ds="http://www.w3.org/2000/09/xmldsig#" name="Osoba">
    <xsl:param name="adres"/>
    <xsl:param name="osoba"/>
    <b>
    <xsl:value-of select="$osoba/wnio:Imie"/>
    <xsl:text> </xsl:text>
    <xsl:if test="count($osoba/wnio:Nazwisko) &gt; 0">
    <xsl:if test="count($osoba/wnio:Nazwisko) = 1">
    <xsl:value-of select="$osoba/wnio:Nazwisko"/>
    <br/>
    </xsl:if>
    <xsl:if test="count($osoba/wnio:Nazwisko) &gt; 1">
    <xsl:value-of select="$osoba/wnio:Nazwisko[@rodzajCzlonu='pierwszy']"/>
    					-
    					<xsl:value-of select="$osoba/wnio:Nazwisko[@rodzajCzlonu='drugi']"/>
    <br/>
    </xsl:if>
    </xsl:if>
    </b>
    <xsl:if test="$osoba/wnio:DataUrodzenia != ''">
    <xsl:text>Data ur.: </xsl:text>
    <xsl:value-of select="$osoba/wnio:DataUrodzenia"/>
    <br/>
    </xsl:if>
    <xsl:if test="$osoba/wnio:ImieOjca">
    <xsl:text>Imię ojca: </xsl:text>
    <xsl:value-of select="$osoba/wnio:ImieOjca"/>
    <br/>
    </xsl:if>
    <xsl:if test="$osoba/wnio:ImieMatki">
    <xsl:text>Imię matki: </xsl:text>
    <xsl:value-of select="$osoba/wnio:ImieMatki"/>
    <br/>
    </xsl:if>
    <xsl:if test="$adres">
    <xsl:apply-templates select="$adres"/>
    <br/>
    </xsl:if>
    <xsl:for-each select="$osoba/wnio:Identyfikatory/wnio:PESEL[text() != '']">
    <xsl:text>PESEL: </xsl:text>
    <xsl:value-of select="."/>
    <br/>
    </xsl:for-each>
    <xsl:for-each select="$osoba/wnio:Identyfikatory/wnio:NrDowodu[. != '']">
    <xsl:text>Seria i nr dowodu: </xsl:text>
    <xsl:value-of select="."/>
    <br/>
    </xsl:for-each>
    <xsl:for-each select="$osoba/wnio:Identyfikatory/wnio:REGON[text() != '']">
    <xsl:text>REGON: </xsl:text>
    <xsl:value-of select="."/>
    <br/>
    </xsl:for-each>
    <xsl:for-each select="$osoba/wnio:Identyfikatory/wnio:EDG">
    <xsl:if test="@centralnie='true'">
    <xsl:text>Działalność gospodarcza zarejestrowana w CEIDG</xsl:text>
    </xsl:if>
    <xsl:if test="@centralnie='false'">
    <xsl:text>Wpis numer </xsl:text>
    <xsl:value-of select="wnio:Numer"/> w ewidencji działalności gospodarczej <br/>prowadzonej przez: <xsl:value-of select="wnio:Prowadzacy"/>
    </xsl:if>
    <br/>
    </xsl:for-each>
    <xsl:for-each select="$osoba/wnio:Identyfikatory/wnio:NIP[text() != '']">
    <xsl:text> NIP: </xsl:text>
    <xsl:value-of select="."/>
    <br/>
    </xsl:for-each>
    <xsl:for-each select="$osoba/wnio:Kontakt[wnio:Telefon != '']">
    <xsl:text>Telefon: </xsl:text>
    <xsl:value-of select="wnio:Telefon"/>
    <br/>
    </xsl:for-each>
    <xsl:for-each select="$osoba/wnio:Kontakt[wnio:Faks != '']">
    <xsl:text>Faks: </xsl:text>
    <xsl:value-of select="wnio:Faks"/>
    <br/>
    </xsl:for-each>
    <xsl:for-each select="$osoba/wnio:Kontakt[wnio:Email!= '']">
    <xsl:text>E-mail: </xsl:text>
    <xsl:value-of select="wnio:Email"/>
    <br/>
    </xsl:for-each>
    </xsl:template>
    <xsl:template xmlns:ds="http://www.w3.org/2000/09/xmldsig#" name="Instytucja">
    <xsl:param name="adres"/>
    <xsl:param name="instytucja"/>
    <b>
    <xsl:value-of select="$instytucja/wnio:Nazwa"/>
    </b>
    <br/>
    <xsl:if test="$instytucja/wnio:KomorkaOrg/wnio:Nazwa != ''">
    <b>
    <xsl:if test="$instytucja/wnio:KomorkaOrg/wnio:Kod != ''">
    <xsl:value-of select="$instytucja/wnio:KomorkaOrg/wnio:Kod"/> - 
    					</xsl:if>
    <xsl:value-of select="$instytucja/wnio:KomorkaOrg/wnio:Nazwa"/>
    </b>
    <br/>
    </xsl:if>
    <xsl:apply-templates select="$adres"/>
    <br/>
    <xsl:for-each select="$instytucja/wnio:Identyfikatory/wnio:NIP[text() != '']">
    <xsl:text> NIP: </xsl:text>
    <xsl:value-of select="."/>
    <br/>
    </xsl:for-each>
    <xsl:for-each select="$instytucja/wnio:Identyfikatory/wnio:REGON[text() != '']">
    <xsl:text> REGON: </xsl:text>
    <xsl:value-of select="."/>
    <br/>
    </xsl:for-each>
    <xsl:for-each select="$instytucja/wnio:Identyfikatory/wnio:KRS[text() != '']">
    <xsl:text>KRS: </xsl:text>
    <xsl:value-of select="."/>
    <br/>
    </xsl:for-each>
    <xsl:for-each select="$instytucja/wnio:Kontakt[wnio:Telefon != '']">
    <xsl:text>Telefon: </xsl:text>
    <xsl:value-of select="wnio:Telefon"/>
    <br/>
    </xsl:for-each>
    </xsl:template>
    <xsl:template xmlns:ds="http://www.w3.org/2000/09/xmldsig#" name="Adres" match="wnio:Adres">
    <xsl:if test="not(wnio:Kraj) or wnio:Kraj='POLSKA'">
    <xsl:if test="wnio:Ulica/wnio:Nazwa!=''">
    <xsl:for-each select="wnio:Ulica[@rodzaj != 'inna']">
    <xsl:value-of select="@rodzaj"/>
    <xsl:text> </xsl:text>
    </xsl:for-each>
    <xsl:value-of select="wnio:Ulica/wnio:Nazwa"/>
    <xsl:text> </xsl:text>
    <xsl:value-of select="wnio:Budynek"/>
    <xsl:for-each select="wnio:Lokal[text() != '']">
    <xsl:text>/</xsl:text>
    <xsl:value-of select="."/>
    </xsl:for-each>
    <br/>
    <xsl:choose>
    <xsl:when test="not(wnio:Poczta) or wnio:Poczta='' or (wnio:Poczta=wnio:Miejscowosc)">
    <xsl:text/>
    <xsl:value-of select="wnio:KodPocztowy"/>
    <xsl:text> </xsl:text>
    <xsl:value-of select="wnio:Miejscowosc"/>
    </xsl:when>
    <xsl:otherwise>
    <xsl:value-of select="wnio:Miejscowosc"/>
    <xsl:text>, </xsl:text>
    <xsl:value-of select="wnio:KodPocztowy"/>
    <xsl:text> </xsl:text>
    <xsl:value-of select="wnio:Poczta"/>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:if>
    <xsl:if test="wnio:Ulica/wnio:Nazwa=''">
    <xsl:text> </xsl:text>
    <xsl:value-of select="wnio:Miejscowosc"/>
    <xsl:text> </xsl:text>
    <xsl:value-of select="wnio:Budynek"/>
    <xsl:for-each select="wnio:Lokal[text() != '']">
    <xsl:text>/</xsl:text>
    <xsl:value-of select="."/>
    </xsl:for-each>
    <br/>
    <xsl:if test="wnio:KodPocztowy !=''">
    <xsl:value-of select="wnio:KodPocztowy"/>
    <xsl:text> </xsl:text>
    <xsl:if test="wnio:Poczta!=''">
    <xsl:value-of select="wnio:Poczta"/>
    </xsl:if>
    <xsl:if test="wnio:Poczta=''">
    <xsl:value-of select="wnio:Miejscowosc"/>
    </xsl:if>
    </xsl:if>
    </xsl:if>
    <xsl:if test="@dokladny='false'">
    <br/>
    <xsl:value-of select="wnio:Opis"/>
    </xsl:if>
    <xsl:if test="wnio:Kraj='POLSKA'">
    <br/>POLSKA
    				</xsl:if>
    </xsl:if>
    <xsl:if test="wnio:Kraj!='POLSKA'">
    <xsl:value-of select="wnio:Zagraniczny"/>
    <br/>
    <xsl:value-of select="wnio:Kraj"/>
    </xsl:if>
    </xsl:template>
    <xsl:template xmlns:ds="http://www.w3.org/2000/09/xmldsig#" name="AdresOneLine">
    <xsl:for-each select="wnio:Adres">
    <xsl:if test="wnio:Ulica/wnio:Nazwa!=''">
    <xsl:for-each select="wnio:Ulica[@rodzaj != 'inna']">
    <xsl:value-of select="@rodzaj"/>
    <xsl:text> </xsl:text>
    </xsl:for-each>
    <xsl:value-of select="wnio:Ulica/wnio:Nazwa"/>
    <xsl:text> </xsl:text>
    <xsl:value-of select="wnio:Budynek"/>
    <xsl:for-each select="wnio:Lokal[text() != '']">
    <xsl:text>/</xsl:text>
    <xsl:value-of select="."/>
    </xsl:for-each>,
    					<xsl:choose>
    <xsl:when test="not(wnio:Poczta) or wnio:Poczta='' or (wnio:Poczta=wnio:Miejscowosc)">
    <xsl:text/>
    <xsl:value-of select="wnio:KodPocztowy"/>
    <xsl:text> </xsl:text>
    <xsl:value-of select="wnio:Miejscowosc"/>
    </xsl:when>
    <xsl:otherwise>
    <xsl:value-of select="wnio:Miejscowosc"/>
    <xsl:text>, </xsl:text>
    <xsl:value-of select="wnio:KodPocztowy"/>
    <xsl:text> </xsl:text>
    <xsl:value-of select="wnio:Poczta"/>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:if>
    <xsl:if test="wnio:Ulica/wnio:Nazwa=''">
    <xsl:text> </xsl:text>
    <xsl:value-of select="wnio:Miejscowosc"/>
    <xsl:text> </xsl:text>
    <xsl:value-of select="wnio:Budynek"/>
    <xsl:for-each select="wnio:Lokal[text() != '']">
    <xsl:text>/</xsl:text>
    <xsl:value-of select="."/>
    </xsl:for-each>
    <xsl:if test="wnio:KodPocztowy !=''">
    <xsl:text> </xsl:text>
    <xsl:value-of select="wnio:KodPocztowy"/>
    <xsl:text> </xsl:text>
    <xsl:if test="wnio:Poczta!=''">
    <xsl:value-of select="wnio:Poczta"/>
    </xsl:if>
    <xsl:if test="wnio:Poczta=''">
    <xsl:value-of select="wnio:Miejscowosc"/>
    </xsl:if>
    </xsl:if>
    </xsl:if>
    <xsl:if test="@dokladny='false'">
    <xsl:value-of select="wnio:Opis"/>
    </xsl:if>
    </xsl:for-each>
    </xsl:template>
    <xsl:template xmlns:ds="http://www.w3.org/2000/09/xmldsig#" name="AdresOneLineDetail">
    <xsl:if test="wnio:Ulica/wnio:Nazwa!=''">
    <xsl:for-each select="wnio:Ulica[@rodzaj != 'inna']">
    <xsl:value-of select="@rodzaj"/>
    <xsl:text> </xsl:text>
    </xsl:for-each>
    <xsl:value-of select="wnio:Ulica/wnio:Nazwa"/>
    <xsl:text> </xsl:text>
    <xsl:value-of select="wnio:Budynek"/>
    <xsl:for-each select="wnio:Lokal[text() != '']">
    <xsl:text>/</xsl:text>
    <xsl:value-of select="."/>
    </xsl:for-each>,
    					<xsl:choose>
    <xsl:when test="not(wnio:Poczta) or wnio:Poczta='' or (wnio:Poczta=wnio:Miejscowosc)">
    <xsl:text/>
    <xsl:value-of select="wnio:KodPocztowy"/>
    <xsl:text> </xsl:text>
    <xsl:value-of select="wnio:Miejscowosc"/>
    </xsl:when>
    <xsl:otherwise>
    <xsl:value-of select="wnio:Miejscowosc"/>
    <xsl:text>, </xsl:text>
    <xsl:value-of select="wnio:KodPocztowy"/>
    <xsl:text> </xsl:text>
    <xsl:value-of select="wnio:Poczta"/>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:if>
    <xsl:if test="wnio:Ulica/wnio:Nazwa=''">
    <xsl:text> </xsl:text>
    <xsl:value-of select="wnio:Miejscowosc"/>
    <xsl:text> </xsl:text>
    <xsl:value-of select="wnio:Budynek"/>
    <xsl:for-each select="wnio:Lokal[text() != '']">
    <xsl:text>/</xsl:text>
    <xsl:value-of select="."/>
    </xsl:for-each>
    <xsl:text> </xsl:text>
    <xsl:value-of select="wnio:KodPocztowy"/>
    <xsl:text> </xsl:text>
    <xsl:if test="wnio:Poczta!=''">
    <xsl:value-of select="wnio:Poczta"/>
    </xsl:if>
    <xsl:if test="wnio:Poczta=''">
    <xsl:value-of select="wnio:Miejscowosc"/>
    </xsl:if>
    </xsl:if>
    <xsl:if test="@dokladny='false'">
    <xsl:value-of select="wnio:Opis"/>
    </xsl:if>
    </xsl:template>
    <xsl:template xmlns:ds="http://www.w3.org/2000/09/xmldsig#" match="str:Zalaczniki">
    <br/>
    <xsl:variable select="count(../wnio:Zalaczniki/wnio:Zalacznik[@aktualny='true'])" name="aktualnyCount"/>
    <table cellpadding="4" cellspacing="0" border="1">
    <tr>
    <td class="tableHeader">L.p.</td>
    <xsl:if test="$aktualnyCount &gt; 0">
    <td class="tableHeader">Potwierdzona <br/>aktualność</td>
    </xsl:if>
    <td class="tableHeader">Nazwa</td>
    <td class="tableHeader">Opis</td>
    <td class="tableHeader">Plik</td>
    </tr>
    <xsl:for-each select="str:Zalacznik">
    <xsl:variable select="position()" name="pos"/>
    <tr>
    <td>
    <center>
    <xsl:value-of select="$pos"/>
    </center>
    </td>
    <xsl:if test="$aktualnyCount &gt; 0">
    <td>
    <center>
    <xsl:if test="../../wnio:Zalaczniki/wnio:Zalacznik[$pos]/@aktualny='true'">Tak</xsl:if>
    <xsl:if test="../../wnio:Zalaczniki/wnio:Zalacznik[$pos]/@aktualny='false'">Nie</xsl:if>
    <xsl:if test="../../wnio:Zalaczniki/wnio:Zalacznik[$pos]/@aktualny=''">Nie dotyczy</xsl:if>
    </center>
    </td>
    </xsl:if>
    <td>
    <xsl:value-of select="../../wnio:Zalaczniki/wnio:Zalacznik[$pos]/wnio:RodzajNazwa"/>
    </td>
    <td> <xsl:value-of select="str:OpisZalacznika"/>
    </td>
    <td>
    <xsl:choose>
    <xsl:when test="@kodowanie='URI'">
    <A>
    <xsl:attribute name="HREF">
    <xsl:value-of select="str:DaneZalacznika"/>
    </xsl:attribute>
    <xsl:attribute name="TARGET">_blank</xsl:attribute>
    <B>
    <xsl:value-of select="@nazwaPliku"/>
    </B>
    </A>
    </xsl:when>
    <xsl:otherwise>
    <xsl:if test="@nazwaPliku!= ''">
    <xsl:value-of select="@nazwaPliku"/>
    </xsl:if>
    <xsl:if test="@nazwaPliku= ''">
    <span style="color:red">Nie załączono pliku</span>
    </xsl:if>
    </xsl:otherwise>
    </xsl:choose>
    </td>
    </tr>
    </xsl:for-each>
    </table>
    </xsl:template>
    <xsl:template xmlns:ds="http://www.w3.org/2000/09/xmldsig#" name="Number">
    <xsl:param name="number"/>
    <xsl:if test="$number != ''">
    <xsl:if test="string(number($number)) = 'NaN'">
    <span style="color:red">Błędna liczba</span>
    </xsl:if>
    <xsl:if test="string(number($number)) != 'NaN'">
    <xsl:value-of select="format-number($number, '###.##0,00', 'Polish')"/>
    </xsl:if>
    </xsl:if>
    </xsl:template>
    
    	<xsl:template name="Checkbox">
    		<xsl:param name="value"/>
    		<div style="foat:left; border: solid 1px black; width:13px;height: 13px">
    			<xsl:if test="$value='true'">
    				<b>
    <center>X</center>
    </b>
    			</xsl:if>
    		</div>		
    	</xsl:template>
    	
    	<xsl:template name="break">
    	  <xsl:param name="text" select="."/>
    	  <xsl:choose>
    		<xsl:when test="contains($text, '&#10;')">
    		  <xsl:value-of select="substring-before($text, '&#10;')"/>
    		  <br/>
    		  <xsl:call-template name="break">
    			<xsl:with-param name="text" select="substring-after($text, '&#10;')"/>
    		  </xsl:call-template>
    		</xsl:when>
    		<xsl:otherwise>
    		  <xsl:value-of select="$text"/>
    		</xsl:otherwise>
    	  </xsl:choose>
    	</xsl:template>		
    
    </xsl:stylesheet>