559

ID559
Data2011-05-11
Symbol2011/05/11/559
InstytucjaUrząd Miasta Krakowa
NazwaUdostępnianie danych z operatu ewidencyjnego
Czy Aktualny1

Ustawy (5)

  • Dz. U. Nr 225, poz. 1635
  • Ustawa z dnia 16 listopada 2006 r. o opłacie skarbowej
  • Dz. U. Nr 37, poz. 333
  • Rozporządzenie Ministra Infrastruktury z dnia 19 lutego 2004 r. w sprawie wysokości opłat za czynności geodezyjne i kartograficzne oraz udzielanie informacji, a także za wykonywanie wyrysów i wypisów z operatu ewidencyjnego
  • Dz. U. Nr 38, poz. 454
  • Rozporządzenie Ministra Rozwoju Regionalnego i Budownictwa z dnia 29 marca 2001 r. w sprawie ewidencji gruntów i budynków
  • Dz. U. z 2002 r. Nr 101, poz. 926, z późn. zm.
  • Art. 23 i 29 ustawy z dnia 29 sierpnia 1997 r. o ochronie danych osobowych
  • Dz. U. z 2010 r. Nr 193, poz. 1287 z późn. zm.
  • Art. 24 oraz art. 40 ust. 3c i 3d ustawy z dnia 17 maja 1989 r. - Prawo geodezyjne i kartograficzne

    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/2011/05/11/559/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" version="1.0">
      <xsl:template match="/">
        <xsl:for-each select="wnio:Dokument">
          <html xmlns="http://www.w3.org/1999/xhtml">
            <head>
    
            </head>
            <body>
              <table border="0" height="367" width="600">
                <tbody>
                  <tr>
                    <td align="left" colspan="2" style="width: 300px">
                      <span>
                        <strong>Nadawca wniosku</strong>
                        <br/>
                        <xsl:if test="true()">
                          <span type="text">
                            <xsl:value-of select="wnio:TrescDokumentu/wnio:ImieUzytkownika"/>
                          </span>
                        </xsl:if>
                      </span> <span>
                        <xsl:if test="true()">
                          <span type="text">
                            <xsl:value-of select="wnio:TrescDokumentu/wnio:NazwiskoUzytkownika"/>
                          </span>
                        </xsl:if>
                      </span>
                    </td>
                  </tr>
                  <tr>
                    <td align="right" colspan="2">
                      <table border="0" height="78" width="259">
                        <tbody>
                          <tr>
                            <td align="right">
                              <xsl:for-each select="wnio:TrescDokumentu/wnio:Sekcja7/wnio:MiejscowoscOsoba">
                                <xsl:if test="../../wnio:RodzajWnioskodawcy = 'osoba fizyczna' or ../../wnio:RodzajWnioskodawcy = 'osoba fizyczna prowadząca działalność gospodarczą'">
                                  <span>
                                    <label>
                                      <span/>
                                    </label>
                                    <xsl:if test="true()">
                                      <span type="text">
                                        <xsl:value-of select="wnio:RodzajWniosku/wnio:MiejscowoscDokumentu"/>, dnia
                                      </span>
                                    </xsl:if>
                                  </span>
                                </xsl:if>
                              </xsl:for-each>
                              <xsl:for-each select="wnio:TrescDokumentu/wnio:Sekcja8/wnio:MiejscowoscInstytucja">
                                <xsl:if test="../../wnio:RodzajWnioskodawcy = 'osoba prawna' or  ../../wnio:RodzajWnioskodawcy =  'jednostka organizacyjna nie mająca osobowości prawnej'">
                                  <span>
                                    <label>
                                      <span/>
                                    </label>
                                    <xsl:if test="true()">
                                      <span type="text">
                                        <xsl:value-of select="wnio:RodzajWniosku/wnio:MiejscowoscDokumentu"/>, dnia
                                      </span>
                                    </xsl:if>
                                  </span>
                                </xsl:if>
                              </xsl:for-each>
                            </td>
                            <td align="left">
                              <xsl:if test="true()">
                                <xsl:value-of select="wnio:TrescDokumentu/wnio:RodzajWniosku/wnio:DataDokumentu"/>
                              </xsl:if>
                            </td>
                          </tr>
                        </tbody>
                      </table>
                    </td>
                  </tr>
    
                  <!-- #### POCZĄTEK WNIOSKODAWCY #### -->
    
                  <tr>
                    <td colspan="2">
                      <strong>Wnioskodawca</strong>
                      <br/>
                      <table>
                        <tr>
                          <td style="width: 3px; background-color: #c0c0c0;"/>
                          <td>
    
                            <!-- #### OSOBA FIZYCZNA #### -->
    
                            <xsl:for-each select="wnio:TrescDokumentu/wnio:Sekcja1/wnio:Osoba">
                              <xsl:if test="../../wnio:RodzajWnioskodawcy = 'osoba fizyczna' or ../../wnio:RodzajWnioskodawcy = 'osoba fizyczna prowadząca działalność gospodarczą'">
                                <p/>
                                <table border="0" width="600">
                                  <tbody>
                                    <tr>
                                      <td>
                                        <span>
                                          <xsl:if test="true()">
                                            <span type="text">
                                              <b>
                                                <xsl:value-of select="wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/oso:Osoba/oso:Imie"/>
                                              </b>
                                            </span>
                                          </xsl:if>
                                        </span> <span>
                                          <xsl:if test="true()">
                                            <span type="text">
                                              <b>
                                                <xsl:value-of select="wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/oso:Osoba/oso:Nazwisko"/>
                                              </b>
                                            </span>
                                          </xsl:if>
                                        </span>
                                      </td>
                                    </tr>
                                    <tr>
                                      <td>
                                        <xsl:choose>
                                          <!-- #### Ulica wpisana i poczta pusta #### -->
                                          <xsl:when test="not(string-length(normalize-space(wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/oso:Osoba/adr:Adres/adr:Ulica))=0) and (string-length(normalize-space(wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/oso:Osoba/adr:Adres/adr:Poczta))=0)">
                                            <xsl:if test="true()">
                                              <span type="text">
                                                <xsl:value-of select="wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/oso:Osoba/adr:Adres/adr:Ulica"/>
                                                <xsl:text> </xsl:text>
                                                <xsl:value-of select="wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/oso:Osoba/adr:Adres/adr:Budynek"/>
                                              </span>
                                            </xsl:if>
                                            <xsl:if test="not(string-length(normalize-space(wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/oso:Osoba/adr:Adres/adr:Lokal))=0)">
                                              <span type="text">
                                                <xsl:text>/</xsl:text>
                                                <xsl:value-of select="wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/oso:Osoba/adr:Adres/adr:Lokal"/>
                                              </span>
                                            </xsl:if>
                                            <br/>
                                            <xsl:if test="true()">
                                              <span type="text">
                                                <xsl:value-of select="wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/oso:Osoba/adr:Adres/adr:KodPocztowy"/>
                                                <xsl:text> </xsl:text>
                                                <xsl:value-of select="wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/oso:Osoba/adr:Adres/adr:Miejscowosc"/>
                                              </span>
                                            </xsl:if>
                                          </xsl:when>
    
                                          <!-- #### Ulica pusta i poczta pusta #### -->
                                          <xsl:when test="(string-length(normalize-space(wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/oso:Osoba/adr:Adres/adr:Ulica))=0) and (string-length(normalize-space(wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/oso:Osoba/adr:Adres/adr:Poczta))=0)">
                                            <xsl:if test="true()">
                                              <span type="text">
                                                <xsl:value-of select="wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/oso:Osoba/adr:Adres/adr:Miejscowosc"/>
                                                <xsl:text> </xsl:text>
                                                <xsl:value-of select="wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/oso:Osoba/adr:Adres/adr:Budynek"/>
                                              </span>
                                            </xsl:if>
                                            <xsl:if test="not(string-length(normalize-space(wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/oso:Osoba/adr:Adres/adr:Lokal))=0)">
                                              <span type="text">
                                                <xsl:text>/</xsl:text>
                                                <xsl:value-of select="wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/oso:Osoba/adr:Adres/adr:Lokal"/>
                                              </span>
                                            </xsl:if>
                                            <br/>
                                            <xsl:if test="true()">
                                              <span type="text">
                                                <xsl:value-of select="wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/oso:Osoba/adr:Adres/adr:KodPocztowy"/>
                                                <xsl:text> </xsl:text>
                                                <xsl:value-of select="wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/oso:Osoba/adr:Adres/adr:Miejscowosc"/>
                                              </span>
                                            </xsl:if>
                                          </xsl:when>
    
                                          <!-- #### Ulica wpisana i poczta wpisana #### -->
                                          <xsl:when test="not(string-length(normalize-space(wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/oso:Osoba/adr:Adres/adr:Ulica))=0) and not(string-length(normalize-space(wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/oso:Osoba/adr:Adres/adr:Poczta))=0)">
                                            <xsl:if test="true()">
                                              <span type="text">
                                                <xsl:value-of select="wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/oso:Osoba/adr:Adres/adr:Ulica"/>
                                                <xsl:text> </xsl:text>
                                                <xsl:value-of select="wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/oso:Osoba/adr:Adres/adr:Budynek"/>
                                              </span>
                                            </xsl:if>
                                            <xsl:if test="not(string-length(normalize-space(wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/oso:Osoba/adr:Adres/adr:Lokal))=0)">
                                              <span type="text">
                                                <xsl:text>/</xsl:text>
                                                <xsl:value-of select="wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/oso:Osoba/adr:Adres/adr:Lokal"/>
                                              </span>
                                            </xsl:if>
                                            <br/>
                                            <xsl:if test="true()">
                                              <span type="text">
                                                <xsl:value-of select="wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/oso:Osoba/adr:Adres/adr:Miejscowosc"/>
                                                <xsl:text>, </xsl:text>
                                                <xsl:value-of select="wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/oso:Osoba/adr:Adres/adr:KodPocztowy"/>
                                                <xsl:text> </xsl:text>
                                                <xsl:value-of select="wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/oso:Osoba/adr:Adres/adr:Poczta"/>
                                              </span>
                                            </xsl:if>
                                          </xsl:when>
    
                                          <!-- #### Ulica pusta i poczta wpisana #### -->
                                          <xsl:when test="(string-length(normalize-space(wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/oso:Osoba/adr:Adres/adr:Ulica))=0) and not(string-length(normalize-space(wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/oso:Osoba/adr:Adres/adr:Poczta))=0)">
                                            <xsl:if test="true()">
                                              <span type="text">
                                                <xsl:value-of select="wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/oso:Osoba/adr:Adres/adr:Miejscowosc"/>
                                                <xsl:text> </xsl:text>
                                                <xsl:value-of select="wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/oso:Osoba/adr:Adres/adr:Budynek"/>
                                              </span>
                                            </xsl:if>
                                            <xsl:if test="not(string-length(normalize-space(wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/oso:Osoba/adr:Adres/adr:Lokal))=0)">
                                              <span type="text">
                                                <xsl:text>/</xsl:text>
                                                <xsl:value-of select="wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/oso:Osoba/adr:Adres/adr:Lokal"/>
                                              </span>
                                            </xsl:if>
                                            <br/>
                                            <xsl:if test="true()">
                                              <span type="text">
                                                <xsl:value-of select="wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/oso:Osoba/adr:Adres/adr:KodPocztowy"/>
                                                <xsl:text> </xsl:text>
                                                <xsl:value-of select="wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/oso:Osoba/adr:Adres/adr:Poczta"/>
                                              </span>
                                            </xsl:if>
                                          </xsl:when>
                                        </xsl:choose>
                                      </td>
                                    </tr>
    
    
                                    <tr>
                                      <td>
                                        <span>
                                          <xsl:if test="not(string-length(normalize-space(wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/oso:Osoba/adr:Kontakt/adr:Telefon))=0)">
                                            <span type="text">
                                              <xsl:text>Telefon:  </xsl:text>
                                              <xsl:value-of select="wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/oso:Osoba/adr:Kontakt/adr:Telefon"/>
                                            </span>
                                          </xsl:if>
                                        </span>
                                      </td>
                                    </tr>
                                    <tr>
                                      <td>
                                        <span>
                                          <xsl:if test="not(string-length(normalize-space(wnio:PESEL))=0)">
                                            <span type="text">
                                              <xsl:text>PESEL: </xsl:text>
                                              <xsl:value-of select="wnio:PESEL"/>
                                            </span>
                                          </xsl:if>
                                        </span>
                                      </td>
                                    </tr>
                                    <tr>
                                      <td>
                                        <span>
                                          <xsl:if test="not(string-length(normalize-space(wnio:NIP))=0)">
                                            <span type="text">
                                              <xsl:text>NIP: </xsl:text>
                                              <xsl:value-of select="wnio:NIP"/>
                                            </span>
                                          </xsl:if>
                                        </span>
                                      </td>
                                    </tr>
                                  </tbody>
                                </table>
                                <br/>
    
                                <!-- #### PEŁNOMOCNIK OSOBY #### -->
    
                                <xsl:for-each select="wnio:Sekcja1/wnio:Przedstawiciele">
                                  <xsl:if test="../../wnio:Przedstawiciel = '2'">
                                    <xsl:for-each select="wnio:Sekcja/wnio:Przedstawiciel">
                                      <xsl:if test="true()">
                                        <br/>Pełnomocnik<br/>
                                        <table border="0" width="600">
                                          <tbody>
                                            <tr>
                                              <td>
                                                <span>
                                                  <xsl:if test="true()">
                                                    <span type="text">
                                                      <b>
                                                        <xsl:value-of select="wnio:Imie"/>
                                                      </b>
                                                    </span>
                                                  </xsl:if>
                                                </span> <span>
                                                  <xsl:if test="true()">
                                                    <span type="text">
                                                      <b>
                                                        <xsl:value-of select="wnio:Nazwisko"/>
                                                      </b>
                                                    </span>
                                                  </xsl:if>
                                                </span>
                                              </td>
                                            </tr>
    
                                            <tr>
                                              <td>
                                                <xsl:choose>
                                                  <!-- #### Ulica wpisana i poczta pusta #### -->
                                                  <xsl:when test="not(string-length(normalize-space(wnio:Ulica))=0) and (string-length(normalize-space(wnio:Poczta))=0)">
                                                    <xsl:if test="true()">
                                                      <span type="text">
                                                        <xsl:value-of select="wnio:Ulica"/>
                                                        <xsl:text> </xsl:text>
                                                        <xsl:value-of select="wnio:Budynek"/>
                                                      </span>
                                                    </xsl:if>
                                                    <xsl:if test="not(string-length(normalize-space(wnio:Lokal))=0)">
                                                      <span type="text">
                                                        <xsl:text>/</xsl:text>
                                                        <xsl:value-of select="wnio:Lokal"/>
                                                      </span>
                                                    </xsl:if>
                                                    <br/>
                                                    <xsl:if test="true()">
                                                      <span type="text">
                                                        <xsl:value-of select="wnio:Kod"/>
                                                        <xsl:text> </xsl:text>
                                                        <xsl:value-of select="wnio:Miejscowosc"/>
                                                      </span>
                                                    </xsl:if>
                                                  </xsl:when>
    
                                                  <!-- #### Ulica pusta i poczta pusta #### -->
                                                  <xsl:when test="(string-length(normalize-space(wnio:Ulica))=0) and (string-length(normalize-space(wnio:Poczta))=0)">
                                                    <xsl:if test="true()">
                                                      <span type="text">
                                                        <xsl:value-of select="wnio:Miejscowosc"/>
                                                        <xsl:text> </xsl:text>
                                                        <xsl:value-of select="wnio:Budynek"/>
                                                      </span>
                                                    </xsl:if>
                                                    <xsl:if test="not(string-length(normalize-space(wnio:Lokal))=0)">
                                                      <span type="text">
                                                        <xsl:text>/</xsl:text>
                                                        <xsl:value-of select="wnio:Lokal"/>
                                                      </span>
                                                    </xsl:if>
                                                    <br/>
                                                    <xsl:if test="true()">
                                                      <span type="text">
                                                        <xsl:value-of select="wnio:Kod"/>
                                                        <xsl:text> </xsl:text>
                                                        <xsl:value-of select="wnio:Miejscowosc"/>
                                                      </span>
                                                    </xsl:if>
                                                  </xsl:when>
    
                                                  <!-- #### Ulica wpisana i poczta wpisana #### -->
                                                  <xsl:when test="not(string-length(normalize-space(wnio:Ulica))=0) and not(string-length(normalize-space(wnio:Poczta))=0)">
                                                    <xsl:if test="true()">
                                                      <span type="text">
                                                        <xsl:value-of select="wnio:Ulica"/>
                                                        <xsl:text> </xsl:text>
                                                        <xsl:value-of select="wnio:Budynek"/>
                                                      </span>
                                                    </xsl:if>
                                                    <xsl:if test="not(string-length(normalize-space(wnio:Lokal))=0)">
                                                      <span type="text">
                                                        <xsl:text>/</xsl:text>
                                                        <xsl:value-of select="wnio:Lokal"/>
                                                      </span>
                                                    </xsl:if>
                                                    <br/>
                                                    <xsl:if test="true()">
                                                      <span type="text">
                                                        <xsl:value-of select="wnio:Miejscowosc"/>
                                                        <xsl:text>, </xsl:text>
                                                        <xsl:value-of select="wnio:Kod"/>
                                                        <xsl:text> </xsl:text>
                                                        <xsl:value-of select="wnio:Poczta"/>
                                                      </span>
                                                    </xsl:if>
                                                  </xsl:when>
    
                                                  <!-- #### Ulica pusta i poczta wpisana #### -->
                                                  <xsl:when test="(string-length(normalize-space(wnio:Ulica))=0) and not(string-length(normalize-space(wnio:Poczta))=0)">
                                                    <xsl:if test="true()">
                                                      <span type="text">
                                                        <xsl:value-of select="wnio:Miejscowosc"/>
                                                        <xsl:text> </xsl:text>
                                                        <xsl:value-of select="wnio:Budynek"/>
                                                      </span>
                                                    </xsl:if>
                                                    <xsl:if test="not(string-length(normalize-space(wnio:Lokal))=0)">
                                                      <span type="text">
                                                        <xsl:text>/</xsl:text>
                                                        <xsl:value-of select="wnio:Lokal"/>
                                                      </span>
                                                    </xsl:if>
                                                    <br/>
                                                    <xsl:if test="true()">
                                                      <span type="text">
                                                        <xsl:value-of select="wnio:Kod"/>
                                                        <xsl:text> </xsl:text>
                                                        <xsl:value-of select="wnio:Poczta"/>
                                                      </span>
                                                    </xsl:if>
                                                  </xsl:when>
                                                </xsl:choose>
                                              </td>
                                            </tr>
    
                                            <tr>
                                              <td>
                                                <span>
                                                  <xsl:if test="not(string-length(normalize-space(wnio:Telefon))=0)">
                                                    <span type="text">
                                                      <xsl:text>Telefon: </xsl:text>
                                                      <xsl:value-of select="wnio:Telefon"/>
                                                    </span>
                                                  </xsl:if>
                                                </span>
                                              </td>
                                            </tr>
                                            <tr>
                                              <td>
                                                <span>
                                                  <xsl:if test="not(string-length(normalize-space(wnio:PESEL))=0)">
                                                    <span type="text">
                                                      <xsl:text>PESEL: </xsl:text>
                                                      <xsl:value-of select="wnio:PESEL"/>
                                                    </span>
                                                  </xsl:if>
                                                </span>
                                              </td>
                                            </tr>
                                            <tr>
                                              <td>
                                                <span>
                                                  <xsl:if test="not(string-length(normalize-space(wnio:NIP))=0)">
                                                    <span type="text">
                                                      <xsl:text>NIP: </xsl:text>
                                                      <xsl:value-of select="wnio:NIP"/>
                                                    </span>
                                                  </xsl:if>
                                                </span>
                                              </td>
                                            </tr>
                                          </tbody>
                                        </table>
    
                                        <!-- #### ADRES DO KORESPONDENCJI PEŁNOMOCNIKA #### -->
    
    
                                        <xsl:for-each select="wnio:Sekcja/wnio:DodatkowyAdres">
                                          <xsl:if test="../../wnio:AdresDoKorespondencji = '2'">
                                            <br/>Adres do korespondencji:<br/>
                                            <table border="0" width="514">
                                              <tbody>
                                                <tr>
                                                  <td>
                                                    <xsl:choose>
                                                      <!-- #### Ulica wpisana i poczta pusta #### -->
                                                      <xsl:when test="not(string-length(normalize-space(wnio:Ulica))=0) and (string-length(normalize-space(wnio:Poczta))=0)">
                                                        <xsl:if test="true()">
                                                          <span type="text">
                                                            <xsl:value-of select="wnio:Ulica"/>
                                                            <xsl:text> </xsl:text>
                                                            <xsl:value-of select="wnio:Budynek"/>
                                                          </span>
                                                        </xsl:if>
                                                        <xsl:if test="not(string-length(normalize-space(wnio:Lokal))=0)">
                                                          <span type="text">
                                                            <xsl:text>/</xsl:text>
                                                            <xsl:value-of select="wnio:Lokal"/>
                                                          </span>
                                                        </xsl:if>
                                                        <br/>
                                                        <xsl:if test="true()">
                                                          <span type="text">
                                                            <xsl:value-of select="wnio:Kod"/>
                                                            <xsl:text> </xsl:text>
                                                            <xsl:value-of select="wnio:Miejscowosc"/>
                                                          </span>
                                                        </xsl:if>
                                                      </xsl:when>
    
                                                      <!-- #### Ulica pusta i poczta pusta #### -->
                                                      <xsl:when test="(string-length(normalize-space(wnio:Ulica))=0) and (string-length(normalize-space(wnio:Poczta))=0)">
                                                        <xsl:if test="true()">
                                                          <span type="text">
                                                            <xsl:value-of select="wnio:Miejscowosc"/>
                                                            <xsl:text> </xsl:text>
                                                            <xsl:value-of select="wnio:Budynek"/>
                                                          </span>
                                                        </xsl:if>
                                                        <xsl:if test="not(string-length(normalize-space(wnio:Lokal))=0)">
                                                          <span type="text">
                                                            <xsl:text>/</xsl:text>
                                                            <xsl:value-of select="wnio:Lokal"/>
                                                          </span>
                                                        </xsl:if>
                                                        <br/>
                                                        <xsl:if test="true()">
                                                          <span type="text">
                                                            <xsl:value-of select="wnio:Kod"/>
                                                            <xsl:text> </xsl:text>
                                                            <xsl:value-of select="wnio:Miejscowosc"/>
                                                          </span>
                                                        </xsl:if>
                                                      </xsl:when>
    
                                                      <!-- #### Ulica wpisana i poczta wpisana #### -->
                                                      <xsl:when test="not(string-length(normalize-space(wnio:Ulica))=0) and not(string-length(normalize-space(wnio:Poczta))=0)">
                                                        <xsl:if test="true()">
                                                          <span type="text">
                                                            <xsl:value-of select="wnio:Ulica"/>
                                                            <xsl:text> </xsl:text>
                                                            <xsl:value-of select="wnio:Budynek"/>
                                                          </span>
                                                        </xsl:if>
                                                        <xsl:if test="not(string-length(normalize-space(wnio:Lokal))=0)">
                                                          <span type="text">
                                                            <xsl:text>/</xsl:text>
                                                            <xsl:value-of select="wnio:Lokal"/>
                                                          </span>
                                                        </xsl:if>
                                                        <br/>
                                                        <xsl:if test="true()">
                                                          <span type="text">
                                                            <xsl:value-of select="wnio:Miejscowosc"/>
                                                            <xsl:text>, </xsl:text>
                                                            <xsl:value-of select="wnio:Kod"/>
                                                            <xsl:text> </xsl:text>
                                                            <xsl:value-of select="wnio:Poczta"/>
                                                          </span>
                                                        </xsl:if>
                                                      </xsl:when>
    
                                                      <!-- #### Ulica pusta i poczta wpisana #### -->
                                                      <xsl:when test="(string-length(normalize-space(wnio:Ulica))=0) and not(string-length(normalize-space(wnio:Poczta))=0)">
                                                        <xsl:if test="true()">
                                                          <span type="text">
                                                            <xsl:value-of select="wnio:Miejscowosc"/>
                                                            <xsl:text> </xsl:text>
                                                            <xsl:value-of select="wnio:Budynek"/>
                                                          </span>
                                                        </xsl:if>
                                                        <xsl:if test="not(string-length(normalize-space(wnio:Lokal))=0)">
                                                          <span type="text">
                                                            <xsl:text>/</xsl:text>
                                                            <xsl:value-of select="wnio:Lokal"/>
                                                          </span>
                                                        </xsl:if>
                                                        <br/>
                                                        <xsl:if test="true()">
                                                          <span type="text">
                                                            <xsl:value-of select="wnio:Kod"/>
                                                            <xsl:text> </xsl:text>
                                                            <xsl:value-of select="wnio:Poczta"/>
                                                          </span>
                                                        </xsl:if>
                                                      </xsl:when>
                                                    </xsl:choose>
                                                  </td>
                                                </tr>
                                              </tbody>
                                            </table>
                                          </xsl:if>
                                        </xsl:for-each>
                                      </xsl:if>
                                    </xsl:for-each>
                                  </xsl:if>
                                </xsl:for-each>
    
                                <!-- #### ADRES DO KORESPONDENCJI OSOBY #### -->
    
                                <xsl:for-each select="wnio:Sekcja2/wnio:DodatkowyAdres">
                                  <xsl:if test="../../wnio:Przedstawiciel = '1'">
                                    <xsl:for-each select="wnio:Sekcja/wnio:DodatkowyAdres">
                                      <xsl:if test="../../wnio:AdresDoKorespondencji='2'">
                                        <br/>Adres do korespondencji:<br/>
                                        <table border="0" width="514">
                                          <tbody>
    
                                            <tr>
                                              <td>
                                                <xsl:choose>
                                                  <!-- #### Ulica wpisana i poczta pusta #### -->
                                                  <xsl:when test="not(string-length(normalize-space(wnio:Ulica))=0) and (string-length(normalize-space(wnio:Poczta))=0)">
                                                    <xsl:if test="true()">
                                                      <span type="text">
                                                        <xsl:value-of select="wnio:Ulica"/>
                                                        <xsl:text> </xsl:text>
                                                        <xsl:value-of select="wnio:Budynek"/>
                                                      </span>
                                                    </xsl:if>
                                                    <xsl:if test="not(string-length(normalize-space(wnio:Lokal))=0)">
                                                      <span type="text">
                                                        <xsl:text>/</xsl:text>
                                                        <xsl:value-of select="wnio:Lokal"/>
                                                      </span>
                                                    </xsl:if>
                                                    <br/>
                                                    <xsl:if test="true()">
                                                      <span type="text">
                                                        <xsl:value-of select="wnio:Kod"/>
                                                        <xsl:text> </xsl:text>
                                                        <xsl:value-of select="wnio:Miejscowosc"/>
                                                      </span>
                                                    </xsl:if>
                                                  </xsl:when>
    
                                                  <!-- #### Ulica pusta i poczta pusta #### -->
                                                  <xsl:when test="(string-length(normalize-space(wnio:Ulica))=0) and (string-length(normalize-space(wnio:Poczta))=0)">
                                                    <xsl:if test="true()">
                                                      <span type="text">
                                                        <xsl:value-of select="wnio:Miejscowosc"/>
                                                        <xsl:text> </xsl:text>
                                                        <xsl:value-of select="wnio:Budynek"/>
                                                      </span>
                                                    </xsl:if>
                                                    <xsl:if test="not(string-length(normalize-space(wnio:Lokal))=0)">
                                                      <span type="text">
                                                        <xsl:text>/</xsl:text>
                                                        <xsl:value-of select="wnio:Lokal"/>
                                                      </span>
                                                    </xsl:if>
                                                    <br/>
                                                    <xsl:if test="true()">
                                                      <span type="text">
                                                        <xsl:value-of select="wnio:Kod"/>
                                                        <xsl:text> </xsl:text>
                                                        <xsl:value-of select="wnio:Miejscowosc"/>
                                                      </span>
                                                    </xsl:if>
                                                  </xsl:when>
    
                                                  <!-- #### Ulica wpisana i poczta wpisana #### -->
                                                  <xsl:when test="not(string-length(normalize-space(wnio:Ulica))=0) and not(string-length(normalize-space(wnio:Poczta))=0)">
                                                    <xsl:if test="true()">
                                                      <span type="text">
                                                        <xsl:value-of select="wnio:Ulica"/>
                                                        <xsl:text> </xsl:text>
                                                        <xsl:value-of select="wnio:Budynek"/>
                                                      </span>
                                                    </xsl:if>
                                                    <xsl:if test="not(string-length(normalize-space(wnio:Lokal))=0)">
                                                      <span type="text">
                                                        <xsl:text>/</xsl:text>
                                                        <xsl:value-of select="wnio:Lokal"/>
                                                      </span>
                                                    </xsl:if>
                                                    <br/>
                                                    <xsl:if test="true()">
                                                      <span type="text">
                                                        <xsl:value-of select="wnio:Miejscowosc"/>
                                                        <xsl:text>, </xsl:text>
                                                        <xsl:value-of select="wnio:Kod"/>
                                                        <xsl:text> </xsl:text>
                                                        <xsl:value-of select="wnio:Poczta"/>
                                                      </span>
                                                    </xsl:if>
                                                  </xsl:when>
    
                                                  <!-- #### Ulica pusta i poczta wpisana #### -->
                                                  <xsl:when test="(string-length(normalize-space(wnio:Ulica))=0) and not(string-length(normalize-space(wnio:Poczta))=0)">
                                                    <xsl:if test="true()">
                                                      <span type="text">
                                                        <xsl:value-of select="wnio:Miejscowosc"/>
                                                        <xsl:text> </xsl:text>
                                                        <xsl:value-of select="wnio:Budynek"/>
                                                      </span>
                                                    </xsl:if>
                                                    <xsl:if test="not(string-length(normalize-space(wnio:Lokal))=0)">
                                                      <span type="text">
                                                        <xsl:text>/</xsl:text>
                                                        <xsl:value-of select="wnio:Lokal"/>
                                                      </span>
                                                    </xsl:if>
                                                    <br/>
                                                    <xsl:if test="true()">
                                                      <span type="text">
                                                        <xsl:value-of select="wnio:Kod"/>
                                                        <xsl:text> </xsl:text>
                                                        <xsl:value-of select="wnio:Poczta"/>
                                                      </span>
                                                    </xsl:if>
                                                  </xsl:when>
                                                </xsl:choose>
                                              </td>
                                            </tr>
    
                                          </tbody>
                                        </table>
                                      </xsl:if>
                                    </xsl:for-each>
                                  </xsl:if>
                                </xsl:for-each>
                              </xsl:if>
                            </xsl:for-each>
    
                            <!-- #### INSTYTUCJA #### -->
    
                            <xsl:for-each select="wnio:TrescDokumentu/wnio:Sekcja2/wnio:Instytucja">
                              <xsl:if test="../../wnio:RodzajWnioskodawcy = 'osoba prawna' or  ../../wnio:RodzajWnioskodawcy =  'jednostka organizacyjna nie mająca osobowości prawnej'">
                                <table border="0" width="600">
                                  <tbody>
                                    <tr>
                                      <td>
                                        <span>
                                          <xsl:if test="true()">
                                            <span type="text">
                                              <b>
                                                <xsl:value-of select="wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/inst:Instytucja/inst:NazwaInstytucji"/>
                                              </b>
                                            </span>
                                          </xsl:if>
                                        </span>
                                      </td>
                                    </tr>
    
                                    <tr>
                                      <td>
                                        <xsl:choose>
                                          <!-- #### Ulica wpisana i poczta pusta #### -->
                                          <xsl:when test="not(string-length(normalize-space(wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/inst:Instytucja/adr:Adres/adr:Ulica))=0) and (string-length(normalize-space(wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/inst:Instytucja/adr:Adres/adr:Poczta))=0)">
                                            <xsl:if test="true()">
                                              <span type="text">
                                                <xsl:value-of select="wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/inst:Instytucja/adr:Adres/adr:Ulica"/>
                                                <xsl:text> </xsl:text>
                                                <xsl:value-of select="wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/inst:Instytucja/adr:Adres/adr:Budynek"/>
                                              </span>
                                            </xsl:if>
                                            <xsl:if test="not(string-length(normalize-space(wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/inst:Instytucja/adr:Adres/adr:Lokal))=0)">
                                              <span type="text">
                                                <xsl:text>/</xsl:text>
                                                <xsl:value-of select="wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/inst:Instytucja/adr:Adres/adr:Lokal"/>
                                              </span>
                                            </xsl:if>
                                            <br/>
                                            <xsl:if test="true()">
                                              <span type="text">
                                                <xsl:value-of select="wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/inst:Instytucja/adr:Adres/adr:KodPocztowy"/>
                                                <xsl:text> </xsl:text>
                                                <xsl:value-of select="wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/inst:Instytucja/adr:Adres/adr:Miejscowosc"/>
                                              </span>
                                            </xsl:if>
                                          </xsl:when>
    
                                          <!-- #### Ulica pusta i poczta pusta #### -->
                                          <xsl:when test="(string-length(normalize-space(wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/inst:Instytucja/adr:Adres/adr:Ulica))=0) and (string-length(normalize-space(wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/inst:Instytucja/adr:Adres/adr:Poczta))=0)">
                                            <xsl:if test="true()">
                                              <span type="text">
                                                <xsl:value-of select="wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/inst:Instytucja/adr:Adres/adr:Miejscowosc"/>
                                                <xsl:text> </xsl:text>
                                                <xsl:value-of select="wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/inst:Instytucja/adr:Adres/adr:Budynek"/>
                                              </span>
                                            </xsl:if>
                                            <xsl:if test="not(string-length(normalize-space(wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/inst:Instytucja/adr:Adres/adr:Lokal))=0)">
                                              <span type="text">
                                                <xsl:text>/</xsl:text>
                                                <xsl:value-of select="wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/inst:Instytucja/adr:Adres/adr:Lokal"/>
                                              </span>
                                            </xsl:if>
                                            <br/>
                                            <xsl:if test="true()">
                                              <span type="text">
                                                <xsl:value-of select="wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/inst:Instytucja/adr:Adres/adr:KodPocztowy"/>
                                                <xsl:text> </xsl:text>
                                                <xsl:value-of select="wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/inst:Instytucja/adr:Adres/adr:Miejscowosc"/>
                                              </span>
                                            </xsl:if>
                                          </xsl:when>
    
                                          <!-- #### Ulica wpisana i poczta wpisana #### -->
                                          <xsl:when test="not(string-length(normalize-space(wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/inst:Instytucja/adr:Adres/adr:Ulica))=0) and not(string-length(normalize-space(wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/inst:Instytucja/adr:Adres/adr:Poczta))=0)">
                                            <xsl:if test="true()">
                                              <span type="text">
                                                <xsl:value-of select="wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/inst:Instytucja/adr:Adres/adr:Ulica"/>
                                                <xsl:text> </xsl:text>
                                                <xsl:value-of select="wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/inst:Instytucja/adr:Adres/adr:Budynek"/>
                                              </span>
                                            </xsl:if>
                                            <xsl:if test="not(string-length(normalize-space(wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/inst:Instytucja/adr:Adres/adr:Lokal))=0)">
                                              <span type="text">
                                                <xsl:text>/</xsl:text>
                                                <xsl:value-of select="wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/inst:Instytucja/adr:Adres/adr:Lokal"/>
                                              </span>
                                            </xsl:if>
                                            <br/>
                                            <xsl:if test="true()">
                                              <span type="text">
                                                <xsl:value-of select="wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/inst:Instytucja/adr:Adres/adr:Miejscowosc"/>
                                                <xsl:text>, </xsl:text>
                                                <xsl:value-of select="wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/inst:Instytucja/adr:Adres/adr:KodPocztowy"/>
                                                <xsl:text> </xsl:text>
                                                <xsl:value-of select="wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/inst:Instytucja/adr:Adres/adr:Poczta"/>
                                              </span>
                                            </xsl:if>
                                          </xsl:when>
    
                                          <!-- #### Ulica pusta i poczta wpisana #### -->
                                          <xsl:when test="(string-length(normalize-space(wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/inst:Instytucja/adr:Adres/adr:Ulica))=0) and not(string-length(normalize-space(wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/inst:Instytucja/adr:Adres/adr:Poczta))=0)">
                                            <xsl:if test="true()">
                                              <span type="text">
                                                <xsl:value-of select="wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/inst:Instytucja/adr:Adres/adr:Miejscowosc"/>
                                                <xsl:text> </xsl:text>
                                                <xsl:value-of select="wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/inst:Instytucja/adr:Adres/adr:Budynek"/>
                                              </span>
                                            </xsl:if>
                                            <xsl:if test="not(string-length(normalize-space(wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/inst:Instytucja/adr:Adres/adr:Lokal))=0)">
                                              <span type="text">
                                                <xsl:text>/</xsl:text>
                                                <xsl:value-of select="wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/inst:Instytucja/adr:Adres/adr:Lokal"/>
                                              </span>
                                            </xsl:if>
                                            <br/>
                                            <xsl:if test="true()">
                                              <span type="text">
                                                <xsl:value-of select="wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/inst:Instytucja/adr:Adres/adr:KodPocztowy"/>
                                                <xsl:text> </xsl:text>
                                                <xsl:value-of select="wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/inst:Instytucja/adr:Adres/adr:Poczta"/>
                                              </span>
                                            </xsl:if>
                                          </xsl:when>
                                        </xsl:choose>
                                      </td>
                                    </tr>
    
                                    <tr>
                                      <td>
                                        <span>
                                          <xsl:if test="not(string-length(normalize-space(wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/inst:Instytucja/adr:Kontakt/adr:Telefon))=0)">
                                            <span type="text">
                                              <xsl:text>Telefon: </xsl:text>
                                              <xsl:value-of select="wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/inst:Instytucja/adr:Kontakt/adr:Telefon"/>
                                            </span>
                                          </xsl:if>
                                        </span>
                                      </td>
                                    </tr>
                                    <tr>
                                      <td>
                                        <span>
                                          <xsl:if test="not(string-length(normalize-space(wnio:REGON))=0)">
                                            <span type="text">
                                              <xsl:text>REGON: </xsl:text>
                                              <xsl:value-of select="wnio:REGON"/>
                                            </span>
                                          </xsl:if>
                                        </span>
                                      </td>
                                    </tr>
                                    <tr>
                                      <td>
                                        <span>
                                          <xsl:if test="not(string-length(normalize-space(wnio:NIP))=0)">
                                            <span type="text">
                                              <xsl:text>NIP: </xsl:text>
                                              <xsl:value-of select="wnio:NIP"/>
                                            </span>
                                          </xsl:if>
                                        </span>
                                      </td>
                                    </tr>
                                    <tr>
                                      <td>
                                        <span>
                                          <xsl:if test="not(string-length(normalize-space(wnio:KRS))=0)">
                                            <span type="text">
                                              <xsl:text>KRS: </xsl:text>
                                              <xsl:value-of select="wnio:KRS"/>
                                            </span>
                                          </xsl:if>
                                        </span>
                                      </td>
                                    </tr>
                                  </tbody>
                                </table>
    
                                <!-- #### PRZEDSTAWICIEL INSTYTUCJI #### -->
    
                                <xsl:for-each select="wnio:Sekcja1/wnio:Przedstawiciele">
                                  <xsl:if test="../../wnio:Przedstawiciel = '1' or ../../wnio:Przedstawiciel='2 1' or ../../wnio:Przedstawiciel='1 2'">
                                    <xsl:for-each select="wnio:Sekcja/wnio:Przedstawiciel">
                                      <xsl:if test="true()">
                                        <br/>Przedstawiciel<br/>
                                        <table border="0" width="600">
                                          <tbody>
                                            <tr>
                                              <td>
                                                <span>
                                                  <xsl:if test="true()">
                                                    <span type="text">
                                                      <b>
                                                        <xsl:value-of select="wnio:Imie"/>
                                                      </b>
                                                    </span>
                                                  </xsl:if>
                                                </span> <span>
                                                  <xsl:if test="true()">
                                                    <span type="text">
                                                      <b>
                                                        <xsl:value-of select="wnio:Nazwisko"/>
                                                      </b>
                                                    </span>
                                                  </xsl:if>
                                                </span>
                                              </td>
                                            </tr>
                                            <tr>
                                              <td>
                                                <span>
                                                  <xsl:if test="not(string-length(normalize-space(wnio:PESEL))=0)">
                                                    <span type="text">
                                                      <xsl:text>PESEL: </xsl:text>
                                                      <xsl:value-of select="wnio:PESEL"/>
                                                    </span>
                                                  </xsl:if>
                                                </span>
                                              </td>
                                            </tr>
                                            <tr>
                                              <td>
                                                <span>
                                                  <xsl:if test="not(string-length(normalize-space(wnio:Telefon))=0)">
                                                    <span type="text">
                                                      <xsl:text>Telefon: </xsl:text>
                                                      <xsl:value-of select="wnio:Telefon"/>
                                                    </span>
                                                  </xsl:if>
                                                </span>
                                              </td>
                                            </tr>
                                          </tbody>
                                        </table>
    
    
                                        <!-- #### ADRES DO KORESPONDENCJI PRZEDSTAWICIELA INSTYTUCJI #### -->
    
                                        <xsl:for-each select="wnio:Sekcja/wnio:DodatkowyAdres">
                                          <xsl:if test="../../wnio:AdresDoKorespondencji = '2'">
                                            <br/>Adres do korespondencji:<br/>
                                            <table border="0" width="514">
                                              <tbody>
    
                                                <tr>
                                                  <td>
                                                    <xsl:choose>
                                                      <!-- #### Ulica wpisana i poczta pusta #### -->
                                                      <xsl:when test="not(string-length(normalize-space(wnio:Ulica))=0) and (string-length(normalize-space(wnio:Poczta))=0)">
                                                        <xsl:if test="true()">
                                                          <span type="text">
                                                            <xsl:value-of select="wnio:Ulica"/>
                                                            <xsl:text> </xsl:text>
                                                            <xsl:value-of select="wnio:Budynek"/>
                                                          </span>
                                                        </xsl:if>
                                                        <xsl:if test="not(string-length(normalize-space(wnio:Lokal))=0)">
                                                          <span type="text">
                                                            <xsl:text>/</xsl:text>
                                                            <xsl:value-of select="wnio:Lokal"/>
                                                          </span>
                                                        </xsl:if>
                                                        <br/>
                                                        <xsl:if test="true()">
                                                          <span type="text">
                                                            <xsl:value-of select="wnio:Kod"/>
                                                            <xsl:text> </xsl:text>
                                                            <xsl:value-of select="wnio:Miejscowosc"/>
                                                          </span>
                                                        </xsl:if>
                                                      </xsl:when>
    
                                                      <!-- #### Ulica pusta i poczta pusta #### -->
                                                      <xsl:when test="(string-length(normalize-space(wnio:Ulica))=0) and (string-length(normalize-space(wnio:Poczta))=0)">
                                                        <xsl:if test="true()">
                                                          <span type="text">
                                                            <xsl:value-of select="wnio:Miejscowosc"/>
                                                            <xsl:text> </xsl:text>
                                                            <xsl:value-of select="wnio:Budynek"/>
                                                          </span>
                                                        </xsl:if>
                                                        <xsl:if test="not(string-length(normalize-space(wnio:Lokal))=0)">
                                                          <span type="text">
                                                            <xsl:text>/</xsl:text>
                                                            <xsl:value-of select="wnio:Lokal"/>
                                                          </span>
                                                        </xsl:if>
                                                        <br/>
                                                        <xsl:if test="true()">
                                                          <span type="text">
                                                            <xsl:value-of select="wnio:Kod"/>
                                                            <xsl:text> </xsl:text>
                                                            <xsl:value-of select="wnio:Miejscowosc"/>
                                                          </span>
                                                        </xsl:if>
                                                      </xsl:when>
    
                                                      <!-- #### Ulica wpisana i poczta wpisana #### -->
                                                      <xsl:when test="not(string-length(normalize-space(wnio:Ulica))=0) and not(string-length(normalize-space(wnio:Poczta))=0)">
                                                        <xsl:if test="true()">
                                                          <span type="text">
                                                            <xsl:value-of select="wnio:Ulica"/>
                                                            <xsl:text> </xsl:text>
                                                            <xsl:value-of select="wnio:Budynek"/>
                                                          </span>
                                                        </xsl:if>
                                                        <xsl:if test="not(string-length(normalize-space(wnio:Lokal))=0)">
                                                          <span type="text">
                                                            <xsl:text>/</xsl:text>
                                                            <xsl:value-of select="wnio:Lokal"/>
                                                          </span>
                                                        </xsl:if>
                                                        <br/>
                                                        <xsl:if test="true()">
                                                          <span type="text">
                                                            <xsl:value-of select="wnio:Miejscowosc"/>
                                                            <xsl:text>, </xsl:text>
                                                            <xsl:value-of select="wnio:Kod"/>
                                                            <xsl:text> </xsl:text>
                                                            <xsl:value-of select="wnio:Poczta"/>
                                                          </span>
                                                        </xsl:if>
                                                      </xsl:when>
    
                                                      <!-- #### Ulica pusta i poczta wpisana #### -->
                                                      <xsl:when test="(string-length(normalize-space(wnio:Ulica))=0) and not(string-length(normalize-space(wnio:Poczta))=0)">
                                                        <xsl:if test="true()">
                                                          <span type="text">
                                                            <xsl:value-of select="wnio:Miejscowosc"/>
                                                            <xsl:text> </xsl:text>
                                                            <xsl:value-of select="wnio:Budynek"/>
                                                          </span>
                                                        </xsl:if>
                                                        <xsl:if test="not(string-length(normalize-space(wnio:Lokal))=0)">
                                                          <span type="text">
                                                            <xsl:text>/</xsl:text>
                                                            <xsl:value-of select="wnio:Lokal"/>
                                                          </span>
                                                        </xsl:if>
                                                        <br/>
                                                        <xsl:if test="true()">
                                                          <span type="text">
                                                            <xsl:value-of select="wnio:Kod"/>
                                                            <xsl:text> </xsl:text>
                                                            <xsl:value-of select="wnio:Poczta"/>
                                                          </span>
                                                        </xsl:if>
                                                      </xsl:when>
                                                    </xsl:choose>
                                                  </td>
                                                </tr>
    
                                              </tbody>
                                            </table>
                                          </xsl:if>
                                        </xsl:for-each>
                                      </xsl:if>
                                    </xsl:for-each>
                                    <br/>
                                  </xsl:if>
                                </xsl:for-each>
    
                                <!-- #### PEŁNOMOCNIK INSTYTUCJI  ##### -->
    
                                <xsl:for-each select="wnio:Sekcja2/wnio:Pelnomocnicy">
                                  <xsl:if test="../../wnio:Przedstawiciel = '2' or ../../wnio:Przedstawiciel='2 1' or ../../wnio:Przedstawiciel='1 2'">
                                    <xsl:for-each select="wnio:Sekcja/wnio:Pelnomocnik">
                                      <xsl:if test="true()">
                                        <br/>Pełnomocnik<br/>
                                        <table border="0" width="600">
                                          <tbody>
                                            <tr>
                                              <td>
                                                <span>
                                                  <xsl:if test="true()">
                                                    <span type="text">
                                                      <b>
                                                        <xsl:value-of select="wnio:Imie"/>
                                                      </b>
                                                    </span>
                                                  </xsl:if>
                                                </span>
                                                <span>
                                                  <label>
                                                    <span> </span>
                                                  </label>
                                                  <xsl:if test="true()">
                                                    <span type="text">
                                                      <b>
                                                        <xsl:value-of select="wnio:Nazwisko"/>
                                                      </b>
                                                    </span>
                                                  </xsl:if>
                                                </span>
                                              </td>
                                            </tr>
    
                                            <tr>
                                              <td>
                                                <xsl:choose>
                                                  <!-- #### Ulica wpisana i poczta pusta #### -->
                                                  <xsl:when test="not(string-length(normalize-space(wnio:Ulica))=0) and (string-length(normalize-space(wnio:Poczta))=0)">
                                                    <xsl:if test="true()">
                                                      <span type="text">
                                                        <xsl:value-of select="wnio:Ulica"/>
                                                        <xsl:text> </xsl:text>
                                                        <xsl:value-of select="wnio:Budynek"/>
                                                      </span>
                                                    </xsl:if>
                                                    <xsl:if test="not(string-length(normalize-space(wnio:Lokal))=0)">
                                                      <span type="text">
                                                        <xsl:text>/</xsl:text>
                                                        <xsl:value-of select="wnio:Lokal"/>
                                                      </span>
                                                    </xsl:if>
                                                    <br/>
                                                    <xsl:if test="true()">
                                                      <span type="text">
                                                        <xsl:value-of select="wnio:Kod"/>
                                                        <xsl:text> </xsl:text>
                                                        <xsl:value-of select="wnio:Miejscowosc"/>
                                                      </span>
                                                    </xsl:if>
                                                  </xsl:when>
    
                                                  <!-- #### Ulica pusta i poczta pusta #### -->
                                                  <xsl:when test="(string-length(normalize-space(wnio:Ulica))=0) and (string-length(normalize-space(wnio:Poczta))=0)">
                                                    <xsl:if test="true()">
                                                      <span type="text">
                                                        <xsl:value-of select="wnio:Miejscowosc"/>
                                                        <xsl:text> </xsl:text>
                                                        <xsl:value-of select="wnio:Budynek"/>
                                                      </span>
                                                    </xsl:if>
                                                    <xsl:if test="not(string-length(normalize-space(wnio:Lokal))=0)">
                                                      <span type="text">
                                                        <xsl:text>/</xsl:text>
                                                        <xsl:value-of select="wnio:Lokal"/>
                                                      </span>
                                                    </xsl:if>
                                                    <br/>
                                                    <xsl:if test="true()">
                                                      <span type="text">
                                                        <xsl:value-of select="wnio:Kod"/>
                                                        <xsl:text> </xsl:text>
                                                        <xsl:value-of select="wnio:Miejscowosc"/>
                                                      </span>
                                                    </xsl:if>
                                                  </xsl:when>
    
                                                  <!-- #### Ulica wpisana i poczta wpisana #### -->
                                                  <xsl:when test="not(string-length(normalize-space(wnio:Ulica))=0) and not(string-length(normalize-space(wnio:Poczta))=0)">
                                                    <xsl:if test="true()">
                                                      <span type="text">
                                                        <xsl:value-of select="wnio:Ulica"/>
                                                        <xsl:text> </xsl:text>
                                                        <xsl:value-of select="wnio:Budynek"/>
                                                      </span>
                                                    </xsl:if>
                                                    <xsl:if test="not(string-length(normalize-space(wnio:Lokal))=0)">
                                                      <span type="text">
                                                        <xsl:text>/</xsl:text>
                                                        <xsl:value-of select="wnio:Lokal"/>
                                                      </span>
                                                    </xsl:if>
                                                    <br/>
                                                    <xsl:if test="true()">
                                                      <span type="text">
                                                        <xsl:value-of select="wnio:Miejscowosc"/>
                                                        <xsl:text>, </xsl:text>
                                                        <xsl:value-of select="wnio:Kod"/>
                                                        <xsl:text> </xsl:text>
                                                        <xsl:value-of select="wnio:Poczta"/>
                                                      </span>
                                                    </xsl:if>
                                                  </xsl:when>
    
                                                  <!-- #### Ulica pusta i poczta wpisana #### -->
                                                  <xsl:when test="(string-length(normalize-space(wnio:Ulica))=0) and not(string-length(normalize-space(wnio:Poczta))=0)">
                                                    <xsl:if test="true()">
                                                      <span type="text">
                                                        <xsl:value-of select="wnio:Miejscowosc"/>
                                                        <xsl:text> </xsl:text>
                                                        <xsl:value-of select="wnio:Budynek"/>
                                                      </span>
                                                    </xsl:if>
                                                    <xsl:if test="not(string-length(normalize-space(wnio:Lokal))=0)">
                                                      <span type="text">
                                                        <xsl:text>/</xsl:text>
                                                        <xsl:value-of select="wnio:Lokal"/>
                                                      </span>
                                                    </xsl:if>
                                                    <br/>
                                                    <xsl:if test="true()">
                                                      <span type="text">
                                                        <xsl:value-of select="wnio:Kod"/>
                                                        <xsl:text> </xsl:text>
                                                        <xsl:value-of select="wnio:Poczta"/>
                                                      </span>
                                                    </xsl:if>
                                                  </xsl:when>
                                                </xsl:choose>
                                              </td>
                                            </tr>
    
                                            <tr>
                                              <td>
                                                <span>
                                                  <xsl:if test="not(string-length(normalize-space(wnio:Telefon))=0)">
                                                    <span type="text">
                                                      <xsl:text>Telefon: </xsl:text>
                                                      <xsl:value-of select="wnio:Telefon"/>
                                                    </span>
                                                  </xsl:if>
                                                </span>
                                              </td>
                                            </tr>
                                            <tr>
                                              <td>
                                                <span>
                                                  <xsl:if test="not(string-length(normalize-space(wnio:PESEL))=0)">
                                                    <span type="text">
                                                      <xsl:text>PESEL: </xsl:text>
                                                      <xsl:value-of select="wnio:PESEL"/>
                                                    </span>
                                                  </xsl:if>
                                                </span>
                                              </td>
                                            </tr>
                                            <tr>
                                              <td>
                                                <span>
                                                  <xsl:if test="not(string-length(normalize-space(wnio:NIP))=0)">
                                                    <span type="text">
                                                      <xsl:text>NIP: </xsl:text>
                                                      <xsl:value-of select="wnio:NIP"/>
                                                    </span>
                                                  </xsl:if>
                                                </span>
                                              </td>
                                            </tr>
                                          </tbody>
                                        </table>
    
                                        <!-- #### ADRES DO KORESPONDENCJI PEŁNOMOCNIKA INSTYTUCJI #### -->
    
                                        <xsl:for-each select="wnio:Sekcja/wnio:DodatkowyAdres">
                                          <xsl:if test="../../wnio:AdresDoKorespondencji='2'">
                                            <br/>Adres do korespondencji:<br/>
                                            <table border="0" width="600">
                                              <tbody>
    
                                                <tr>
                                                  <td>
                                                    <xsl:choose>
                                                      <!-- #### Ulica wpisana i poczta pusta #### -->
                                                      <xsl:when test="not(string-length(normalize-space(wnio:Ulica))=0) and (string-length(normalize-space(wnio:Poczta))=0)">
                                                        <xsl:if test="true()">
                                                          <span type="text">
                                                            <xsl:value-of select="wnio:Ulica"/>
                                                            <xsl:text> </xsl:text>
                                                            <xsl:value-of select="wnio:Budynek"/>
                                                          </span>
                                                        </xsl:if>
                                                        <xsl:if test="not(string-length(normalize-space(wnio:Lokal))=0)">
                                                          <span type="text">
                                                            <xsl:text>/</xsl:text>
                                                            <xsl:value-of select="wnio:Lokal"/>
                                                          </span>
                                                        </xsl:if>
                                                        <br/>
                                                        <xsl:if test="true()">
                                                          <span type="text">
                                                            <xsl:value-of select="wnio:Kod"/>
                                                            <xsl:text> </xsl:text>
                                                            <xsl:value-of select="wnio:Miejscowosc"/>
                                                          </span>
                                                        </xsl:if>
                                                      </xsl:when>
    
                                                      <!-- #### Ulica pusta i poczta pusta #### -->
                                                      <xsl:when test="(string-length(normalize-space(wnio:Ulica))=0) and (string-length(normalize-space(wnio:Poczta))=0)">
                                                        <xsl:if test="true()">
                                                          <span type="text">
                                                            <xsl:value-of select="wnio:Miejscowosc"/>
                                                            <xsl:text> </xsl:text>
                                                            <xsl:value-of select="wnio:Budynek"/>
                                                          </span>
                                                        </xsl:if>
                                                        <xsl:if test="not(string-length(normalize-space(wnio:Lokal))=0)">
                                                          <span type="text">
                                                            <xsl:text>/</xsl:text>
                                                            <xsl:value-of select="wnio:Lokal"/>
                                                          </span>
                                                        </xsl:if>
                                                        <br/>
                                                        <xsl:if test="true()">
                                                          <span type="text">
                                                            <xsl:value-of select="wnio:Kod"/>
                                                            <xsl:text> </xsl:text>
                                                            <xsl:value-of select="wnio:Miejscowosc"/>
                                                          </span>
                                                        </xsl:if>
                                                      </xsl:when>
    
                                                      <!-- #### Ulica wpisana i poczta wpisana #### -->
                                                      <xsl:when test="not(string-length(normalize-space(wnio:Ulica))=0) and not(string-length(normalize-space(wnio:Poczta))=0)">
                                                        <xsl:if test="true()">
                                                          <span type="text">
                                                            <xsl:value-of select="wnio:Ulica"/>
                                                            <xsl:text> </xsl:text>
                                                            <xsl:value-of select="wnio:Budynek"/>
                                                          </span>
                                                        </xsl:if>
                                                        <xsl:if test="not(string-length(normalize-space(wnio:Lokal))=0)">
                                                          <span type="text">
                                                            <xsl:text>/</xsl:text>
                                                            <xsl:value-of select="wnio:Lokal"/>
                                                          </span>
                                                        </xsl:if>
                                                        <br/>
                                                        <xsl:if test="true()">
                                                          <span type="text">
                                                            <xsl:value-of select="wnio:Miejscowosc"/>
                                                            <xsl:text>, </xsl:text>
                                                            <xsl:value-of select="wnio:Kod"/>
                                                            <xsl:text> </xsl:text>
                                                            <xsl:value-of select="wnio:Poczta"/>
                                                          </span>
                                                        </xsl:if>
                                                      </xsl:when>
    
                                                      <!-- #### Ulica pusta i poczta wpisana #### -->
                                                      <xsl:when test="(string-length(normalize-space(wnio:Ulica))=0) and not(string-length(normalize-space(wnio:Poczta))=0)">
                                                        <xsl:if test="true()">
                                                          <span type="text">
                                                            <xsl:value-of select="wnio:Miejscowosc"/>
                                                            <xsl:text> </xsl:text>
                                                            <xsl:value-of select="wnio:Budynek"/>
                                                          </span>
                                                        </xsl:if>
                                                        <xsl:if test="not(string-length(normalize-space(wnio:Lokal))=0)">
                                                          <span type="text">
                                                            <xsl:text>/</xsl:text>
                                                            <xsl:value-of select="wnio:Lokal"/>
                                                          </span>
                                                        </xsl:if>
                                                        <br/>
                                                        <xsl:if test="true()">
                                                          <span type="text">
                                                            <xsl:value-of select="wnio:Kod"/>
                                                            <xsl:text> </xsl:text>
                                                            <xsl:value-of select="wnio:Poczta"/>
                                                          </span>
                                                        </xsl:if>
                                                      </xsl:when>
                                                    </xsl:choose>
                                                  </td>
                                                </tr>
    
                                              </tbody>
                                            </table>
                                          </xsl:if>
                                        </xsl:for-each>
                                      </xsl:if>
                                    </xsl:for-each>
                                  </xsl:if>
                                </xsl:for-each>
                              </xsl:if>
                            </xsl:for-each>
                          </td>
                        </tr>
                      </table>
                    </td>
                  </tr>
    
                  <!-- #### KONIEC WNIOSKODAWCY #### -->
    
                  <tr>
                    <td style="width: 350px"/>
                    <td align="left" style="width: 250px">
                      <p> </p>
                      <strong>Adresat</strong>
                      <p align="left">
                        <strong>
                          <xsl:if test="true()">
                            <span type="text">
                              <xsl:value-of select="wnio:TrescDokumentu/wnio:Urzad"/>
                              <br/>
                              <xsl:value-of select="wnio:TrescDokumentu/wnio:Wydzial"/>
                              <br/>
                              <xsl:value-of select="wnio:TrescDokumentu/wnio:Osrodek"/>
                            </span>
                          </xsl:if>
                        </strong>
                        <br/>
                        <xsl:if test="true()">
                          <span type="text">
                            <xsl:value-of select="wnio:TrescDokumentu/wnio:AdresUrzedu"/>
                          </span>
                        </xsl:if>
                      </p>
                      <br/>
                    </td>
                  </tr>
                  <tr align="center">
                    <td colspan="2">
                      <p>
                        <b>UDOSTĘPNIANIE DANYCH Z OPERATU EWIDENCYJNEGO</b>
                      </p>
                      <br/>
                    </td>
                  </tr>
    
                  <!-- ################### POCZĄTEK FORMULARZA ################### -->
    
                  <tr>
                    <td colspan="2">
                      <p>
                        <strong>
                          Proszę o wydanie następujących materiałów:
                        </strong>
                      </p>
    
                      <xsl:for-each select="wnio:TrescDokumentu/wnio:Sekcja3/wnio:InformacjaODzialceSzczegoly">
                        <xsl:if test="../../wnio:InformacjaODzialce = '1'">
                          <strong>• informacja o działce (położenie, powierzchnia, rodzaje użytków, rodzaje klas)</strong>
                          <div style="margin:20px;">
                            <strong>dla działki(-ek):</strong>
                            <br/>
                            <xsl:for-each select="wnio:Sekcja1/wnio:EwidencjaGruntow">
                              <xsl:if test="../../wnio:SposobOznaczenia = '1'">
                                <table border="0" cellspacing="0" cellpadding="0" style="width: 650px; height: 10px; border: 1pt solid #000000">
                                  <tr>
                                    <td style="text-align: center; background-color: #c0c0c0; width: 50px; height: 25px; border: 1pt solid #000000">
                                      <b>L.p.</b>
                                    </td>
                                    <td style="text-align: center; background-color: #c0c0c0; width: 150px; height: 25px; border: 1pt solid #000000">
                                      <b>Jednostka ewidencyjna</b>
                                    </td>
                                    <td style="text-align: center; background-color: #c0c0c0; width: 150px; height: 25px; border: 1pt solid #000000">
                                      <b>Obręb</b>
                                    </td>
                                    <td style="text-align: center; background-color: #c0c0c0; width: 150px; height: 25px; border: 1pt solid #000000">
                                      <b>Działka</b>
                                    </td>
                                    <td style="text-align: center; background-color: #c0c0c0; width: 150px; height: 25px; border: 1pt solid #000000">
                                      <b>Rodzaj informacji</b>
                                    </td>
                                  </tr>
                                  <xsl:for-each select="wnio:Sekcja/wnio:TabelaDzialek">
                                    <xsl:if test="true()">
                                      <tr>
                                        <td style="text-align: center; width: 50px; border: 1pt solid #000000">
                                          <xsl:value-of select="position()"/>
                                        </td>
                                        <td style="text-align: center; width: 150px; border: 1pt solid #000000">
                                          <xsl:if test="true()">
                                            <span type="text">
                                              <xsl:value-of select="wnio:JednostkaEwidencyjna"/>
                                            </span>
                                          </xsl:if>
                                        </td>
                                        <td style="text-align: center; width: 150px; border: 1pt solid #000000">
                                          <xsl:if test="true()">
                                            <span type="text">
                                              <xsl:value-of select="wnio:Obreb"/>
                                            </span>
                                          </xsl:if>
                                        </td>
                                        <td style="text-align: center; width: 150px; border: 1pt solid #000000">
                                          <xsl:if test="true()">
                                            <span type="text">
                                              <xsl:value-of select="wnio:Dzialka"/>
                                            </span>
                                          </xsl:if>
                                        </td>
                                        <td style="text-align: center; width: 150px; border: 1pt solid #000000">
                                          <xsl:if test="true()">
                                            <span type="text">
                                              <xsl:value-of select="wnio:RodzajInformacji"/>
                                            </span>
                                          </xsl:if>
                                        </td>
                                      </tr>
                                    </xsl:if>
                                  </xsl:for-each>
                                </table>
                              </xsl:if>
                            </xsl:for-each>
    
                            <xsl:for-each select="wnio:Sekcja2/wnio:Adres">
                              <xsl:if test="../../wnio:SposobOznaczenia = '2'">
                                <table border="0" cellspacing="0" cellpadding="0" style="width: 500px; height: 10px; border: 1pt solid #000000">
                                  <tr>
                                    <td style="text-align: center; background-color: #c0c0c0; width: 50px; height: 25px; border: 1pt solid #000000">
                                      <b>L.p.</b>
                                    </td>
                                    <td style="text-align: center; background-color: #c0c0c0; width: 150px; height: 25px; border: 1pt solid #000000">
                                      <b>Ulica</b>
                                    </td>
                                    <td style="text-align: center; background-color: #c0c0c0; width: 150px; height: 25px; border: 1pt solid #000000">
                                      <b>Nr</b>
                                    </td>
                                    <td style="text-align: center; background-color: #c0c0c0; width: 150px; height: 25px; border: 1pt solid #000000">
                                      <b>Rodzaj informacji</b>
                                    </td>
                                  </tr>
                                  <xsl:for-each select="wnio:Sekcja/wnio:TabelaAdresow">
                                    <xsl:if test="true()">
                                      <tr>
                                        <td style="text-align: center; width: 50px; border: 1pt solid #000000">
                                          <xsl:value-of select="position()"/>
                                        </td>
                                        <td style="text-align: center; width: 150px; border: 1pt solid #000000">
                                          <xsl:if test="true()">
                                            <span type="text">
                                              <xsl:value-of select="wnio:Ulica"/>
                                            </span>
                                          </xsl:if>
                                        </td>
                                        <td style="text-align: center; width: 150px; border: 1pt solid #000000">
                                          <xsl:if test="true()">
                                            <span type="text">
                                              <xsl:value-of select="wnio:Numer"/>
                                            </span>
                                          </xsl:if>
                                        </td>
                                        <td style="text-align: center; width: 150px; border: 1pt solid #000000">
                                          <xsl:if test="true()">
                                            <span type="text">
                                              <xsl:value-of select="wnio:RodzajInformacji"/>
                                            </span>
                                          </xsl:if>
                                        </td>
                                      </tr>
                                    </xsl:if>
                                  </xsl:for-each>
                                </table>
                              </xsl:if>
                            </xsl:for-each>
                          </div>
                        </xsl:if>
                      </xsl:for-each>
    
                      <xsl:for-each select="wnio:TrescDokumentu/wnio:Sekcja4/wnio:InformacjaONrKsiegiWieczystejSzczegoly">
                        <xsl:if test="../../wnio:InformacjaONrKsiegiWieczystej = '1'">
                          <strong>• informacje o nr księgi wieczystej </strong>
                          <div style="margin:20px;">
                            <strong>dla działki(-ek):</strong>
                            <br/>
                            <xsl:for-each select="wnio:Sekcja1/wnio:EwidencjaGruntow">
                              <xsl:if test="../../wnio:SposobOznaczenia = '1'">
                                <table border="0" cellspacing="0" cellpadding="0" style="width: 500px; height: 10px; border: 1pt solid #000000">
                                  <tr>
                                    <td style="text-align: center; background-color: #c0c0c0; width: 50px; height: 25px; border: 1pt solid #000000">
                                      <b>L.p.</b>
                                    </td>
                                    <td style="text-align: center; background-color: #c0c0c0; width: 150px; height: 25px; border: 1pt solid #000000">
                                      <b>Jednostka ewidencyjna</b>
                                    </td>
                                    <td style="text-align: center; background-color: #c0c0c0; width: 150px; height: 25px; border: 1pt solid #000000">
                                      <b>Obręb</b>
                                    </td>
                                    <td style="text-align: center; background-color: #c0c0c0; width: 150px; height: 25px; border: 1pt solid #000000">
                                      <b>Działka</b>
                                    </td>
                                  </tr>
                                  <xsl:for-each select="wnio:Sekcja/wnio:TabelaDzialek">
                                    <xsl:if test="true()">
                                      <tr>
                                        <td style="text-align: center; width: 50px; border: 1pt solid #000000">
                                          <xsl:value-of select="position()"/>
                                        </td>
                                        <td style="text-align: center; width: 150px; border: 1pt solid #000000">
                                          <xsl:if test="true()">
                                            <span type="text">
                                              <xsl:value-of select="wnio:JednostkaEwidencyjna"/>
                                            </span>
                                          </xsl:if>
                                        </td>
                                        <td style="text-align: center; width: 150px; border: 1pt solid #000000">
                                          <xsl:if test="true()">
                                            <span type="text">
                                              <xsl:value-of select="wnio:Obreb"/>
                                            </span>
                                          </xsl:if>
                                        </td>
                                        <td style="text-align: center; width: 150px; border: 1pt solid #000000">
                                          <xsl:if test="true()">
                                            <span type="text">
                                              <xsl:value-of select="wnio:Dzialka"/>
                                            </span>
                                          </xsl:if>
                                        </td>
                                      </tr>
                                    </xsl:if>
                                  </xsl:for-each>
                                </table>
                              </xsl:if>
                            </xsl:for-each>
    
                            <xsl:for-each select="wnio:Sekcja2/wnio:Adres">
                              <xsl:if test="../../wnio:SposobOznaczenia = '2'">
                                <table border="0" cellspacing="0" cellpadding="0" style="width: 500px; height: 10px; border: 1pt solid #000000">
                                  <tr>
                                    <td style="text-align: center; background-color: #c0c0c0; width: 50px; height: 25px; border: 1pt solid #000000">
                                      <b>L.p.</b>
                                    </td>
                                    <td style="text-align: center; background-color: #c0c0c0; width: 150px; height: 25px; border: 1pt solid #000000">
                                      <b>Ulica</b>
                                    </td>
                                    <td style="text-align: center; background-color: #c0c0c0; width: 150px; height: 25px; border: 1pt solid #000000">
                                      <b>Nr budynku</b>
                                    </td>
                                    <td style="text-align: center; background-color: #c0c0c0; width: 150px; height: 25px; border: 1pt solid #000000">
                                      <b>Nr lokalu</b>
                                    </td>
                                  </tr>
                                  <xsl:for-each select="wnio:Sekcja/wnio:TabelaAdresow">
                                    <xsl:if test="true()">
                                      <tr>
                                        <td style="text-align: center; width: 50px; border: 1pt solid #000000">
                                          <xsl:value-of select="position()"/>
                                        </td>
                                        <td style="text-align: center; width: 150px; border: 1pt solid #000000">
                                          <xsl:if test="true()">
                                            <span type="text">
                                              <xsl:value-of select="wnio:Ulica"/>
                                            </span>
                                          </xsl:if>
                                        </td>
                                        <td style="text-align: center; width: 150px; border: 1pt solid #000000">
                                          <xsl:if test="true()">
                                            <span type="text">
                                              <xsl:value-of select="wnio:NumerBudynku"/>
                                            </span>
                                          </xsl:if>
                                        </td>
                                        <td style="text-align: center; width: 150px; border: 1pt solid #000000">
                                          <xsl:if test="true()">
                                            <span type="text">
                                              <xsl:value-of select="wnio:NumerLokalu"/>
                                            </span>
                                          </xsl:if>
                                        </td>
                                      </tr>
                                    </xsl:if>
                                  </xsl:for-each>
                                </table>
                              </xsl:if>
                            </xsl:for-each>
                          </div>
                        </xsl:if>
                      </xsl:for-each>
    
                      <div style="width: 650px">
                        <xsl:for-each select="wnio:TrescDokumentu/wnio:Sekcja5/wnio:WypisZRejestruCenSzczegoly">
                          <xsl:if test="../../wnio:WypisZRejestruCen = '1'">
                            <strong>• wypisy z rejestru cen</strong>
                            <div style="margin: 20px">
                              <strong>dla działki(-ek):</strong>
                              <table border="0" cellpadding="0" cellspacing="0" style="width: 840px; height: 50px; border: 1pt solid #000000">
                                <tbody>
                                  <tr>
                                    <td style="text-align: center; background-color: #c0c0c0; width: 40px; height: 25px; border: 1pt solid #000000">
                                      <b>
                                        L.p.
                                      </b>
                                    </td>
                                    <td style="text-align: center; background-color: #c0c0c0; width: 80px; height: 25px; border: 1pt solid #000000">
                                      <b>Jednostka ewidencyjna</b>
                                    </td>
                                    <td style="text-align: center; background-color: #c0c0c0; width: 80px; height: 25px; border: 1pt solid #000000">
                                      <b>Obręb</b>
                                    </td>
                                    <td style="text-align: center; background-color: #c0c0c0; width: 80px; height: 25px; border: 1pt solid #000000">
                                      <b>Data dokumentu</b>
                                    </td>
                                    <td style="text-align: center; background-color: #c0c0c0; width: 80px; height: 25px; border: 1pt solid #000000">
                                      <b>Rodzaj rynku</b>
                                    </td>
                                    <td style="text-align: center; background-color: #c0c0c0; width: 80px; height: 25px; border: 1pt solid #000000">
                                      <b>Rodzaj nieruchomości</b>
                                    </td>
                                    <td style="text-align: center; background-color: #c0c0c0; width: 80px; height: 25px; border: 1pt solid #000000">
                                      <b>Właściciel</b>
                                    </td>
                                    <td style="text-align: center; background-color: #c0c0c0; width: 80px; height: 25px; border: 1pt solid #000000">
                                      <b>Nabywca</b>
                                    </td>
                                    <td style="text-align: center; background-color: #c0c0c0; width: 80px; height: 25px; border: 1pt solid #000000">
                                      <b>Funkcja dominująca</b>
                                    </td>
                                  </tr>
    
    
                                  <xsl:for-each select="wnio:Sekcja/wnio:TabelaDzialek">
                                    <xsl:if test="true()">
                                      <tr>
                                        <td style="text-align: center; width: 40px; border: 1pt solid #000000">
                                          <xsl:value-of select="position()"/>
                                        </td>
                                        <td style="text-align: center; width: 80px; border: 1pt solid #000000">
                                          <span>
                                            <xsl:if test="true()">
                                              <span type="text">
                                                <xsl:value-of select="wnio:JednostkaEwidencyjna"/>
                                              </span>
                                            </xsl:if>
                                          </span>
                                        </td>
                                        <td style="text-align: center; width: 80px; border: 1pt solid #000000">
                                          <span>
                                            <xsl:if test="true()">
                                              <span type="text">
                                                <xsl:value-of select="wnio:Obreb"/>
                                              </span>
                                            </xsl:if>
                                          </span>
                                        </td>
                                        <td style="text-align: center; width: 80px; border: 1pt solid #000000">
                                          <strong>od </strong>
                                          <xsl:if test="true()">
                                            <xsl:value-of select="wnio:DataOd"/>
                                          </xsl:if>
                                          <strong> do </strong>
                                          <xsl:if test="true()">
                                            <xsl:value-of select="wnio:DataDo"/>
                                          </xsl:if>
                                        </td>
                                        <td style="text-align: center; width: 80px; border: 1pt solid #000000">
                                          <span>
                                            <label>
                                              <span/>
                                            </label>
                                            <xsl:if test="true()">
                                              <span>
                                                <xsl:if test="wnio:RodzajRynku = 1">pierwotny</xsl:if>
                                                <xsl:if test="wnio:RodzajRynku = 2">wtórny</xsl:if>
                                              </span>
                                            </xsl:if>
                                          </span>
                                        </td>
                                        <td style="text-align: center; width: 80px; border: 1pt solid #000000">
                                          <span>
                                            <xsl:if test="true()">
                                              <span type="text">
                                                <xsl:value-of select="wnio:RodzajNieruchomosci"/>
                                              </span>
                                            </xsl:if>
                                          </span>
                                        </td>
                                        <td style="text-align: center; width: 80px; border: 1pt solid #000000">
                                          <span>
                                            <xsl:if test="true()">
                                              <span type="text">
                                                <xsl:value-of select="wnio:Wlasciciel"/>
                                              </span>
                                            </xsl:if>
                                          </span>
                                        </td>
                                        <td style="text-align: center; width: 80px; border: 1pt solid #000000">
                                          <span>
                                            <xsl:if test="true()">
                                              <span type="text">
                                                <xsl:value-of select="wnio:Nabywca"/>
                                              </span>
                                            </xsl:if>
                                          </span>
                                        </td>
                                        <td style="text-align: center; width: 80px; border: 1pt solid #000000">
                                          <span>
                                            <xsl:if test="true()">
                                              <span type="text">
                                                <xsl:value-of select="wnio:FunkcjaDominujaca"/>
                                              </span>
                                            </xsl:if>
                                          </span>
                                        </td>
                                      </tr>
                                    </xsl:if>
                                  </xsl:for-each>
                                </tbody>
                              </table>
                            </div>
                          </xsl:if>
                        </xsl:for-each>
                      </div>
    
                      <xsl:for-each select="wnio:TrescDokumentu/wnio:Sekcja6/wnio:InneSzczegoly">
                        <xsl:if test="../../wnio:Inne = '1'">
                          <strong>
                            <xsl:if test="true()">
                              <span>
                                <xsl:text>• </xsl:text>
                                <xsl:value-of select="wnio:Opis"/>
                              </span>
                            </xsl:if>
                          </strong>
                        </xsl:if>
                      </xsl:for-each>
    
                      <p>
                        <strong>Osoba kontaktowa ze strony zamawiającego: </strong>
                      </p>
                      <p>
                        <xsl:if test="true()">
                          <span type="text">
                            <xsl:text>Imię i nazwisko: </xsl:text>
                            <xsl:value-of select="wnio:TrescDokumentu/wnio:OsobaKontaktowa/wnio:Imie"/>
                            <xsl:text> </xsl:text>
                            <xsl:value-of select="wnio:TrescDokumentu/wnio:OsobaKontaktowa/wnio:Nazwisko"/>
                          </span>
                        </xsl:if>
                        <br/>
    
                        <xsl:if test="true()">
                          <span type="text">
                            <xsl:text>E-mail: </xsl:text>
                            <xsl:value-of select="wnio:TrescDokumentu/wnio:OsobaKontaktowa/wnio:Email"/>
                          </span>
                        </xsl:if>
                        <xsl:if test="not(string-length(normalize-space(wnio:TrescDokumentu/wnio:OsobaKontaktowa/wnio:Telefon))=0)">
                          <span type="text">
                            <xsl:text>, Tel.: </xsl:text>
                            <xsl:value-of select="wnio:TrescDokumentu/wnio:OsobaKontaktowa/wnio:Telefon"/>
                          </span>
                        </xsl:if>
                        <xsl:if test="not(string-length(normalize-space(wnio:TrescDokumentu/wnio:OsobaKontaktowa/wnio:Komorka))=0)">
                          <span type="text">
                            <xsl:text>, Kom.: </xsl:text>
                            <xsl:value-of select="wnio:TrescDokumentu/wnio:OsobaKontaktowa/wnio:Komorka"/>
                          </span>
                        </xsl:if>
    
                      </p>
    
                      <p>
                        Materiały
                        <span>
                          <xsl:if test="true()">
                            <span>
                              <xsl:choose>
                                <xsl:when test="contains(concat(concat(' ', normalize-space(wnio:TrescDokumentu/wnio:SposobOdbioru)),' '), ' 1 ' )">
                                  <span>
                                    odbiorę osobiście.
                                  </span>
                                </xsl:when>
                              </xsl:choose>
                            </span>
                            <span>
                              <xsl:choose>
                                <xsl:when test="contains(concat(concat(' ', normalize-space(wnio:TrescDokumentu/wnio:SposobOdbioru)),' '), ' 2 ' )">
                                  <span>
                                    proszę przesłać pocztą.
                                  </span>
                                </xsl:when>
                              </xsl:choose>
                            </span>
                          </xsl:if>
                        </span>
                      </p>
    
                    </td>
                  </tr>
    
                  <!-- ################### KONIEC FORMULARZA ################### -->
    
                  <tr>
                    <td colspan="2" height="50">
                      <xsl:if test="wnio:TrescDokumentu/wnio:Zalaczniki/wnio:Zalacznik">
                        <br/>
                        <br/>
                        <p>
                          <strong>Załączniki</strong>
                        </p>
    
                        <!-- ################### TUTAJ ZAŁĄCZNIKI POCZĄTEK ################### -->
    
                        <table border="0" cellspacing="0" cellpadding="0" style="height: 10px; border: 1pt solid #000000">
                          <tr>
                            <td style="text-align: center; background-color: #c0c0c0; width: 50px; height: 25px; border: 1pt solid #000000">
                              <b>L.p.</b>
                            </td>
                            <td style="text-align: center; background-color: #c0c0c0; width: 100px; height: 25px; border: 1pt solid #000000">
                              <b>Potwierdzona aktualność</b>
                            </td>
                            <td style="text-align: center; background-color: #c0c0c0; width: 200px; height: 25px; border: 1pt solid #000000">
                              <b>Nazwa</b>
                            </td>
                            <td style="text-align: center; background-color: #c0c0c0; width: 150px; height: 25px; border: 1pt solid #000000">
                              <b>Opis</b>
                            </td>
                            <td style="text-align: center; background-color: #c0c0c0; width: 150px; height: 25px; border: 1pt solid #000000">
                              <b>Plik</b>
                            </td>
                          </tr>
                          <xsl:for-each select="wnio:TrescDokumentu/wnio:Zalaczniki/wnio:Zalacznik">
                            <xsl:if test="true()">
                              <tr>
                                <td style="text-align: center; width: 50px; border: 1pt solid #000000">
                                  <xsl:value-of select="position()"/>
                                </td>
                                <td style="text-align: center; width: 100px; border: 1pt solid #000000">
                                  <xsl:if test="true()">
                                    <span>
                                      <xsl:choose>
                                        <xsl:when test="contains(concat(concat(' ', normalize-space(wnio:AktualnoscZalacznika)),' '),  ' 1 ' )">
                                          <span>Tak</span>
                                        </xsl:when>
                                        <xsl:otherwise>
                                          <span>Nie</span>
                                        </xsl:otherwise>
                                      </xsl:choose>
                                    </span>
                                  </xsl:if>
                                </td>
                                <td style="text-align: left; width: 200px; border: 1pt solid #000000">
    
                                  <xsl:for-each select="wnio:Sekcja/wnio:Zalacznik1">
                                    <xsl:if test="../../wnio:TypZalacznika='1'">
                                      <span>
                                        <xsl:if test="true()">
                                          <span type="text">
                                            <xsl:value-of select="wnio:PoleZalacznik"/>
                                          </span>
                                        </xsl:if>
                                      </span>W przypadku udostępnienia wypisów z operatu ewidencji gruntów osobom innym niż właściciel (władający) do niniejszego zamówienia należy dołączyć wniosek o udostępnienie danych ze zbioru danych osobowych, ze wskazaniem podstawy prawnej upoważniającej do pozyskania tych danych (art.23, 29 ustawy o ochronie danych osobowych z dnia: 29.08.1997 r. /Dz. U. 2002 Nr 101 poz.926 z późn.zm.)
                                    </xsl:if>
                                  </xsl:for-each>
                                  <xsl:for-each select="wnio:Sekcja/wnio:Zalacznik2">
                                    <xsl:if test="../../wnio:TypZalacznika='2'">
                                      <span>
                                        <xsl:if test="true()">
                                          <span type="text">
                                            <xsl:value-of select="wnio:PoleZalacznik"/>
                                          </span>
                                        </xsl:if>
                                      </span>Inny
                                    </xsl:if>
                                  </xsl:for-each>
    
                                </td>
                                <td style="text-align: left; width: 150px; border: 1pt solid #000000">
                                  <xsl:if test="not(string-length(normalize-space(str:Zalacznik/str:OpisZalacznika))=0)">
                                    <span type="text">
                                      <xsl:value-of select="str:Zalacznik/str:OpisZalacznika"/>
                                    </span>
                                  </xsl:if>
                                   
                                </td>
                                <td style="text-align: left; width: 150px; border: 1pt solid #000000">
                                  <xsl:for-each select="str:Zalacznik">
                                    <xsl:if test="true()">
                                      <span>
                                        <xsl:value-of select="str:DaneZalacznika/../@nazwaPliku"/>
                                      </span>
                                    </xsl:if>
                                  </xsl:for-each>
                                </td>
                              </tr>
                            </xsl:if>
                          </xsl:for-each>
                        </table>
                      </xsl:if>
    
                      <!-- ################### TUTAJ ZAŁĄCZNIKI KONIEC ################### -->
    
                      <br/>
                      <xsl:for-each select="wnio:TrescDokumentu/wnio:Sekcja9/wnio:ZgodnoscZalacznikow">
                        <xsl:if test="../../wnio:Zalaczniki/wnio:Zalacznik">
                          <span>
                            <b>Potwierdzam zgodność wszystkich załączonych dokumentów z oryginałami: </b>
                          </span>
                          <xsl:choose>
                            <xsl:when test="contains(concat(concat(' ', normalize-space(wnio:Potwierdzenie)),' '),  ' 1 ' )">
                              <span>Tak</span>
                            </xsl:when>
                            <xsl:otherwise>
                              <span>Nie</span>
                            </xsl:otherwise>
                          </xsl:choose>
                          <br/>
                        </xsl:if>
                      </xsl:for-each>
                      <br/>
                      <span>
                        <b>Wyrażam zgodę na wymianę korespondencji drogą elektroniczną: </b>
                      </span>
                      <xsl:choose>
                        <xsl:when test="contains(concat(concat(' ', normalize-space(wnio:TrescDokumentu/wnio:ZgodaNaKorespondencje)),' '),  ' 1 ' )">
                          <span>Tak</span>
                        </xsl:when>
                        <xsl:otherwise>
                          <span>Nie</span>
                        </xsl:otherwise>
                      </xsl:choose>
                    </td>
                  </tr>
                  <tr>
                    <td colspan="2">
    
                      <br/>
                      <br/>
                      <p>
                        <strong>UWAGI:</strong>
                      </p>
                      <p>
                        <strong>MATERIAŁY BĘDĄ WYDANE PO OKAZANIU DOWODU ZAPŁATY.</strong>
                      </p>
                      <p>
                        <strong>
                          Dalsze rozpowszechnianie i rozprowadzanie map, materiałów fotograficznych i teledetekcyjnych otrzymanych z zasobu. powiatowego wymaga każdorazowo zezwolenia starosty (art. 18 ustawy z dnia: 17 maja 1989 r. prawo geodezyjne i kartograficzne /Dz. U. Nr 240 poz. 2027 z 2005 r. / – tekst jednolity z późn.zm.).<br/><br/> W przypadku udostępnienia wypisów z operatu ewidencji gruntów osobom innym niż właściciel (władający) do niniejszego zamówienia należy dołączyć wniosek o udostępnienie danych ze zbioru danych osobowych, ze wskazaniem podstawy prawnej upoważniającej do pozyskania tych danych (art.23, 29 ustawy o ochronie danych osobowych z dnia: 29.08.1997 r. /Dz. U. 2002 Nr 101 poz.926 z późn.zm.)
                        </strong>
                      </p>
                    </td>
                  </tr>
    
                </tbody>
              </table>
            </body>
          </html>
        </xsl:for-each>
      </xsl:template>
    </xsl:stylesheet>