198

ID198
Data2009-10-28
Symbol2009/10/28/198
InstytucjaMinisterstwo Spraw Wewnętrznych i Administracji
NazwaPismo ogólne
Czy Aktualny0

Ustawy (1)

  • URI://Dziennik_Ustaw/2002/144/1204
  • Ustawa z dnia 18 lipca 2002 r. o świadczeniu usług drogą elektroniczną

    Pliki

    Styl

    <?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:adr="http://crd.gov.pl/xml/schematy/adres/2009/03/06/" xmlns:oso="http://crd.gov.pl/xml/schematy/osoba/2009/03/06/" xmlns:inst="http://crd.gov.pl/xml/schematy/instytucja/2009/03/06/" 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/2009/10/28/198/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
      <xsl:output method="html" encoding="utf-8" indent="yes"/>
      <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>
            <meta http-equiv="Content-Type" content="text/html; charset=unicode"/>
            <style type="text/css">
              .body
              {
              text-align: justify;
              font-size: 11px;
              font-family: Verdana;
              line-height: 25px;
              }
            </style>
          </head>
          <body class="body" style="text-align: justify;font-size: 11px;font-family: Verdana;line-height: 25px;">
            <xsl:call-template name="NaglowekStandard"/>
    
            <xsl:if test="string-length(wnio:DaneDokumentu/str:Naglowek/str:NazwaDokumentu) &gt; 0">
              <p align="center" style="text-align: center;font-size: 11px;font-family: Verdana;line-height: 25px;padding-top: 30px;">
                <span style="font-weight: bold;font-size: 13px;">
                  <xsl:value-of select="wnio:DaneDokumentu/str:Naglowek/str:NazwaDokumentu"/>
                </span>
              </p>
              <br/>
            </xsl:if>
            
            <xsl:for-each select="$tresc/wnio:Informacje/wnio:Informacja">
              <xsl:if test="string-length(.) &gt; 0">
                <p style="width: 100%;text-align: justify;text-indent: 25px;font-size: 11px;font-family: Verdana;line-height: 25px;padding-top: 0px;margin-top: 0px;">
                  <xsl:value-of select="."/>
                  <br/>
                </p>
              </xsl:if>
            </xsl:for-each>
            
            <xsl:call-template name="Zalaczniki"/>
            <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="DoWiadomosci"/>        
            <xsl:call-template name="Podpis"/>
          </body>
        </html>
      </xsl:template>
    
      <xsl:template name="NaglowekStandard">
        <p align="right" style="text-align: right;font-size: 11px;font-family: Verdana;line-height: 25px;">
          <xsl:call-template name="MiejscowoscData"/>
        </p>
        <p align="left" style="text-align: left;font-size: 11px;font-family: Verdana;line-height: 25px;">
          <xsl:call-template name="Podmioty">
            <xsl:with-param name="podmiot" select="wnio:DaneDokumentu/str:Nadawcy"/>
          </xsl:call-template>
        </p>
        <p align="right" style="text-align: right;font-size: 11px;font-family: Verdana;line-height: 25px;">
          <table style="float: right;">
            <tr>
              <td style="width: 280px;">
                <p align="left" style="text-align: left;font-size: 11px;font-family: Verdana;line-height: 25px;">
                  <xsl:call-template name="Podmioty">
                    <xsl:with-param name="podmiot" select="wnio:DaneDokumentu/str:Adresaci"/>
                  </xsl:call-template>
                </p>
              </td>
            </tr>
          </table>
        </p>
        <xsl:if test="string-length(wnio:DaneDokumentu/str:Naglowek/meta:Identyfikator/meta:Wartosc) &gt; 0">
          <p align="left" style="text-align: left;font-size: 11px;font-family: Verdana;line-height: 25px;">
            <xsl:value-of select="wnio:DaneDokumentu/str:Naglowek/meta:Identyfikator/meta:Wartosc"/>
          </p>
        </xsl:if>
        <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">
          <p style="font-size: 11px;font-family: Verdana;line-height: 25px;">Załączniki:</p>
          <ol>
            <xsl:for-each select="$zalaczniki/str:Zalacznik">
              <li>
                <xsl:if test="string-length(str:OpisZalacznika) &gt; 0">
                  <xsl:value-of select="str:OpisZalacznika"/>
                </xsl:if>
                <xsl:if test="string-length(@nazwaPliku) &gt; 0">
                  <xsl:if test="string-length(str:OpisZalacznika) &gt; 0"> - </xsl:if>
                  <xsl:value-of select="@nazwaPliku"/>
                </xsl:if>
              </li>
            </xsl:for-each>
          </ol>
        </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="PodmiotIdentyfikatory">
        <xsl:param name="id" select="oso:IdOsoby"/>
        <xsl:param name="inline" select="'false'"/>
        <xsl:if test="$id/oso:PESEL">
          PESEL:
          <xsl:value-of select="' '"/>
          <xsl:value-of select="$id/oso:PESEL"/>
          <xsl:call-template name="InLine">
            <xsl:with-param name="value" select="$inline"/>
          </xsl:call-template>
        </xsl:if>
        <xsl:if test="$id/oso:NIP">
          NIP:
          <xsl:value-of select="' '"/>
          <xsl:value-of select="$id/oso:NIP"/>
          <xsl:call-template name="InLine">
            <xsl:with-param name="value" select="$inline"/>
          </xsl:call-template>
        </xsl:if>
        <xsl:if test="$id/oso:InnyIdentyfikator">
          <xsl:value-of select="$id/oso:InnyIdentyfikator/oso:TypIdentyfikatora"/>:
          <xsl:value-of select="' '"/>
          <xsl:value-of select="$id/oso:InnyIdentyfikator/oso:WartoscIdentyfikatora"/>
        </xsl:if>
        <xsl:if test="$id/inst:KRS">
          KRS:
          <xsl:value-of select="' '"/>
          <xsl:value-of select="$id/inst:KRS"/>
          <xsl:call-template name="InLine">
            <xsl:with-param name="value" select="$inline"/>
          </xsl:call-template>
        </xsl:if>
        <xsl:if test="$id/inst:NIP">
          NIP:
          <xsl:value-of select="' '"/>
          <xsl:value-of select="$id/inst:NIP"/>
          <xsl:call-template name="InLine">
            <xsl:with-param name="value" select="$inline"/>
          </xsl:call-template>
        </xsl:if>
        <xsl:if test="$id/inst:REGON">
          REGON:
          <xsl:value-of select="' '"/>
          <xsl:value-of select="$id/inst:REGON"/>
          <xsl:call-template name="InLine">
            <xsl:with-param name="value" select="$inline"/>
          </xsl:call-template>
        </xsl:if>
        <xsl:if test="$id/inst:InnyIdentyfikator">
          <xsl:value-of select="$id/inst:InnyIdentyfikator/inst:TypIdentyfikatora"/>
          <xsl:value-of select="' '"/>
          <xsl:value-of select="$id/inst:InnyIdentyfikator/inst:WartoscIdentyfikatora"/>
        </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:value-of select="' '"/>
        <xsl:value-of select="$osoba/oso:Nazwisko"/>
        <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:call-template name="InLine">
            <xsl:with-param name="value" 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:call-template name="InLine">
            <xsl:with-param name="value" 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">
          <xsl:if test="string-length($adres/adr:KodPocztowy) &gt; 0">
            <xsl:value-of select="$adres/adr:KodPocztowy"/>
            <xsl:value-of select="' '"/>
          </xsl:if>
          <xsl:value-of select="$adres/adr:Miejscowosc"/>
          <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: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:param name="oswiadczenieKPA" select="wnio:TrescDokumentu/wnio:OswiadczenieKPA"/>
        <xsl:if test="string-length($oswiadczenieKPA/wnio:Oswiadczenie) &gt; 0 or count($oswiadczenia/wnio:Oswiadczenie) &gt; 0">
          <p style="font-size: 11px;font-family: Verdana;line-height: 25px;margin-bottom: 0px;padding-bottom: 0xp">Oświadczenie:</p>
          <ol style="margin-top: 0xp;padding-top: 0px;">
            <xsl:if test="string-length($oswiadczenieKPA/wnio:Oswiadczenie) &gt; 0">
              <li>
                <xsl:value-of select="$oswiadczenieKPA/wnio:Oswiadczenie"/>
                <xsl:value-of select="' '"/>
                <xsl:value-of select="$oswiadczenieKPA/wnio:AdresOdpowiedzi"/>
              </li>
            </xsl:if>
            <xsl:if test="count($oswiadczenia/wnio:Oswiadczenie) &gt; 0">
              <xsl:for-each select="$oswiadczenia/wnio:Oswiadczenie">
                <li>
                  <xsl:value-of select="."/>
                </li>
              </xsl:for-each>
            </xsl:if>
          </ol>
        </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: 25px;">
              <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">
          <p style="font-size: 11px;font-family: Verdana;line-height: 25px;margin: 0px;padding:0px">Do wiadomości:</p>
          <br/>
          <ol>
            <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>
        </xsl:if>
      </xsl:template>
    
      <xsl:template name="Podpis">
        <p align="right" style="text-align: right;font-size: 10px;font-family: Verdana;line-height: 25px;">
          <table style="float: right;">
            <tr>
              <td style="width: 340px;">
                <p align="center" style="text-align: center;font-size: 10px;font-family: Verdana;line-height: 25px;">
                  <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 osoby zgłaszającej
                  </span>
                </p>
              </td>
            </tr>
          </table>
        </p>
        <div style="clear: both;"/>
      </xsl:template>
    
    </xsl:stylesheet>