7713

ID7713
Data2019-05-22
Symbol2019/05/22/7713
InstytucjaUrząd Gminy Ostrów Wielkopolski
NazwaInformacja w sprawie podatku rolnego
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/2019/05/22/7713/" xmlns:meta="http://crd.gov.pl/xml/schematy/meta/2009/11/16/" xmlns:str="http://crd.gov.pl/xml/schematy/struktura/2009/11/16/" xmlns:oso="http://crd.gov.pl/xml/schematy/osoba/2009/11/16/" xmlns:inst="http://crd.gov.pl/xml/schematy/instytucja/2009/11/16/" xmlns:adr="http://crd.gov.pl/xml/schematy/adres/2009/11/09/" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xfl="http://www.w3.org/1999/XSL/Transform" version="1.0">
      <xsl:template match="/">
        <html xmlns="http://www.w3.org/1999/xhtml">
          <head>
            <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;
                        }
    
                        textarea {
                            width: 90%;
                            height: 100%
                        }
                    </style>
          </head>
          <body>
            <div style="max-width: 900px; margin: 0 auto;">
              <xsl:for-each select="//wnio:TrescDokumentu/wnio:Wartosc">
                <h1>
                  <xsl:value-of select="wnio:Tytul"/>
                  <br/>
                  <xsl:if test="//wnio:Wartosc[@rodzaj='2']">
                                rolnego
                            </xsl:if>
                </h1>
                <h2>NAGŁÓWEK</h2>
                <table>
                  <tr>
                    <th>Na rok</th>
                    <td>
                      <xsl:value-of select="wnio:Rok"/>
                    </td>
                  </tr>
                </table>
                <table>
                  <xsl:for-each select="wnio:Naglowek">
                    <tr>
                      <th>Podstawa prawna:</th>
                      <th>
                        <xsl:if test="//wnio:Wartosc[@rodzaj='2']">
                          <xsl:value-of select="//wnio:Podstawa[@dla='rolny']"/>
                        </xsl:if>
                      </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 disable-output-escaping="yes" select="wnio:Miejsce"/>
                      </th>
                    </tr>
                    <xsl:for-each select="wnio:MiejsceOsobno">
                      <tr>
                        <th colspan="2">
                          <h4>
                            <xsl:value-of select="wnio:Tytul"/>
                          </h4>
                        </th>
                      </tr>
                      <tr>
                        <th colspan="2">
                          <b>
                            <xsl:value-of select="wnio:Wartosc[1]"/>
                            <br/>
                            <xsl:value-of select="wnio:Wartosc[2]"/>
                          </b>
                        </th>
                      </tr>
                    </xsl:for-each>
                  </xsl:for-each>
                </table>
                <xsl:for-each select="wnio:Okolicznosci">
                  <table>
                    <tr>
                      <th colspan="2">
                        <h4>
                          <xsl:value-of select="wnio:Tytul"/>
                        </h4>
                      </th>
                    </tr>
                    <tr>
                      <th>
                        <xsl:value-of select="wnio:Podtytul"/>
                      </th>
                      <th>
                        <xsl:variable name="val1" select="wnio:Wartosc"/>
                        <xsl:value-of select="//wnio:Wartosci/wnio:Okolicznosci/wnio:Item/wnio:label[../wnio:value=$val1]"/>
                      </th>
                    </tr>
                    <xsl:for-each select="wnio:Daty/wnio:Data[position()=/wnio:Dokument/wnio:TrescDokumentu/wnio:Wartosc/wnio:Okolicznosci/wnio:Wartosc]">
                      <tr>
                        <th>
                          <xsl:value-of select="wnio:Tytul"/>
                        </th>
                        <td>
                          <xsl:value-of select="wnio:Wartosc">
    
                                                </xsl:value-of>
                        </td>
                      </tr>
                    </xsl:for-each>
                  </table>
                </xsl:for-each>
                <xsl:for-each select="wnio:Podmioty">
                  <table>
                    <tr>
                      <th colspan="6">
                        <h4>
                          <xsl:value-of select="wnio:Tytul"/>
                        </h4>
                      </th>
                    </tr>
                    <xsl:for-each select="wnio:Podmiot[1]">
                      <xsl:variable name="pos" select="position()"/>
                      <tr>
                        <th colspan="6">
                          <b>
                            <xsl:value-of select="wnio:Tytul"/>
                          </b>
                        </th>
                      </tr>
                      <xsl:for-each select="wnio:RodzajPosiadania">
                        <tr>
                          <th>
                            <xsl:value-of select="wnio:Tytul"/>
                          </th>
                          <td colspan="5">
                            <xsl:variable name="val2" select="wnio:Wartosc"/>
                            <xsl:value-of select="//wnio:Wartosci/wnio:FormyWladania/wnio:Item/wnio:label[../wnio:value=$val2]"/>
                          </td>
                        </tr>
                      </xsl:for-each>
                      <xsl:for-each select="//wnio:Podmioty/wnio:Podmiot[1]">
                        <tr>
                          <th>Imię</th>
                          <td>
                            <xsl:value-of select="oso:Imie"/>
                          </td>
                          <th>Drugie imię</th>
                          <td>
                            <xsl:value-of select="oso:ImieDrugie"/>
                          </td>
                          <th>Nazwisko</th>
                          <td>
                            <xsl:value-of select="oso:Nazwisko"/>
                          </td>
                        </tr>
                      </xsl:for-each>
                      <tr>
                        <th>PESEL</th>
                        <td>
                          <xsl:value-of select="oso:IdOsoby/oso:PESEL"/>
                        </td>
                        <th>NIP
                                                </th>
                        <td>
                          <xsl:value-of select="oso:IdOsoby/oso:NIP"/>
                        </td>
                        <th>REGON
                                            </th>
                        <td>
                          <xsl:value-of select="wnio:REGON"/>
                        </td>
                      </tr>
                      <tr>
                        <th>Imię ojca</th>
                        <td>
                          <xsl:value-of select="oso:ImieOjca"/>
                        </td>
                        <th>Imię matki</th>
                        <td>
                          <xsl:value-of select="oso:ImieMatki"/>
                        </td>
                        <th>Data urodzenia</th>
                        <td>
                          <xsl:value-of select="oso:DataUrodzenia"/>
                        </td>
                      </tr>
                      <tr>
                        <th colspan="6">
                          <b>Adres</b>
                        </th>
                      </tr>
                      <xsl:for-each select="//wnio:Podmioty/wnio:Podmiot[1]/adr:Adres">
                        <tr>
                          <th>Kraj</th>
                          <td>
                            <xsl:value-of select="adr:Kraj"/>
                          </td>
                          <th>Województwo</th>
                          <td>
                            <xsl:value-of select="adr:Wojewodztwo"/>
                          </td>
                          <th>Powiat</th>
                          <td>
                            <xsl:value-of select="adr:Powiat"/>
                          </td>
                        </tr>
                        <tr>
                          <th>Gmina</th>
                          <td>
                            <xsl:value-of select="adr:Gmina"/>
                          </td>
                          <th>Ulica</th>
                          <td>
                            <xsl:value-of select="adr:Ulica"/>
                          </td>
                          <th>Nr domu</th>
                          <td>
                            <xsl:value-of select="adr:Budynek"/>
                          </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>Nr lokalu</th>
                          <td>
                            <xsl:value-of select="adr:Lokal"/>
                          </td>
                        </tr>
                        <tr>
                          <th>Poczta</th>
                          <td colspan="5">
                            <xsl:value-of select="adr:Poczta"/>
                          </td>
                        </tr>
                      </xsl:for-each>
                    </xsl:for-each>
                  </table>
                  <table>
                    <tr>
                      <th colspan="6">
                        <h4>WSPÓŁWŁAŚCICIEL, WSPÓŁPOSIADACZ, WSPÓŁUŻYTKOWNIK (<xsl:value-of select="wnio:Wspolwlasciciel"/>) </h4>
                      </th>
                    </tr>
                    <xsl:if test="wnio:Wspolwlasciciel='tak'">
                      <xsl:for-each select="wnio:Podmiot[2]">
                        <xsl:variable name="pos" select="position()"/>
                        <tr>
                          <th colspan="6">
                            <b>
                              <xsl:value-of select="wnio:Tytul"/>
                            </b>
                          </th>
                        </tr>
                        <xsl:for-each select="wnio:RodzajPosiadania">
                          <tr>
                            <th>
                              <xsl:value-of select="wnio:Tytul"/>
                            </th>
                            <td colspan="5">
                              <xsl:variable name="val2" select="wnio:Wartosc"/>
                              <xsl:value-of select="//wnio:Wartosci/wnio:FormyWladania/wnio:Item/wnio:label[../wnio:value=$val2]"/>
                            </td>
                          </tr>
                        </xsl:for-each>
                        <xsl:for-each select="//wnio:Podmioty/wnio:Podmiot[2]">
                          <tr>
                            <th>Imię</th>
                            <td>
                              <xsl:value-of select="oso:Imie"/>
                            </td>
                            <th>Drugie imię</th>
                            <td>
                              <xsl:value-of select="oso:ImieDrugie"/>
                            </td>
                            <th>Nazwisko</th>
                            <td>
                              <xsl:value-of select="oso:Nazwisko"/>
                            </td>
                          </tr>
                        </xsl:for-each>
                        <tr>
                          <th>PESEL</th>
                          <td>
                            <xsl:value-of select="oso:IdOsoby/oso:PESEL"/>
                          </td>
                          <th>NIP
                                                </th>
                          <td>
                            <xsl:value-of select="oso:IdOsoby/oso:NIP"/>
                          </td>
                          <th>REGON
                                            </th>
                          <td>
                            <xsl:value-of select="wnio:REGON"/>
                          </td>
                        </tr>
                        <tr>
                          <th>Imię ojca</th>
                          <td>
                            <xsl:value-of select="oso:ImieOjca"/>
                          </td>
                          <th>Imię matki</th>
                          <td>
                            <xsl:value-of select="oso:ImieMatki"/>
                          </td>
                          <th>Data urodzenia</th>
                          <td>
                            <xsl:value-of select="oso:DataUrodzenia"/>
                          </td>
                        </tr>
                        <tr>
                          <th colspan="6">
                            <b>Adres</b>
                          </th>
                        </tr>
                        <xsl:for-each select="//wnio:Podmioty/wnio:Podmiot[2]/adr:Adres">
                          <tr>
                            <th>Kraj</th>
                            <td>
                              <xsl:value-of select="adr:Kraj"/>
                            </td>
                            <th>Województwo</th>
                            <td>
                              <xsl:value-of select="adr:Wojewodztwo"/>
                            </td>
                            <th>Powiat</th>
                            <td>
                              <xsl:value-of select="adr:Powiat"/>
                            </td>
                          </tr>
                          <tr>
                            <th>Gmina</th>
                            <td>
                              <xsl:value-of select="adr:Gmina"/>
                            </td>
                            <th>Ulica</th>
                            <td>
                              <xsl:value-of select="adr:Ulica"/>
                            </td>
                            <th>Nr domu</th>
                            <td>
                              <xsl:value-of select="adr:Budynek"/>
                            </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>Nr lokalu</th>
                            <td>
                              <xsl:value-of select="adr:Lokal"/>
                            </td>
                          </tr>
                          <tr>
                            <th>Poczta</th>
                            <td colspan="5">
                              <xsl:value-of select="adr:Poczta"/>
                            </td>
                          </tr>
                        </xsl:for-each>
                      </xsl:for-each>
                    </xsl:if>
                  </table>
                  <table>
                    <tr>
                      <th colspan="6">
                        <h4>
                                                    ADRES DO KORESPONDENCJI
                                                    (<xsl:value-of select="//wnio:Podmioty/wnio:Podmiot/wnio:AdresKorespondencyjny/@wystepuje"/>)
                                                </h4>
                      </th>
                    </tr>
                    <xsl:for-each select="//wnio:Podmioty/wnio:Podmiot/wnio:AdresKorespondencyjny/adr:Adres">
                      <tr>
                        <th>Kraj</th>
                        <td>
                          <xsl:value-of select="adr:Kraj"/>
                        </td>
                        <th>Województwo</th>
                        <td>
                          <xsl:value-of select="adr:Wojewodztwo"/>
                        </td>
                        <th>Powiat</th>
                        <td>
                          <xsl:value-of select="adr:Powiat"/>
                        </td>
                      </tr>
                      <tr>
                        <th>Gmina</th>
                        <td>
                          <xsl:value-of select="adr:Gmina"/>
                        </td>
                        <th>Ulica</th>
                        <td>
                          <xsl:value-of select="adr:Ulica"/>
                        </td>
                        <th>Nr domu</th>
                        <td>
                          <xsl:value-of select="adr:Budynek"/>
                        </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>Nr lokalu</th>
                        <td>
                          <xsl:value-of select="adr:Lokal"/>
                        </td>
                      </tr>
                      <tr>
                        <th>Poczta</th>
                        <td colspan="5">
                          <xsl:value-of select="adr:Poczta"/>
                        </td>
                      </tr>
                    </xsl:for-each>
                  </table>
                </xsl:for-each>
                <xsl:for-each select="//wnio:Formularz/wnio:Roslina">
                  <table>
                    <tbody>
                      <tr>
                        <th colspan="4">
                          <h4>POŁOŻENIE NIERUCHOMOŚCI I NUMER KSIĘGI WIECZYSTEJ</h4>
                        </th>
                      </tr>
                      <tr>
                        <th colspan="4">Miejsce/a (adres/y) położenia przedmiotów opodatkowania, działek, numer/y księgi wieczystej lub zbioru/ów dokumentów oraz nazwa sądu, w którym prowadzona jest księga wieczysta lub zbiór dokumentów (UWAGA! Wykazuje się odrębnie dla każdej nieruchomości)
                   
                  </th>
                      </tr>
                    </tbody>
                  </table>
                  <xsl:for-each select="wnio:Drzewo">
                    <table>
                      <tbody>
                        <tr>
                          <td>Położenie<br/>
                        <xsl:value-of select="wnio:Gatunek">
                         
                          
                        </xsl:value-of>
                      </td>
                          <td>
                        Powierzchnia gruntu<br/>
                        <xsl:value-of select="wnio:Wiek">
                        
                         
                        </xsl:value-of>
                      </td>
                          <td>
                        Numer działki<br/>
                        <xsl:value-of select="wnio:Ilosc">
                         
                         </xsl:value-of>
                      </td>
                        </tr>
                        <tr>
                          <td>
                        Numer KW<br/>
                        <xsl:value-of select="wnio:Obwod">
                         
                          
                        </xsl:value-of>
                      </td>
                          <td colspan="2">
                        Nazwa sądu<br/>
                        <xsl:value-of select="wnio:Przyczyna">
                         
                         
                        </xsl:value-of>
                      </td>
                        </tr>
                      </tbody>
                    </table>
                  </xsl:for-each>
                </xsl:for-each>
                <h2>TREŚĆ FORMULARZA</h2>
                <xsl:for-each select="wnio:Formularz">
                  <xsl:if test="//wnio:Wartosc[@rodzaj='2']">
                    <xsl:for-each select="wnio:Rolny">
                      <table>
                        <tr>
                          <th>
                            <h4>
                              <xsl:value-of select="wnio:Tytul"/>
                            </h4>
                          </th>
                        </tr>
                      </table>
                      <xsl:for-each select="wnio:PowierzchniaGruntow">
                        <table>
                          <tr>
                            <th>
                              <h4>
                                <xsl:value-of disable-output-escaping="yes" select="wnio:Tytul"/>
                              </h4>
                            </th>
                          </tr>
                        </table>
                        <xsl:for-each select="wnio:Tabela">
                          <table>
                            <tr>
                              <th/>
                              <th colspan="4">Powierzchnia gruntu z dokładnością do czterech miejsc po przecinku [ha fiz.]</th>
                            </tr>
                            <tr>
                              <xsl:for-each select="wnio:Naglowki/wnio:Naglowek">
                                <th>
                                  <xsl:call-template name="RichText">
                                    <xsl:with-param name="text" select="."/>
                                  </xsl:call-template>
                                </th>
                              </xsl:for-each>
                            </tr>
                            <xsl:for-each select="wnio:Wiersz">
                              <tr>
                                <th colspan="{count(../wnio:Naglowki/wnio:Naglowek)-count(wnio:Wartosc)}">
                                  <b>
                                    <xsl:value-of select="wnio:Tytul"/>
                                  </b>
                                </th>
                                <xsl:for-each select="wnio:Wartosc">
                                  <xsl:if test="@aktywny='tak'">
                                    <td>
                                      <xsl:value-of select="."/>
                                    </td>
                                  </xsl:if>
                                  <xsl:if test="@aktywny='nie'">
                                    <th>
                                      <xsl:value-of select="."/>
                                    </th>
                                  </xsl:if>
                                </xsl:for-each>
                              </tr>
                            </xsl:for-each>
                          </table>
                        </xsl:for-each>
                        <xsl:for-each select="wnio:Tabela2">
                          <table>
                            <xsl:for-each select="wnio:Naglowki">
                              <tr>
                                <xsl:for-each select="wnio:Naglowek">
                                  <th>
                                    <xsl:value-of select="."/>
                                  </th>
                                </xsl:for-each>
                              </tr>
                            </xsl:for-each>
                            <xsl:for-each select="wnio:Wiersz">
                              <tr>
                                <xsl:variable name="var">
                                  <xsl:choose>
                                    <xsl:when test="wnio:Wartosc">
                                                                    1
                                                                </xsl:when>
                                    <xsl:otherwise>
                                                                    2
                                                                </xsl:otherwise>
                                  </xsl:choose>
                                </xsl:variable>
                                <th colspan="{$var}">
                                  <xsl:value-of select="wnio:Tytul"/>
                                  <xsl:text> </xsl:text>
                                  <xsl:value-of select="wnio:Czym"/>
                                </th>
                                <xsl:for-each select="wnio:Wartosc">
                                  <td>
                                    <xsl:value-of select="."/>
                                  </td>
                                </xsl:for-each>
                              </tr>
                            </xsl:for-each>
                          </table>
                        </xsl:for-each>
                        <xsl:for-each select="wnio:PowierzchniaRazem">
                          <table>
                            <tr>
                              <th>
                                <b>
                                  <xsl:value-of select="wnio:Tytul"/>
                                </b>
                              </th>
                              <td>
                                <xsl:value-of select="wnio:Wartosc"/>
                                <xsl:text> </xsl:text>
                                <xsl:value-of select="wnio:WartoscJednostka"/>
                              </td>
                            </tr>
                          </table>
                        </xsl:for-each>
                      </xsl:for-each>
                      <xsl:for-each select="wnio:DanePzedmiotowZwolnionych">
                        <table>
                          <tr>
                            <th colspan="2">
                              <h4>
                                <xsl:value-of select="wnio:Tytul"/>
                              </h4>
                            </th>
                          </tr>
                          <xsl:for-each select="wnio:Zwolnienie">
                            <tr>
                              <th>
                                <xsl:if test="@typ='domyslne'">
                                  <xsl:value-of select="wnio:Tytul"/>
                                </xsl:if>
                                <xsl:if test="@typ='inne'">
                                  <xsl:value-of select="wnio:Tytul"/>
                                </xsl:if>
                              </th>
                              <td>
                                <xsl:value-of select="wnio:Powierzchnia"/>
                              </td>
                            </tr>
                          </xsl:for-each>
                        </table>
                      </xsl:for-each>
                      <xsl:for-each select="wnio:Ulgi">
                        <table>
                          <tr>
                            <th colspan="2">
                              <h4>
                                <xsl:value-of select="wnio:Tytul"/>
                              </h4>
                            </th>
                          </tr>
                          <xsl:for-each select="wnio:Wiersz">
                            <tr>
                              <th>
                                <b>
                                  <xsl:value-of select="wnio:Tytul"/>
                                </b>
                              </th>
                              <td>
                                <xsl:value-of select="wnio:Wartosc"/>
                              </td>
                            </tr>
                          </xsl:for-each>
                        </table>
                      </xsl:for-each>
                      <xsl:for-each select="wnio:Oswiadczenie">
                        <table>
                          <tr>
                            <th colspan="2">
                              <h4>
                                <xsl:value-of select="wnio:Tytul"/>
                              </h4>
                            </th>
                          </tr>
                          <xsl:for-each select="wnio:Wiersz">
                            <tr>
                              <th>
                                <xsl:value-of select="wnio:Tytul"/>
                              </th>
                              <td>
                                <xsl:variable name="val3" select="wnio:Wartosc"/>
                                <xsl:value-of select="//wnio:Wartosci/wnio:Posiadanie/wnio:Item/wnio:label[../wnio:value=$val3]"/>
                              </td>
                            </tr>
                          </xsl:for-each>
                          <xsl:for-each select="wnio:Posiadam[../wnio:Wiersz[1]/wnio:Wartosc='1']">
                            <xsl:for-each select="wnio:Wiersz">
                              <tr>
                                <th>
                                  <xsl:value-of select="wnio:Tytul"/>
                                </th>
                                <td>
                                  <xsl:value-of select="wnio:Wartosc"/>
                                  <xsl:value-of select="wnio:Powierzchnia"/>
                                </td>
                              </tr>
                            </xsl:for-each>
                          </xsl:for-each>
                        </table>
                      </xsl:for-each>
                    </xsl:for-each>
                  </xsl:if>
                </xsl:for-each>
                <h2>STOPKA</h2>
                <xsl:for-each select="wnio:Podpis">
                  <table>
                    <tr>
                      <th colspan="2">
                        <h4>
                          <xsl:value-of select="wnio:Tytul"/>
                        </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>Telefon</th>
                      <td>
                        <xsl:value-of select="adr:Telefon"/>
                      </td>
                    </tr>
                    <tr>
                      <th>Email</th>
                      <td>
                        <xsl:value-of select="adr:Email"/>
                      </td>
                    </tr>
                    <tr>
                      <th>Data wypełnienia</th>
                      <td>
                        <xsl:value-of select="wnio:DataWypelnienia"/>
                      </td>
                    </tr>
                  </table>
                </xsl:for-each>
              </xsl:for-each>
              <xsl:call-template name="Podpisy_elektroniczne"/>
            </div>
          </body>
        </html>
      </xsl:template>
      <xsl:template name="RichText">
        <xsl:param name="text"/>
        <xsl:variable name="startText" select="substring-before(concat($text,'&#xA;'),'&#xA;')"/>
        <xsl:variable name="nextText" select="substring-after($text,'&#xA;')"/>
        <xsl:if test="normalize-space($startText)">
          <xsl:value-of select="substring-before(concat($startText,'&lt;br/&gt;'),'&lt;br/&gt;')"/>
          <xsl:if test="normalize-space($nextText)">
            <xhtml:br/>
          </xsl:if>
        </xsl:if>
        <xsl:if test="contains($text,'&#xA;')">
          <xsl:call-template name="RichText">
            <xsl:with-param name="text" select="$nextText"/>
          </xsl:call-template>
        </xsl:if>
      </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>