5450

ID5450
Data2018-06-18
Symbol2018/06/18/5450
InstytucjaUrząd Gminy w Czempiniu
NazwaDeklaracja na podatek rolny
Czy Aktualny1

Ustawy (1)

  • URI://Dziennik_Ustaw/2017/1892/6a/12/1
  • Ustawa z dnia 15 listopada 1984 r. o podatku rolnym

    Pliki

    Styl

    <?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:wnio="http://crd.gov.pl/wzor/2018/06/18/5450/" 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:oso="http://crd.gov.pl/xml/schematy/osoba/2009/11/16/" xmlns:inst="http://crd.gov.pl/xml/schematy/instytucja/2009/11/16/" xmlns:adr="http://crd.gov.pl/xml/schematy/adres/2009/11/09/" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xfl="http://www.w3.org/1999/XSL/Transform" version="1.0">
      <xsl:template match="/">
        <html xmlns="http://www.w3.org/1999/xhtml">
          <head>
            <style type="text/css">
                        body {
                            background-color: #FFFFFF;
                            margin: 0px 0px 0px 0px;
                            font-family: Verdana, Helvetica, sans-serif;
                            font-size: 12px;
                        }
    
                        table .title {
                            background-color: #FFFFFF;
                            width: 100%;
                            border: 0px;
                        }
    
                        p {
                            margin-top: 1em;
                            margin-bottom: 1em;
                        }
    
                        h1 {
                            font-size: 24px;
                            margin-top: 0;
                            background-color: #dde;
                            font-weight: bold;
                            font-size: 14px;
                            text-align: left;
                            padding-left: 1em;
                            padding-right: 1em;
                            padding-top: .2em;
                            padding-bottom: .2em;
                            margin-top: 0;
                            margin-bottom: 0;
                            border-bottom: solid 1px #99c;
                            line-height: 180%;
                        }
    
                        h2 {
                            color: #336;
                            background-color: #dde;
                            font-size: 9pt;
                            font-weight: bold;
                            padding-left: 1em;
                            padding-right: 1em;
                            padding-top: .2em;
                            padding-bottom: .2em;
                            margin-top: 2em;
                            margin-bottom: 1em;
                            border-bottom: solid 1px #336;
                            clear: right;
                        }
    
                        h3 {
                            font-size: 14px;
                            margin-top: 2em;
                            color: #0A2D4C;
                        }
    
                        h4 {
                            font-size: 12px;
                            margin-top: 2em;
                            color: #4A6D8C;
                        }
    
                        b {
                            color: #4A6D8C;
                        }
    
                        li {
                            line-height: 1.2em;
                        }
    
                        h1, h2 {
                            text-align: center !important;
                        }
    
                        h1 {
                            margin-bottom: 15px !important;
                        }
    
                        h3, h4 {
                            margin-top: 8px;
                            margin-bottom: 8px;
                        }
    
                        table {
                            border-collapse: collapse;
                            margin: 0;
                            padding: 0;
                            width: 100%;
                            margin-bottom: 3px;
                        }
    
                        td, th {
                            border: 1px solid #CCC;
                            padding: 3px;
                        }
    
                        th {
                            background-color: #EEE;
                            text-align: left;
                            font-weight: normal;
                        }
    
                        textarea {
                            width: 90%;
                            height: 100%
                        }
                    </style>
          </head>
          <body>
            <div style="max-width: 900px; margin: 0 auto;">
              <xsl:for-each select="/wnio:Dokument/wnio:TrescDokumentu/wnio:Wartosc/wnio:Naglowek">
                <h1>
                  <xsl:value-of select="wnio:Nazwa"/>
                </h1>
                <table style="width: auto; margin: 0 auto;">
                  <tr>
                    <th>Na rok:</th>
                    <td>
                      <xsl:value-of select="../wnio:Rok"/>
                    </td>
                  </tr>
                </table>
                <table>
                  <tr>
                    <th style="width:15%">Podstawa prawna:</th>
                    <th>
                      <xsl:value-of select="wnio:Podstawa"/>
                    </th>
                  </tr>
                  <tr>
                    <th>Składający:</th>
                    <th>
                      <xsl:value-of select="wnio:Skladajacy"/>
                    </th>
                  </tr>
                  <tr>
                    <th>Termin składania:</th>
                    <th>
                      <xsl:value-of select="wnio:Termin"/>
                    </th>
                  </tr>
                  <tr>
                    <th>Miejsce składania:</th>
                    <th>
                      <xsl:value-of select="wnio:MiejsceSkladania"/>
                    </th>
                  </tr>
                </table>
                <table>
                  <tr>
                    <th>
                      <h4>MIEJSCE SKŁADANIA DEKLARACJI</h4>
                    </th>
                  </tr>
                  <tr>
                    <td>
                      <xsl:for-each select="wnio:MiejsceSkladaniaDokladne">
                        <xsl:value-of select="."/>
                      </xsl:for-each>
                      <xsl:if test="not(wnio:MiejsceSkladaniaDokladne)">
                        <xsl:for-each select="/wnio:DaneDokumentu/str:Adresaci/meta:Podmiot/inst:Instytucja">
                          <xsl:value-of select="inst:NazwaInstytucji"/>
                          <br/>
                          <xsl:for-each select="adr:Adres">
                            <xsl:value-of select="adr:KodPocztowy"/>
                            <xsl:value-of select="adr:Miejscowosc"/>
                            <xsl:value-of select="adr:Ulica"/>
                            <xsl:value-of select="adr:Budynek"/>
                          </xsl:for-each>
                        </xsl:for-each>
                      </xsl:if>
                    </td>
                  </tr>
                </table>
              </xsl:for-each>
              <table>
                <tr>
                  <th colspan="6">
                    <h4>DANE PRZEDMIOTÓW OPODATKOWANIA</h4>
                  </th>
                </tr>
                <xsl:for-each select="/wnio:Dokument/wnio:TrescDokumentu/wnio:Wartosc/wnio:DaneNier/wnio:Nieruchomosc">
                  <tr>
                    <th>Adres:</th>
                    <td>
                      <xsl:value-of select="wnio:Adres"/>
                    </td>
                    <th>Numer działki:</th>
                    <td>
                      <xsl:value-of select="wnio:NumerDzialki"/>
                    </td>
                    <th>Numer księgi wieczystej lub zbioru dokumentów:</th>
                    <td>
                      <xsl:value-of select="wnio:NumerDokumentu"/>
                    </td>
                  </tr>
                </xsl:for-each>
                <tr>
                  <th colspan="6">
                    <h4>DANE SKŁADAJĄCEGO DEKLARACJĘ</h4>
                  </th>
                </tr>
                <tr>
                  <th style="width:10%">Rodzaj własności, posiadania</th>
                  <td colspan="5">
                    <xsl:call-template name="TypSKladajacy">
                      <xsl:with-param name="wartosc" select="/wnio:Dokument/wnio:TrescDokumentu/wnio:Wartosc/wnio:PodmiotZobowiazanyDoZlozenia/@typ"/>
                    </xsl:call-template>
                  </td>
                </tr>
                <xsl:for-each select="/wnio:Dokument/wnio:TrescDokumentu/wnio:Wartosc/wnio:Podmiot[@typPodmiotu='osoba_fizyczna']">
                  <tr>
                    <th>Nazwisko</th>
                    <td style="width:27%">
                      <xsl:value-of select="wnio:OsobaFizyczna/oso:Nazwisko"/>
                    </td>
                    <th style="width:10%">Imię</th>
                    <td>
                      <xsl:value-of select="wnio:OsobaFizyczna/oso:Imie"/>
                    </td>
                    <th style="width:10%">Drugie imię</th>
                    <td>
                      <xsl:value-of select="wnio:OsobaFizyczna/oso:ImieDrugie"/>
                    </td>
                  </tr>
                  <tr>
                    <th>Data urodzenia</th>
                    <td>
                      <xsl:value-of select="wnio:OsobaFizyczna/oso:DataUrodzenia"/>
                    </td>
                    <th>Imię ojca</th>
                    <td>
                      <xsl:value-of select="wnio:OsobaFizyczna/oso:ImieOjca"/>
                    </td>
                    <th>Imię matki</th>
                    <td>
                      <xsl:value-of select="wnio:OsobaFizyczna/oso:ImieMatki"/>
                    </td>
                  </tr>
                  <xsl:if test="wnio:OsobaFizyczna/oso:PESEL!=''">
                    <tr>
                      <th>NIP</th>
                      <td>
                        <xsl:value-of select="wnio:OsobaFizyczna/oso:NIP"/>
                      </td>
                      <th>PESEL</th>
                      <td colspan="3">
                        <xsl:value-of select="wnio:OsobaFizyczna/oso:PESEL"/>
                      </td>
                    </tr>
                  </xsl:if>
                </xsl:for-each>
                <xsl:for-each select="/wnio:Dokument/wnio:TrescDokumentu/wnio:Wartosc/wnio:Podmiot[@typPodmiotu!='osoba_fizyczna']">
                  <tr>
                    <th>Nazwa pełna</th>
                    <td colspan="3">
                      <xsl:value-of select="wnio:OsobaNiefizyczna/inst:NazwaInstytucji"/>
                    </td>
                    <th>Nazwa skrócona</th>
                    <td>
                      <xsl:value-of select="wnio:OsobaNiefizyczna/wnio:NazwaSkrocona"/>
                    </td>
                  </tr>
                  <tr>
                    <th style="width:10%">NIP</th>
                    <td style="width:27%">
                      <xsl:value-of select="wnio:OsobaNiefizyczna/inst:NIP"/>
                    </td>
                    <th style="width:10%">REGON</th>
                    <td>
                      <xsl:value-of select="wnio:OsobaNiefizyczna/inst:REGON"/>
                    </td>
                    <th style="width:10%">KRS</th>
                    <td>
                      <xsl:value-of select="wnio:OsobaNiefizyczna/inst:KRS"/>
                    </td>
                  </tr>
                </xsl:for-each>
              </table>
              <table>
                <tr>
                  <th colspan="6">
                    <h4>Adres</h4>
                  </th>
                </tr>
                <tr>
                  <th>Kraj</th>
                  <td colspan="5">
                    <xsl:value-of select="/wnio:Dokument/wnio:TrescDokumentu/wnio:Wartosc/wnio:Podmiot/wnio:Adres/adr:Kraj"/>
                  </td>
                </tr>
                <tr>
                  <th style="width:10%">Województwo</th>
                  <td style="width:27%">
                    <xsl:value-of select="/wnio:Dokument/wnio:TrescDokumentu/wnio:Wartosc/wnio:Podmiot/wnio:Adres/adr:Wojewodztwo"/>
                  </td>
                  <th style="width:10%">Powiat</th>
                  <td>
                    <xsl:value-of select="/wnio:Dokument/wnio:TrescDokumentu/wnio:Wartosc/wnio:Podmiot/wnio:Adres/adr:Powiat"/>
                  </td>
                  <th style="width:10%">Gmina</th>
                  <td>
                    <xsl:value-of select="/wnio:Dokument/wnio:TrescDokumentu/wnio:Wartosc/wnio:Podmiot/wnio:Adres/adr:Gmina"/>
                  </td>
                </tr>
                <tr>
                  <th>Miejscowość</th>
                  <td>
                    <xsl:value-of select="/wnio:Dokument/wnio:TrescDokumentu/wnio:Wartosc/wnio:Podmiot/wnio:Adres/adr:Miejscowosc"/>
                  </td>
                  <th>Kod pocztowy</th>
                  <td>
                    <xsl:value-of select="/wnio:Dokument/wnio:TrescDokumentu/wnio:Wartosc/wnio:Podmiot/wnio:Adres/adr:KodPocztowy"/>
                  </td>
                  <th>Poczta</th>
                  <td>
                    <xsl:value-of select="/wnio:Dokument/wnio:TrescDokumentu/wnio:Wartosc/wnio:Podmiot/wnio:Adres/adr:Poczta"/>
                  </td>
                </tr>
                <tr>
                  <th>Ulica</th>
                  <td>
                    <xsl:value-of select="/wnio:Dokument/wnio:TrescDokumentu/wnio:Wartosc/wnio:Podmiot/wnio:Adres/adr:Ulica"/>
                  </td>
                  <th>Nr domu</th>
                  <td>
                    <xsl:value-of select="/wnio:Dokument/wnio:TrescDokumentu/wnio:Wartosc/wnio:Podmiot/wnio:Adres/adr:Budynek"/>
                  </td>
                  <th>Nr lokalu</th>
                  <td>
                    <xsl:value-of select="/wnio:Dokument/wnio:TrescDokumentu/wnio:Wartosc/wnio:Podmiot/wnio:Adres/adr:Lokal"/>
                  </td>
                </tr>
                <tr>
                  <th>Telefon</th>
                  <td>
                    <xsl:value-of select="/wnio:Dokument/wnio:TrescDokumentu/wnio:Wartosc/wnio:Podmiot/wnio:Adres/adr:Telefon"/>
                  </td>
                  <th>E-mail</th>
                  <td colspan="3">
                    <xsl:value-of select="/wnio:Dokument/wnio:TrescDokumentu/wnio:Wartosc/wnio:Podmiot/wnio:Adres/adr:Email"/>
                  </td>
                </tr>
              </table>
              <xsl:for-each select="/wnio:Dokument/wnio:TrescDokumentu/wnio:Wartosc/wnio:Podmiot/wnio:AdresKorespondencyjny[@wystepuje='tak']">
                <table>
                  <tr>
                    <th colspan="6">
                      <h4>Adres korespondencyjny inny niż powyższy
                                            <xsl:value-of select="wnio:Adres/@rodzaj"/>
                                            <xsl:value-of select="wnio:AdresKorespondencyjny/@wystepuje"/>
                                        </h4>
                    </th>
                  </tr>
                  <tr>
                    <th>Kraj</th>
                    <td colspan="5">
                      <xsl:value-of select="adr:Kraj"/>
                    </td>
                  </tr>
                  <tr>
                    <th style="width:10%">Województwo</th>
                    <td style="width:27%">
                      <xsl:value-of select="adr:Wojewodztwo"/>
                    </td>
                    <th style="width:10%">Powiat</th>
                    <td>
                      <xsl:value-of select="adr:Powiat"/>
                    </td>
                    <th style="width:10%">Gmina</th>
                    <td>
                      <xsl:value-of select="adr:Gmina"/>
                    </td>
                  </tr>
                  <tr>
                    <th>Miejscowość</th>
                    <td>
                      <xsl:value-of select="adr:Miejscowosc"/>
                    </td>
                    <th>Kod pocztowy</th>
                    <td>
                      <xsl:value-of select="adr:KodPocztowy"/>
                    </td>
                    <th>Poczta</th>
                    <td>
                      <xsl:value-of select="adr:Poczta"/>
                    </td>
                  </tr>
                  <tr>
                    <th>Ulica</th>
                    <td>
                      <xsl:value-of select="adr:Ulica"/>
                    </td>
                    <th>Nr domu</th>
                    <td>
                      <xsl:value-of select="adr:Budynek"/>
                    </td>
                    <th>Nr lokalu</th>
                    <td>
                      <xsl:value-of select="adr:Lokal"/>
                    </td>
                  </tr>
                  <tr>
                    <th>Telefon</th>
                    <td>
                      <xsl:value-of select="adr:Telefon"/>
                    </td>
                    <th>E-mail</th>
                    <td colspan="3">
                      <xsl:value-of select="adr:Email"/>
                    </td>
                  </tr>
                </table>
              </xsl:for-each>
              <xsl:for-each select="/wnio:Dokument/wnio:TrescDokumentu/wnio:Wartosc/wnio:Podmiot/wnio:Pelnomocnik[@wystepuje='tak']">
                <table>
                  <tr>
                    <th colspan="6">
                      <h4>Pełnomocnik
                                            <xsl:value-of select="wnio:Pelnomocnik/@wystepuje"/>
                                        </h4>
                    </th>
                  </tr>
                  <tr>
                    <th style="width:10%">Imię</th>
                    <td style="width:27%;">
                      <xsl:value-of select="oso:Imie"/>
                    </td>
                    <th style="width:10%">Nazwisko</th>
                    <td>
                      <xsl:value-of select="oso:Nazwisko"/>
                    </td>
                    <th style="width:10%">PESEL</th>
                    <td>
                      <xsl:value-of select="oso:PESEL"/>
                    </td>
                  </tr>
                </table>
              </xsl:for-each>
              <xsl:for-each select="/wnio:Dokument/wnio:TrescDokumentu/wnio:Wartosc">
                <xsl:for-each select="wnio:ObowiazekZlozeniaDeklaracji">
                  <table>
                    <tr>
                      <th colspan="2">
                        <h4>OKOLICZNOŚCI POWODUJĄCE KONIECZNOŚĆ ZŁOŻENIA DEKLARACJI</h4>
                      </th>
                    </tr>
                    <tr>
                      <th style="width:40%">Okoliczności powodujące obowiązek złożenia deklaracji</th>
                      <td>
                        <xsl:call-template name="OkolicznosciSkladania">
                          <xsl:with-param name="okolicznosci" select="wnio:Wartosc"/>
                        </xsl:call-template>
                      </td>
                    </tr>
                    <xsl:if test="wnio:DataZmiany != '' and wnio:Wartosc = 'korekta'">
                      <tr>
                        <th>Data zmiany:</th>
                        <td>
                          <xsl:value-of select="wnio:DataZmiany"/>
                        </td>
                      </tr>
                    </xsl:if>
                    <xsl:if test="wnio:PowodZmiany != '' and wnio:Wartosc = 'korekta'">
                      <tr>
                        <th>Data zmiany:</th>
                        <td>
                          <xsl:value-of select="wnio:PowodZmiany"/>
                        </td>
                      </tr>
                    </xsl:if>
                  </table>
                </xsl:for-each>
              </xsl:for-each>
              <xsl:for-each select="/wnio:Dokument/wnio:TrescDokumentu/wnio:Wartosc/wnio:DanePrzedmiotow/wnio:D">
                <table>
                  <tr>
                    <th colspan="7">
                      <h4>
                        <xsl:value-of select="wnio:Tytul"/>
                      </h4>
                    </th>
                  </tr>
                  <tr>
                    <th rowspan="3">Klasy użytków wynikające z ewidencji gruntów i budynków
                                    </th>
                    <th colspan="4">
                                        Powierzchnia gruntu wyrażona w hektarach
                                    </th>
                    <th rowspan="3">
                                        Hektary fizyczne podlegające opodatkowaniu
                                    </th>
                    <th rowspan="3">
                                        Wymiar podatku rolnego w zł, gr
                                    </th>
                  </tr>
                  <tr>
                    <th colspan="2">
                                        Hektary fizyczne
                                    </th>
                    <th colspan="2">
                                        Hektary przeliczeniowe
                                    </th>
                  </tr>
                  <tr>
                    <th>Ogółem</th>
                    <th>Zwolnione</th>
                    <th>Zwolnione</th>
                    <th>Podlegające opodatkowaniu</th>
                  </tr>
                  <xsl:for-each select="wnio:Sekcja">
                    <xsl:for-each select="wnio:Tytul">
                      <tr>
                        <th colspan="7">
                          <b>
                            <xsl:value-of select="."/>
                          </b>
                        </th>
                      </tr>
                    </xsl:for-each>
                    <xsl:for-each select="wnio:Pozycja">
                      <tr>
                        <th style="text-align: center">
                          <b>
                            <xsl:value-of select="wnio:Tytul"/>
                          </b>
                        </th>
                        <td>
                          <xsl:value-of select="wnio:FizOgolem"/>
                        </td>
                        <td>
                          <xsl:value-of select="wnio:FizZwolnione"/>
                        </td>
                        <td>
                          <xsl:value-of select="wnio:PrzelOgolem"/>
                        </td>
                        <td>
                          <xsl:value-of select="wnio:PrzelPodlegajace"/>
                        </td>
                        <td>
                          <xsl:value-of select="wnio:HaPodlegajace"/>
                        </td>
                        <td>
                          <xsl:value-of select="wnio:Wymiar"/>
                        </td>
                      </tr>
                    </xsl:for-each>
                  </xsl:for-each>
                  <xsl:for-each select="wnio:Razem">
                    <tr>
                      <th colspan="3">
                        <b>
                          <xsl:value-of select="wnio:Tytul"/>
                        </b>
                      </th>
                      <td>
                        <xsl:value-of select="wnio:Wymiar"/>
                      </td>
                    </tr>
                  </xsl:for-each>
                </table>
              </xsl:for-each>
              <xsl:for-each select="/wnio:Dokument/wnio:TrescDokumentu/wnio:Wartosc/wnio:LacznaKwota">
                <table>
                  <tr>
                    <th colspan="2">
                      <h4>
                        <xsl:value-of select="wnio:Tytul"/>
                      </h4>
                    </th>
                  </tr>
                  <xsl:for-each select="wnio:Powierzchnia">
                    <tr>
                      <td>
                        <xsl:value-of select="wnio:Opis"/>
                      </td>
                      <td>
                        <xsl:value-of select="wnio:Wartosc"/>
                      </td>
                    </tr>
                  </xsl:for-each>
                  <xsl:for-each select="wnio:Stawka">
                    <tr>
                      <td>
                        <xsl:value-of select="wnio:Opis"/>
                      </td>
                      <td>
                        <xsl:value-of select="wnio:Wartosc"/>
                      </td>
                    </tr>
                  </xsl:for-each>
                  <xsl:for-each select="wnio:Kwota">
                    <tr>
                      <td>
                        <xsl:value-of select="wnio:Opis"/>
                      </td>
                      <td><xsl:value-of select="wnio:Wartosc"/>zł
                                        </td>
                    </tr>
                  </xsl:for-each>
                </table>
              </xsl:for-each>
              <xsl:for-each select="/wnio:Dokument/wnio:TrescDokumentu/wnio:Wartosc/wnio:DaneUzytkowNiestanowiacychGospodarstw">
                <table>
                  <tr>
                    <th colspan="2">
                      <h4>
                        <xsl:value-of select="wnio:Tytul"/>
                      </h4>
                    </th>
                  </tr>
                  <tr>
                    <th>Powierzchnia w ha
                                        (cztery miejsca po przecinku)</th>
                    <td>
                      <xsl:value-of select="wnio:Powierzchnia"/>
                    </td>
                  </tr>
                  <tr>
                    <th>Stawka</th>
                    <td>
                      <xsl:value-of select="wnio:Stawka"/>
                    </td>
                  </tr>
                  <tr>
                    <th>Kwota podatku</th>
                    <td>
                      <xsl:value-of select="wnio:Kwota"/>
                    </td>
                  </tr>
                </table>
              </xsl:for-each>
              <xsl:for-each select="/wnio:Dokument/wnio:TrescDokumentu/wnio:Wartosc/wnio:DaneZwolnien">
                <table>
                  <tr>
                    <th colspan="7">
                      <h4>
                        <xsl:value-of select="wnio:Tytul"/>
                      </h4>
                    </th>
                  </tr>
                  <xsl:for-each select="wnio:Zwolnienie">
                    <tr>
                      <th colspan="7"><xsl:value-of select="position()"/> pozycja</th>
                    </tr>
                    <tr>
                      <th>Przepis prawa</th>
                      <td>
                        <xsl:value-of select="wnio:PodstawaPrawna"/>
                      </td>
                      <th>Klasa gruntu</th>
                      <td>
                        <xsl:value-of select="wnio:Klasa"/>
                      </td>
                      <th>Powierzchnia gruntu</th>
                      <td>
                        <xsl:value-of select="wnio:Powierzchnia"/>
                      </td>
                    </tr>
                  </xsl:for-each>
                </table>
              </xsl:for-each>
              <xsl:for-each select="/wnio:Dokument/wnio:TrescDokumentu/wnio:Wartosc/wnio:Ulgi">
                <table>
                  <tr>
                    <th>
                      <h4>
                        <xsl:value-of select="wnio:Tytul"/>
                      </h4>
                    </th>
                  </tr>
                  <xsl:for-each select="wnio:Ulga">
                    <tr>
                      <th><xsl:value-of select="position()"/>
                                            .
                                            <xsl:value-of select="wnio:Tytul"/>
                                        </th>
                      <td>
                        <xsl:value-of select="wnio:Kwota"/>
                      </td>
                    </tr>
                  </xsl:for-each>
                  <tr>
                    <th>
                      <b>
                        <xsl:value-of select="wnio:Razem/wnio:Tytul"/>
                      </b>
                    </th>
                    <td>
                      <xsl:value-of select="wnio:Razem/wnio:Kwota"/>
                    </td>
                  </tr>
                </table>
              </xsl:for-each>
              <xsl:for-each select="/wnio:Dokument/wnio:TrescDokumentu/wnio:Wartosc/wnio:LacznaKwotaPodatku">
                <table>
                  <tr>
                    <th colspan="2">
                      <h4>
                        <xsl:value-of select="wnio:Tytul"/>
                      </h4>
                    </th>
                  </tr>
                  <tr>
                    <th>
                      <xsl:value-of select="wnio:Opis"/>
                    </th>
                    <td>
                      <xsl:value-of select="wnio:Kwota"/>
                    </td>
                  </tr>
                </table>
              </xsl:for-each>
              <xsl:for-each select="/wnio:Dokument/wnio:TrescDokumentu/wnio:Wartosc/wnio:UzytkiWInnychGminach[@wystepuje='tak']">
                <table>
                  <tr>
                    <th colspan="2">
                      <h4>INFORMACJA O POSIADANIU UŻYTKÓW ROLNYCH NA TERENIE INNEJ GMINY</h4>
                    </th>
                  </tr>
                  <tr>
                    <th>Powierzchnia</th>
                    <td>
                      <xsl:value-of select="wnio:Powierzchnia"/>
                    </td>
                  </tr>
                </table>
              </xsl:for-each>
              <xsl:for-each select="/wnio:Dokument/wnio:TrescDokumentu/wnio:Wartosc/wnio:Wspolwlasciciele">
                <table>
                  <tr>
                    <th>
                      <h4>
                                        INFORMACJA O WSPÓŁWŁAŚCICIELACH I WSPÓŁPOSIADACZACH NIERUCHOMOŚCI
                                    </h4>
                    </th>
                  </tr>
                  <tr>
                    <th>
                      <xsl:value-of select="."/>
                    </th>
                  </tr>
                </table>
              </xsl:for-each>
              <table>
                <tr>
                  <th colspan="2">
                    <h4>OŚWIADCZENIE PODATNIKA / OSOBY REPREZENTUJĄCEJ PODATNIKA</h4>
                  </th>
                </tr>
                <tr>
                  <th>Imię</th>
                  <td>
                    <xsl:value-of select="/wnio:Dokument/wnio:TrescDokumentu/wnio:Wartosc/oso:Imie"/>
                  </td>
                </tr>
                <tr>
                  <th>Nazwisko</th>
                  <td>
                    <xsl:value-of select="/wnio:Dokument/wnio:TrescDokumentu/wnio:Wartosc/oso:Nazwisko"/>
                  </td>
                </tr>
                <tr>
                  <th>Data wypełnienia deklaracji</th>
                  <td>
                    <xsl:value-of select="/wnio:Dokument/wnio:TrescDokumentu/wnio:Wartosc/wnio:DataWypelnienia"/>
                  </td>
                </tr>
              </table>
              <xsl:if test="wnio:Pouczenie">
                <table>
                  <tr>
                    <th>
                      <h4>Pouczenie</h4>
                    </th>
                  </tr>
                  <tr>
                    <td>
                      <ol>
                        <xsl:for-each select="wnio:Punkt">
                          <li>
                            <xsl:value-of select="."/>
                          </li>
                        </xsl:for-each>
                      </ol>
                    </td>
                  </tr>
                </table>
              </xsl:if>
              <xsl:call-template name="Podpisy_elektroniczne"/>
            </div>
          </body>
        </html>
      </xsl:template>
      <xsl:template name="TypPodmiotu">
        <xsl:param name="podmiot"/>
        <xsl:choose>
          <xsl:when test="$podmiot/@typPodmiotu='osoba_fizyczna'">osoba fizyczna</xsl:when>
          <xsl:when test="$podmiot/@typPodmiotu='osoba_prawna'">osoba prawna</xsl:when>
          <xsl:when test="$podmiot/@typPodmiotu='jednostka_organizacyjna'">jednostka organizacyjna
                </xsl:when>
          <xsl:when test="$podmiot/@typPodmiotu='spolka'">spółka nie mająca osobowości prawnej
                </xsl:when>
          <xsl:otherwise>
            <xsl:value-of select="$podmiot/wnio:Podmiot/@typPodmiotu"/>
          </xsl:otherwise>
        </xsl:choose>
        <xsl:text> </xsl:text>
        <xsl:value-of select="$podmiot/wnio:Podmiot/@typPodmiotu"/>
      </xsl:template>
      <xsl:template name="OkolicznosciSkladania">
        <xsl:param name="okolicznosci"/>
        <xsl:choose>
          <xsl:when test="$okolicznosci='po_raz_pierwszy'">deklaracja składana w terminie do 15 stycznia roku podatkowego</xsl:when>
          <xsl:when test="$okolicznosci='powstanie'">powstanie obowiązku podatkowego w trakcie roku podatkowego</xsl:when>
          <xsl:when test="$okolicznosci='wygasniecie'">wygaśnięcie obowiązku podatkowego</xsl:when>
          <xsl:when test="$okolicznosci='zmiana'">zmiana miejsca zamieszkania lub siedziby</xsl:when>
          <xsl:when test="$okolicznosci='korekta'">korekta deklaracji rocznej</xsl:when>
          <xsl:otherwise>
            <xsl:value-of select="$okolicznosci"/>
          </xsl:otherwise>
        </xsl:choose>
        <xsl:text> </xsl:text>
        <xsl:value-of select="$okolicznosci/wnio:Podmiot/@typPodmiotu"/>
      </xsl:template>
      <xsl:template name="TypSKladajacy">
        <xsl:param name="wartosc"/>
        <xsl:choose>
          <xsl:when test="$wartosc=''">
            <span style="color:red;">Nie wybrano formy władania</span>
          </xsl:when>
          <xsl:when test="$wartosc='1'">właściciel</xsl:when>
          <xsl:when test="$wartosc='2'">współwłaściciel</xsl:when>
          <xsl:when test="$wartosc='3'">posiadacz samoistny</xsl:when>
          <xsl:when test="$wartosc='4'">współposiadacz samoistny</xsl:when>
          <xsl:when test="$wartosc='5'">użytkownik wieczysty</xsl:when>
          <xsl:when test="$wartosc='6'">współużytkownik wieczysty</xsl:when>
          <xsl:when test="$wartosc='7'">posiadacz zależny</xsl:when>
          <xsl:when test="$wartosc='8'">współposiadacz zależny</xsl:when>
          <xsl:otherwise>
            <xsl:value-of select="$wartosc/wnio:Skladajacy/@typ"/>
          </xsl:otherwise>
        </xsl:choose>
      </xsl:template>
      <xsl:template xmlns="http://www.w3.org/1999/xhtml" name="Podpisy_elektroniczne">
        <h2>Podpisy elektroniczne</h2>
        <table>
          <tr>
            <td>
              <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>
            </td>
          </tr>
        </table>
      </xsl:template>
    </xsl:stylesheet>