7316

ID7316
Data2019-03-14
Symbol2019/03/14/7316
InstytucjaUrząd Miejski w Wojniczu
NazwaInformacja o nieruchomościach i obiektach budowlanych
Czy Aktualny1

Ustawy (1)

  • URI://Dziennik_Ustaw/2018/1445/6/14/1
  • Ustawa z dnia 12 stycznia 1991 r. o podatkach i opłatach lokalnych

    Pliki

    Styl

    <?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:adr="http://crd.gov.pl/xml/schematy/adres/2009/11/09/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:inst="http://crd.gov.pl/xml/schematy/instytucja/2009/11/16/" xmlns:meta="http://crd.gov.pl/xml/schematy/meta/2009/11/16/" xmlns:oso="http://crd.gov.pl/xml/schematy/osoba/2009/11/16/" xmlns:str="http://crd.gov.pl/xml/schematy/struktura/2009/11/16/" xmlns:wnio="http://crd.gov.pl/wzor/2019/03/14/7316/" 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:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0">
      <xsl:template match="/">
        <html xmlns="http://www.w3.org/1999/xhtml">
          <head>
            <meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
            <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="max-width: 900px; margin: 0 auto;">
              <xsl:for-each select="//wnio:TrescDokumentu/wnio:Wartosc">
                <xsl:for-each select="wnio:Naglowek">
                  <h3 style="text-align: right;">
                    <xsl:value-of select="wnio:NazwaUchwaly"/>
                  </h3>
                  <xsl:for-each select="//wnio:TrescDokumentu/wnio:Wartosc/wnio:Podmiot">
                    <xsl:for-each select="wnio:OsobaFizyczna">
                      <table style="max-width: 200px;">
                        <tr>
                          <th>
                                                1.
                                                <xsl:value-of select="wnio:NiPesel"/>
                                                <xsl:for-each select="wnio:NiPesel[.='PESEL']">
    
                                                </xsl:for-each>
                                            </th>
                          <th>2. Nr dokumentu</th>
                        </tr>
                        <tr>
                          <xsl:for-each select="wnio:NiPesel[.='NIP']">
                            <td>
                              <xsl:value-of select="../oso:NIP"/>
                            </td>
                          </xsl:for-each>
                          <xsl:for-each select="wnio:NiPesel[.='PESEL']">
                            <td>
                              <xsl:value-of select="../oso:PESEL"/>
                            </td>
                          </xsl:for-each>
                          <td>
                            <xsl:value-of select="wnio:NrDokumentu"/>
                          </td>
                        </tr>
                      </table>
                    </xsl:for-each>
                  </xsl:for-each>
                  <h1 style="text-align: center;">
                    <xsl:value-of select="wnio:NazwaFormularza"/>
                  </h1>
                  <table style="margin:auto; width:280px;">
                    <tr>
                      <th>3. Rok:</th>
                      <td>
                        <xsl:value-of select="wnio:Rok"/>
                      </td>
                    </tr>
                  </table>
                  <h1 style="text-align: center;">NAGŁÓWEK</h1>
                  <table border="1px">
                    <tr>
                      <th style="width:15%">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>
                </xsl:for-each>
                <table>
                  <tr>
                    <th>
                      <h4>A. MIEJSCE SKŁADANIA INFORMACJI</h4>
                    </th>
                  </tr>
                  <tr>
                    <td>4. Nazwa i adres siedziby organu podatkowego</td>
                  </tr>
                  <tr>
                    <td>
                      <xsl:value-of select="//wnio:MiejsceSkladaniaDeklaracji"/>
                    </td>
                  </tr>
                </table>
                <table>
                  <tr>
                    <th colspan="2">
                      <h4 style="display: inline-block;">B. OBOWIĄZEK ZŁOŻENIA INFORMACJI</h4>
                    </th>
                  </tr>
                  <tr>
                    <th style="width: 35%">5. Okoliczności powodujące obowiązek złożenia informacji</th>
                    <td>
                      <xsl:value-of select="wnio:ObowiazekZlozeniaDeklaracji"/>
                      <xsl:for-each select="wnio:ObowiazekZlozeniaDeklaracji[.='2. informacja składana w związku ze zmianą – data zaistnienia zmiany']"><br/>(miesiąc-rok)
                                        <xsl:value-of select="//wnio:KorektraDeklaracjiMiesiac"/>
                                    </xsl:for-each>
                      <xsl:for-each select="wnio:ObowiazekZlozeniaDeklaracji[.='3. korekta uprzednio złożonej informacji']"><br/>(miesiąc-rok)
                                        <xsl:value-of select="//wnio:KorektraDeklaracjiMiesiac2"/>
                                    </xsl:for-each>
                    </td>
                  </tr>
                </table>
                <table>
                  <tr>
                    <th>
                      <h4>C. PODMIOT ZOBOWIĄZANY DO ZŁOŻENIA INFORMACJI</h4>
                    </th>
                  </tr>
                  <tr>
                    <th>5. Rodzaj podmiotu</th>
                  </tr>
                  <tr>
                    <th>
                      <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>
                    <xsl:for-each select="wnio:OsobaFizyczna">
                      <tr>
                        <th style="width:10%">6. Nazwisko</th>
                        <td style="width:25%">
                          <xsl:value-of select="oso:Nazwisko"/>
                        </td>
                        <th style="width:10%">7. Pierwsze imię, drugie imię</th>
                        <td style="width:25%">
                          <xsl:value-of select="oso:Imie"/>
                        </td>
                        <td colspan="2">
                          <xsl:value-of select="oso:ImieDrugie"/>
                        </td>
                      </tr>
                      <tr>
                        <th style="width:10%">8. Identyfikator REGON</th>
                        <td colspan="5">
                          <xsl:value-of select="inst:REGON"/>
                        </td>
                      </tr>
                      <tr>
                        <th colspan="6">Pola 9, 10, 11 należy wypełnić w przypadku, gdy numer PESEL nie został nadany.</th>
                      </tr>
                      <tr>
                        <th>9. Data urodzenia</th>
                        <td>
                          <xsl:value-of select="oso:DataUrodzenia"/>
                        </td>
                        <th>10. Imię ojca</th>
                        <td>
                          <xsl:value-of select="oso:ImieOjca"/>
                        </td>
                        <th>11. Imię matki</th>
                        <td>
                          <xsl:value-of select="oso:ImieMatki"/>
                        </td>
                      </tr>
                    </xsl:for-each>
                  </table>
                  <xsl:for-each select="wnio:Adres">
                    <table>
                      <tr>
                        <th colspan="6">
                          <h4>D.2. ADRES ZAMIESZKANIA</h4>
                        </th>
                      </tr>
                      <tr>
                        <th>12. Kraj</th>
                        <td colspan="5">
                          <xsl:value-of select="adr:Kraj"/>
                        </td>
                      </tr>
                      <tr>
                        <th>13. Województwo</th>
                        <td>
                          <xsl:value-of select="adr:Wojewodztwo"/>
                        </td>
                        <th>14. Powiat</th>
                        <td>
                          <xsl:value-of select="adr:Powiat"/>
                        </td>
                        <th>15. Gmina</th>
                        <td>
                          <xsl:value-of select="adr:Gmina"/>
                        </td>
                      </tr>
                      <tr>
                        <th>16. Ulica</th>
                        <td>
                          <xsl:value-of select="adr:Ulica"/>
                        </td>
                        <th>17. Nr domu</th>
                        <td>
                          <xsl:value-of select="adr:Budynek"/>
                        </td>
                        <th>18. Nr lokalu</th>
                        <td>
                          <xsl:value-of select="adr:Lokal"/>
                        </td>
                      </tr>
                      <tr>
                        <th>19. Miejscowość</th>
                        <td>
                          <xsl:value-of select="adr:Miejscowosc"/>
                        </td>
                        <th>20. Kod pocztowy</th>
                        <td>
                          <xsl:value-of select="adr:KodPocztowy"/>
                        </td>
                        <th>21. Poczta</th>
                        <td>
                          <xsl:value-of select="adr:Poczta"/>
                        </td>
                      </tr>
                      <tr>
                        <th>22. Telefon</th>
                        <td>
                          <xsl:value-of select="adr:Telefon"/>
                        </td>
                        <th>23. Fax</th>
                        <td>
                          <xsl:value-of select="adr:Faks"/>
                        </td>
                        <th>24. Adres e-mail</th>
                        <td>
                          <xsl:value-of select="adr:Email"/>
                        </td>
                      </tr>
                    </table>
                  </xsl:for-each>
                </xsl:for-each>
                <br/>
                <h1>TREŚĆ FORMULARZA</h1>
                <xsl:for-each select="wnio:PrzedmiotyOpodatkowania">
                  <table>
                    <tr>
                      <th colspan="5">
                        <h4>E. DANE DOTYCZĄCE PRZEDMIOTÓW OPODATKOWANIA NIEPODLEGAJĄCYCH ZWOLNIENIU
                                        </h4>
                      </th>
                    </tr>
                    <xsl:for-each select="wnio:Grunty">
                      <tr>
                        <th colspan="5">
                          <h4>
                            <xsl:value-of select="wnio:Tytul"/>
                          </h4>
                        </th>
                      </tr>
                      <tr>
                        <th colspan="2"/>
                        <th>Podstawa opodatkowania w m<sup>2</sup> (ha) z dokładnością do 1 m<sup>2</sup></th>
                      </tr>
                      <xsl:for-each select="wnio:Pozycja">
                        <tr>
                          <th colspan="2">
                            <xsl:value-of select="concat(position(), '. ', wnio:Opis)"/>
                          </th>
                          <td>
                            <xsl:value-of select="position()+24"/>
                            <br/>
                            <xsl:if test="@typ='m2'"><xsl:value-of select="wnio:Podstawa"/>
                                                    m<sup>2</sup>
                                                </xsl:if>
                            <xsl:if test="@typ='ha'"><xsl:value-of select="wnio:Podstawa"/>
                                                    ha
                                                </xsl:if>
                          </td>
                        </tr>
                      </xsl:for-each>
                    </xsl:for-each>
                    <xsl:for-each select="wnio:Budynki">
                      <tr>
                        <th colspan="5">
                          <h4>
                            <xsl:value-of select="wnio:Tytul"/>
                          </h4>
                        </th>
                      </tr>
                      <tr>
                        <th colspan="2"/>
                        <th>Podstawa opodatkowania w m<sup>2</sup></th>
                      </tr>
                      <xsl:for-each select="wnio:Pozycja">
                        <tr>
                          <th colspan="2">
                            <xsl:value-of select="concat(position(), '. ', wnio:Opis)"/>
                          </th>
                          <td><xsl:value-of select="concat((count(current()/preceding::wnio:Pozycja)+1)*3-3+17, '.')"/><br/><xsl:value-of select="wnio:Podstawa"/>
                                                m<sup>2</sup>
                                            </td>
                        </tr>
                        <tr>
                          <th rowspan="2">
                            <xsl:value-of select="../wnio:Tekst1"/>
                          </th>
                          <th>
                            <xsl:value-of select="../wnio:Tekst2"/>
                          </th>
                          <td><xsl:value-of select="concat((count(current()/preceding::wnio:Pozycja)+1)*3-3+18, '.')"/><br/><xsl:value-of select="wnio:Podstawa1"/>
                                                m<sup>2</sup>
                                            </td>
                        </tr>
                        <tr>
                          <th>
                            <xsl:value-of select="../wnio:Tekst3"/>
                          </th>
                          <td><xsl:value-of select="concat((count(current()/preceding::wnio:Pozycja)+1)*3-3+19, '.')"/><br/><xsl:value-of select="wnio:Podstawa2"/>
                                                m<sup>2</sup>
                                            </td>
                        </tr>
                      </xsl:for-each>
                    </xsl:for-each>
                    <xsl:for-each select="wnio:Budowle">
                      <tr>
                        <th colspan="5">
                          <h4>
                            <xsl:value-of select="wnio:Tytul"/>
                          </h4>
                        </th>
                      </tr>
                      <tr>
                        <th colspan="2"/>
                        <th>Podstawa opodatkowania w zł z dokładnością do 1 zł</th>
                      </tr>
                      <xsl:for-each select="wnio:Pozycja">
                        <tr>
                          <th colspan="2">
                            <xsl:value-of select="wnio:Opis"/>
                          </th>
                          <td>
                                                44.
                                                <xsl:value-of select="wnio:Podstawa"/>
                                                zł
                                            </td>
                        </tr>
                      </xsl:for-each>
                    </xsl:for-each>
                  </table>
                </xsl:for-each>
                <table>
                  <tr>
                    <th colspan="2">
                      <h4>F. INFORMACJA O ZAŁĄCZNIKACH</h4>
                    </th>
                  </tr>
                  <tr>
                    <td style="text-align: center">
                                    45. <b>Liczba załączników ZN-1/A</b>
                                    <br/>
                                    <xsl:value-of select="count(wnio:DanePrzedmiotow/wnio:DanePrzedmiotow)"/>
                                </td>
                    <td style="text-align: center">
                                    46. <b>Załącznik ZN-1/B składany</b>
                                    <br/>
                                    <xsl:value-of select="wnio:ZalB/@wystepuje"/>
                                </td>
                  </tr>
                </table>
                <xsl:for-each select="wnio:DanePrzedmiotow">
                  <xsl:for-each select="wnio:DanePrzedmiotow">
                    <h2>ZN-1/A DANE O NIERUCHOMOŚCIACH</h2>
                    <xsl:for-each select="wnio:Podmiot">
                      <xsl:for-each select="wnio:Rodzaj[.='osoba_fizyczna']">
                        <xsl:for-each select="../wnio:OsobaFizyczna">
                          <table style="max-width: 200px;">
                            <tr>
                              <th>
                                                        1.
                                                        <xsl:value-of select="wnio:NiPesel"/>
                                                    </th>
                              <th>2. Nr dokumentu</th>
                            </tr>
                            <tr>
                              <xsl:for-each select="wnio:NiPesel[.='NIP']">
                                <td>
                                  <xsl:value-of select="../oso:NIP"/>
                                </td>
                              </xsl:for-each>
                              <xsl:for-each select="wnio:NiPesel[.='PESEL']">
                                <td>
                                  <xsl:value-of select="../oso:PESEL"/>
                                </td>
                              </xsl:for-each>
                              <td>
                                <xsl:value-of select="wnio:NrDokumentu"/>
                              </td>
                            </tr>
                          </table>
                        </xsl:for-each>
                      </xsl:for-each>
                    </xsl:for-each>
                    <h2>DANE O NIERUCHOMOŚCIACH</h2>
                    <table>
                      <tr>
                        <th>Załącznik ZN-1/A przeznaczony jest dla jednej nieruchomości. W przypadku, gdy podatnik posiada na terenie gminy więcej niż jedną nieruchomość należy wypełnić odrębne załączniki.</th>
                        <th>
                          <h4>3. Nr załącznika</h4>
                          <xsl:value-of select="position()"/>
                        </th>
                      </tr>
                    </table>
                    <table>
                      <tr>
                        <th colspan="2">
                          <h4>A. PRZEZNACZENIE FORMULARZA</h4>
                        </th>
                      </tr>
                      <tr>
                        <th>4. Niniejszy formularz stanowi załącznik do</th>
                        <td>
                          <xsl:value-of select="wnio:ZalacznikDo"/>
                        </td>
                      </tr>
                    </table>
                    <table>
                      <tr>
                        <th colspan="6">
                          <h4>B. DANE PODATNIKA</h4>
                        </th>
                      </tr>
                      <tr>
                        <th colspan="6">
                          <h4>B.1. DANE IDENTYFIKACYJNE</h4>
                        </th>
                      </tr>
                      <xsl:for-each select="wnio:Podmiot">
                        <tr>
                          <th style="width:10%">5. Rodzaj podatnika</th>
                          <td colspan="5">
                            <xsl:if test="wnio:Rodzaj = 'osoba_fizyczna'">1. osoba fizyczna</xsl:if>
                            <xsl:if test="wnio:Rodzaj = 'osoba_prawna'">2. osoba prawna</xsl:if>
                            <xsl:if test="wnio:Rodzaj = 'jednostka_organizacyjna'">3. jednostka organizacyjna, w tym spółka, nieposiadająca osobowości prawnej</xsl:if>
                          </td>
                        </tr>
                        <xsl:for-each select="wnio:Rodzaj[.='osoba_fizyczna']">
                          <xsl:for-each select="../wnio:OsobaFizyczna">
                            <tr>
                              <th style="width:10%">6. Nazwisko</th>
                              <td style="width:25%">
                                <xsl:value-of select="oso:Nazwisko"/>
                              </td>
                              <th style="width:10%">7. Pierwsze imię, drugie imię</th>
                              <td style="width:25%">
                                <xsl:value-of select="oso:Imie"/>
                              </td>
                              <td colspan="2">
                                <xsl:value-of select="oso:ImieDrugie"/>
                              </td>
                            </tr>
                            <tr>
                              <th style="width:10%">8. Identyfikator REGON</th>
                              <td colspan="5">
                                <xsl:value-of select="inst:REGON"/>
                              </td>
                            </tr>
                          </xsl:for-each>
                        </xsl:for-each>
                        <xsl:for-each select="wnio:Rodzaj[.!='osoba_fizyczna']">
                          <xsl:for-each select="../wnio:OsobaNiefizyczna">
                            <tr>
                              <th style="width:25%">6. Nazwa pełna</th>
                              <td style="width:25%">
                                <xsl:value-of select="inst:NazwaInstytucji"/>
                              </td>
                              <th style="width:25%">7. Nazwa skrócona</th>
                              <td style="width:25%">
                                <xsl:value-of select="wnio:NazwaSkrocona"/>
                              </td>
                            </tr>
                            <tr>
                              <th style="width:25%">8. Identyfikator REGON</th>
                              <td colspan="3">
                                <xsl:value-of select="inst:REGON"/>
                              </td>
                            </tr>
                          </xsl:for-each>
                        </xsl:for-each>
                      </xsl:for-each>
                    </table>
                    <table>
                      <tr>
                        <th colspan="2">
                          <h4>C. DANE O NIERUCHOMOŚCIACH I OBIEKTACH BUDOWLANYCH PODLEGAJĄCYCH OPODATKOWANIU LUB ZWOLNIENIU
                                            </h4>
                        </th>
                      </tr>
                    </table>
                    <table>
                      <tr>
                        <th colspan="2">
                          <h4>C.1. POŁOŻENIE NIERUCHOMOŚCI</h4>
                        </th>
                      </tr>
                      <tr style="width:20%;">
                        <th>9. Położenie nieruchomości (adres)</th>
                        <td>
                          <xsl:value-of select="wnio:AdresNieruchomosci"/>
                        </td>
                      </tr>
                    </table>
                    <table>
                      <tr>
                        <th colspan="3">
                          <h4>C.2. TYTUŁ PRAWNY</h4>
                        </th>
                      </tr>
                      <tr>
                        <th>
                          <xsl:value-of select="wnio:Wybor"/>
                        </th>
                        <xsl:if test="wnio:Wybor='10. Rodzaj własności'">
                          <th>
                            <xsl:value-of select="//wnio:Wybor1"/>
                          </th>
                        </xsl:if>
                        <xsl:if test="wnio:Wybor='11. Rodzaj posiadania samoistnego'">
                          <th>
                            <xsl:value-of select="//wnio:Wybor2"/>
                          </th>
                        </xsl:if>
                        <xsl:if test="wnio:Wybor='12. Rodzaj użytkowania'">
                          <th>
                            <xsl:value-of select="//wnio:Wybor3"/>
                          </th>
                        </xsl:if>
                        <xsl:if test="wnio:Wybor='13. Rodzaj posiadania zależnego'">
                          <th>
                            <xsl:value-of select="//wnio:Wybor4"/>
                          </th>
                        </xsl:if>
                      </tr>
                    </table>
                    <table>
                      <tr>
                        <th colspan="6">
                          <h4>C.3. IDENTYFIKATORY GEODEZYJNE DZIAŁEK
    
                                            </h4>
                        </th>
                      </tr>
                      <xsl:for-each select="wnio:DodawanieDzialek">
                        <tr>
                          <th colspan="3">
                                                14. Działki ewidencyjne
                                            </th>
                        </tr>
                        <xsl:for-each select="wnio:DodawanieDzialek">
                          <tr>
                            <td>
                              <xsl:value-of select="wnio:Element"/>
                              <br/>
                            </td>
                          </tr>
                        </xsl:for-each>
                      </xsl:for-each>
                      <xsl:for-each select="wnio:DodawanieBudynki">
                        <tr>
                          <th colspan="3">
                                                15. Budynki
                                            </th>
                        </tr>
                        <xsl:for-each select="wnio:DodawanieBudynki">
                          <tr>
                            <td>
                              <xsl:value-of select="wnio:Element"/>
                              <br/>
                            </td>
                          </tr>
                        </xsl:for-each>
                      </xsl:for-each>
                      <xsl:for-each select="wnio:DodawanieLokale">
                        <tr>
                          <th colspan="3">
                                                16. Lokale
                                            </th>
                        </tr>
                        <xsl:for-each select="wnio:DodawanieLokale">
                          <tr>
                            <td>
                              <xsl:value-of select="wnio:Element"/>
                              <br/>
                            </td>
                          </tr>
                        </xsl:for-each>
                      </xsl:for-each>
                    </table>
                    <table>
                      <tr>
                        <th colspan="2">
                          <h4>C.4. KSIĘGA WIECZYSTA</h4>
                        </th>
                      </tr>
                      <tr>
                        <th>17. Numer księgi wieczystej lub zbioru dokumentów</th>
                        <td>
                          <xsl:value-of select="wnio:NrKsiegiWieczystej"/>
                        </td>
                      </tr>
                      <tr>
                        <th>18. Nazwa sądu</th>
                        <td>
                          <xsl:value-of select="wnio:NazwaSadu"/>
                        </td>
                      </tr>
                    </table>
                  </xsl:for-each>
                </xsl:for-each>
                <h2>ZN-1B Dane o zwolnieniach podatkowych w podatku od nieruchomości </h2>
                <div style="display: inline-block">
                  <xsl:value-of select="wnio:ZalB/@wystepuje"/>
                </div>
                <xsl:for-each select="wnio:ZalB[@wystepuje='tak']">
                  <xsl:for-each select="wnio:Podmiot">
                    <xsl:for-each select="wnio:OsobaFizyczna">
                      <table style="max-width: 200px;">
                        <tr>
                          <th>
                                                1.
                                                <xsl:value-of select="wnio:NiPesel"/>
                                            </th>
                          <th>2. Nr dokumentu</th>
                        </tr>
                        <tr>
                          <xsl:for-each select="wnio:NiPesel[.='NIP']">
                            <td>
                              <xsl:value-of select="../oso:NIP"/>
                            </td>
                          </xsl:for-each>
                          <xsl:for-each select="wnio:NiPesel[.='PESEL']">
                            <td>
                              <xsl:value-of select="../oso:PESEL"/>
                            </td>
                          </xsl:for-each>
                          <td>
                            <xsl:value-of select="wnio:NrDokumentu"/>
                          </td>
                        </tr>
                      </table>
                    </xsl:for-each>
                  </xsl:for-each>
                  <h2>DANE O ZWOLNIENIACH PODATKOWYCH W PODATKU OD NIERUCHOMOŚCI</h2>
                  <table>
                    <tr>
                      <th colspan="2">
                        <h4>A. PRZEZNACZENIE FORMULARZA</h4>
                      </th>
                    </tr>
                    <tr>
                      <th>3. Niniejszy formularz stanowi załącznik do</th>
                      <td>
                        <xsl:value-of select="wnio:ZalacznikDo"/>
                      </td>
                    </tr>
                  </table>
                  <table>
                    <tr>
                      <th colspan="6">
                        <h4>B. DANE PODATNIKA</h4>
                      </th>
                    </tr>
                    <tr>
                      <th colspan="6">
                        <h4>B.1. DANE IDENTYFIKACYJNE</h4>
                      </th>
                    </tr>
                    <xsl:for-each select="wnio:Podmiot">
                      <tr>
                        <th style="width:10%">4. Rodzaj podatnika</th>
                        <td colspan="5">
                          <xsl:if test="./@typPodmiotu = 'osoba_fizyczna'">1. osoba fizyczna</xsl:if>
                          <xsl:if test="./@typPodmiotu = 'osoba_prawna'">2. osoba prawna</xsl:if>
                          <xsl:if test="./@typPodmiotu = 'jednostka_organizacyjna'">3. 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%">5. Nazwisko</th>
                          <td style="width:25%">
                            <xsl:value-of select="oso:Nazwisko"/>
                          </td>
                          <th style="width:10%">6. Pierwsze imię, drugie imię</th>
                          <td style="width:25%">
                            <xsl:value-of select="oso:Imie"/>
                          </td>
                          <td colspan="2">
                            <xsl:value-of select="oso:ImieDrugie"/>
                          </td>
                        </tr>
                        <tr>
                          <th style="width:10%">7. Identyfikator REGON</th>
                          <td colspan="5">
                            <xsl:value-of select="inst:REGON"/>
                          </td>
                        </tr>
                      </xsl:for-each>
                      <xsl:for-each select="wnio:OsobaNiefizyczna">
                        <tr>
                          <th style="width:25%">5. Nazwa pełna</th>
                          <td style="width:25%">
                            <xsl:value-of select="inst:NazwaInstytucji"/>
                          </td>
                          <th style="width:25%">6. Nazwa skrócona</th>
                          <td style="width:25%">
                            <xsl:value-of select="wnio:NazwaSkrocona"/>
                          </td>
                        </tr>
                        <tr>
                          <th style="width:25%">7. Identyfikator REGON</th>
                          <td colspan="3">
                            <xsl:value-of select="inst:REGON"/>
                          </td>
                        </tr>
                      </xsl:for-each>
                    </xsl:for-each>
                  </table>
                  <table>
                    <tr>
                      <th colspan="5">
                        <h4 style="text-align: center;">C. DANE DOTYCZĄCE ZWOLNIEŃ PODATKOWYCH WYNIKAJĄCYCH Z USTAWY LUB UCHWAŁY RADY MIEJSKIEJ</h4>
                      </th>
                    </tr>
                    <tr>
                      <th style="width: 55%">Tytuł prawny zwolnienia</th>
                      <th>Grunty powierzchnia w m<sup>2</sup></th>
                      <th>Budynki lub ich części</th>
                      <th>Budowle wartość w zł</th>
                    </tr>
                    <xsl:for-each select="wnio:Zwolnienie[@rodzaj='podane']">
                      <tr>
                        <th>
                          <xsl:value-of select="wnio:Opis"/>
                        </th>
                        <xsl:for-each select="wnio:Grunty">
                          <td>
                            <xsl:if test="@numer">
                              <br/>
                              <xsl:value-of select="concat(@numer, '.')"/>
                            </xsl:if>
                            <br/>
                            <xsl:value-of select="."/>
                          </td>
                        </xsl:for-each>
                        <xsl:if test="not(wnio:Grunty)">
                          <th/>
                        </xsl:if>
                        <xsl:for-each select="wnio:Budowle">
                          <td>
                            <xsl:if test="@numer">
                              <br/>
                              <xsl:value-of select="concat(@numer, '.')"/>
                            </xsl:if>
                            <br/>
                            <xsl:value-of select="."/>
                          </td>
                        </xsl:for-each>
                        <xsl:if test="not(wnio:Budowle)">
                          <th/>
                        </xsl:if>
                        <xsl:for-each select="wnio:Kwota">
                          <td>
                            <xsl:if test="@numer">
                              <br/>
                              <xsl:value-of select="concat(@numer, '.')"/>
                            </xsl:if>
                            <br/>
                            <xsl:value-of select="."/>
                          </td>
                        </xsl:for-each>
                        <xsl:if test="not(wnio:Kwota)">
                          <th/>
                        </xsl:if>
                      </tr>
                    </xsl:for-each>
                    <tr>
                      <th style="width:40%">
                                        Na podstawie Uchwały Rady Miejskiej w Wojniczu Nr
                                        <xsl:value-of select="wnio:Podstawa_2"/>
                                        z dnia
                                        <xsl:value-of select="wnio:Dzien_2"/>
                                    </th>
                      <td>
                                        56.<br/>
                                        <xsl:value-of select="wnio:Grunty_2"/>
                                    </td>
                      <td>
                                        57.<br/>
                                        <xsl:value-of select="wnio:Budowle_2"/>
                                    </td>
                      <td>
                                        58.<br/>
                                        <xsl:value-of select="wnio:Kwota_2"/>
                                    </td>
                    </tr>
                    <xsl:for-each select="wnio:Zwolnienie[@rodzaj='inne']">
                      <tr>
                        <th style="width:40%">
                                            Na podstawie Uchwały Rady Miejskiej w Wojniczu Nr
                                            <xsl:value-of select="wnio:Podstawa"/>
                                            z dnia
                                            <xsl:value-of select="wnio:Dzien"/>
                                        </th>
                        <td>
                          <xsl:value-of select="concat((count(current()/preceding::wnio:Zwolnienie)+1)*3-3+59, '.')"/>
                          <br/>
                          <xsl:value-of select="wnio:Grunty"/>
                        </td>
                        <td>
                          <xsl:value-of select="concat((count(current()/preceding::wnio:Zwolnienie)+1)*3-3+60, '.')"/>
                          <br/>
                          <xsl:value-of select="wnio:Budowle"/>
                        </td>
                        <td>
                          <xsl:value-of select="concat((count(current()/preceding::wnio:Zwolnienie)+1)*3-3+61, '.')"/>
                          <br/>
                          <xsl:value-of select="wnio:Kwota"/>
                        </td>
                      </tr>
                    </xsl:for-each>
                  </table>
                </xsl:for-each>
                <h2>STOPKA</h2>
                <table>
                  <tr>
                    <th colspan="2">
                      <h4>G. PODPIS PODATNIKA / OSOBY REPREZENTUJĄCEJ PODATNIKA</h4>
                    </th>
                  </tr>
                  <tr>
                    <th>Imię</th>
                    <td>47.
                                    <xsl:value-of select="oso:Imie"/>
                                </td>
                  </tr>
                  <tr>
                    <th>Nazwisko</th>
                    <td>48.
                                    <xsl:value-of select="oso:Nazwisko"/>
                                </td>
                  </tr>
                  <tr>
                    <th>Data wypełnienia informacji</th>
                    <td>49.
                                    <xsl:value-of select="wnio:DataWypelnienia"/>
                                </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>