1620

ID1620
Data2014-06-02
Symbol2014/06/02/1620
InstytucjaKancelaria Sejmu
NazwaPismo w sprawie interpelacji
Czy Aktualny0

Ustawy (1)

  • URI://Dziennik_Ustaw/2013/235/16b/1
  • Ustawa z dnia 17 lutego 2005 r. o informatyzacji działalności podmiotów realizujących zadania publiczne

    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/2014/06/02/1620/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns="http://www.w3.org/1999/xhtml" version="2.0" xsi:schemaLocation="http://www.w3.org/1999/XSL/Transform http://www.w3.org/2005/02/schema-for-xslt20.xsd" exclude-result-prefixes="adr oso inst meta wnio ds str xsi">
    	<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">
    		<xsl:param name="tresc" select="wnio:TrescDokumentu"/>
    		<html>
    			<head>
    				<title>Dokument elektroniczny</title>
    				<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    				<style type="text/css">
                        .body
                        {
                        text-align: justify;
                        font-size: 11px;
                        font-family: Verdana;
                        line-height: 20px;
                        }
                        .mainTxt
                        {
                        text-align: justify;
                        font-size: 12px;
                        font-family: Verdana;
                        line-height: 20px;
                        white-space: pre-wrap;
                        word-wrap: break-word;
                        }
                        .mainTxtContainer
                        {
    
                        }
    
                        .acc {
                        position: absolute;
                        left: -9999px;
                        }
    
                        .osw {
                        list-style-type: none;
                        padding: 0px;
                        }
    
                        .oswli{
    
                        }
                        h3 {
    						text-align: center;
    						font-size: 12px; 
    						line-height: 20px; 
    						font-weight: bold;
                        }
                    </style>
    			</head>
    			<body class="body">
    				<div style="width: 100%;">
    					<xsl:call-template name="NaglowekStandard"/>
    					<br/>
    					<xsl:call-template name="RodzajDokumentu"/>
    					<xsl:call-template name="TytulDokumentu"/>
    					<xsl:call-template name="Dotyczy"/>
    					<h4 class="acc">Treść dokumentu</h4>
    					<div class="mainTxtContainer">
    						<pre class="mainTxt">
    							<xsl:value-of select="$tresc/wnio:TrescPisma"/>
    						</pre>
    					</div>
    					<xsl:call-template name="Oswiadczenia"/>
    					<xsl:call-template name="InformacjeDodatkowe">
    						<xsl:with-param name="informacje" select="$tresc/wnio:InformacjeDodatkowe"/>
    					</xsl:call-template>
    					<xsl:call-template name="Upowaznienie"/>
    					<xsl:call-template name="Zalaczniki"/>
    					<xsl:call-template name="DoWiadomosci"/>
    					<xsl:call-template name="Podpis"/>
    				</div>
    			</body>
    		</html>
    	</xsl:template>
    	<xsl:template name="NaglowekStandard">
    		<h1 class="acc">Dokument elektroniczny</h1>
    		<h2 class="acc">Dane nadawców</h2>
    		<p style="width: 340px;text-align: left;font-size: 12px;font-family: Verdana;line-height: 20px;float:left;">
    			<xsl:call-template name="Podmioty">
    				<xsl:with-param name="podmiot" select="wnio:DaneDokumentu/str:Nadawcy"/>
    			</xsl:call-template>
    		</p>
    		<h2 class="acc">Miejsce i data sporządzenia dokumentu</h2>
    		<p style="text-align: right;font-size: 12px;font-family: Verdana;line-height: 20px;float: right">
    			<xsl:call-template name="MiejscowoscData">
    				<xsl:with-param name="miejscowosc" select="'Warszawa'"/>
    			</xsl:call-template>
    		</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: 20px;">
    			<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: 20px;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>
    		<div style="clear: both;"/>
    	</xsl:template>
    	<xsl:template name="Zalaczniki">
    		<xsl:param name="zalaczniki" select="wnio:TrescDokumentu/str:Zalaczniki"/>
    		<xsl:if test="count($zalaczniki/str:Zalacznik) &gt; 0">
    			<div style="text-align: left;">
    				<h2 style="font-size: 11px;font-family: Verdana;line-height: 20px;padding: 0px;margin:0px; font-weight: normal;">Załączniki:</h2>
    				<ol style="padding-top: 0px;margin-top: 0px;">
    					<xsl:for-each select="$zalaczniki/str:Zalacznik[@nazwaPliku != '']">
    						<li>
    							<xsl:if test="@kodowanie='base64'">
    								<xsl:value-of select="@nazwaPliku"/>
    								<xsl:if test="string-length(str:OpisZalacznika) &gt; 0">
                                        -
                                    </xsl:if>
    								<xsl:if test="string-length(str:OpisZalacznika) &gt; 0">
    									<xsl:value-of select="str:OpisZalacznika"/>
    								</xsl:if>
    							</xsl:if>
    							<xsl:if test="@kodowanie='URI'">
    								<a href="{str:DaneZalacznika}">
    									<xsl:value-of select="@nazwaPliku"/>
    								</a>
    								<xsl:if test="string-length(str:OpisZalacznika) &gt; 0">
                                        (wartość skrótu w chwili załączania:
                                        <xsl:value-of select="str:OpisZalacznika"/>
                                        )
                                    </xsl:if>
    							</xsl:if>
    						</li>
    					</xsl:for-each>
    				</ol>
    			</div>
    		</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="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="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/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:if test="string-length($id/inst:InnyIdentyfikator/inst:WartoscIdentyfikatora) &gt; 0">
    			<xsl:if test="string-length($id/inst:InnyIdentyfikator/inst:TypIdentyfikatora) &gt; 0">
    				<xsl:value-of select="$id/inst:InnyIdentyfikator/inst:TypIdentyfikatora"/>
    				<xsl:value-of select="': '"/>
    			</xsl:if>
    			<xsl:value-of select="$id/inst:InnyIdentyfikator/inst:WartoscIdentyfikatora"/>
    			<xsl:call-template name="InLine">
    				<xsl:with-param name="value" select="$inline"/>
    			</xsl:call-template>
    		</xsl:if>
    	</xsl:template>
    	<xsl:template name="PodmiotOsoba">
    		<xsl:param name="osoba" select="wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/oso:Osoba"/>
    		<xsl:param name="inline" select="'false'"/>
    		<xsl:value-of select="$osoba/oso:Imie"/>
    		<xsl:if test="string-length($osoba/oso:ImieDrugie) &gt; 0">
    			<xsl:value-of select="' '"/>
    			<xsl:value-of select="$osoba/oso:ImieDrugie"/>
    		</xsl:if>
    		<xsl:for-each select="$osoba/oso:Nazwisko[string-length(.) &gt; 0]">
    			<xsl:value-of select="' '"/>
    			<xsl:value-of select="."/>
    		</xsl:for-each>
    		<xsl:call-template name="InLine">
    			<xsl:with-param name="value" select="$inline"/>
    		</xsl:call-template>
    		<xsl:if test="count($osoba/adr:Adres) &gt; 0">
    			<xsl:call-template name="Adres">
    				<xsl:with-param name="adres" select="$osoba/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($osoba/oso:IdOsoby) &gt; 0">
    			<xsl:call-template name="PodmiotIdentyfikatory">
    				<xsl:with-param name="id" select="$osoba/oso:IdOsoby"/>
    				<xsl:with-param name="inline" select="$inline"/>
    			</xsl:call-template>
    		</xsl:if>
    		<xsl:if test="count($osoba/adr:Kontakt) &gt; 0">
    			<xsl:call-template name="PodmiotKontakt">
    				<xsl:with-param name="kontakt" select="$osoba/adr:Kontakt"/>
    				<xsl:with-param name="inline" select="$inline"/>
    			</xsl:call-template>
    		</xsl:if>
    	</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="$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="oso:Osoba">
    				<xsl:call-template name="PodmiotOsoba">
    					<xsl:with-param name="osoba" select="oso:Osoba"/>
    					<xsl:with-param name="inline" select="$inline"/>
    				</xsl:call-template>
    			</xsl:if>
    			<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="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="Adres">
    		<xsl:param name="adres"/>
    		<xsl:param name="inline" select="'false'"/>
    		<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 test="string-length($adres/adr:Ulica) = 0">
    				<xsl:value-of select="' '"/>
    				<xsl:value-of select="$adres/adr:Budynek"/>
    				<xsl:if test="string-length($adres/adr:Budynek) &gt; 0">
    					<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:if>
    			</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:Ulica) &gt; 0">
    			<xsl:value-of select="$adres/adr:Ulica"/>
    			<xsl:value-of select="' '"/>
    			<xsl:value-of select="$adres/adr:Budynek"/>
    			<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: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="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="Oswiadczenia">
    		<xsl:param name="oswiadczenia" select="wnio:TrescDokumentu/wnio:Oswiadczenia"/>
    		<xsl:if test="count($oswiadczenia/wnio:Oswiadczenie[string-length(text()) &gt; 0]) &gt; 0">
    			<div style="text-align: left;">
    				<h2 class="acc">Oświadczenia:</h2>
    				<xsl:for-each select="$oswiadczenia/wnio:Oswiadczenie[string-length(text()) &gt; 0]">
    					<p>
    						<span>
    							<xsl:value-of select="."/>
    						</span>
    					</p>
    				</xsl:for-each>
    			</div>
    		</xsl:if>
    	</xsl:template>
    	<xsl:template name="InformacjeDodatkowe">
    		<xsl:param name="informacje" select="wnio:TrescDokumentu/wnio:Informacje"/>
    		<xsl:for-each select="$informacje/wnio:Informacja">
    			<xsl:if test="string-length(.) &gt; 0">
    				<p style="text-align: justify;font-size: 11px;font-family: Verdana;line-height: 20px;">
    					<xsl:value-of select="."/>
    				</p>
    			</xsl:if>
    		</xsl:for-each>
    	</xsl:template>
    	<xsl:template name="DoWiadomosci">
    		<xsl:param name="dowiadomosci" select="wnio:TrescDokumentu/wnio:DoWiadomosci"/>
    		<xsl:if test="count($dowiadomosci/meta:Podmiot) &gt; 0">
    			<div style="text-align: left;">
    				<p style="font-size: 11px;font-family: Verdana;line-height: 20px;margin: 0px;padding:0px">Do wiadomości:</p>
    				<ol style="padding-top: 0px;margin-top: 0px;">
    					<xsl:for-each select="$dowiadomosci/meta:Podmiot">
    						<li>
    							<xsl:choose>
    								<xsl:when test="inst:Instytucja">
    									<xsl:call-template name="PodmiotInstytucja">
    										<xsl:with-param name="instytucja" select="inst:Instytucja"/>
    										<xsl:with-param name="inline" select="'true'"/>
    									</xsl:call-template>
    								</xsl:when>
    								<xsl:when test="oso:Osoba">
    									<xsl:call-template name="PodmiotOsoba">
    										<xsl:with-param name="osoba" select="oso:Osoba"/>
    										<xsl:with-param name="inline" select="'true'"/>
    									</xsl:call-template>
    								</xsl:when>
    							</xsl:choose>
    						</li>
    					</xsl:for-each>
    				</ol>
    			</div>
    		</xsl:if>
    	</xsl:template>
    	<xsl:template name="Upowaznienie">
    		<xsl:param name="upo" select="wnio:TrescDokumentu/wnio:Podpis"/>
    		<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:if test="string-length($upo/wnio:ZUpowaznienia) &gt; 0">
                                    Z upoważnienia
                                    <xsl:value-of select="' '"/>
    								<xsl:value-of select="$upo/wnio:ZUpowaznienia"/>
    								<br/>
    							</xsl:if>
    							<xsl:value-of select="$upo/oso:Imie"/>
    							<xsl:for-each select="$upo/oso:ImieDrugie">
    								<xsl:value-of select="' '"/>
    								<xsl:value-of select="."/>
    							</xsl:for-each>
    							<xsl:for-each select="$upo/oso:Nazwisko">
    								<xsl:value-of select="' '"/>
    								<xsl:value-of select="."/>
    							</xsl:for-each>
    							<xsl:if test="string-length($upo/wnio:Stanowisko) &gt; 0">
    								<br/>
    								<xsl:value-of select="$upo/wnio:Stanowisko"/>
    							</xsl:if>
    						</p>
    					</td>
    				</tr>
    			</table>
    			<div style="clear: both;"/>
    		</div>
    	</xsl:template>
    	<xsl:template name="Podpis">
    		<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;">
    						<h2 class="acc">Podpisy elektroniczne</h2>
    						<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;"/>
    	</xsl:template>
    	<xsl:template name="RodzajDokumentu">
    		<xsl:param name="rodzaj" select="wnio:TrescDokumentu/wnio:RodzajWnioskuRozszerzony/@rodzaj"/>
    		<xsl:param name="jakiInny" select="wnio:TrescDokumentu/wnio:RodzajWnioskuRozszerzony/@jakiInny"/>
    		<!-- jesli typ predefiniowany, wypisz -->
    		<xsl:if test="$rodzaj != 'inne pismo'">
    			<h2 style="text-align: center; font-size: 12px; line-height: 20px; text-transform: uppercase; font-weight: normal;">
    				<xsl:value-of select="$rodzaj"/>
    			</h2>
    		</xsl:if>
    		<!-- jesli 'inne pismo' i podano jakie, wypisz -->
    		<xsl:if test="$rodzaj = 'inne pismo' and $jakiInny != ''">
    			<h2 style="text-align: center; font-size: 12px; line-height: 20px; text-transform: uppercase; font-weight: normal;">
    				<xsl:value-of select="$jakiInny"/>
    			</h2>
    		</xsl:if>
    		<!-- w przeciwnym razie bez h1 -->
    	</xsl:template>
    	<xsl:template name="TytulDokumentu">
    		<xsl:param name="tytul" select="wnio:TrescDokumentu/wnio:Tytul"/>
    		<xsl:param name="nr" select="wnio:DaneDokumentu/str:Naglowek/meta:Identyfikator[@typIdentyfikatora='znak dokumentu']/meta:Wartosc"/>
    		<h3>
    			Pismo nr 
    			<xsl:value-of select="$nr"/>
    		</h3>
    		<h3>
    			<xsl:value-of select="$tytul"/>
    		</h3>
    	</xsl:template>
    	<xsl:template name="Dotyczy">
    		<h4>Dotyczy <xsl:value-of select="lower-case(wnio:TrescDokumentu/wnio:CzegoDotyczy)"/>:</h4>
    		<table>
    			<tbody>
    				<xsl:for-each select="wnio:TrescDokumentu/wnio:Sprawy/wnio:Sprawa">
    					<tr>
    						<td style="width: 100px">
    							<xsl:value-of select="wnio:NumerSprawy"/>
    						</td>
    						<td>
    							<xsl:value-of select="wnio:NazwaSprawy"/>
    						</td>
    					</tr>
    				</xsl:for-each>
    			</tbody>
    		</table>
    	</xsl:template>
    </xsl:stylesheet>