7271

ID7271
Data2019-03-14
Symbol2019/03/14/7271
InstytucjaGmina Miasto Świdnica
NazwaDeklaracja w sprawie podatku leśnego
Czy Aktualny1

Ustawy (1)

  • URI://Dziennik_Ustaw/2017/1821/6/10/1
  • Ustawa z dnia 30 października 2002 r. o podatku leśnym

    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/2019/03/14/7271/" 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" version="1.0">
      <xsl:template match="/">
        <html xmlns="http://www.w3.org/1999/xhtml">
          <head>
            <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
            <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;
                        }
                    </style>
          </head>
          <body>
            <div style="width: 900px; margin: 0 auto;">
              <xsl:for-each select="//wnio:TrescDokumentu/wnio:Wartosc">
                <h1 style="text-align: center;">
                  <xsl:value-of select="//wnio:DaneDokumentu/str:Naglowek/str:NazwaDokumentu"/>
                </h1>
                <table style="margin:auto; width:280px;">
                  <tr>
                    <th>Rok:</th>
                    <td>
                      <xsl:value-of select="wnio:Rok"/>
                    </td>
                  </tr>
                </table>
                <h2>NAGŁÓWEK</h2>
                <xsl:for-each select="wnio:Naglowek">
                  <table border="1px">
                    <tr>
                      <th>Podstawa prawna:</th>
                      <th>
                        <xsl:value-of select="wnio:PodstawaPrawna"/>
                      </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:TerminSkladania"/>
                      </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>
                      <th>
                                            Nazwa i adres siedziby organu podatkowego:
                                        </th>
                    </tr>
                    <tr>
                      <td style="text-align: center">
                        <b>
                          <xsl:value-of select="wnio:MiejsceSkladaniaDokladne"/>
                        </b>
                      </td>
                    </tr>
                  </table>
                </xsl:for-each>
                <table>
                  <tr>
                    <th>
                      <h4>OBOWIĄZEK ZŁOŻENIA DEKLARACJI</h4>
                    </th>
                  </tr>
                  <tr>
                    <th>
                                        Okoliczności powodujące obowiązek złożenia deklaracji:
                                    </th>
                  </tr>
                  <tr>
                    <td style="text-align: center">
                      <xsl:if test="wnio:ObowiazekZlozenia/@typ='1'">deklaracja roczna</xsl:if>
                      <xsl:if test="wnio:ObowiazekZlozenia/@typ='2'">powstanie obowiązku podatkowego
                                        </xsl:if>
                      <xsl:if test="wnio:ObowiazekZlozenia/@typ='3'">korekta deklaracji rocznej </xsl:if>
                      <xsl:if test="wnio:ObowiazekZlozenia/@typ='4'">wygaśnięcie obowiązku podatkowego
                                        </xsl:if>
                      <xsl:if test="wnio:ObowiazekZlozenia/@typ!='1'">
                        <xsl:value-of select="concat('(miesiąc - rok) ', wnio:ObowiazekZlozenia/@miesiac, ' ', wnio:ObowiazekZlozenia/@rok)"/>
                      </xsl:if>
                    </td>
                  </tr>
                </table>
                <xsl:for-each select="wnio:Podmiot">
                  <table>
                    <tr>
                      <th colspan="6">
                        <h4>DANE PODATNIKA</h4>
                      </th>
                    </tr>
                    <tr>
                      <th colspan="6">
                        <h4>DANE IDENTYFIKACYJNE</h4>
                      </th>
                    </tr>
                    <tr>
                      <th style="width:10%">Rodzaj</th>
                      <td colspan="5">
                        <xsl:if test="./@typPodmiotu='osoba_fizyczna'">osoba fizyczna</xsl:if>
                        <xsl:if test="./@typPodmiotu='osoba_prawna'">osoba prawna</xsl:if>
                        <xsl:if test="./@typPodmiotu='jednostka_organizacyjna'">jednostka organizacyjna,
                                                w tym spółka, nieposiadająca osobowości prawnej
                                            </xsl:if>
                      </td>
                    </tr>
                    <xsl:for-each select="wnio:OsobaFizyczna">
                      <tr>
                        <th style="width:10%">Nazwisko</th>
                        <td style="width:25%">
                          <xsl:value-of select="oso:Nazwisko"/>
                        </td>
                        <th style="width:10%">Pierwsze imię</th>
                        <td style="width:25%">
                          <xsl:value-of select="oso:Imie"/>
                        </td>
                        <th style="width:10%">Drugie imię</th>
                        <td>
                          <xsl:value-of select="oso:ImieDrugie"/>
                        </td>
                      </tr>
                      <tr>
                        <th style="width:10%">Identyfikator REGON</th>
                        <td style="width:25%">
                          <xsl:value-of select="wnio:REGON"/>
                        </td>
                        <th style="width:10%">PKD/EKD</th>
                        <td style="width:25%">
                          <xsl:value-of select="wnio:PKD"/>
                        </td>
                        <th style="width:10%">PESEL</th>
                        <td style="width:25%">
                          <xsl:value-of select="oso:PESEL"/>
                        </td>
                      </tr>
                      <xsl:for-each select="wnio:NieNadanoPeselu">
                        <tr>
                          <th style="width:10%">Data urodzenia</th>
                          <td style="width:25%">
                            <xsl:value-of select="oso:DataUrodzenia"/>
                          </td>
                          <th style="width:10%">Imię ojca</th>
                          <td style="width:25%">
                            <xsl:value-of select="oso:ImieOjca"/>
                          </td>
                          <th style="width:10%">Imię matki</th>
                          <td style="width:25%">
                            <xsl:value-of select="oso:ImieMatki"/>
                          </td>
                        </tr>
                      </xsl:for-each>
                    </xsl:for-each>
                    <xsl:for-each select="wnio:OsobaNiefizyczna">
                      <tr>
                        <th style="width:10%">Nazwa pełna</th>
                        <td style="width:25%">
                          <xsl:value-of select="inst:NazwaInstytucji"/>
                        </td>
                        <th style="width:10%">Nazwa skrócona</th>
                        <td colspan="3" style="width:25%">
                          <xsl:value-of select="wnio:NazwaSkrocona"/>
                        </td>
                      </tr>
                      <tr>
                        <th style="width:10%">Identyfikator REGON</th>
                        <td style="width:25%">
                          <xsl:value-of select="inst:REGON"/>
                        </td>
                        <th style="width:10%">PKD/EKD</th>
                        <td style="width:25%">
                          <xsl:value-of select="wnio:PKD"/>
                        </td>
                        <th style="width:10%">NIP</th>
                        <td style="width:25%">
                          <xsl:value-of select="inst:NIP"/>
                        </td>
                      </tr>
                    </xsl:for-each>
                  </table>
                  <xsl:for-each select="wnio:Adres">
                    <table>
                      <tr>
                        <th colspan="6">
                          <h4>
                            <xsl:if test="../@typPodmiotu='osoba_fizyczna'">ADRES ZAMIESZKANIA
                                                    </xsl:if>
                            <xsl:if test="../@typPodmiotu!='osoba_fizyczna'">ADRES SIEDZIBY</xsl:if>
                          </h4>
                        </th>
                      </tr>
                      <tr>
                        <th>Kraj</th>
                        <td colspan="5">
                          <xsl:value-of select="adr:Kraj"/>
                        </td>
                      </tr>
                      <tr>
                        <th>Województwo</th>
                        <td>
                          <xsl:value-of select="adr:Wojewodztwo"/>
                        </td>
                        <th>Powiat</th>
                        <td>
                          <xsl:value-of select="adr:Powiat"/>
                        </td>
                        <th>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>
                    </table>
                  </xsl:for-each>
                  <xsl:if test="./@typPodmiotu='osoba_fizyczna'">
                    <xsl:for-each select="wnio:AdresKorespondencyjny[@wystepuje='tak']">
                      <table>
                        <tr>
                          <th colspan="6">
                            <h4>
                                                        ADRES DO DORĘCZEŃ W KRAJU
                                                    </h4>
                          </th>
                        </tr>
                        <tr>
                          <th>Kraj</th>
                          <td colspan="5">
                            <xsl:value-of select="adr:Kraj"/>
                          </td>
                        </tr>
                        <tr>
                          <th>Województwo</th>
                          <td>
                            <xsl:value-of select="adr:Wojewodztwo"/>
                          </td>
                          <th>Powiat</th>
                          <td>
                            <xsl:value-of select="adr:Powiat"/>
                          </td>
                          <th>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>
                      </table>
                    </xsl:for-each>
                  </xsl:if>
                  <xsl:for-each select="wnio:OrganRejestrowy">
                    <xsl:if test="../@typPodmiotu!='osoba_fizyczna'">
                      <table>
                        <tr>
                          <th colspan="2">
                            <h4>ORGAN REJESTROWY</h4>
                          </th>
                        </tr>
                        <tr>
                          <th style="width: 10%">
                                                    Organ rejestrowy
                                                </th>
                          <td>
                            <xsl:value-of select="wnio:Organ"/>
                          </td>
                        </tr>
                        <tr>
                          <th style="width: 10%">
                                                    Nazwa i nr w rejestrze
                                                </th>
                          <td>
                            <xsl:value-of select="wnio:NazwaNr"/>
                          </td>
                        </tr>
                      </table>
                    </xsl:if>
                  </xsl:for-each>
                  <xsl:for-each select="wnio:Pelnomocnik[@wystepuje='tak']">
                    <table>
                      <tr>
                        <th colspan="6">
                          <h4>
                                                    Pełnomocnik
                                                </h4>
                        </th>
                      </tr>
                      <tr>
                        <th>Imię</th>
                        <td>
                          <xsl:value-of select="oso:Imie"/>
                        </td>
                        <th>Nazwisko</th>
                        <td>
                          <xsl:value-of select="oso:Nazwisko"/>
                        </td>
                        <th>PESEL</th>
                        <td>
                          <xsl:value-of select="oso:PESEL"/>
                        </td>
                      </tr>
                      <tr>
                        <th colspan="6">
                          <xsl:value-of select="../../wnio:UwagaPelnomocnik"/>
                        </th>
                      </tr>
                    </table>
                  </xsl:for-each>
                </xsl:for-each>
                <h2>TREŚĆ FORMULARZA</h2>
                <xsl:for-each select="//wnio:TrescDokumentu/wnio:Wartosc">
                  <xsl:for-each select="wnio:CzescD">
                    <table>
                      <tr>
                        <th colspan="2">
                          <h4>DANE DOTYCZĄCE PRZEDMIOTÓW OPODATKOWANIA</h4>
                        </th>
                      </tr>
                      <tr>
                        <th colspan="2">
                                                W przypadku większej liczby nieruchomości należy wypełnić załącznik do
                                                deklaracji ZL-1/A.
                                            </th>
                      </tr>
                      <tr>
                        <th style="width: 30%">
                                                Położenie nieruchomości (adres)
                                            </th>
                        <td>
                          <xsl:value-of select="wnio:Adres"/>
                        </td>
                      </tr>
                      <tr>
                        <th style="width: 30%">
                                                Forma władania (zaznaczyć właściwe)
                                            </th>
                        <td>
                          <xsl:if test="wnio:TytulPrawny/@typ='1'">własność</xsl:if>
                          <xsl:if test="wnio:TytulPrawny/@typ='2'">współwłasność</xsl:if>
                          <xsl:if test="wnio:TytulPrawny/@typ='3'">wieczyste użytkowanie</xsl:if>
                          <xsl:if test="wnio:TytulPrawny/@typ='4'">współużytkowanie wieczyste</xsl:if>
                          <xsl:if test="wnio:TytulPrawny/@typ='5'">posiadanie samoistne</xsl:if>
                          <xsl:if test="wnio:TytulPrawny/@typ='6'">współposiadanie samoistne</xsl:if>
                          <xsl:if test="wnio:TytulPrawny/@typ='7'">posiadanie zależne</xsl:if>
                          <xsl:if test="wnio:TytulPrawny/@typ='8'">współposiadanie zależne</xsl:if>
                        </td>
                      </tr>
                      <tr>
                        <th style="width: 30%">
                                                Nr księgi wieczystej
                                            </th>
                        <td>
                          <xsl:value-of select="wnio:NrKsiegi"/>
                        </td>
                      </tr>
                      <tr>
                        <th style="width: 30%">
                                                Identyfikator działki
                                            </th>
                        <td>
                          <xsl:value-of select="concat(wnio:Obreb, ' - ', wnio:NrDzialki)"/>
                        </td>
                      </tr>
                    </table>
                  </xsl:for-each>
                  <xsl:for-each select="wnio:Lasy">
                    <table>
                      <tr>
                        <th colspan="4">
                          <h4>
                                                    DANE DOTYCZĄCE LASÓW NIEPODLEGAJĄCYCH ZWOLNIENIU
                                                </h4>
                        </th>
                      </tr>
                      <tr>
                        <th colspan="4">
                                                W przypadku korzystania ze zwolnień i ulg w podatku leśnym należy wypełnić
                                                załącznik ZL-1/B.
                                            </th>
                      </tr>
                      <tr>
                        <th style="text-align: center;">
                          <b>
                                                    Rodzaj gruntów leśnych
                                                </b>
                        </th>
                        <th style="text-align: center;">
                          <b>
                            <xsl:value-of select="'Powierzchnia w ha z dokładnością do 1 m²'"/>
                          </b>
                        </th>
                        <th style="text-align: center;">
                          <b>
                                                    Stawka podatku
                                                </b>
                        </th>
                        <th style="text-align: center;">
                          <b>
                                                    Kwota podatku
                                                </b>
                        </th>
                      </tr>
                      <xsl:for-each select="wnio:Wiersz">
                        <tr>
                          <th>
                            <xsl:value-of select="concat(position(), '. ', wnio:Opis)"/>
                          </th>
                          <td>
                            <xsl:if test="count(wnio:Podstawa) &gt; 0">
                              <table width="200">
                                <tr>
                                  <th width="50%">
                                    <xsl:value-of select="'Od miesiąca'"/>
                                  </th>
                                  <th>
                                    <xsl:if test="position() = 2">
                                      <xsl:value-of select="'Podstawa (ha)'"/>
                                    </xsl:if>
                                    <xsl:if test="position() != 2">
                                      <xsl:value-of select="'Podstawa (m²)'"/>
                                    </xsl:if>
                                  </th>
                                </tr>
                              </table>
                            </xsl:if>
                            <xsl:for-each select="wnio:Podstawa">
                              <table width="200">
                                <tr>
                                  <th width="50%">
                                    <xsl:if test="wnio:Miesiac = '1'">styczeń</xsl:if>
                                    <xsl:if test="wnio:Miesiac = '2'">luty</xsl:if>
                                    <xsl:if test="wnio:Miesiac = '3'">marzec</xsl:if>
                                    <xsl:if test="wnio:Miesiac = '4'">kwiecień</xsl:if>
                                    <xsl:if test="wnio:Miesiac = '5'">maj</xsl:if>
                                    <xsl:if test="wnio:Miesiac = '6'">czerwiec</xsl:if>
                                    <xsl:if test="wnio:Miesiac = '7'">lipiec</xsl:if>
                                    <xsl:if test="wnio:Miesiac = '8'">sierpień</xsl:if>
                                    <xsl:if test="wnio:Miesiac = '9'">wrzesień</xsl:if>
                                    <xsl:if test="wnio:Miesiac = '10'">październik</xsl:if>
                                    <xsl:if test="wnio:Miesiac = '11'">listopad</xsl:if>
                                    <xsl:if test="wnio:Miesiac = '12'">grudzień</xsl:if>
                                  </th>
                                  <th>
                                    <xsl:value-of select="wnio:Powierzchnia"/>
                                  </th>
                                </tr>
                              </table>
                            </xsl:for-each>
                          </td>
                          <td>
                            <xsl:value-of select="wnio:Stawka"/>
                          </td>
                          <td>
                            <div style="text-align: center;">
                              <xsl:value-of select="wnio:Razem"/>
                            </div>
                          </td>
                        </tr>
                      </xsl:for-each>
                    </table>
                  </xsl:for-each>
                  <xsl:for-each select="wnio:LacznaKwotaPodatku">
                    <table>
                      <tr>
                        <th colspan="2">
                          <h4>
                                                    ŁĄCZNA KWOTA PODATKU DO ZAPŁATY
                                                </h4>
                        </th>
                      </tr>
                      <tr>
                        <th colspan="2">
                                                W przypadku, gdy kwota podatku nie przekracza 100 zł, podatek jest płatny
                                                jednorazowo w terminie płatności pierwszej raty.
                                            </th>
                      </tr>
                      <tr>
                        <th><b>Kwota podatku</b>
                                                (po zaokrągleniu do pełnych złotych)
                                            </th>
                        <th style="text-align: center;">
                          <b>
                            <xsl:value-of select="wnio:Kwota"/>
                          </b>
                        </th>
                      </tr>
                    </table>
                  </xsl:for-each>
                  <table>
                    <tr>
                      <th colspan="4">
                        <h4>INFORMACJA O ZAŁĄCZNIKACH (do niniejszej deklaracji dołączono)</h4>
                      </th>
                    </tr>
                    <tr>
                      <th style="vertical-align: top">
                                            Rodzaj załącznika
                                        </th>
                      <th style="vertical-align: top">
                                            ZL-1/A:
                                            <xsl:value-of select="count(wnio:ZL1A/wnio:Zalacznik)"/>
                                            (liczba)
                                            <br/>
                                            - dane o większej liczbie nieruchomości leśnych
                                            <br/>
                                        </th>
                      <th style="vertical-align: top">
                                            ZL-1/B - dane o zwolnieniach i ulgach podatkowych w podatku leśnym
                                            <xsl:value-of select="wnio:ZL1B/@skladany"/>
                                        </th>
                      <th style="vertical-align: top">
                        <table>
                          <xsl:for-each select="str:Zalaczniki/str:Zalacznik[@rodzajZalacznika='wymagany']">
                            <tr>
                              <th style="width: 60%">
                                <xsl:value-of select="str:OpisZalacznika"/>
                              </th>
                              <td>
                                <xsl:value-of select="@nazwaPliku"/>
                              </td>
                            </tr>
                          </xsl:for-each>
                        </table>
                      </th>
                    </tr>
                  </table>
                  <xsl:for-each select="wnio:ZL1A">
                    <xsl:if test="count(wnio:Zalacznik) &gt; 0">
                      <table>
                        <tr>
                          <th colspan="7">
                            <h4 style="text-align: center;">
                                                        ZL-1/A ZAŁĄCZNIK DO DEKLARACJI NA PODATEK LEŚNY – DANE O
                                                        NIERUCHOMOŚCIACH LEŚNYCH – ZAŁĄCZNIK SKŁADANY W PRZYPADKU POSIADANIA
                                                        WIĘKSZEJ LICZBY NIERUCHOMOŚCI
                                                    </h4>
                          </th>
                        </tr>
                        <xsl:for-each select="wnio:Zalacznik">
                          <tr>
                            <th colspan="6">
                              <b>
                                <xsl:value-of select="concat('Załącznik Nr ', position())"/>
                              </b>
                            </th>
                          </tr>
                          <tr style="text-align: center">
                            <th>LP.</th>
                            <th>ADRES NIERUCHOMOŚCI</th>
                            <th>FORMA WŁADANIA</th>
                            <th>NUMER KSIĘGI WIECZYSTEJ</th>
                            <th>IDENTYFIKATOR DZIAŁKI</th>
                            <th>POWIERZCHNIA DZIAŁKI</th>
                          </tr>
                          <xsl:for-each select="wnio:Pozycja">
                            <tr>
                              <th>
                                <xsl:value-of select="position()"/>
                              </th>
                              <td>
                                <xsl:value-of select="wnio:Adres"/>
                              </td>
                              <td>
                                <xsl:if test="wnio:TytulPrawny/@typ='1'">własność</xsl:if>
                                <xsl:if test="wnio:TytulPrawny/@typ='2'">współwłasność</xsl:if>
                                <xsl:if test="wnio:TytulPrawny/@typ='3'">wieczyste użytkowanie
                                                            </xsl:if>
                                <xsl:if test="wnio:TytulPrawny/@typ='4'">współużytkowanie
                                                                wieczyste
                                                            </xsl:if>
                                <xsl:if test="wnio:TytulPrawny/@typ='5'">posiadanie samoistne
                                                            </xsl:if>
                                <xsl:if test="wnio:TytulPrawny/@typ='6'">współposiadanie
                                                                samoistne
                                                            </xsl:if>
                                <xsl:if test="wnio:TytulPrawny/@typ='7'">posiadanie zależne
                                                            </xsl:if>
                                <xsl:if test="wnio:TytulPrawny/@typ='8'">współposiadanie
                                                                zależne
                                                            </xsl:if>
                              </td>
                              <td>
                                <xsl:value-of select="wnio:NrKsiegi"/>
                              </td>
                              <td>
                                <xsl:value-of select="wnio:IdDzialki"/>
                              </td>
                              <td>
                                <xsl:value-of select="wnio:Powierzchnia"/>
                              </td>
                            </tr>
                          </xsl:for-each>
                        </xsl:for-each>
                      </table>
                    </xsl:if>
                  </xsl:for-each>
                  <xsl:for-each select="wnio:ZL1B[@skladany='tak']">
                    <table>
                      <tr>
                        <th colspan="2">
                          <h4 style="text-align: center">
                                                    ZL-1/B DANE O ZWOLNIENIACH PODATKOWYCH
                                                    W PODATKU LEŚNYM
                                                </h4>
                        </th>
                      </tr>
                      <xsl:for-each select="wnio:ZwolnieniaUlgi">
                        <tr>
                          <th colspan="2">
                            <h4>
                                                        DANE DOTYCZĄCE ZWOLNIEŃ PODATKOWYCH WYNIKAJĄCYCH Z USTAWY LUB
                                                        UCHWAŁY
                                                        RADY GMINY
                                                    </h4>
                          </th>
                        </tr>
                        <tr>
                          <th style="width: 60%; text-align: center">
                            <b>Tytuł prawny zwolnienia</b>
                          </th>
                          <th style="width: 40%; text-align: center" colspan="2">
                            <b>Powierzchnia w ha</b>
                          </th>
                        </tr>
                        <xsl:for-each select="wnio:Zwolnienie[@typ!='inne']">
                          <xsl:if test="@typ='input'">
                            <tr>
                              <th>
                                <xsl:for-each select="wnio:Opis">
                                  <xsl:value-of select="."/>
                                  <br/>
                                </xsl:for-each>
                              </th>
                              <td>
                                <xsl:if test="count(wnio:Podstawa) &gt; 0">
                                  <table width="200">
                                    <tr>
                                      <th width="50%">
                                        <xsl:value-of select="'Od miesiąca'"/>
                                      </th>
                                      <th>
                                        <xsl:value-of select="'Podstawa (ha)'"/>
                                      </th>
                                    </tr>
                                  </table>
                                </xsl:if>
                                <xsl:for-each select="wnio:Podstawa">
                                  <table width="200">
                                    <tr>
                                      <th width="50%">
                                        <xsl:if test="wnio:Miesiac = '1'">styczeń
                                                                            </xsl:if>
                                        <xsl:if test="wnio:Miesiac = '2'">luty</xsl:if>
                                        <xsl:if test="wnio:Miesiac = '3'">marzec
                                                                            </xsl:if>
                                        <xsl:if test="wnio:Miesiac = '4'">kwiecień
                                                                            </xsl:if>
                                        <xsl:if test="wnio:Miesiac = '5'">maj</xsl:if>
                                        <xsl:if test="wnio:Miesiac = '6'">czerwiec
                                                                            </xsl:if>
                                        <xsl:if test="wnio:Miesiac = '7'">lipiec
                                                                            </xsl:if>
                                        <xsl:if test="wnio:Miesiac = '8'">sierpień
                                                                            </xsl:if>
                                        <xsl:if test="wnio:Miesiac = '9'">wrzesień
                                                                            </xsl:if>
                                        <xsl:if test="wnio:Miesiac = '10'">październik
                                                                            </xsl:if>
                                        <xsl:if test="wnio:Miesiac = '11'">listopad
                                                                            </xsl:if>
                                        <xsl:if test="wnio:Miesiac = '12'">grudzień
                                                                            </xsl:if>
                                      </th>
                                      <th>
                                        <xsl:value-of select="wnio:Powierzchnia"/>
                                      </th>
                                    </tr>
                                  </table>
                                </xsl:for-each>
                              </td>
                            </tr>
                          </xsl:if>
                        </xsl:for-each>
                        <tr>
                          <th colspan="2">
                            <b>Inne wynikające z ustawy lub z uchwały (należy podać podstawę
                                                        prawną)
                                                    </b>
                          </th>
                        </tr>
                        <xsl:for-each select="wnio:Zwolnienie[@typ='inne']">
                          <tr>
                            <th>
                              <xsl:value-of select="wnio:Opis"/>
                            </th>
                            <td>
                              <xsl:if test="count(wnio:Podstawa) &gt; 0">
                                <table width="200">
                                  <tr>
                                    <th width="50%">
                                      <xsl:value-of select="'Od miesiąca'"/>
                                    </th>
                                    <th>
                                      <xsl:value-of select="'Podstawa (ha)'"/>
                                    </th>
                                  </tr>
                                </table>
                              </xsl:if>
                              <xsl:for-each select="wnio:Podstawa">
                                <table width="200">
                                  <tr>
                                    <th width="50%">
                                      <xsl:if test="wnio:Miesiac = '1'">styczeń</xsl:if>
                                      <xsl:if test="wnio:Miesiac = '2'">luty</xsl:if>
                                      <xsl:if test="wnio:Miesiac = '3'">marzec</xsl:if>
                                      <xsl:if test="wnio:Miesiac = '4'">kwiecień</xsl:if>
                                      <xsl:if test="wnio:Miesiac = '5'">maj</xsl:if>
                                      <xsl:if test="wnio:Miesiac = '6'">czerwiec</xsl:if>
                                      <xsl:if test="wnio:Miesiac = '7'">lipiec</xsl:if>
                                      <xsl:if test="wnio:Miesiac = '8'">sierpień</xsl:if>
                                      <xsl:if test="wnio:Miesiac = '9'">wrzesień</xsl:if>
                                      <xsl:if test="wnio:Miesiac = '10'">październik
                                                                        </xsl:if>
                                      <xsl:if test="wnio:Miesiac = '11'">listopad</xsl:if>
                                      <xsl:if test="wnio:Miesiac = '12'">grudzień</xsl:if>
                                    </th>
                                    <th>
                                      <xsl:value-of select="wnio:Powierzchnia"/>
                                    </th>
                                  </tr>
                                </table>
                              </xsl:for-each>
                            </td>
                          </tr>
                        </xsl:for-each>
                      </xsl:for-each>
                    </table>
                  </xsl:for-each>
                </xsl:for-each>
                <h2>STOPKA</h2>
                <xsl:if test="//wnio:TrescDokumentu/wnio:Wartosc/wnio:Podmiot/wnio:Kontakt/@rodzaj!=''">
                  <table>
                    <tr>
                      <th colspan="4">
                        <h4>Wyrażam zgodę na kontakt:</h4>
                      </th>
                    </tr>
                    <xsl:for-each select="//wnio:TrescDokumentu/wnio:Wartosc/wnio:Podmiot/wnio:Kontakt">
                      <tr>
                        <td style="width:40%">
                          <xsl:value-of select="./@rodzaj"/>
                        </td>
                        <td style="width:40%">
                          <xsl:value-of select="wnio:Telefoniczny[../@rodzaj='telefoniczny']"/>
                          <xsl:value-of select="wnio:Email[../@rodzaj='email']"/>
                        </td>
                      </tr>
                    </xsl:for-each>
                  </table>
                </xsl:if>
                <xsl:for-each select="str:Zalaczniki">
                  <xsl:if test="str:Zalacznik">
                    <table>
                      <tr>
                        <th colspan="2">
                          <h4>
                                                    Załączniki:
                                                </h4>
                        </th>
                      </tr>
                      <tr>
                        <th>
                          <b>
                                                    Opis
                                                </b>
                        </th>
                        <th>
                          <b>
                                                    Plik
                                                </b>
                        </th>
                      </tr>
                      <xsl:for-each select="//wnio:TrescDokumentu/wnio:Wartosc/str:Zalaczniki/str:Zalacznik[not(contains(@rodzajZalacznika, 'wymagany'))]">
                        <tr>
                          <td style="width:40%">
                            <xsl:value-of select="str:OpisZalacznika"/>
                          </td>
                          <td>
                            <xsl:value-of select="@nazwaPliku"/>
                          </td>
                        </tr>
                      </xsl:for-each>
                    </table>
                  </xsl:if>
                </xsl:for-each>
                <table>
                  <tr>
                    <th colspan="2">
                      <h4>
                                            PODPIS PODATNIKA / OSOBY REPREZENTUJĄCEJ PODATNIKA
                                        </h4>
                    </th>
                  </tr>
                  <tr>
                    <th>Imię</th>
                    <td>
                      <xsl:value-of select="oso:Imie"/>
                    </td>
                  </tr>
                  <tr>
                    <th>Nazwisko</th>
                    <td>
                      <xsl:value-of select="oso:Nazwisko"/>
                    </td>
                  </tr>
                  <tr>
                    <th>Data wypełnienia deklaracji</th>
                    <td>
                      <xsl:value-of select="wnio:DataWypelnienia"/>
                    </td>
                  </tr>
                </table>
                <table>
                  <tr>
                    <th>
                      <h4 style="text-align: center">POUCZENIE</h4>
                    </th>
                  </tr>
                  <tr>
                    <td>
                      <xsl:value-of select="wnio:Pouczenie"/>
                    </td>
                  </tr>
                </table>
              </xsl:for-each>
              <xsl:call-template name="Podpisy_elektroniczne"/>
            </div>
          </body>
        </html>
      </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>