1106

ID1106
Data2013-03-28
Symbol2013/03/28/1106
InstytucjaUrząd Miasta Łodzi
NazwaInformacja o osobach, które ukończyły szkolenie dla osoby ubiegającej się o uzyskanie uprawnienia do kierowania motorowerem, pojazdem silnikowym lub tramwajem w formie kursu
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:adr="http://crd.gov.pl/xml/schematy/adres/2009/11/09/" xmlns:oso="http://crd.gov.pl/xml/schematy/osoba/2009/11/16/" 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:str="http://crd.gov.pl/xml/schematy/struktura/2009/11/16/" xmlns:wnio="http://crd.gov.pl/wzor/2013/03/28/1106/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" version="1.0" xsi:schemaLocation="http://www.w3.org/1999/XSL/Transform http://www.w3.org/2005/02/schema-for-xslt20.xsd" xmlns="http://www.w3.org/1999/xhtml" exclude-result-prefixes="adr oso inst meta wnio ds str xsi" xmlns:schemaLocation="http://www.w3.org/1999/XSL/Transform http://www.w3.org/2005/02/schema-for-xslt20.xsd">
    
    	<xsl:output method="xml" encoding="utf-8" indent="yes" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"/>
    	<xsl:template match="/">
    		<xsl:apply-templates select="wnio:Dokument"/>
    	</xsl:template>
    
    	<xsl:template match="wnio:Dokument">
    		<html>
    			<head>
    				<title>Informacja o osobach, które ukończyły szkolenie dla osoby ubiegającej się o uzyskanie uprawnienia do kierowania motorowerem, pojazdem silnikowym lub tramwajem w formie kursu</title>
    				<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    				<style type="text/css">.body
              {
              text-align: justify;
              font-size: 14px;
              font-family: Verdana;
              line-height: 18px;
    		  margin-top: 0;
              margin-bottom: 2px;
    		  }
    		  .pre_t
              {
              text-align: justify;
              font-size: 14px;
              font-family: Verdana;
    		  font-weight: bold;
              line-height: 18px;
    		  margin-top: 0;
              margin-bottom: 2px;
    		  white-space: pre-wrap;
    		  word-wrap: break-word;
              }
    		  .body_maly
              {
              text-align: center;
              font-size: 10px;
              font-family: Verdana;
              line-height: 14px;
    		  margin-top: 0;
              margin-bottom: 2px;
    		  }
    		  .body_maly_l
              {
              text-align: justify;
              font-size: 11px;
              font-family: Times New Roman;
              line-height: 16px;
    		  }
    		  .mainTxt 
    		  {
    		    text-align: justify;
    			font-size: 14px;
    			font-family: Verdana;
    			line-height: 18px;
    			white-space: pre-wrap;
    			word-wrap: break-word;
    		  }	  
    		  .mainTxtContainer 
    		  {
    			
    		  }
    		  
    		  .acc {
    			position: absolute;
    			left: -9999px;
    		  }
    		  
    		  .osw {
    			list-style-type: none;
    			padding: 0px;
    		  }
    		  
    		  .oswli{
    			
    		  }
    		  .gridTable {
    		  	border-width: 1px;
    			border-style: solid;
    			border-collapse: collapse;
    			font-size: 8pt;
    			border-color: black
    		  }
    		  .tableHeader {font-weight: normal; font-size: 7pt; line-height: 11px; text-align:center; background: #aaaaaa}
    		  
    		  td { font-family: Arial; font-size: 8pt; color: #000000; text-align: left}</style>
    			</head>
    
    			<body class="body">
    				<div style="width: 100%;">
    					<xsl:call-template name="NaglowekStandard"/>
    
    					<p align="center" style="text-align: center;font-size: 14px;font-family: Verdana;line-height: 18px;padding-top: 0px;">
    						<span style="font-weight: bold;font-size: 12px;">Informacja o osobach, które ukończyły szkolenie dla osoby ubiegającej się o uzyskanie uprawnienia do kierowania motorowerem, pojazdem silnikowym lub tramwajem w formie kursu</span>
    					</p>
    				
    					<table class="gridTable" cellpadding="2" border="1">
    						<tr>
    							<td class="tableHeader" width="2%">Lp.</td>
    							<td class="tableHeader" width="15%">Imię i nazwisko</td>
    							<td class="tableHeader" width="12%">Data i miejsce urodzenia</td>
    							<td class="tableHeader" width="10%">Nr ewidencyjny PESEL, a w przypadku osoby nieposiadającej numeru PESEL, - serię, numer i nazwę dokumentu potwierdzającego tożsamość oraz nazwę państwa, które wydało ten dokument</td>
    							<td class="tableHeader" width="20%">Adres zamieszkania</td>
    							<td class="tableHeader" width="10%">Zakres ukończonego kursu</td>
    							<td class="tableHeader" width="15%">Imię i nazwisko odpowiednio instruktora lub wykładowcy, który prowadził zajęcia</td>
    							<td class="tableHeader" width="8%">Numer ewidencyjny odpowiednio instruktora lub wykładowcy, który prowadził zajęcia</td>
    							<td class="tableHeader" width="8%">Numer ewidencyjny jednostki szkolącej</td>
    						</tr>
    						<xsl:call-template name="szkolenie_osoba"/>
    					</table>
    					
    					<br/>
    					<xsl:call-template name="Podpis"/>
    				</div>
    			</body>
    		</html>
    	</xsl:template>
    
    	<xsl:template name="szkolenie_osoba">
    		<xsl:for-each select="wnio:TrescDokumentu/wnio:SzkolenieOsoba">
    			<tr>
    				<td>
    					<xsl:value-of select="position()"/>.</td>
    				<td>
    					<xsl:if test="string-length(oso:Imie) &gt; 0">
    						<xsl:value-of select="oso:Imie"/>
    					</xsl:if>
    					<xsl:if test="string-length(oso:Nazwisko) &gt; 0">
    						<xsl:value-of select="' '"/>
    						<xsl:value-of select="oso:Nazwisko"/>
    					</xsl:if>
    				</td>
    				<td>
    					<xsl:if test="string-length(oso:DataUrodzenia) &gt; 0">
    						<xsl:value-of select="oso:DataUrodzenia"/>
    					</xsl:if>
    					<xsl:if test="string-length(oso:MiejsceUrodzenia) &gt; 0">
    						<xsl:value-of select="' '"/>
    						<xsl:value-of select="oso:MiejsceUrodzenia"/>
    					</xsl:if>
    				</td>
    				<td>
    					<xsl:choose>
    						<xsl:when test="string-length(wnio:PeselSekcja/oso:PESEL) &gt; 0">
    							<xsl:value-of select="wnio:PeselSekcja/oso:PESEL"/>
    						</xsl:when>
    						<xsl:otherwise>
    							<xsl:if test="string-length(wnio:NrDowoduTozsamosciSekcja/oso:NrDowoduTozsamosci) &gt; 0">
    								<xsl:value-of select="wnio:NrDowoduTozsamosciSekcja/wnio:RodzajDowoduTozsamosci"/>
    								<xsl:value-of select="', nr: '"/>
    								<xsl:value-of select="wnio:NrDowoduTozsamosciSekcja/oso:NrDowoduTozsamosci"/>
    								<xsl:value-of select="', państwo wydania: '"/>
    								<xsl:value-of select="wnio:NrDowoduTozsamosciSekcja/wnio:PanstwoWydaniaDowoduTozsamosci"/>
    							</xsl:if>
    						</xsl:otherwise>
    					</xsl:choose>
    				</td>
    				<td>
    					<xsl:call-template name="rodzaj_ulica">
    						<xsl:with-param name="rodzaj_ulica1" select="adr:Ulica"/>
    					</xsl:call-template>
    					<xsl:value-of select="adr:Ulica"/>
    					<xsl:value-of select="' '"/>
    					<xsl:value-of select="adr:Budynek"/>
    					<xsl:if test="string-length(adr:Lokal) &gt; 0">
    						<xsl:value-of select="' m. '"/>
    						<xsl:value-of select="adr:Lokal"/>
    					</xsl:if>
    					<br/>
    					<xsl:if test="string-length(adr:KodPocztowy) &gt; 0">
    						<xsl:value-of select="adr:KodPocztowy"/>
    						<xsl:value-of select="' '"/>
    					</xsl:if>
    					<xsl:if test="string-length(adr:Miejscowosc) &gt; 0">
    						<xsl:value-of select="adr:Miejscowosc"/>
    					</xsl:if>
    				</td>
    				<td>
    					<xsl:if test="string-length(wnio:ZakresUkonczonegoKursu) &gt; 0">
    						<xsl:value-of select="wnio:ZakresUkonczonegoKursu"/>
    					</xsl:if>
    				</td>
    				<td>
    					<xsl:for-each select="wnio:Instruktor">
    						<xsl:if test="string-length(oso:Imie) &gt; 0">
    							<xsl:value-of select="oso:Imie"/>
    						</xsl:if>
    						<xsl:if test="string-length(oso:Nazwisko) &gt; 0">
    							<xsl:value-of select="' '"/>
    							<xsl:value-of select="oso:Nazwisko"/>
    							<br/>
    						</xsl:if>
    					</xsl:for-each>
    				</td>
    				<td>
    					<xsl:for-each select="wnio:Instruktor">
    						<xsl:if test="string-length(wnio:NrInstruktora) &gt; 0">
    							<xsl:value-of select="wnio:NrInstruktora"/>
    							<br/>
    						</xsl:if>
    					</xsl:for-each>
    				</td>
    				<td>
    					<xsl:if test="string-length(//wnio:TrescDokumentu/wnio:WnioskodawcaFirma/wnio:NrJednostkiSzkolacej) &gt; 0">
    						<xsl:value-of select="//wnio:TrescDokumentu/wnio:WnioskodawcaFirma/wnio:NrJednostkiSzkolacej"/>
    					</xsl:if>
    				</td>
    			</tr>
    		</xsl:for-each>
    	</xsl:template>
    
    	<xsl:template name="naglowek_nadawca">
    		<xsl:param name="nadawca_firma" select="wnio:TrescDokumentu/wnio:WnioskodawcaFirma"/>
    		<xsl:value-of select="$nadawca_firma/wnio:NazwaFirmy"/>
    		<xsl:if test="string-length($nadawca_firma/wnio:NrJednostkiSzkolacej) &gt; 0">
    			<br/>
    			<xsl:value-of select="'Nr ewidencyjny ośrodka: '"/>
    			<xsl:value-of select="$nadawca_firma/wnio:NrJednostkiSzkolacej"/>
    		</xsl:if>
    			<xsl:if test="string-length($nadawca_firma/wnio:Kategoria) &gt; 0">
    			<br/>
    			<xsl:value-of select="'Szkolenie w zakresie prawa jazdy kategorii: '"/>
    			<xsl:value-of select="$nadawca_firma/wnio:Kategoria"/>
    		</xsl:if>
    		<xsl:if test="string-length($nadawca_firma/inst:NIP) &gt; 0">
    			<br/>
    			<xsl:value-of select="'NIP: '"/>
    			<xsl:value-of select="$nadawca_firma/inst:NIP"/>
    		</xsl:if>
    		<xsl:if test="string-length($nadawca_firma/inst:REGON) &gt; 0">
    			<br/>
    			<xsl:value-of select="'REGON: '"/>
    			<xsl:value-of select="$nadawca_firma/inst:REGON"/>
    		</xsl:if>
    		<br/>
    		<xsl:call-template name="rodzaj_ulica">
    			<xsl:with-param name="rodzaj_ulica1" select="$nadawca_firma/adr:Ulica"/>
    		</xsl:call-template>
    		<xsl:value-of select="$nadawca_firma/adr:Ulica"/>
    		<xsl:value-of select="' '"/>
    		<xsl:value-of select="$nadawca_firma/adr:Budynek"/>
    			<xsl:if test="string-length($nadawca_firma/adr:Lokal) &gt; 0">
    			<xsl:value-of select="' m. '"/>
    			<xsl:value-of select="$nadawca_firma/adr:Lokal"/>
    		</xsl:if>
    		<br/>
    		<xsl:if test="string-length($nadawca_firma/adr:KodPocztowy) &gt; 0">
    			<xsl:value-of select="$nadawca_firma/adr:KodPocztowy"/>
    			<xsl:value-of select="' '"/>
    		</xsl:if>
    		<xsl:if test="string-length($nadawca_firma/adr:Miejscowosc) &gt; 0">
    			<xsl:value-of select="$nadawca_firma/adr:Miejscowosc"/>
    		</xsl:if>
    		<xsl:if test="string-length($nadawca_firma/adr:Telefon) &gt; 0">
    			<br/>
    			<xsl:value-of select="'Telefon kontaktowy: '"/>
    			<xsl:value-of select="$nadawca_firma/adr:Telefon"/>
    		</xsl:if>
    		<xsl:if test="string-length($nadawca_firma/adr:Email) &gt; 0">
    			<br/>
    			<xsl:value-of select="'E-mail: '"/>
    			<xsl:value-of select="$nadawca_firma/adr:Email"/>
    		</xsl:if>
    	</xsl:template>
    
    	<xsl:template name="rodzaj_ulica">
    		<xsl:param name="rodzaj_ulica1" select="'false'"/>
    		<xsl:for-each select="$rodzaj_ulica1[@rodzajUlicy != 'inna']">
    			<xsl:value-of select="@rodzajUlicy"/>
    			<xsl:text> </xsl:text>
    		</xsl:for-each>
    		<xsl:text> </xsl:text>
    	</xsl:template>
    
    	<!--NAGŁÓWKI-->
    	<xsl:template name="NaglowekStandard">
    		<h1 class="acc">Dokument elektroniczny</h1>
    		<h2 class="acc">Dane nadawców</h2>
    		<p style="width: 500px;text-align: left;font-size: 12px;font-family: Verdana;line-height: 16px;float:left;">
    			<xsl:call-template name="naglowek_nadawca"/>
    		</p>
    		<h2 class="acc">Miejsce i data sporządzenia dokumentu</h2>
    		<p style="text-align: right;font-size: 12px;font-family: Verdana;line-height: 16px;float: right">
    			<xsl:call-template name="MiejscowoscData"/>
    		</p>
    		<div style="clear: both;"/>
    		<h2 class="acc">Dane adresatów</h2>
    		<div align="right" style="text-align: right;font-size: 12px;font-family: Verdana;line-height: 16px;">
    			<table style="float: right;">
    				<tr>
    					<td style="width: auto;max-width: 300px;">
    						<p align="left" style="text-align: left;font-size: 12px;font-family: Verdana;line-height: 16px;max-width: 280px">
    							<xsl:call-template name="Podmioty">
    								<xsl:with-param name="podmiot" select="wnio:DaneDokumentu/str:Adresaci"/>
    							</xsl:call-template>
    						</p>
    					</td>
    				</tr>
    			</table>
    		</div>
    		<xsl:if test="string-length(wnio:DaneDokumentu/str:Naglowek/meta:Identyfikator/meta:Wartosc) &gt; 0">
    			<p align="left" style="text-align: left;font-size: 12px;font-family: Verdana;line-height: 16px;">
    				<xsl:value-of select="wnio:DaneDokumentu/str:Naglowek/meta:Identyfikator/meta:Wartosc"/>
    			</p>
    		</xsl:if>
    		<div style="clear: both;"/>
    	</xsl:template>
    
    	<xsl:template name="PodmiotInstytucja">
    		<xsl:param name="instytucja" select="wnio:DaneDokumentu/str:Adresaci/meta:Podmiot/inst:Instytucja"/>
    		<xsl:param name="inline" select="'false'"/>
    		<xsl:if test="string-length($instytucja/inst:NazwaInstytucji) &gt; 0">
    			<xsl:value-of select="$instytucja/inst:NazwaInstytucji"/>
    			<xsl:call-template name="InLine">
    				<xsl:with-param name="value" select="$inline"/>
    			</xsl:call-template>
    		</xsl:if>
    		<xsl:if test="string-length($instytucja/inst:IdInstytucji/inst:InnyIdentyfikator/inst:TypIdentyfikatora) &gt; 0">
    			<xsl:value-of select="$instytucja/inst:IdInstytucji/inst:InnyIdentyfikator/inst:TypIdentyfikatora"/>
    			<xsl:call-template name="InLine">
    				<xsl:with-param name="value" select="$inline"/>
    			</xsl:call-template>
    		</xsl:if>
    		<xsl:if test="string-length($instytucja/inst:IdInstytucji/inst:InnyIdentyfikator/inst:WartoscIdentyfikatora) &gt; 0">
    			<xsl:value-of select="$instytucja/inst:IdInstytucji/inst:InnyIdentyfikator/inst:WartoscIdentyfikatora"/>
    			<xsl:call-template name="InLine">
    				<xsl:with-param name="value" select="$inline"/>
    			</xsl:call-template>
    		</xsl:if>
    		<xsl:if test="$instytucja/inst:Jednostka">
    			<xsl:call-template name="PodmiotJednostka">
    				<xsl:with-param name="jednostka" select="$instytucja/inst:Jednostka"/>
    				<xsl:with-param name="inline" select="$inline"/>
    			</xsl:call-template>
    		</xsl:if>
    		<xsl:if test="count($instytucja/adr:Adres) &gt; 0">
    			<xsl:call-template name="Adres">
    				<xsl:with-param name="adres" select="$instytucja/adr:Adres"/>
    				<xsl:with-param name="inline" select="$inline"/>
    			</xsl:call-template>
    			<xsl:call-template name="InLine">
    				<xsl:with-param name="value" select="$inline"/>
    			</xsl:call-template>
    		</xsl:if>
    		<xsl:if test="count($instytucja/inst:IdInstytucji) &gt; 0">
    			<xsl:call-template name="PodmiotIdentyfikatory">
    				<xsl:with-param name="id" select="$instytucja/inst:IdInstytucji"/>
    				<xsl:with-param name="inline" select="$inline"/>
    			</xsl:call-template>
    		</xsl:if>
    		<xsl:if test="count($instytucja/adr:Kontakt) &gt; 0">
    			<xsl:call-template name="PodmiotKontakt">
    				<xsl:with-param name="kontakt" select="$instytucja/adr:Kontakt"/>
    				<xsl:with-param name="inline" select="$inline"/>
    			</xsl:call-template>
    		</xsl:if>
    	</xsl:template>
    
    	<xsl:template name="Podmioty">
    		<xsl:param name="podmiot" select="wnio:DaneDokumentu/str:Adresaci"/>
    		<xsl:param name="inline" select="'false'"/>
    		<xsl:for-each select="$podmiot/meta:Podmiot">
    			<xsl:if test="inst:Instytucja">
    				<xsl:call-template name="PodmiotInstytucja">
    					<xsl:with-param name="instytucja" select="inst:Instytucja"/>
    					<xsl:with-param name="inline" select="$inline"/>
    				</xsl:call-template>
    			</xsl:if>
    		</xsl:for-each>
    	</xsl:template>
    
    	<xsl:template name="InLine">
    		<xsl:param name="value" select="'true'"/>
    		<xsl:choose>
    			<xsl:when test="$value='false'">
    				<br/>
    			</xsl:when>
    			<xsl:otherwise>,</xsl:otherwise>
    		</xsl:choose>
    	</xsl:template>
    
    	<xsl:template name="Adres">
    		<xsl:param name="adres"/>
    		<xsl:param name="inline" select="'false'"/>
    		<xsl:if test="string-length($adres/adr:Ulica) &gt; 0">
    			<xsl:value-of select="$adres/adr:Ulica"/>
    			<xsl:value-of select="' '"/>
    			<xsl:value-of select="$adres/adr:Budynek"/>
    			<xsl:value-of select="$adres/wnio:BudynekRozszerzony"/>
    			<xsl:if test="string-length($adres/adr:Lokal) &gt; 0">
    				<xsl:value-of select="' '"/>/<xsl:value-of select="' '"/>
    				<xsl:value-of select="$adres/adr:Lokal"/>
    			</xsl:if>
    			<xsl:call-template name="InLine">
    				<xsl:with-param name="value" select="$inline"/>
    			</xsl:call-template>
    		</xsl:if>
    		<xsl:if test="string-length($adres/adr:KodPocztowy) &gt; 0 or string-length($adres/adr:Miejscowosc) &gt; 0 or string-length($adres/adr:Poczta) &gt; 0">
    			<xsl:if test="string-length($adres/adr:KodPocztowy) &gt; 0">
    				<xsl:value-of select="$adres/adr:KodPocztowy"/>
    				<xsl:value-of select="' '"/>
    			</xsl:if>
    
    			<xsl:if test="string-length($adres/adr:Poczta) &gt; 0">
    				<xsl:value-of select="$adres/adr:Poczta"/>
    
    				<xsl:call-template name="InLine">
    					<xsl:with-param name="value" select="$inline"/>
    				</xsl:call-template>
    			</xsl:if>
    
    			<xsl:value-of select="$adres/adr:Miejscowosc"/>
    		</xsl:if>
    		<xsl:if test="string-length($adres/adr:Wojewodztwo) &gt; 0">
    			<xsl:call-template name="InLine">
    				<xsl:with-param name="value" select="$inline"/>
    			</xsl:call-template>
    			<xsl:value-of select="concat('Województwo: ',$adres/adr:Wojewodztwo)"/>
    		</xsl:if>
    		<xsl:if test="string-length($adres/adr:Powiat) &gt; 0">
    			<xsl:call-template name="InLine">
    				<xsl:with-param name="value" select="$inline"/>
    			</xsl:call-template>
    			<xsl:value-of select="concat('Powiat: ',$adres/adr:Powiat)"/>
    		</xsl:if>
    		<xsl:if test="string-length($adres/adr:Gmina) &gt; 0">
    			<xsl:call-template name="InLine">
    				<xsl:with-param name="value" select="$inline"/>
    			</xsl:call-template>
    			<xsl:value-of select="concat('Gmina: ',$adres/adr:Gmina)"/>
    		</xsl:if>
    	</xsl:template>
    
    	<xsl:template name="PodmiotIdentyfikatory">
    		<xsl:param name="id" select="oso:IdOsoby"/>
    		<xsl:param name="inline" select="'false'"/>
    		<xsl:if test="string-length($id/oso:PESEL) &gt; 0">
    			<xsl:value-of select="concat('PESEL: ',$id/oso:PESEL)"/>
    			<xsl:call-template name="InLine">
    				<xsl:with-param name="value" select="$inline"/>
    			</xsl:call-template>
    		</xsl:if>
    		<xsl:if test="string-length($id/oso:NIP) &gt; 0">
    			<xsl:value-of select="concat('NIP: ',$id/oso:NIP)"/>
    			<xsl:call-template name="InLine">
    				<xsl:with-param name="value" select="$inline"/>
    			</xsl:call-template>
    		</xsl:if>
    		<xsl:if test="string-length($id/oso:InnyIdentyfikator/oso:WartoscIdentyfikatora) &gt; 0">
    			<xsl:if test="string-length($id/oso:InnyIdentyfikator/oso:TypIdentyfikatora) &gt; 0">
    				<xsl:value-of select="$id/oso:InnyIdentyfikator/oso:TypIdentyfikatora"/>
    				<xsl:value-of select="': '"/>
    			</xsl:if>
    			<xsl:value-of select="$id/oso:InnyIdentyfikator/oso:WartoscIdentyfikatora"/>
    			<xsl:call-template name="InLine">
    				<xsl:with-param name="value" select="$inline"/>
    			</xsl:call-template>
    		</xsl:if>
    		<xsl:if test="string-length($id/inst:KRS) &gt; 0">
    			<xsl:value-of select="concat('KRS: ',$id/inst:KRS)"/>
    			<xsl:call-template name="InLine">
    				<xsl:with-param name="value" select="$inline"/>
    			</xsl:call-template>
    		</xsl:if>
    		<xsl:if test="string-length($id/inst:NIP) &gt; 0">
    			<xsl:value-of select="concat('NIP: ',$id/inst:NIP)"/>
    			<xsl:call-template name="InLine">
    				<xsl:with-param name="value" select="$inline"/>
    			</xsl:call-template>
    		</xsl:if>
    		<xsl:if test="string-length($id/inst:REGON) &gt; 0">
    			<xsl:value-of select="concat('REGON: ',$id/inst:REGON)"/>
    			<xsl:call-template name="InLine">
    				<xsl:with-param name="value" select="$inline"/>
    			</xsl:call-template>
    		</xsl:if>
    	</xsl:template>
    
    	<xsl:template name="PodmiotKontakt">
    		<xsl:param name="kontakt" select="adr:Kontakt"/>
    		<xsl:param name="inline" select="'false'"/>
    		<xsl:for-each select="$kontakt/adr:Telefon">
    			<xsl:if test="string-length(.) &gt; 0">
    				<xsl:value-of select="concat('Telefon: ',.)"/>
    				<xsl:call-template name="InLine">
    					<xsl:with-param name="value" select="$inline"/>
    				</xsl:call-template>
    			</xsl:if>
    		</xsl:for-each>
    		<xsl:for-each select="$kontakt/adr:Faks">
    			<xsl:if test="string-length(.) &gt; 0">
    				<xsl:value-of select="concat('Faks: ',.)"/>
    				<xsl:call-template name="InLine">
    					<xsl:with-param name="value" select="$inline"/>
    				</xsl:call-template>
    			</xsl:if>
    		</xsl:for-each>
    		<xsl:for-each select="$kontakt/adr:Email">
    			<xsl:if test="string-length(.) &gt; 0">
    				<xsl:value-of select="concat('Email: ',.)"/>
    				<xsl:call-template name="InLine">
    					<xsl:with-param name="value" select="$inline"/>
    				</xsl:call-template>
    			</xsl:if>
    		</xsl:for-each>
    		<xsl:for-each select="$kontakt/adr:URIKontakt">
    			<xsl:if test="string-length(.) &gt; 0">
    				<xsl:value-of select="concat('',.)"/>
    				<xsl:call-template name="InLine">
    					<xsl:with-param name="value" select="$inline"/>
    				</xsl:call-template>
    			</xsl:if>
    		</xsl:for-each>
    		<xsl:for-each select="$kontakt/adr:InnyKontakt">
    			<xsl:if test="string-length(.) &gt; 0">
    				<xsl:value-of select="concat('',.)"/>
    				<xsl:call-template name="InLine">
    					<xsl:with-param name="value" select="$inline"/>
    				</xsl:call-template>
    			</xsl:if>
    		</xsl:for-each>
    	</xsl:template>
    
    	<xsl:template name="PodmiotJednostka">
    		<xsl:param name="jednostka"/>
    		<xsl:param name="inline"/>
    		<xsl:if test="string-length($jednostka/inst:NazwaInstytucji) &gt; 0">
    			<xsl:value-of select="$jednostka/inst:NazwaInstytucji"/>
    
    			<xsl:call-template name="InLine">
    				<xsl:with-param name="value" select="$inline"/>
    			</xsl:call-template>
    		</xsl:if>
    		<xsl:if test="$jednostka/inst:Jednostka">
    			<xsl:call-template name="PodmiotJednostka">
    				<xsl:with-param name="jednostka" select="$jednostka/inst:Jednostka"/>
    				<xsl:with-param name="inline" select="$inline"/>
    			</xsl:call-template>
    		</xsl:if>
    	</xsl:template>
    	<xsl:template name="MiejscowoscData">
    		<xsl:param name="miejscowosc" select="wnio:TrescDokumentu/wnio:MiejscowoscDokumentu"/>
    		<xsl:param name="data" select="wnio:DaneDokumentu/meta:Data[@typDaty='stworzony']/meta:Czas"/>
    		<xsl:value-of select="$miejscowosc"/>,
    		<xsl:value-of select="' '"/>
    		<xsl:value-of select="$data"/>
    	</xsl:template>
    
    	<xsl:template name="Podpis">
    		<div align="right" style="text-align: right;font-size: 10px;font-family: Verdana;line-height: 16px;">
    			<table style="float: right;">
    				<tr>
    					<td style="width: 340px;">
    						<h2 class="acc">Podpisy elektroniczne</h2>
    						<p align="center" style="text-align: center;font-size: 10px;font-family: Verdana;line-height: 16px;">
    							<xsl:choose>
    								<xsl:when test="string-length(//wnio:Dokument/ds:Signature/ds:SignatureValue) &gt; 0">
    									<xsl:if test="string-length(//wnio:TrescDokumentu/wnio:Podpis/wnio:ImiePodpis) &gt; 0 or string-length(//wnio:TrescDokumentu/wnio:Podpis/wnio:NazwiskoPodpis) &gt; 0">
    										<xsl:text>Osoba podpisująca:</xsl:text>
    										<br/>
    										<xsl:if test="//wnio:TrescDokumentu/wnio:Podpis/wnio:ImiePodpis">
    											<b>
    												<xsl:value-of select="//wnio:TrescDokumentu/wnio:Podpis/wnio:ImiePodpis"/>
    											</b>
    											<xsl:value-of select="' '"/>
    										</xsl:if>
    										<b>
    											<xsl:value-of select="//wnio:TrescDokumentu/wnio:Podpis/wnio:NazwiskoPodpis"/>
    										</b>
    
    										<br/>
    									</xsl:if>
    
    									<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;"/>
    	</xsl:template>
    	<xsl:template name="Checkbox">
    		<xsl:param name="value"/>
    		<div style="border: solid 1px black; width:15px;height: 15px">
    			<xsl:if test="$value='1'">
    				<b>
    					<center>
    						<div style="vertical-align: super">X</div>
    					</center>
    				</b>
    			</xsl:if>
    		</div>
    	</xsl:template>
    </xsl:stylesheet>