1163

ID1163
Data2013-05-24
Symbol2013/05/24/1163
InstytucjaUrząd Miasta Częstochowy
NazwaWniosek o wydanie zaświadczenia o przeznaczeniu terenu w obowiązujących miejscowych planach zagospodarowania przestrzennego
Czy Aktualny1

Ustawy (1)

  • URI://Dziennik_Ustaw/2011/206/1216/27/2
  • Par. 27 ust. 2 rozporządzenia Prezesa Rady Ministrów z dnia 14 września 2011r. w sprawie sporządzania pism w postaci dokumentów elektronicznych, doręczania dokumentów elektronicznych oraz udostępniania formularzy, wzorów i kopii dokumentów elektronic...

    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/2013/05/24/1163/" 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>
    			<title>WNIOSEK O WYDANIE ZAŚWIADCZENIA O PRZEZNACZENIU TERENU W OBOWIĄZUJĄCYCH MIEJSCOWYCH PLANACH ZAGOSPODAROWANIA PRZESTRZENNEGO</title>
            </head>
            <body>
              <table border="0" height="367" width="100%">
                <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:DaneDokumentu/wnio:Nadawca/wnio:Imie"/>
                          </span>
                        </xsl:if>
                      </span> <span>
                        <xsl:if test="true()">
                          <span type="text">
                            <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Nadawca/wnio:Nazwisko"/>
                          </span>
                        </xsl:if>
                      </span>
                    </td>
                  </tr>
                  <tr>
                    <td align="right" colspan="2">
                      <table border="0" height="78" style="margin-right:10px">
                        <tbody>
                          <tr>
                            <td align="right">
                               <span>
                                 <label>
                                   <span/>
                                 </label>
                                   <span type="text">
                                     <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:MiejscowoscWniosku"/>, dnia
                                   </span>
                               </span>
                            </td>
                            <td align="left">
                              <xsl:if test="true()">
                                <xsl:value-of select="substring(wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:DataWniosku,1,10)"/>
                              </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:if test="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Wnioskodawca/@typWnioskodawcy = 'osoba-fizyczna' or wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Wnioskodawca/@typWnioskodawcy = 'osoba-fizyczna-prow-dzial-gosp'">
                                <p/>
                                <table border="0" width="600">
                                  <tbody>
                                    <tr>
                                      <td>
                                        <span>
                                          <xsl:if test="true()">
                                            <span type="text">
                                              <b>
                                                <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Wnioskodawca/oso:Osoba/oso:Imie"/>
                                              </b>
                                            </span>
                                          </xsl:if>
                                        </span> <span>
                                          <xsl:if test="true()">
                                            <span type="text">
                                              <b>
                                                <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Wnioskodawca/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:TrescDokumentu/wnio:DaneDokumentu/wnio:Wnioskodawca/oso:Osoba/adr:Adres/adr:Ulica))=0) and (string-length(normalize-space(wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Wnioskodawca/oso:Osoba/adr:Adres/adr:Poczta))=0)">
                                            <xsl:if test="true()">
                                              <span type="text">
                                                <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Wnioskodawca/oso:Osoba/adr:Adres/adr:Ulica"/>
                                                <xsl:text> </xsl:text>
                                                <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Wnioskodawca/oso:Osoba/adr:Adres/adr:Budynek"/>
                                              </span>
                                            </xsl:if>
                                            <xsl:if test="not(string-length(normalize-space(wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Wnioskodawca/oso:Osoba/adr:Adres/adr:Lokal))=0)">
                                              <span type="text">
                                                <xsl:text>/</xsl:text>
                                                <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Wnioskodawca/oso:Osoba/adr:Adres/adr:Lokal"/>
                                              </span>
                                            </xsl:if>
                                            <br/>
                                            <xsl:if test="true()">
                                              <span type="text">
                                                <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Wnioskodawca/oso:Osoba/adr:Adres/adr:KodPocztowy"/>
                                                <xsl:text> </xsl:text>
                                                <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Wnioskodawca/oso:Osoba/adr:Adres/adr:Miejscowosc"/>
                                              </span>
                                            </xsl:if>
                                          </xsl:when>
    
                                          <!-- #### Ulica pusta i poczta pusta #### -->
                                          <xsl:when test="(string-length(normalize-space(wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Wnioskodawca/oso:Osoba/adr:Adres/adr:Ulica))=0) and (string-length(normalize-space(wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Wnioskodawca/oso:Osoba/adr:Adres/adr:Poczta))=0)">
                                            <xsl:if test="true()">
                                              <span type="text">
                                                <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Wnioskodawca/oso:Osoba/adr:Adres/adr:Miejscowosc"/>
                                                <xsl:text> </xsl:text>
                                                <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Wnioskodawca/oso:Osoba/adr:Adres/adr:Budynek"/>
                                              </span>
                                            </xsl:if>
                                            <xsl:if test="not(string-length(normalize-space(wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Wnioskodawca/oso:Osoba/adr:Adres/adr:Lokal))=0)">
                                              <span type="text">
                                                <xsl:text>/</xsl:text>
                                                <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Wnioskodawca/oso:Osoba/adr:Adres/adr:Lokal"/>
                                              </span>
                                            </xsl:if>
                                            <br/>
                                            <xsl:if test="true()">
                                              <span type="text">
                                                <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Wnioskodawca/oso:Osoba/adr:Adres/adr:KodPocztowy"/>
                                                <xsl:text> </xsl:text>
                                                <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Wnioskodawca/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:TrescDokumentu/wnio:DaneDokumentu/wnio:Wnioskodawca/oso:Osoba/adr:Adres/adr:Ulica))=0) and not(string-length(normalize-space(wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Wnioskodawca/oso:Osoba/adr:Adres/adr:Poczta))=0)">
                                            <xsl:if test="true()">
                                              <span type="text">
                                                <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Wnioskodawca/oso:Osoba/adr:Adres/adr:Ulica"/>
                                                <xsl:text> </xsl:text>
                                                <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Wnioskodawca/oso:Osoba/adr:Adres/adr:Budynek"/>
                                              </span>
                                            </xsl:if>
                                            <xsl:if test="not(string-length(normalize-space(wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Wnioskodawca/oso:Osoba/adr:Adres/adr:Lokal))=0)">
                                              <span type="text">
                                                <xsl:text>/</xsl:text>
                                                <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Wnioskodawca/oso:Osoba/adr:Adres/adr:Lokal"/>
                                              </span>
                                            </xsl:if>
                                            <br/>
                                            <xsl:if test="true()">
                                              <span type="text">
                                               <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Wnioskodawca/oso:Osoba/adr:Adres/adr:KodPocztowy"/>
                                                <xsl:text>, </xsl:text>
                                                <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Wnioskodawca/oso:Osoba/adr:Adres/adr:Miejscowosc"/>
                                                <br/><xsl:text>Poczta </xsl:text>
                                                <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Wnioskodawca/oso:Osoba/adr:Adres/adr:Poczta"/>
                                              </span>
                                            </xsl:if>
                                          </xsl:when>
    
                                          <!-- #### Ulica pusta i poczta wpisana #### -->
                                          <xsl:when test="(string-length(normalize-space(wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Wnioskodawca/oso:Osoba/adr:Adres/adr:Ulica))=0) and not(string-length(normalize-space(wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Wnioskodawca/oso:Osoba/adr:Adres/adr:Poczta))=0)">
                                            <xsl:if test="true()">
                                              <span type="text">
                                                <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Wnioskodawca/oso:Osoba/adr:Adres/adr:Miejscowosc"/>
                                                <xsl:text> </xsl:text>
                                                <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Wnioskodawca/oso:Osoba/adr:Adres/adr:Budynek"/>
                                              </span>
                                            </xsl:if>
                                            <xsl:if test="not(string-length(normalize-space(wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Wnioskodawca/oso:Osoba/adr:Adres/adr:Lokal))=0)">
                                              <span type="text">
                                                <xsl:text>/</xsl:text>
                                                <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Wnioskodawca/oso:Osoba/adr:Adres/adr:Lokal"/>
                                              </span>
                                            </xsl:if>
                                            <br/>
                                            <xsl:if test="true()">
                                              <span type="text">
                                                <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Wnioskodawca/oso:Osoba/adr:Adres/adr:KodPocztowy"/>
                                                <xsl:text> </xsl:text>
                                                <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Wnioskodawca/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:TrescDokumentu/wnio:DaneDokumentu/wnio:Wnioskodawca/oso:Osoba/adr:Kontakt/adr:Telefon))=0)">
                                            <span type="text">
                                              <xsl:text>Telefon:  </xsl:text>
                                              <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Wnioskodawca/oso:Osoba/adr:Kontakt/adr:Telefon"/>
                                            </span>
                                          </xsl:if>
                                        </span>
                                      </td>
                                    </tr>
                                    <tr>
                                      <td>
                                        <span>
                                          <xsl:if test="not(string-length(normalize-space(wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Wnioskodawca/oso:Osoba/adr:Kontakt/adr:Email))=0)">
                                            <span type="text">
                                              <xsl:text>Email:  </xsl:text>
                                              <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Wnioskodawca/oso:Osoba/adr:Kontakt/adr:Email"/>
                                            </span>
                                          </xsl:if>
                                        </span>
                                      </td>
                                    </tr>
                                    <tr>
                                      <td>
                                        <span>
                                          <xsl:if test="not(string-length(normalize-space(wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Wnioskodawca/oso:Osoba/oso:IdOsoby/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:TrescDokumentu/wnio:DaneDokumentu/wnio:Wnioskodawca/oso:Osoba/oso:IdOsoby/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:if test="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Wnioskodawca/@reprezentowany = 'przez-pełnomocnika'">
                                      <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:TrescDokumentu/wnio:DaneDokumentu/wnio:Pełnomocnik/wnio:DanePelnomocnika/wnio:Imie"/>
                                                      </b>
                                                    </span>
                                                  </xsl:if>
                                                </span> <span>
                                                  <xsl:if test="true()">
                                                    <span type="text">
                                                      <b>
                                                        <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Pełnomocnik/wnio:DanePelnomocnika/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:TrescDokumentu/wnio:DaneDokumentu/wnio:Pełnomocnik/wnio:DanePelnomocnika/wnio:Adres/wnio:Ulica))=0) and (string-length(normalize-space(wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Pełnomocnik/wnio:DanePelnomocnika/wnio:Adres/wnio:Poczta))=0)">
                                                    <xsl:if test="true()">
                                                      <span type="text">
                                                        <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Pełnomocnik/wnio:DanePelnomocnika/wnio:Adres/wnio:Ulica"/>
                                                        <xsl:text> </xsl:text>
                                                        <xsl:value-of select="wnio:Budynek"/>
                                                      </span>
                                                    </xsl:if>
                                                    <xsl:if test="not(string-length(normalize-space(wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Pełnomocnik/wnio:DanePelnomocnika/wnio:Adres/wnio:Lokal))=0)">
                                                      <span type="text">
                                                        <xsl:text>/</xsl:text>
                                                        <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Pełnomocnik/wnio:DanePelnomocnika/wnio:Adres/wnio:Lokal"/>
                                                      </span>
                                                    </xsl:if>
                                                    <br/>
                                                    <xsl:if test="true()">
                                                      <span type="text">
                                                        <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Pełnomocnik/wnio:DanePelnomocnika/wnio:Adres/wnio:KodPocztowy"/>
                                                        <xsl:text> </xsl:text>
                                                        <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Pełnomocnik/wnio:DanePelnomocnika/wnio:Adres/wnio:Miejscowosc"/>
                                                      </span>
                                                    </xsl:if>
                                                  </xsl:when>
    
                                                  <!-- #### Ulica pusta i poczta pusta #### -->
                                                  <xsl:when test="(string-length(normalize-space(wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Pełnomocnik/wnio:DanePelnomocnika/wnio:Adres/wnio:Ulica))=0) and (string-length(normalize-space(wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Pełnomocnik/wnio:DanePelnomocnika/wnio:Adres/wnio:Poczta))=0)">
                                                    <xsl:if test="true()">
                                                      <span type="text">
                                                        <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Pełnomocnik/wnio:DanePelnomocnika/wnio:Adres/wnio:Miejscowosc"/>
                                                        <xsl:text> </xsl:text>
                                                        <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Pełnomocnik/wnio:DanePelnomocnika/wnio:Adres/wnio:Budynek"/>
                                                      </span>
                                                    </xsl:if>
                                                    <xsl:if test="not(string-length(normalize-space(wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Pełnomocnik/wnio:DanePelnomocnika/wnio:Adres/wnio:Lokal))=0)">
                                                      <span type="text">
                                                        <xsl:text>/</xsl:text>
                                                        <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Pełnomocnik/wnio:DanePelnomocnika/wnio:Adres/wnio:Lokal"/>
                                                      </span>
                                                    </xsl:if>
                                                    <br/>
                                                    <xsl:if test="true()">
                                                      <span type="text">
                                                        <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Pełnomocnik/wnio:DanePelnomocnika/wnio:Adres/wnio:KodPocztowy"/>
                                                        <xsl:text> </xsl:text>
                                                        <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Pełnomocnik/wnio:DanePelnomocnika/wnio:Adres/wnio:Miejscowosc"/>
                                                      </span>
                                                    </xsl:if>
                                                  </xsl:when>
    
                                                  <!-- #### Ulica wpisana i poczta wpisana #### -->
                                                  <xsl:when test="not(string-length(normalize-space(wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Pełnomocnik/wnio:DanePelnomocnika/wnio:Adres/wnio:Ulica))=0) and not(string-length(normalize-space(wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Pełnomocnik/wnio:DanePelnomocnika/wnio:Adres/wnio:Poczta))=0)">
                                                    <xsl:if test="true()">
                                                      <span type="text">
                                                        <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Pełnomocnik/wnio:DanePelnomocnika/wnio:Adres/wnio:Ulica"/>
                                                        <xsl:text> </xsl:text>
                                                        <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Pełnomocnik/wnio:DanePelnomocnika/wnio:Adres/wnio:Budynek"/>
                                                      </span>
                                                    </xsl:if>
                                                    <xsl:if test="not(string-length(normalize-space(wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Pełnomocnik/wnio:DanePelnomocnika/wnio:Adres/wnio:Lokal))=0)">
                                                      <span type="text">
                                                        <xsl:text>/</xsl:text>
                                                        <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Pełnomocnik/wnio:DanePelnomocnika/wnio:Adres/wnio:Lokal"/>
                                                      </span>
                                                    </xsl:if>
                                                    <br/>
                                                    <xsl:if test="true()">
                                                      <span type="text">
                                                        <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Pełnomocnik/wnio:DanePelnomocnika/wnio:Adres/wnio:KodPocztowy"/>
                                                        <xsl:text>, </xsl:text>
                                                        <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Pełnomocnik/wnio:DanePelnomocnika/wnio:Adres/wnio:Miejscowosc"/>
                                                        <br/><xsl:text>Poczta </xsl:text>
                                                        <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Pełnomocnik/wnio:DanePelnomocnika/wnio:Adres/wnio:Poczta"/>
                                                      </span>
                                                    </xsl:if>
                                                  </xsl:when>
    
                                                  <!-- #### Ulica pusta i poczta wpisana #### -->
                                                  <xsl:when test="(string-length(normalize-space(wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Pełnomocnik/wnio:DanePelnomocnika/wnio:Adres/wnio:Ulica))=0) and not(string-length(normalize-space(wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Pełnomocnik/wnio:DanePelnomocnika/wnio:Adres/wnio:Poczta))=0)">
                                                    <xsl:if test="true()">
                                                      <span type="text">
                                                        <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Pełnomocnik/wnio:DanePelnomocnika/wnio:Adres/wnio:Miejscowosc"/>
                                                        <xsl:text> </xsl:text>
                                                        <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Pełnomocnik/wnio:DanePelnomocnika/wnio:Adres/wnio:Budynek"/>
                                                      </span>
                                                    </xsl:if>
                                                    <xsl:if test="not(string-length(normalize-space(wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Pełnomocnik/wnio:DanePelnomocnika/wnio:Adres/wnio:Lokal))=0)">
                                                      <span type="text">
                                                        <xsl:text>/</xsl:text>
                                                        <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Pełnomocnik/wnio:DanePelnomocnika/wnio:Adres/wnio:Lokal"/>
                                                      </span>
                                                    </xsl:if>
                                                    <br/>
                                                    <xsl:if test="true()">
                                                      <span type="text">
                                                        <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Pełnomocnik/wnio:DanePelnomocnika/wnio:Adres/wnio:KodPocztowy"/>
                                                        <xsl:text> </xsl:text>
                                                        <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Pełnomocnik/wnio:DanePelnomocnika/wnio:Adres/wnio:Poczta"/>
                                                      </span>
                                                    </xsl:if>
                                                  </xsl:when>
                                                </xsl:choose>
                                              </td>
                                            </tr>
    
                                            <tr>
                                              <td>
                                                <span>
                                                  <xsl:if test="not(string-length(normalize-space(wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Pełnomocnik/wnio:DanePelnomocnika/wnio:Kontakt/wnio:Telefon))=0)">
                                                    <span type="text">
                                                      <xsl:text>Telefon: </xsl:text>
                                                      <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Pełnomocnik/wnio:DanePelnomocnika/wnio:Kontakt/wnio:Telefon"/>
                                                    </span>
                                                  </xsl:if>
                                                </span>
                                              </td>
                                            </tr>
                                            <tr>
                                              <td>
                                                <span>
                                                  <xsl:if test="not(string-length(normalize-space(wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Pełnomocnik/wnio:DanePelnomocnika/wnio:Kontakt/wnio:Email))=0)">
                                                    <span type="text">
                                                      <xsl:text>Email: </xsl:text>
                                                      <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Pełnomocnik/wnio:DanePelnomocnika/wnio:Kontakt/wnio:Email"/>
                                                    </span>
                                                  </xsl:if>
                                                </span>
                                              </td>
                                            </tr>
                                            <tr>
                                              <td>
                                                <span>
                                                  <xsl:if test="not(string-length(normalize-space(wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Pełnomocnik/wnio:DanePelnomocnika/wnio:IdOsoby/wnio:PESEL))=0)">
                                                    <span type="text">
                                                      <xsl:text>PESEL: </xsl:text>
                                                      <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Pełnomocnik/wnio:DanePelnomocnika/wnio:IdOsoby/wnio:PESEL"/>
                                                    </span>
                                                  </xsl:if>
                                                </span>
                                              </td>
                                            </tr>
                                            <tr>
                                              <td>
                                                <span>
                                                  <xsl:if test="not(string-length(normalize-space(wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Pełnomocnik/wnio:DanePelnomocnika/wnio:IdOsoby/wnio:NIP))=0)">
                                                    <span type="text">
                                                      <xsl:text>NIP: </xsl:text>
                                                      <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Pełnomocnik/wnio:DanePelnomocnika/wnio:IdOsoby/wnio:NIP"/>
                                                    </span>
                                                  </xsl:if>
                                                </span>
                                              </td>
                                            </tr>
                                          </tbody>
                                        </table>
    
                                        <!-- #### ADRES DO KORESPONDENCJI PEŁNOMOCNIKA #### -->
    
    
                                        <xsl:for-each select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Pełnomocnik/wnio:AdresKorespondencyjny">
                                          <xsl:if test="../@adresKorespondencyjny = 'inny'">
                                            <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:KodPocztowy"/>
                                                            <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:KodPocztowy"/>
                                                            <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:KodPocztowy"/>
                                                            <xsl:text>, </xsl:text>
                                                            <xsl:value-of select="wnio:Miejscowosc"/>
                                                            <br/><xsl:text>Poczta </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:KodPocztowy"/>
                                                            <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:if>
                               
                                <!-- #### ADRES DO KORESPONDENCJI OSOBY #### -->
    
                                  <xsl:if test="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Wnioskodawca/@reprezentowany = 'osobiście'">
                                    <xsl:for-each select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Wnioskodawca/wnio:AdresKorespondencyjny">
                                      <xsl:if test="../@adresKorespondencyjny ='inny'">
                                        <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:KodPocztowy"/>
                                                        <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:KodPocztowy"/>
                                                        <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:KodPocztowy"/>
                                                        <xsl:text>, </xsl:text>
                                                        <xsl:value-of select="wnio:Miejscowosc"/>
                                                        <br/><xsl:text>Poczta </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:KodPocztowy"/>
                                                        <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:if>
                            
                            <!-- #### INSTYTUCJA #### -->
    
                            <xsl:for-each select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Wnioskodawca/inst:Instytucja">
                              <xsl:if test="../@typWnioskodawcy = 'osoba-prawna' or  ../@typWnioskodawcy =  'organizacja-nie-posiadajaca-osobowosci-prawnej'">
                                <table border="0" width="100%">
                                  <tbody>
                                    <tr>
                                      <td>
                                        <span>
                                          <xsl:if test="true()">
                                            <span type="text">
                                              <b>
                                                <xsl:value-of select="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(adr:Adres/adr:Ulica))=0) and (string-length(normalize-space(adr:Adres/adr:Poczta))=0)">
                                            <xsl:if test="true()">
                                              <span type="text">
                                                <xsl:value-of select="adr:Adres/adr:Ulica"/>
                                                <xsl:text> </xsl:text>
                                                <xsl:value-of select="adr:Adres/adr:Budynek"/>
                                              </span>
                                            </xsl:if>
                                            <xsl:if test="not(string-length(normalize-space(adr:Adres/adr:Lokal))=0)">
                                              <span type="text">
                                                <xsl:text>/</xsl:text>
                                                <xsl:value-of select="adr:Adres/adr:Lokal"/>
                                              </span>
                                            </xsl:if>
                                            <br/>
                                            <xsl:if test="true()">
                                              <span type="text">
                                                <xsl:value-of select="adr:Adres/adr:KodPocztowy"/>
                                                <xsl:text> </xsl:text>
                                                <xsl:value-of select="adr:Adres/adr:Miejscowosc"/>
                                              </span>
                                            </xsl:if>
                                          </xsl:when>
    
                                          <!-- #### Ulica pusta i poczta pusta #### -->
                                          <xsl:when test="(string-length(normalize-space(adr:Adres/adr:Ulica))=0) and (string-length(normalize-space(adr:Adres/adr:Poczta))=0)">
                                            <xsl:if test="true()">
                                              <span type="text">
                                                <xsl:value-of select="adr:Adres/adr:Miejscowosc"/>
                                                <xsl:text> </xsl:text>
                                                <xsl:value-of select="adr:Adres/adr:Budynek"/>
                                              </span>
                                            </xsl:if>
                                            <xsl:if test="not(string-length(normalize-space(adr:Adres/adr:Lokal))=0)">
                                              <span type="text">
                                                <xsl:text>/</xsl:text>
                                                <xsl:value-of select="adr:Adres/adr:Lokal"/>
                                              </span>
                                            </xsl:if>
                                            <br/>
                                            <xsl:if test="true()">
                                              <span type="text">
                                                <xsl:value-of select="adr:Adres/adr:KodPocztowy"/>
                                                <xsl:text> </xsl:text>
                                                <xsl:value-of select="adr:Adres/adr:Miejscowosc"/>
                                              </span>
                                            </xsl:if>
                                          </xsl:when>
    
                                          <!-- #### Ulica wpisana i poczta wpisana #### -->
                                          <xsl:when test="not(string-length(normalize-space(adr:Adres/adr:Ulica))=0) and not(string-length(normalize-space(adr:Adres/adr:Poczta))=0)">
                                            <xsl:if test="true()">
                                              <span type="text">
                                                <xsl:value-of select="adr:Adres/adr:Ulica"/>
                                                <xsl:text> </xsl:text>
                                                <xsl:value-of select="adr:Adres/adr:Budynek"/>
                                              </span>
                                            </xsl:if>
                                            <xsl:if test="not(string-length(normalize-space(adr:Adres/adr:Lokal))=0)">
                                              <span type="text">
                                                <xsl:text>/</xsl:text>
                                                <xsl:value-of select="adr:Adres/adr:Lokal"/>
                                              </span>
                                            </xsl:if>
                                            <br/>
                                            <xsl:if test="true()">
                                              <span type="text">
                                                <xsl:value-of select="adr:Adres/adr:KodPocztowy"/>
                                                <xsl:text>, </xsl:text>
                                                <xsl:value-of select="adr:Adres/adr:Miejscowosc"/>
                                                <br/><xsl:text>Poczta </xsl:text>
                                                <xsl:value-of select="adr:Adres/adr:Poczta"/>
                                              </span>
                                            </xsl:if>
                                          </xsl:when>
    
                                          <!-- #### Ulica pusta i poczta wpisana #### -->
                                          <xsl:when test="(string-length(normalize-space(adr:Adres/adr:Ulica))=0) and not(string-length(normalize-space(adr:Adres/adr:Poczta))=0)">
                                            <xsl:if test="true()">
                                              <span type="text">
                                                <xsl:value-of select="adr:Adres/adr:Miejscowosc"/>
                                                <xsl:text> </xsl:text>
                                                <xsl:value-of select="adr:Adres/adr:Budynek"/>
                                              </span>
                                            </xsl:if>
                                            <xsl:if test="not(string-length(normalize-space(adr:Adres/adr:Lokal))=0)">
                                              <span type="text">
                                                <xsl:text>/</xsl:text>
                                                <xsl:value-of select="adr:Adres/adr:Lokal"/>
                                              </span>
                                            </xsl:if>
                                            <br/>
                                            <xsl:if test="true()">
                                              <span type="text">
                                                <xsl:value-of select="adr:Adres/adr:KodPocztowy"/>
                                                <xsl:text> </xsl:text>
                                                <xsl:value-of select="adr:Adres/adr:Poczta"/>
                                              </span>
                                            </xsl:if>
                                          </xsl:when>
                                        </xsl:choose>
                                      </td>
                                    </tr>
    
                                    <tr>
                                      <td>
                                        <span>
                                          <xsl:if test="not(string-length(normalize-space(adr:Kontakt/adr:Telefon))=0)">
                                            <span type="text">
                                              <xsl:text>Telefon: </xsl:text>
                                              <xsl:value-of select="adr:Kontakt/adr:Telefon"/>
                                            </span>
                                          </xsl:if>
                                        </span>
                                      </td>
                                    </tr>
                                    <tr>
                                      <td>
                                        <span>
                                          <xsl:if test="not(string-length(normalize-space(adr:Kontakt/adr:Email))=0)">
                                            <span type="text">
                                              <xsl:text>Email: </xsl:text>
                                              <xsl:value-of select="adr:Kontakt/adr:Email"/>
                                            </span>
                                          </xsl:if>
                                        </span>
                                      </td>
                                    </tr>
                                    <tr>
                                      <td>
                                        <span>
                                          <xsl:if test="not(string-length(normalize-space(inst:IdInstytucji/inst:REGON))=0)">
                                            <span type="text">
                                              <xsl:text>REGON: </xsl:text>
                                              <xsl:value-of select="inst:IdInstytucji/inst:REGON"/>
                                            </span>
                                          </xsl:if>
                                        </span>
                                      </td>
                                    </tr>
                                    <tr>
                                      <td>
                                        <span>
                                          <xsl:if test="not(string-length(normalize-space(inst:IdInstytucji/inst:NIP))=0)">
                                            <span type="text">
                                              <xsl:text>NIP: </xsl:text>
                                              <xsl:value-of select="inst:IdInstytucji/inst:NIP"/>
                                            </span>
                                          </xsl:if>
                                        </span>
                                      </td>
                                    </tr>
                                    <tr>
                                      <td>
                                        <span>
                                          <xsl:if test="not(string-length(normalize-space(inst:IdInstytucji/inst:KRS))=0)">
                                            <span type="text">
                                              <xsl:text>KRS: </xsl:text>
                                              <xsl:value-of select="inst:IdInstytucji/inst:KRS"/>
                                            </span>
                                          </xsl:if>
                                        </span>
                                      </td>
                                    </tr>
                                  </tbody>
                                </table>
    
                                <!-- #### PRZEDSTAWICIEL INSTYTUCJI #### -->
                               
                                  <xsl:if test="../@reprezentowany = 'przez-przedstawiciela'">
                                    <xsl:for-each select="../../wnio:Przedstawiciel/wnio:DanePrzedstawiciela">
                                      <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>
                                            <tr>
                                              <td>
                                                <span>
                                                  <xsl:if test="not(string-length(normalize-space(wnio:Email))=0)">
                                                    <span type="text">
                                                      <xsl:text>Email: </xsl:text>
                                                      <xsl:value-of select="wnio:Email"/>
                                                    </span>
                                                  </xsl:if>
                                                </span>
                                              </td>
                                            </tr>
                                          </tbody>
                                        </table>
    
    
                                        <!-- #### ADRES DO KORESPONDENCJI PRZEDSTAWICIELA INSTYTUCJI #### -->
    
                                        <xsl:for-each select="../wnio:AdresKorespondencyjny">
                                          <xsl:if test="../@adresKorespondencyjny = 'inny'">
                                            <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:KodPocztowy"/>
                                                            <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:KodPocztowy"/>
                                                            <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:KodPocztowy"/>
                                                            <xsl:text>, </xsl:text>
                                                            <xsl:value-of select="wnio:Miejscowosc"/>
                                                            <br/><xsl:text>Poczta </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:KodPocztowy"/>
                                                            <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>
                               
    
                                <!-- #### PEŁNOMOCNIK INSTYTUCJI  ##### -->
    
                                  <xsl:if test="../@reprezentowany = 'przez-pełnomocnika'">
                                    <xsl:for-each select="../../wnio:Pełnomocnik/wnio:DanePelnomocnika">
                                      <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>
    										
    										<xsl:for-each select="wnio:Adres">
    	                                        <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:KodPocztowy"/>
    	                                                    <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:KodPocztowy"/>
    	                                                    <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:KodPocztowy"/>
    	                                                    <xsl:text>, </xsl:text>
    	                                                    <xsl:value-of select="wnio:Miejscowosc"/>
    	                                                    <br/><xsl:text>Poczta </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:KodPocztowy"/>
    	                                                    <xsl:text> </xsl:text>
    	                                                    <xsl:value-of select="wnio:Poczta"/>
    	                                                  </span>
    	                                                </xsl:if>
    	                                              </xsl:when>
    	                                            </xsl:choose>
    	                                          </td>
    	                                        </tr>
    										</xsl:for-each>
    										
                                            <tr>
                                              <td>
                                                <span>
                                                  <xsl:if test="not(string-length(normalize-space(wnio:Kontakt/wnio:Telefon))=0)">
                                                    <span type="text">
                                                      <xsl:text>Telefon: </xsl:text>
                                                      <xsl:value-of select="wnio:Kontakt/wnio:Telefon"/>
                                                    </span>
                                                  </xsl:if>
                                                </span>
                                              </td>
                                            </tr>
                                            <tr>
                                              <td>
                                                <span>
                                                  <xsl:if test="not(string-length(normalize-space(wnio:Kontakt/wnio:Email))=0)">
                                                    <span type="text">
                                                      <xsl:text>Email: </xsl:text>
                                                      <xsl:value-of select="wnio:Kontakt/wnio:Email"/>
                                                    </span>
                                                  </xsl:if>
                                                </span>
                                              </td>
                                            </tr>
                                            <tr>
                                              <td>
                                                <span>
                                                  <xsl:if test="not(string-length(normalize-space(wnio:IdOsoby/wnio:PESEL))=0)">
                                                    <span type="text">
                                                      <xsl:text>PESEL: </xsl:text>
                                                      <xsl:value-of select="wnio:IdOsoby/wnio:PESEL"/>
                                                    </span>
                                                  </xsl:if>
                                                </span>
                                              </td>
                                            </tr>
                                            <tr>
                                              <td>
                                                <span>
                                                  <xsl:if test="not(string-length(normalize-space(wnio:IdOsoby/wnio:NIP))=0)">
                                                    <span type="text">
                                                      <xsl:text>NIP: </xsl:text>
                                                      <xsl:value-of select="wnio:IdOsoby/wnio:NIP"/>
                                                    </span>
                                                  </xsl:if>
                                                </span>
                                              </td>
                                            </tr>
                                          </tbody>
                                        </table>
    
                                        <!-- #### ADRES DO KORESPONDENCJI PEŁNOMOCNIKA INSTYTUCJI #### -->
    
                                        <xsl:for-each select="../wnio:AdresKorespondencyjny">
                                          <xsl:if test="../@adresKorespondencyjny='inny'">
                                            <br/>Adres do korespondencji:<br/>
                                            <table border="0">
                                              <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:KodPocztowy"/>
                                                            <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:KodPocztowy"/>
                                                            <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:KodPocztowy"/>
                                                            <xsl:text>, </xsl:text>
                                                            <xsl:value-of select="wnio:Miejscowosc"/>
                                                            <br/><xsl:text>Poczta </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:KodPocztowy"/>
                                                            <br/><xsl:text>Poczta </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: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:DaneDokumentu/wnio:Adresat/wnio:Urzad"/>
                              <br/>
                              <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Adresat/wnio:Wydzial"/>
                              <br/>
                              <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Adresat/wnio:Osrodek"/>
                            </span>
                          </xsl:if>
                        </strong>
                        <br/>
                        <xsl:if test="true()">
                          <span type="text">
                            <xsl:value-of select="wnio:TrescDokumentu/wnio:DaneDokumentu/wnio:Adresat/wnio:AdresUrzedu"/>
                          </span>
                        </xsl:if>
                      </p>
                      <br/>
                    </td>
                  </tr>
                  <tr align="center">
                    <td colspan="2">
                      <br/>
                      <p>
                        <b>WNIOSEK O WYDANIE ZAŚWIADCZENIA O PRZEZNACZENIU TERENU W OBOWIĄZUJĄCYCH MIEJSCOWYCH PLANACH ZAGOSPODAROWANIA PRZESTRZENNEGO</b>
                      </p>
                      <br/>
                      <br/>
                    </td>
                  </tr>
    
                  <!-- ################### POCZĄTEK FORMULARZA ################### -->
    
                  <tr>
                    <td colspan="2">
                      <p>
                        <strong>
                          Proszę o wydanie następujących materiałów:
                        </strong>
                      </p>
    
    				  <ul style="margin-left:0px;">
    
                        
    	                    
    	                    <xsl:if test="wnio:TrescDokumentu/wnio:WnioskowaneDokumenty/wnio:Zaswiadczenie">
                          <li><strong>Zaświadczenie z planu zagospodarowania przestrzennego wybranych materiałów dla wskazanych działek:</strong></li>
                          <div style="margin:20px;  margin-right:0px;">
                            <strong>dla działki(-ek):</strong>
                            <br/>
                                                      
                                <table border="0" cellspacing="0" cellpadding="0" style="width: 100%; height: 10px; border: 1pt solid #000000">
                                  <tr>
                                    <td style="text-align: center; background-color: #c0c0c0; width: 6%; height: 25px; border: 1pt solid #000000">
                                      <b>L.p.</b>
                                    </td>
                                    <td style="text-align: center; background-color: #c0c0c0; width: 10%; height: 25px; border: 1pt solid #000000">
                                      <b>Obręb</b>
                                    </td>
                                    <td style="text-align: center; background-color: #c0c0c0; width: 10%; height: 25px; border: 1pt solid #000000">
                                      <b>Działka</b>
                                    </td>
                                    <td style="text-align: center; background-color: #c0c0c0; width: 10%; height: 25px; border: 1pt solid #000000">
                                      <b>Karta Mapy</b>
                                    </td>
                                    <td style="text-align: center; background-color: #c0c0c0; width: 22%; height: 25px; border: 1pt solid #000000">
                                      <b>Miejscowość</b>
                                    </td>
                                    <td style="text-align: center; background-color: #c0c0c0; width: 22%; height: 25px; border: 1pt solid #000000">
                                      <b>Ulica</b>
                                    </td>
                                    <td style="text-align: center; background-color: #c0c0c0; width: 10%; height: 25px; border: 1pt solid #000000">
                                      <b>Nr domu</b>
                                    </td>
                                    <td style="text-align: center; background-color: #c0c0c0; width: 10%; height: 25px; border: 1pt solid #000000">
                                      <b>Nr lokalu</b>
                                    </td>
                                  </tr>
                            <xsl:for-each select="wnio:TrescDokumentu/wnio:WnioskowaneDokumenty/wnio:Zaswiadczenie/wnio:Nieruchomosc">
                                  <tr>
                                  	<td style="text-align: center; border: 1pt solid #000000">
                                        <xsl:value-of select="position()"/>
                                    </td>
                                  <xsl:for-each select="wnio:OznaczenieNieruchomosci">
                                    <xsl:if test="true()">
                                      <td style="text-align: center; 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; 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; border: 1pt solid #000000">
                                        <xsl:if test="true()">
                                          <span type="text">
                                            <xsl:value-of select="wnio:KartaMapy"/>
                                          </span>
                                        </xsl:if>
                                      </td>
                                    </xsl:if>
                                  </xsl:for-each>
                                  <xsl:for-each select="wnio:AdresNieruchomosci">
                                    <xsl:if test="true()">
                                      <td style="text-align: center; border: 1pt solid #000000">
                                        <xsl:if test="true()">
                                          <span type="text">
                                            <xsl:value-of select="wnio:Miejscowosc"/>
                                          </span>
                                        </xsl:if>
                                      </td>
                                      <td style="text-align: center; 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; border: 1pt solid #000000">
                                        <xsl:if test="true()">
                                          <span type="text">
                                            <xsl:value-of select="wnio:Budynek"/>
                                          </span>
                                        </xsl:if>
                                      </td>
                                      <td style="text-align: center; border: 1pt solid #000000">
                                        <xsl:if test="true()">
                                          <span type="text">
                                            <xsl:value-of select="wnio:Lokal"/>
                                          </span>
                                        </xsl:if>
                                      </td>
                                    </xsl:if>
                                  </xsl:for-each>
                                </tr>
                                </xsl:for-each>
                                </table>
    	                      </div>
    	                    </xsl:if>
    					  
    				  </ul>
    				
    				<br/>
    				<p>
                        <strong>Materiały
                        <span>
                          <xsl:if test="true()">
                            <span>
                              <xsl:choose>
                                <xsl:when test="contains(concat(concat(' ', normalize-space(wnio:TrescDokumentu/wnio:SposobOdbioru)),' '), ' Osobiście ' )">
                                  <span>
                                    odbiorę osobiście w siedzibie urzędu.
                                  </span>
                                </xsl:when>
                                <xsl:when test="contains(concat(concat(' ', normalize-space(wnio:TrescDokumentu/wnio:SposobOdbioru)),' '), ' Poczta ' )">
                                  <span>
                                    proszę przesłać pocztą tradycyjną.
                                  </span>
                                </xsl:when>
                                <xsl:when test="contains(concat(concat(' ', normalize-space(wnio:TrescDokumentu/wnio:SposobOdbioru)),' '), ' Elektronicznie ' )">
                                  <span>
                                    proszę przesłać drogą elektroniczną poprzez skrzynkę kontaktową ePUAP.
                                  </span>
                                </xsl:when>
                              </xsl:choose>
                            </span>
                          </xsl:if>
                        </span></strong>
                      </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="1" cellpadding="3" style="height: 10px; border: 1pt solid #000000; width: 100%;">
                          <tr>
                            <td style="text-align: center; background-color: #c0c0c0; width: 5%; height: 25px; border: 1pt solid #000000">
                              <b>L.p.</b>
                            </td>
                            <td style="text-align: center; background-color: #c0c0c0; width: 5%; height: 25px; border: 1pt solid #000000">
                              <b>Załącznik aktualny</b>
                            </td>
                            <td style="text-align: center; background-color: #c0c0c0; width: 30%; height: 25px; border: 1pt solid #000000">
                              <b>Typ</b>
                            </td>
                            <td style="text-align: center; background-color: #c0c0c0; width: 30%; height: 25px; border: 1pt solid #000000">
                              <b>Opis</b>
                            </td>
                            <td style="text-align: center; background-color: #c0c0c0; width: 30%; 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(@aktualnoscZalacznika)),' '),  ' tak ' )">
                                          <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:if test="true()">
                                    <span type="text">
                                      <xsl:value-of select="wnio:TypZalacznika"/>
                                    </span><br/>
                               	  </xsl:if>
                                </td>
                               
                                <td style="text-align: left; border: 1pt solid #000000">
                                  <xsl:if test="true()">
                                    <span type="text">
                                      <xsl:value-of select="wnio:OpisZalacznika"/>
                                    </span>
                                  </xsl:if>
                                </td>
    							
                                <td style="text-align: left; width: 200px; 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:Zalaczniki">
                        <xsl:if test="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(@zgodneZOryginalami)),' '),  ' tak ' )">
                              <span>Tak</span>
                            </xsl:when>
                            <xsl:otherwise>
                              <span>Nie</span>
                            </xsl:otherwise>
                          </xsl:choose>
                          <br/>
                        </xsl:if>
                      </xsl:for-each>
                      <br/>
                      
                      <xsl:choose>
                        <xsl:when test="contains(concat(concat(' ', normalize-space(wnio:TrescDokumentu/wnio:ZgodaNaKorespondencje)),' '),  ' tak ' )">
                          <span>Korespondencję w tej sprawie proszę kierować do mnie za pomocą środków komunikacji elektronicznej zgodnie z art. 39' ustawy z dnia 14 czerwca 1960 r. Kodeks postępowania administracyjnego (Dz. U. z 2000 r. Nr 98, poz. 1071, z późn. zm.).</span>
                        </xsl:when>
                        <xsl:otherwise>
                          <span>Nie wyrażam zgody na kierowanie do mnie korespondencji za pomocą środków komunikacji elektronicznej.</span>
                        </xsl:otherwise>
                      </xsl:choose>
                    </td>
                  </tr>
                  <tr>
                    <td colspan="2">
                      <br/>
                      <br/>
                      <xsl:for-each select="wnio:TrescDokumentu/wnio:Uwagi/wnio:Uwaga">
                      	<p>
                        	<strong>
                        		<xsl:value-of select="."/>
                        	</strong>
                      	</p>
                      </xsl:for-each>
                    </td>
                  </tr>
                </tbody>
              </table>
            </body>
          </html>
        </xsl:for-each>
      </xsl:template>
    </xsl:stylesheet>