596

ID596
Data2011-06-08
Symbol2011/06/08/596
InstytucjaMinisterstwo Spraw Wewnętrznych i Administracji
NazwaWniosek o weryfikację zgodności danych zawartych w dowodzie rejestracyjnym/pozwoleniu czasowym z danymi zgromadzonymi w CEPiK
Czy Aktualny1

Ustawy (1)

  • URI://Dziennik_Ustaw/1997/98/602
  • Ustawa Prawo o Ruchu Drogowym z dnia 20 czerwca 1997 r. z późniejszymi zmianami

    Pliki

    Styl

    <?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:str="http://crd.gov.pl/xml/schematy/struktura/2009/03/06/" xmlns:wnio="http://crd.gov.pl/wzor/2011/06/08/596/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" 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:zp="http://crd.gov.pl/xml/schematy/ppzp/">
      <xsl:output method="html" encoding="utf-8" indent="yes"/>
      <xsl:template match="/">
    	  <xsl:choose>
    		<xsl:when test="wnio:Dokument"><xsl:apply-templates select="wnio:Dokument"/></xsl:when>
    		<xsl:when test="wnio:ePUAPZapytanieOPojazd"><xsl:apply-templates select="wnio:ePUAPZapytanieOPojazd "/></xsl:when>
    	</xsl:choose>
      </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, .body p, .body table
              {
              text-align: left;
              font-family: verdana, arial, helvetica, sans-serif !important;
              font-size: 11px;
              font-style: normal;
              font-variant: normal;
              line-height: 25px;
              }
              table th, th { background: #FFFFFF; }
              .up td {text-align: left !important;font-weight: normal;}
              .label { font-weight: bold;}
              .tytul, .tytul span, .tytul p { text-align: center !important;font-weight: bold;font-size: 13px !important;padding-top: 10px;width: 450px }
              .tytul .podtytul, .tytul .podtytul span { text-align: center;font-weight: bold;font-size: 12px; }
              .value {font-weight: bold !important;}
    
            </style>
          </head>
          <body class="body">
            <div style="width: 680px;">
              <center>
              <p class="tytul">
                Wniosek o weryfikację zgodności danych zawartych w dowodzie rejestracyjnym/pozwoleniu czasowym z danymi zgromadzonymi w CEPiK
              </p></center>
              <xsl:for-each select="$tresc/wnio:ePUAPZapytanieOPojazd">
                <div>
                  <br/>
                  <table border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td style="width: 130px">Numer rejestracyjny:</td>
                      <td class="value" style="font-weight: bold !important">
                        <xsl:value-of select="wnio:NumerRejestracyjny"/>
                      </td>
                    </tr>
                    <tr>
                      <td>Numer podwozia (VIN/nadwozia):</td>
                      <td class="value" style="font-weight: bold !important">
                        <xsl:value-of select="wnio:NumerVIN"/>
                      </td>
                    </tr>
                    <tr>
                      <td>Rodzaj dokumentu:</td>
                      <td class="value" style="font-weight: bold !important">
                        <xsl:value-of select="wnio:RodzajDokumentu"/>
                      </td>
                    </tr>
                    <tr>
                      <td>Seria i numer dokumentu:</td>
                      <td class="value" style="font-weight: bold !important">
                        <xsl:value-of select="wnio:SeriaINumerDokumentu"/>
                      </td>
                    </tr>
                    <tr>
                      <td>Marka:</td>
                      <td class="value" style="font-weight: bold !important">
                        <xsl:value-of select="wnio:Marka"/>
                      </td>
                    </tr>
                    <tr>
                      <td>Data pierwszej rejestracji:</td>
                      <td class="value" style="font-weight: bold !important">
                        <xsl:value-of select="wnio:DataPierwszejRejestracji"/>
                      </td>
                    </tr>
                  </table>
                  <br/>
                  <table border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td style="width: 150px;font-weight: normal;">Właściciel:</td>
                      <td style="width: 155px;font-weight: bold;">
                        <xsl:choose>
                          <xsl:when test="count(wnio:WlascicielPojazdu/wnio:OsobaFizyczna)&gt;0">
                           Osoba fizyczna
                          </xsl:when>
                          <xsl:otherwise>
                            Firma
                          </xsl:otherwise>
                        </xsl:choose>
                      </td>
                      <td style="font-weight: bold;"/>
                    </tr>
                    <xsl:for-each select="wnio:WlascicielPojazdu/wnio:OsobaFizyczna">
                      <tr class="up">
                        <td>
                        </td>
                        <td>
                          Nazwisko właściciela:
                        </td>
                        <td style="padding-left: 5px;">
                          <xsl:value-of select="wnio:NazwiskoWlasciciela"/>
                        </td>
                      </tr>
                      <tr class="up">
                        <td>
                        </td>
                        <td>
                          Imię właściciela:
                        </td>
                        <td style="padding-left: 5px;">
                          <xsl:value-of select="wnio:ImieWlasciciela"/>
                        </td>
                      </tr>
                      <tr class="up">
                        <td>
                        </td>
                        <td>
                          PESEL:
                        </td>
                        <td style="padding-left: 5px;">
                          <xsl:value-of select="wnio:PESEL"/>
                        </td>
                      </tr>
                    </xsl:for-each>
                    <xsl:for-each select="wnio:WlascicielPojazdu/wnio:Firma">
                      <tr class="up">
                        <td>
                        </td>
                        <td>
                          Nazwa skrócona:
                        </td>
                        <td style="padding-left: 5px;">
                          <xsl:value-of select="wnio:NazwaSkroconaWlasciciela"/>
                        </td>
                      </tr>
                      <tr class="up">
                        <td>
                        </td>
                        <td>
                          REGON:
                        </td>
                        <td style="padding-left: 5px;">
                          <xsl:value-of select="wnio:REGON"/>
                        </td>
                      </tr>
                    </xsl:for-each>
                  </table>
                </div>
              </xsl:for-each>
              <br/>
              <br/>
              <xsl:call-template name="Zalaczniki"/>
              <xsl:call-template name="Podpis"/>
            </div>
          </body>
        </html>
      </xsl:template>
     
    <xsl:template match="wnio:ePUAPZapytanieOPojazd ">
    <html>
        <head>
          <meta http-equiv="Content-Type" content="text/html; charset=unicode"/>
    	    <style type="text/css">
    				.naglowek {text-align: center; 
    					font-size: 18pt}
    				.body{font-family:Verdana;}
    		</style>
        </head>
        <body class="body">
    	<table width="700"><tr><td>
    		<table width="700" border="1">
    		<tr>
    			<td>
    				<p class="naglowek">Dane zapytania o zgodność danych zawartych w dokumencie rejestracyjnym pojazdu z ewidencją CEP</p>
    			</td>
    		</tr>
    		</table>
    		</td></tr><tr><td>
    		<table width="700" border="1">
    			<tr>
    				<td>Numer rejestracyjny pojazdu: </td>
    				<td><xsl:value-of select="wnio:NumerRejestracyjny"/></td>
    			</tr>
    			<tr>
    				<td>Numer VIN: </td>
    				<td><xsl:value-of select="wnio:NumerVIN"/></td>
    			</tr>
    			<tr>
    				<td>Rodzaju dokumentu: </td>
    				<td><xsl:value-of select="wnio:RodzajDokumentu"/></td>
    			</tr>
    			<tr>
    				<td>Seria i numer dokumentu pojazdu: </td>
    				<td><xsl:value-of select="wnio:SeriaINumerDokumentu"/></td>
    			</tr>
    			<tr>
    				<td>Marka pojazdu: </td>
    				<td><xsl:value-of select="wnio:Marka"/></td>
    			</tr>
    			<tr>
    				<td>Data pierwszej rejestracji pojazdu: </td>
    				<td><xsl:value-of select="wnio:DataPierwszejRejestracji"/></td>
    			</tr>
    			<tr bgcolor="#aaaaaa">
    				<td><b>Dane głównego właściciela pojazdu</b></td>
    				<td/>
    			</tr>
    			<xsl:if test="string-length(wnio:WlascicielPojazdu/wnio:OsobaFizyczna/wnio:ImieWlasciciela)&gt;0">
    				<tr><td>Imię głównego właściciela: </td><td><xsl:value-of select="wnio:WlascicielPojazdu/wnio:OsobaFizyczna/wnio:ImieWlasciciela"/></td></tr>
    				<tr><td>Nazwisko głównego waściciela: </td><td><xsl:value-of select="wnio:WlascicielPojazdu/wnio:OsobaFizyczna/wnio:NazwiskoWlasciciela"/></td></tr>
    				<tr><td>Numer PESEL głównego właściciela pojazdu: </td><td>
    					<xsl:value-of select="wnio:WlascicielPojazdu/wnio:OsobaFizyczna/wnio:PESEL"/>
    				</td></tr>
    			</xsl:if>
    			<xsl:if test="string-length(wnio:WlascicielPojazdu/wnio:Firma/wnio:NazwaSkroconaWlasciciela)&gt;0">
    				<tr><td>Nazwa skrócona głównego właściciela pojazdu: </td><td><xsl:value-of select="wnio:WlascicielPojazdu/wnio:Firma/wnio:NazwaSkroconaWlasciciela"/></td></tr>
    				<tr><td>Numer REGON głównego właściciela pojazdu: </td><td><xsl:value-of select="wnio:WlascicielPojazdu/wnio:Firma/wnio:REGON"/></td></tr>
    			</xsl:if>
    		</table>
    		</td></tr></table>
        </body>
    </html>
    </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;padding: 0px;margin:0px">Załączniki:</p>
          <ol style="padding-top: 0px;margin-top: 0px;">
            <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="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: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="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="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:for-each select="$id/oso:InnyIdentyfikator">
          <xsl:if test="string-length(oso:WartoscIdentyfikatora) &gt; 0">
            <xsl:if test="string-length(oso:TypIdentyfikatora) &gt; 0">
              <xsl:value-of select="oso:TypIdentyfikatora"/>
              <xsl:value-of select="': '"/>
            </xsl:if>
            <xsl:value-of select="oso:WartoscIdentyfikatora"/>
            <xsl:call-template name="InLine">
              <xsl:with-param name="value" select="$inline"/>
            </xsl:call-template>
          </xsl:if>
        </xsl:for-each>
        <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="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 elektroniczny
                  </span>
                </p>
              </td>
            </tr>
          </table>
        </p>
        <div style="clear: both;"/>
      </xsl:template>
    </xsl:stylesheet>