6506

ID6506
Data2018-12-20
Symbol2018/12/20/6506
InstytucjaUrząd Gminy Rokietnica
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/12/20/6506/" 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: left;">
                  <xsl:value-of select="wnio:Symbol"/>
                </h1>
                <h1 style="text-align: center;">
                  <xsl:value-of select="wnio:Naglowek/wnio:Nazwa"/>
                </h1>
                <table style="margin:auto; width:280px;">
                  <tr>
                    <th>Rok:</th>
                    <td>
                                        3.
                                        <xsl:value-of select="wnio:Rok"/>
                                    </td>
                  </tr>
                </table>
                <h2>NAGŁÓWEK</h2>
                <xsl:for-each select="wnio:Naglowek">
                  <table border="1px">
                    <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 colspan="2">
                        <h4>A. MIEJSCE SKŁADANIA DEKLARACJI</h4>
                      </th>
                    </tr>
                    <tr>
                      <th>A. Nazwa i adres siedziby organu podatkowego</th>
                      <td>
                        <xsl:value-of select="wnio:MiejsceSkladaniaDokladne"/>
                      </td>
                    </tr>
                  </table>
                </xsl:for-each>
                <table>
                  <tr>
                    <th colspan="2">
                      <h4>B. OBOWIĄZEK ZŁOŻENIA DEKLARACJI</h4>
                    </th>
                  </tr>
                  <tr>
                    <th style="width:40%">5. Okoliczności powodujące obowiązek złożenia deklaracji</th>
                    <td>
                      <xsl:if test="wnio:ObowiazekZlozeniaDeklaracji = 'po_raz_pierwszy'">deklaracja
                                            roczna
                                        </xsl:if>
                      <xsl:if test="wnio:ObowiazekZlozeniaDeklaracji = 'korekta'">korekta deklaracji
                                            rocznej
                                        </xsl:if>
                    </td>
                  </tr>
                  <xsl:if test="wnio:ObowiazekZlozeniaDeklaracji = 'korekta'">
                    <tr>
                      <th>(miesiąc – rok)</th>
                      <td>
                        <xsl:value-of select="wnio:DataZmiany"/>
                      </td>
                    </tr>
                  </xsl:if>
                </table>
                <table>
                  <tr>
                    <th colspan="6">
                      <h4>C. PODMIOT ZOBOWIĄZANY DO ZŁOŻENIA DEKLARACJI</h4>
                    </th>
                  </tr>
                  <tr>
                    <th>
                                        6. Rodzaj podmiotu
                                    </th>
                    <th colspan="5">
                      <xsl:value-of select="wnio:PodmiotZobowiazanyDoZlozenia"/>
                    </th>
                  </tr>
                </table>
                <xsl:for-each select="wnio:Podmiot">
                  <table>
                    <tr>
                      <th colspan="6">
                        <h4>D. DANE PODATNIKA</h4>
                      </th>
                    </tr>
                    <tr>
                      <th colspan="6">
                        <h4>D.1. DANE IDENTYFIKACYJNE
                                            </h4>
                      </th>
                    </tr>
                    <tr>
                      <th style="width:10%">Rodzaj podatnika</th>
                      <td colspan="5">7.
                                            <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%">8.
                                                <xsl:value-of select="oso:Nazwisko"/>
                                            </td>
                        <th style="width:10%">Imię</th>
                        <td style="width:25%">9.
                                                <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%">
                                                10.
                                                <xsl:value-of select="wnio:REGON"/>
                                            </td>
                        <th style="width:10%">PESEL</th>
                        <td style="width:25%">
                                                11.
                                                <xsl:value-of select="oso:PESEL"/>
                                            </td>
                        <th style="width:10%">PKD</th>
                        <td style="width:25%">12.
                                                <xsl:value-of select="wnio:PKD"/>
                                            </td>
                      </tr>
                      <tr>
                        <th style="width:10%">Data urodzenia</th>
                        <td style="width:25%">
                                                13.
                                                <xsl:value-of select="oso:DataUrodzenia"/>
                                            </td>
                        <th>Imię ojca</th>
                        <td>
                                                14.
                                                <xsl:value-of select="oso:ImieOjca"/>
                                            </td>
                        <th>Imię matki</th>
                        <td>
                                                15.
                                                <xsl:value-of select="oso:ImieMatki"/>
                                            </td>
                      </tr>
                    </xsl:for-each>
                    <xsl:for-each select="wnio:OsobaNiefizyczna">
                      <tr>
                        <th style="width:10%">Nazwa pełna</th>
                        <td style="width:25%">
                                                8.
                                                <xsl:value-of select="inst:NazwaInstytucji"/>
                                            </td>
                        <th style="width:10%">Nazwa skrócona</th>
                        <td style="width:25%">
                                                9.
                                                <xsl:value-of select="wnio:NazwaSkrocona"/>
                                            </td>
                        <th style="width:10%">REGON</th>
                        <td style="width:25%">
                                                10.
                                                <xsl:value-of select="inst:REGON"/>
                                            </td>
                      </tr>
                      <tr>
                        <th style="width:10%">PKD</th>
                        <td>
                                                12.
                                                <xsl:value-of select="wnio:PKD"/>
                                            </td>
                        <th style="width:10%">NIP</th>
                        <td style="width:25%">
                          <xsl:value-of select="inst:NIP"/>
                        </td>
                        <th style="width:10%">KRS</th>
                        <td>
                          <xsl:value-of select="inst:KRS"/>
                        </td>
                      </tr>
                    </xsl:for-each>
                  </table>
                  <xsl:for-each select="wnio:Adres">
                    <table>
                      <tr>
                        <th colspan="6">
                          <xsl:for-each select="//wnio:Podmiot[@typPodmiotu='osoba_fizyczna']">
                            <h4>D.2. ADRES ZAMIESZKANIA</h4>
                          </xsl:for-each>
                          <xsl:for-each select="//wnio:Podmiot[@typPodmiotu!='osoba_fizyczna']">
                            <h4>D.2. ADRES SIEDZIBY</h4>
                          </xsl:for-each>
                        </th>
                      </tr>
                      <tr>
                        <th>Kraj</th>
                        <td colspan="5">
                                                16.
                                                <xsl:value-of select="adr:Kraj"/>
                                            </td>
                      </tr>
                      <tr>
                        <th>Województwo</th>
                        <td>
                                                17.
                                                <xsl:value-of select="adr:Wojewodztwo"/>
                                            </td>
                        <th>Powiat</th>
                        <td>
                                                18.
                                                <xsl:value-of select="adr:Powiat"/>
                                            </td>
                        <th>Gmina</th>
                        <td>
                                                19.
                                                <xsl:value-of select="adr:Gmina"/>
                                            </td>
                      </tr>
                      <tr>
                        <th>Ulica</th>
                        <td>
                                                20.
                                                <xsl:value-of select="adr:Ulica"/>
                                            </td>
                        <th>Nr domu</th>
                        <td>
                                                21.
                                                <xsl:value-of select="adr:Budynek"/>
                                            </td>
                        <th>Nr lokalu</th>
                        <td>
                                                22.
                                                <xsl:value-of select="adr:Lokal"/>
                                            </td>
                      </tr>
                      <tr>
                        <th>Miejscowość</th>
                        <td>
                                                23.
                                                <xsl:value-of select="adr:Miejscowosc"/>
                                            </td>
                        <th>Kod pocztowy</th>
                        <td>
                                                24.
                                                <xsl:value-of select="adr:KodPocztowy"/>
                                            </td>
                        <th>Poczta</th>
                        <td>
                                                25.
                                                <xsl:value-of select="adr:Poczta"/>
                                            </td>
                      </tr>
                      <tr>
                        <th>Telefon</th>
                        <td>
                                                26.
                                                <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>
                  <table>
                    <tr>
                      <th colspan="6">
                        <h4>D.3. ADRES DO KORESPONDENCJI
                                                <xsl:value-of select="wnio:Adres/@rodzaj"/>
                                                (<xsl:value-of select="wnio:AdresKorespondencyjny/@wystepuje"/>)
                                            </h4>
                      </th>
                    </tr>
                    <xsl:for-each select="wnio:AdresKorespondencyjny[@wystepuje='tak']">
                      <tr>
                        <th>Kraj</th>
                        <td colspan="5">
                                                27.
                                                <xsl:value-of select="adr:Kraj"/>
                                            </td>
                      </tr>
                      <tr>
                        <th>Województwo</th>
                        <td>
                                                28.
                                                <xsl:value-of select="adr:Wojewodztwo"/>
                                            </td>
                        <th>Powiat</th>
                        <td>
                                                29.
                                                <xsl:value-of select="adr:Powiat"/>
                                            </td>
                        <th>Gmina</th>
                        <td>
                                                30.
                                                <xsl:value-of select="adr:Gmina"/>
                                            </td>
                      </tr>
                      <tr>
                        <th>Ulica</th>
                        <td>
                                                31.
                                                <xsl:value-of select="adr:Ulica"/>
                                            </td>
                        <th>Nr domu</th>
                        <td>
                                                32.
                                                <xsl:value-of select="adr:Budynek"/>
                                            </td>
                        <th>Nr lokalu</th>
                        <td>
                                                33.
                                                <xsl:value-of select="adr:Lokal"/>
                                            </td>
                      </tr>
                      <tr>
                        <th>Miejscowość</th>
                        <td>
                                                34.
                                                <xsl:value-of select="adr:Miejscowosc"/>
                                            </td>
                        <th>Kod pocztowy</th>
                        <td>
                                                35.
                                                <xsl:value-of select="adr:KodPocztowy"/>
                                            </td>
                        <th>Poczta</th>
                        <td>
                                                36.
                                                <xsl:value-of select="adr:Poczta"/>
                                            </td>
                      </tr>
                      <tr>
                        <th>Telefon kontaktowy</th>
                        <td colspan="5">
                                                37.
                                                <xsl:value-of select="adr:Telefon"/>
                                            </td>
                      </tr>
                    </xsl:for-each>
                  </table>
                  <table>
                    <tr>
                      <th colspan="6">
                        <h4>Pełnomocnik
                                                (<xsl:value-of select="wnio:Pelnomocnik/@wystepuje"/>)
                                            </h4>
                      </th>
                    </tr>
                    <xsl:for-each select="wnio:Pelnomocnik[@wystepuje='tak']">
                      <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>
                    </xsl:for-each>
                  </table>
                </xsl:for-each>
                <table>
                  <xsl:for-each select="wnio:DanePrzedmiotow2">
                    <xsl:for-each select="wnio:DanePrzedmiotowSrodek">
                      <tr>
                        <th colspan="4">
                          <h4>E. DANE DOTYCZĄCE PRZEDMIOTÓW OPODATKOWANIA</h4>
                        </th>
                      </tr>
                      <tr>
                        <th>
                                                Położenie nieruchomości (adres)
                                            </th>
                        <td colspan="3">
                                                38.
                                                <xsl:value-of select="wnio:Polozenie"/>
                                            </td>
                      </tr>
                      <tr>
                        <th>
                                                Identyfikatory geodezyjne działek, budynków, lokali
                                            </th>
                        <td>
                                                39.
                                                <xsl:value-of select="wnio:Identyfikatory"/>
                                            </td>
                        <th>
                                                Nr księgi wieczystej
                                            </th>
                        <td>
                                                40.
                                                <xsl:value-of select="wnio:NrKsiegi"/>
                                            </td>
                      </tr>
                      <tr>
                        <th colspan="4">
                                                41. Podstawa powstania/wygaśnięcia obowiązku podatkowego:
                                            </th>
                      </tr>
                      <tr>
                        <th>
    
                                                Akt notarialny nr
                                            </th>
                        <td>
                          <xsl:value-of select="wnio:AktNotarialnyNr"/>
                        </td>
                        <th>z dnia</th>
                        <td><xsl:value-of select="wnio:ZDnia1"/>.
                                            </td>
                      </tr>
                      <tr>
                        <th>
                                                Inne:
                                            </th>
                        <td>
                          <xsl:value-of select="wnio:InnaPodstawa"/>
                        </td>
                        <th>z dnia</th>
                        <td><xsl:value-of select="wnio:ZDnia3"/>.
                                            </td>
                      </tr>
                    </xsl:for-each>
                  </xsl:for-each>
                </table>
                <h2>TREŚĆ FORMULARZA</h2>
                <table align="center">
                  <tr>
                    <th>
                      <xsl:value-of select="wnio:Obowiazek2"/>
                    </th>
                    <xsl:if test="wnio:Obowiazek2='Powstanie obowiązku podatkowego'">
                      <th width="50%">
                                            w dniu:
                                            <xsl:value-of select="//wnio:DataP"/>
                                        </th>
                    </xsl:if>
                    <xsl:if test="wnio:Obowiazek2 = 'Wygaśnięcie obowiązku podatkowego'">
                      <th width="50%">
                                            w dniu:
                                            <xsl:value-of select="//wnio:DataW"/>
                                        </th>
                    </xsl:if>
                  </tr>
                </table>
                <table align="center">
                  <tr>
                    <th>
                      <xsl:if test="wnio:Obowiazek3 = '1'">grunty stanowiące gospodarstwo rolne (kwota
                                            podatku = liczba hektarów przeliczeniowych x stawka za 1ha przeliczeniowy)
                                        </xsl:if>
                      <xsl:if test="wnio:Obowiazek3 = '2'">inne (kwota podatku = liczba hektarów
                                            wynikająca z ewidencji gruntów i budynków x stawka za 1ha fizyczny)
                                        </xsl:if>
                    </th>
                  </tr>
                </table>
                <xsl:for-each select="wnio:DanePrzedmiotow/wnio:D">
                  <table>
                    <tr>
                      <th colspan="7">
                        <h4>
                          <xsl:value-of select="wnio:Tytul"/>
                        </h4>
                      </th>
                    </tr>
                    <tr>
                      <th>Klasy użytków</th>
                      <th>Powierzchnia w ha</th>
                      <th>Przelicznik</th>
                      <th>Powierzchnia w ha przeliczeniowych</th>
                      <th>Stawka za 1 ha (przeliczeniowego lub fizycznego)</th>
                      <th>Wymiar podatku rolnego w zł,gr</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" width="10%">
                            <b>
                              <xsl:value-of select="wnio:Tytul"/>
                            </b>
                          </th>
                          <td width="15%" style="text-align: center">
                            <xsl:value-of select="wnio:Ogolem/@nr"/>
                            <br/>
                            <xsl:value-of select="wnio:Ogolem"/>
                          </td>
                          <td width="15%" style="text-align: center">
                            <xsl:value-of select="wnio:Podlegajace/@nr"/>
                            <br/>
                            <xsl:value-of select="wnio:Podlegajace"/>
                          </td>
                          <td style="text-align: center">
                            <xsl:value-of select="wnio:Przeliczeniowe/@nr"/>
                            <br/>
                            <xsl:value-of select="wnio:Przeliczeniowe"/>
                          </td>
                          <td style="text-align: center">
                            <xsl:if test="not(wnio:Stawka/@nie)">
                              <xsl:value-of select="wnio:Stawka/@nr"/>
                              <br/>
                              <xsl:value-of select="wnio:Stawka"/>
                            </xsl:if>
                          </td>
                          <td style="text-align: center">
                            <xsl:if test="not(wnio:Wymiar/@nie)">
                              <xsl:value-of select="wnio:Wymiar/@nr"/>
                              <br/>
                              <xsl:value-of select="wnio:Wymiar"/>
                            </xsl:if>
                          </td>
                        </tr>
                      </xsl:for-each>
                    </xsl:for-each>
                  </table>
                  <table>
                    <xsl:for-each select="wnio:Razem">
                      <tr>
                        <th>
                          <h4>
                            <xsl:value-of select="wnio:Tytul"/>
                          </h4>
                        </th>
                        <td style="width:30%">
                          <span>
                                                    170.
                                                </span>
                          <br/>
                          <div style="display:inline-block;text-align:center;margin-left:40%;font-weight:bold;">
                            <xsl:value-of select="format-number(wnio:Wymiar,'0.00')"/>
                          </div>
                        </td>
                      </tr>
                    </xsl:for-each>
                  </table>
                </xsl:for-each>
                <xsl:for-each select="wnio:DaneZwolnien">
                  <table>
                    <tr>
                      <th colspan="3">
                        <h4>
                          <xsl:value-of select="wnio:Tytul"/>
                        </h4>
                      </th>
                    </tr>
                    <tr>
                      <th width="50%">Tytuł prawny zwolnienia</th>
                      <th>Powierzchnia w ha fizycznych</th>
                    </tr>
                    <xsl:for-each select="wnio:Zwolnienie">
                      <tr>
                        <td><xsl:value-of select="(position()-1)*2+171"/>.
                                                <br/><xsl:value-of select="wnio:PodstawaPrawna"/></td>
                        <td><xsl:value-of select="(position()-1)*2+172"/>.
                                                <br/><xsl:value-of select="wnio:Powierzchnia"/></td>
                      </tr>
                    </xsl:for-each>
                  </table>
                </xsl:for-each>
                <xsl:for-each select="wnio:DaneUlg">
                  <table>
                    <tr>
                      <th colspan="2">
                        <h4>
                          <xsl:value-of select="wnio:Tytul"/>
                        </h4>
                      </th>
                    </tr>
                    <xsl:for-each select="wnio:Ulga1">
                      <tr>
                        <th>Kwota ulgi w podatku za grunty przeznaczone na utworzenie nowego
                                                gospodarstwa rolnego lub powiększenie już istniejącego do powierzchni nie
                                                przekraczającej 100 ha
                                            </th>
                        <td><xsl:value-of select="wnio:Kwota"/> zł
                                            </td>
                      </tr>
                    </xsl:for-each>
                    <xsl:for-each select="wnio:Ulga2">
                      <tr>
                        <th>Kwota ulgi w podatku z tytułu ulgi inwestycyjnej</th>
                        <td><xsl:value-of select="wnio:Kwota"/> zł
                                            </td>
                      </tr>
                    </xsl:for-each>
                    <xsl:for-each select="wnio:Ulga3">
                      <tr>
                        <th>Kwota ulgi w podatku z tytułu:
                                                <br/>
                                                <xsl:value-of select="wnio:ZTytulu"/>
                                            </th>
                        <td><xsl:value-of select="wnio:Kwota"/> zł
                                            </td>
                      </tr>
                    </xsl:for-each>
                    <xsl:for-each select="wnio:Ulga4">
                      <tr>
                        <th>4. inne</th>
                        <td><xsl:value-of select="wnio:Kwota"/> zł
                                            </td>
                      </tr>
                    </xsl:for-each>
                    <tr>
                      <th>
                        <b>Razem</b>
                      </th>
                      <td><xsl:value-of select="format-number(wnio:KwotaRazem,'0')"/> zł
                                        </td>
                    </tr>
                  </table>
                </xsl:for-each>
                <xsl:for-each select="wnio:DaneLacznejKwoty">
                  <table>
                    <tr>
                      <th colspan="2">
                        <h4>
                          <xsl:value-of select="wnio:Tytul"/>
                        </h4>
                      </th>
                    </tr>
                    <tr>
                      <th>
                        <b>Kwota podatku</b>
                      </th>
                      <td style="text-align: center"><xsl:if test="wnio:LacznaKwotaPodatku &gt; 0"><xsl:value-of select="wnio:LacznaKwotaPodatku"/></xsl:if><xsl:if test="wnio:LacznaKwotaPodatku = 0"><span>0</span></xsl:if><xsl:if test="wnio:LacznaKwotaPodatku &lt; 0"><span>0</span></xsl:if>
                                            zł
                                        </td>
                    </tr>
                  </table>
                </xsl:for-each>
                <table>
                  <tr>
                    <th colspan="2">
                      <h4>
                        <xsl:value-of select="wnio:NaglowekRachunku"/>
                      </h4>
                    </th>
                  </tr>
                  <tr>
                    <th>
                      <xsl:value-of select="wnio:TytulRachunku"/>
                    </th>
                    <td>186.
                                        <xsl:value-of select="wnio:NazwaRachunku"/>
                                    </td>
                  </tr>
                  <tr>
                    <th>Numer rachunku</th>
                    <td>187.
                                        <xsl:value-of select="wnio:NrRachunku"/>
                                    </td>
                  </tr>
                </table>
                <h2>STOPKA</h2>
                <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>
                <table>
                  <tr>
                    <th colspan="2">
                      <h4>I. OŚWIADCZENIE I PODPIS PODATNIKA / OSOBY REPREZENTUJĄCEJ PODATNIKA</h4>
                    </th>
                  </tr>
                  <tr>
                    <th>Imię</th>
                    <td>188.
                                        <xsl:value-of select="oso:Imie"/>
                                    </td>
                  </tr>
                  <tr>
                    <th>Nazwisko</th>
                    <td>189.
                                        <xsl:value-of select="oso:Nazwisko"/>
                                    </td>
                  </tr>
                  <tr>
                    <th>Data wypełnienia deklaracji</th>
                    <td>190.
                                        <xsl:value-of select="wnio:DataWypelnienia"/>
                                    </td>
                  </tr>
                </table>
                <table>
                  <tr>
                    <th>
                      <h4>Pouczenie</h4>
                    </th>
                  </tr>
                  <tr>
                    <td>
                      <ul>
                        <li>
                          <xsl:value-of select="wnio:Pouczenie1"/>
                        </li>
                        <li>
                          <xsl:value-of select="wnio:Pouczenie2"/>
                        </li>
                        <li>
                          <xsl:value-of select="wnio:Pouczenie3"/>
                        </li>
                        <li>
                          <xsl:value-of select="wnio:Pouczenie4"/>
                        </li>
                      </ul>
                    </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>