11246

ID11246
Data2022-01-14
Symbol2022/01/14/11246
InstytucjaUrząd Miasta Łodzi
NazwaDeklaracja DO-W o wysokości opłaty za gospodarowanie odpadami komunalnymi dla właścicieli nieruchomości zabudowanych budynkami wielolokalowymi
Czy Aktualny1

Ustawy (1)

  • URI://Dziennik_Ustaw/2021/888/6n/1/2/a
  • Ustawa z dnia 13 września 1996 r. o utrzymaniu czystości i porządku w gminach

    Pliki

    Styl

    <?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:do="http://crd.gov.pl/wzor/2022/01/14/11246/" xmlns:str="http://crd.gov.pl/xml/schematy/struktura/2009/11/16/" xmlns:ns="http://crd.gov.pl/xml/schematy/adres/2009/11/09/" version="1.1">
    
      <xsl:output version="4.0" method="html" indent="yes" encoding="UTF-8" doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" doctype-system="http://www.w3.org/TR/html4/loose.dtd"/>
    
      <!-- helper templates -->
      <xsl:template name="checkbox">
        <xsl:param name="value"/>
        <div class="checkbox">
          <xsl:if test="$value">
            <span>X</span>
          </xsl:if>
        </div>
      </xsl:template>
    
      <xsl:template name="checkboxCompare">
        <xsl:param name="value"/>
        <xsl:param name="valueStr"/>
        <div class="checkbox">
          <xsl:if test="$value = $valueStr">
            <span>X</span>
          </xsl:if>
        </div>
      </xsl:template>
    
      <xsl:template name="checkboxEmpty">
        <div class="checkbox"/>
      </xsl:template>
    
      <xsl:template name="checkboxChecked">
        <div class="checkbox"><span>X</span></div>
      </xsl:template>
    
      <xsl:template name="fieldInline">
        <xsl:param name="value"/>
        <xsl:choose>
          <xsl:when test="$value and (string-length($value)&gt;0)">
            <xsl:value-of select="$value"/>        
          </xsl:when>
          <xsl:otherwise>
            
          </xsl:otherwise>
        </xsl:choose>
      </xsl:template>
    
      <xsl:template name="fieldInlineAndBackslash">
        <xsl:param name="value"/>
        <xsl:choose>
          <xsl:when test="$value and (string-length($value)&gt;0)">
            / <xsl:value-of select="$value"/>        
          </xsl:when>
          <xsl:otherwise>
            
          </xsl:otherwise>
        </xsl:choose>
      </xsl:template>
    
      <xsl:template name="field">
        <xsl:param name="value"/>
        <xsl:choose>
          <xsl:when test="$value and (string-length($value)&gt;0)">
            <div class="field">
              <xsl:value-of select="$value"/>
            </div>
          </xsl:when>
          <xsl:otherwise>
            <div class="field h-14"/>
          </xsl:otherwise>
        </xsl:choose>
      </xsl:template>
    
      <xsl:template name="fieldAmount">
        <xsl:param name="value"/>
        <xsl:choose>
          <xsl:when test="$value and (string-length($value)&gt;0)">
            <div class="field">
              <xsl:value-of select="format-number(number($value), '##0,00', 'Polish')"/>
            </div>
          </xsl:when>
          <xsl:otherwise>
            <div class="field h-14"/>
          </xsl:otherwise>
        </xsl:choose>
      </xsl:template>
    
      <xsl:template name="cellWaste">
        <xsl:param name="lp"/>
        <xsl:param name="value"/>
        <xsl:param name="class"/>
        <td class="{$class}">
          <xsl:choose>
            <xsl:when test="$value and (string-length($value)&gt;0)">
              <div class="float-left title-small w-20"><xsl:value-of select="$lp"/>.</div>
              <div class="float-left t-center w-67"><xsl:value-of select="$value"/></div>
              <div class="clear"/>
            </xsl:when>
            <xsl:otherwise>
              <div class="title-small w-20"><xsl:value-of select="$lp"/>.</div>
              <div class="float-left t-center w-67 gray-bg"><xsl:value-of select="$value"/></div>
              
              <!--<div class="clear gray-bg"></div>-->
            </xsl:otherwise>
          </xsl:choose>
        </td>
      </xsl:template>
    
      <xsl:template name="cellWasteCompare">
        <xsl:param name="lp"/>
        <xsl:param name="value"/>
        <xsl:param name="valueStr"/>
        <xsl:param name="class"/>
        <td class="{$class}">
          <xsl:choose>
            <xsl:when test="$value/do:Rodzaj = $valueStr and $value/do:Pojemnosc != ''">
              <div class="float-left title-small w-20"><xsl:value-of select="$lp"/>.</div>
              <div class="float-left t-center w-67"><xsl:value-of select="$value/do:Pojemnosc"/></div>
              <div class="clear"/>
            </xsl:when>
            <xsl:otherwise>
              <div class="title-small w-20"><xsl:value-of select="$lp"/>.</div>
            </xsl:otherwise>
          </xsl:choose>
        </td>
      </xsl:template>
    
      <xsl:template name="cellWasteAmount">
        <xsl:param name="lp"/>
        <xsl:param name="value"/>
        <xsl:param name="class"/>
        <td class="{$class}">
          <xsl:choose>
            <xsl:when test="$value and (string-length($value)&gt;0)">
              <div class="float-left title-small w-20"><xsl:value-of select="$lp"/>.</div>
              <div class="float-left t-right w-74"><xsl:value-of select="format-number(number($value), '##0,00', 'Polish')"/></div>
              <div class="clear"/>
            </xsl:when>
            <xsl:otherwise>
              <div class="title-small w-20"><xsl:value-of select="$lp"/>.</div>
            </xsl:otherwise>
          </xsl:choose>
        </td>
      </xsl:template>
    
      <xsl:template name="recursiveLastString">
        <xsl:param name="value"/>
        <xsl:variable name="valueAfter" select="substring-after($value, ' ')"/>
        <xsl:choose>
          <xsl:when test="contains($valueAfter, ' ')">
            <xsl:call-template name="recursiveLastString">
              <xsl:with-param name="value" select="$valueAfter"/>
            </xsl:call-template>
          </xsl:when>
          <xsl:otherwise>
            <xsl:value-of select="$valueAfter"/>
          </xsl:otherwise>
        </xsl:choose>
      </xsl:template>
    
      <!-- main template -->
      <xsl:variable name="XML" select="/"/>
      <xsl:decimal-format name="Polish" decimal-separator="," grouping-separator="."/>
      <xsl:template match="/">
        <html>
          <head>
            <title>
              <xsl:text>DO-W - DEKLARACJA O WYSOKOŚCI OPŁATY ZA GOSPODAROWANIE ODPADAMI KOMUNALNYMI</xsl:text>
            </title>
    
            <style type="text/css">
              body { font-family: Arial, Helvetica, sans-serif ; font-size: 8pt; }
              .f-16 { font-size: 16pt; }
              .f-14 { font-size: 14pt; }
              .f-12 { font-size: 12pt; }
              .f-11 { font-size: 11pt; }
              .f-10 { font-size: 10pt; }
              .f-9 { font-size: 9pt; }
              .f-8-5 { font-size: 8.5pt; }
              .f-8 { font-size: 8pt; }
              .f-7 { font-size: 7pt; }
              .f-6 { font-size: 6pt; }
              .f-normal { font-weight: normal; }
              .f-bold { font-weight: bold; }
              .f-extra-bold { font-weight: 800; }
              .t-center { text-align: center; }
              .t-right { text-align: right; }
              .t-nowrap { white-space: nowrap; }
              .va-top { vertical-align: top; }
              .va-super { vertical-align: super; }
              .va-middle { vertical-align: middle; }
    
              table { width: 100%; border-collapse: collapse; border-spacing: 0; }
              table td { vertical-align: top; }
              .td-border td { border: black solid 1px; }
    
              .border { border: black solid 1px; }
              .lr-border { border-left: black solid 1px; border-right: black solid 1px; }
              .border-top { border-top: black solid 1px; }
              .border-top-bold { border-top: black solid 2px; }
              .border-bottom-dashed { border-bottom: black dashed 1px !important; }
              .no-border-top { border-top: none !important; }
              .no-border-bottom { border-bottom: none !important; }
              .no-border-left { border-left: none !important; }
              .no-border-right { border-right: none !important; }
              .no-border-top-bottom { border-top: none !important; border-bottom: none !important; }
              .line-bottom { border-bottom: black solid 2px; width: 200px; height: 14px; }
              .checkbox { border: solid 1px black; width:16px; height: 16px; text-align: center;
              font-size: 16px; font-weight: bold; }
    
              .title { font-size: 12pt; background-color: #f1f1f1; border-bottom: none !important; padding: 3px 10px 5px; }
              .title-small { font-size: 7pt; font-weight: bold; margin: 0 3px 8px; }
              .title-small-empty { height: 18px; }
              .field { margin: 0 0 5px 13px; }
              .amount { text-align: right; padding-right: 20px; }
              .star { font-size: 11pt; font-weight: bold; }
              .col-gray { width: 12px; background-color: #f1f1f1; border-top: none !important; }
              .col-gray-2 { width: 28px; background-color: #f1f1f1; }
              .gray-bg { background-color: #f1f1f1; }
              .dark-gray-bg { background-color: #d4d4d4; }
    
              .h-14 { height: 14px; }
              .h-20 { height: 20px; }
              .h-38 { height: 38px; }
              .h-39 { height: 39px; }
              .h-40 { height: 40px; }
              .h-64 { height: 64px; }
              .h-76 { height: 76px; }
              .h-126 { height: 126px; }
              .w-20 { width: 20px; }
              .w-32 { width: 32px; }
              .w-67 { width: 67px; }
              .w-47 { width: 47px; }
              .w-74 { width: 74px; }
              .w-90 { width: 90px; }
              .w-109 { width: 109px; }
              .w-120 { width: 120px; }
              .w-135 { width: 135px; }
              .w-180 { width: 180px; }
              .w-200 { width: 200px; }
              .w-45p { width: 45% }
              .w-90p { width: 90% }
    
              .mt-24 { margin-top: 24px; }
              .ml-div div:nth-child(2) { margin-left: 8px; }
              .mt-div div:nth-child(2) { margin-top: 14px; }
              .mb-3 { margin-bottom: 3px; }
              .ml-4 { margin-left: 4px; }
              .ml-16 { margin-left: 16px; }
              .mr-5 { margin-right: 5px; }
              .p-8 { padding: 8px; }
              .pt-3 { padding-top: 3px; }
              .pt-5 { padding-top: 5px; }
              .pt-6 { padding-top: 6px; }
              .pt-10 { padding-top: 10px; }
              .pt-13 { padding-top: 13px; }
              .pt-18 { padding-top: 18px; }
              .pb-3 { padding-bottom: 3px; }
              .pb-5 { padding-bottom: 5px; }
              .pb-10 { padding-bottom: 10px; }
              .pr-3 { padding-right: 3px; }
              .pr-5 { padding-right: 5px; }
              .pl-3 { padding-left: 3px; }
              .pl-10 { padding-left: 10px; }
              .pl-15 { padding-left: 15px; }
              .pl-24 { padding-left: 24px; }
              .pad-1 { padding: 10px 3px; text-align: justify; text-justify: inter-word; }
              .pad-2 { padding: 10px 3px; text-align: justify; text-justify: inter-word; }
    
              ul.nostyle { display: table; margin: 10px; list-style-type: none; }
              ul.dashed { display: table; margin: 0; list-style-type: none; }
              ul.dashed &gt; li { display: table-row; }
              ul.dashed &gt; li:before { display: table-cell; width: 6px; content: "- "; }
              ul.dashed-2 { margin: 0 0 0 8px; }
              ul.dashed-2 &gt; li:before { width: 20px; content: "\2013 "; }
              ul.dot { margin: 0 0 0 20px; padding: 0; }
              ul.dot li { margin-bottom: 5px; line-height: 18px; }
    		      ul.li-mb li { margin-bottom: 10px;}
              ol.decimal { list-style-type: decimal; margin: 0; padding-left: 14px; }
              ol.decimal-2 { padding-left: 24px; }
              ol.li-mb li { margin-bottom: 10px;}
              table.list td { border: none; }
              table.list td:first-child { width: 16px; padding-left: 5px; }
    
              .float-left { float: left; }
              .clear { clear: both; }
            </style>
          </head>
          <body>
            <xsl:variable name="Dokument" select="$XML/do:Dokument/do:TrescDokumentu"/>
            <table class="">
              <tr class="t-center va-top f-extra-bold">
                <td class="w-109 f-16">
                  DO-W
                </td>
                <td class="f-14">
                  DEKLARACJA O WYSOKOŚCI OPŁATY <span class="t-nowrap">ZA GOSPODAROWANIE</span> ODPADAMI KOMUNALNYMI
                </td>
              </tr>
            </table>
    
            <table class="border gray-bg">
              <tr>
                <td class="w-109 pt-3 pl-10">Podstawa prawna:</td>
                <td class="pt-3 pb-3">Ustawa z dnia 13 września 1996 r. o utrzymaniu czystości i porządku w gminach, zwana dalej ucpg.</td>
              </tr>
              <tr>
                <td class="w-109 pl-10 pt-10">Składający:</td>
                <td class="pb-3 pt-6">
                  Właściciele nieruchomości (w rozumieniu art. 2 ust. 1 pkt 4 ucpg)<span class="va-super">1</span> zabudowanych budynkami wielolokalowymi
                  <ul class="dashed">
                    <li>na których zamieszkują mieszkańcy lub</li>
                    <li>które w części stanowią nieruchomość, na której zamieszkują mieszkańcy, a w części nieruchomość, na której nie zamieszkują mieszkańcy, a powstają odpady komunalne
                    </li>
                  </ul>
                  położonych na terenie gminy Miasto Łódź.
                </td>
              </tr>
              <tr>
                <td class="w-109 pl-10 pt-3">Termin składania:</td>
                <td class="pb-5 pt-3">
                  <ul class="dashed">
                    <li>w terminie 14 dni od dnia zamieszkania pierwszego mieszkańca na danej nieruchomości (pierwsza deklaracja);</li>
                    <li>
                      w terminie do 10 dnia miesiąca następującego po miesiącu, w którym nastąpiła zmiana danych będących
                      podstawą ustalenia wysokości należnej opłaty za gospodarowanie odpadami komunalnymi lub określonej
                      w deklaracji ilości odpadów komunalnych powstających na danej nieruchomości (nowa deklaracja).
                    </li>
                  </ul>
                </td>
              </tr>
            </table>
    
            <table class="gray-bg td-border">
              <tr>
                <td class="f-bold f-7 pt-3 pb-3 pl-10 no-border-top">
                  FORMULARZ MA ZASTOSOWANIE DO ZDARZEŃ ZAISTNIAŁYCH OD DNIA 1. STYCZNIA 2022
                </td>
              </tr>
            </table>
    
            <!-- section: CelDeklaracji -->
            <xsl:variable name="CelDeklaracji" select="$Dokument/do:CelDeklaracji"/>
            <table class="border-top-bold td-border">
              <tr>
                <td colspan="3" class="title f-bold">
                  A. MIEJSCE I CEL SKŁADANIA DEKLARACJI
                </td>
              </tr>
              <tr>
                <td class="col-gray" rowspan="3"/>
                <td colspan="2">
                  <div class="title-small">1. Miejsce składania deklaracji - nazwa i adres siedziby właściwego organu</div>
                  <div class="f-bold f-9 t-center mb-3">
                    PREZYDENT MIASTA ŁODZI<br/>
                    UL. PIOTRKOWSKA 104, 90-926 ŁÓDŹ
                  </div>
                </td>
              </tr>
              <tr>
                <td colspan="2" class="pb-10">
                  <div class="title-small">2. Cel złożenia formularza</div>
                  <div class="float-left field mr-5">
                    <xsl:call-template name="checkboxCompare">
                      <xsl:with-param name="value" select="$CelDeklaracji/do:Cel"/>
                      <xsl:with-param name="valueStr" select="'PIERWSZA'"/>
                    </xsl:call-template>
                  </div>
                  <div class="float-left">
                    PIERWSZA DEKLARACJA<span class="va-super">2</span>
                  </div>
                  <div class="float-left field mr-5">
                    <xsl:call-template name="checkboxCompare">
                      <xsl:with-param name="value" select="$CelDeklaracji/do:Cel"/>
                      <xsl:with-param name="valueStr" select="'NOWA'"/>
                    </xsl:call-template>
                  </div>
                  <div class="float-left">
                    NOWA DEKLARACJA<span class="va-super">3</span>
                  </div>
                  <div class="float-left field mr-5">
                    <xsl:call-template name="checkboxCompare">
                      <xsl:with-param name="value" select="$CelDeklaracji/do:Cel"/>
                      <xsl:with-param name="valueStr" select="'KOREKTA'"/>
                    </xsl:call-template>
                  </div>
                  <div class="float-left">
                    KOREKTA DEKLARACJI<span class="va-super">4</span>
                  </div>
                  <div class="float-left field mr-5">
                    <xsl:call-template name="checkboxCompare">
                      <xsl:with-param name="value" select="$CelDeklaracji/do:Cel"/>
                      <xsl:with-param name="valueStr" select="'USTANIE'"/>
                    </xsl:call-template>
                  </div>
                  <div class="float-left">
                    USTANIE OBOWIĄZKU<span class="va-super">3</span>
                  </div>
                  <div class="clear"/>
                </td>
              </tr>
              <tr>
                <td>
                  <div class="title-small">3. Data, od której obowiązuje deklaracja (dzień-miesiąc-rok)</div>
                  <div class="field">
                    <span class="f-bold">OD: </span>
                    <xsl:if test="$CelDeklaracji/do:Cel != 'KOREKTA'">
                      <xsl:value-of select="format-number(number($CelDeklaracji/do:DataObowiazywania/do:Dzien), '00', 'Polish')"/>
                      <xsl:text>-</xsl:text>
                      <xsl:value-of select="format-number(number($CelDeklaracji/do:DataObowiazywania/do:Miesiac), '00', 'Polish')"/>
                      <xsl:text>-</xsl:text>
                      <xsl:value-of select="format-number(number($CelDeklaracji/do:DataObowiazywania/do:Rok), '0000', 'Polish')"/>
                    </xsl:if>
                  </div>
                </td>
                <td>
                  <div class="title-small">4. Okres, którego dotyczy korekta deklaracji (miesiąc-rok)</div>
                  <div class="float-left field w-45p">
                    <span class="f-bold">OD: </span>
                    <xsl:if test="$CelDeklaracji/do:Cel = 'KOREKTA'">
                      <xsl:value-of select="format-number(number($CelDeklaracji/do:Okres/do:PoczatekOkresu/do:Miesiac), '00', 'Polish')"/>
                      <xsl:text>-</xsl:text>
                      <xsl:value-of select="format-number(number($CelDeklaracji/do:Okres/do:PoczatekOkresu/do:Rok), '0000', 'Polish')"/>
                    </xsl:if>
                  </div>
                  <div class="float-left field w-45p">
                    <span class="f-bold">DO: </span>
                    <xsl:if test="$CelDeklaracji/do:Cel = 'KOREKTA'">
                      <xsl:value-of select="format-number(number($CelDeklaracji/do:Okres/do:KoniecOkresu/do:Miesiac), '00', 'Polish')"/>
                      <xsl:text>-</xsl:text>
                      <xsl:value-of select="format-number(number($CelDeklaracji/do:Okres/do:KoniecOkresu/do:Rok), '0000', 'Polish')"/>
                    </xsl:if>
                  </div>
                  <div class="clear"/>
                </td>
              </tr>
            </table>
            <!-- end section: CelDeklaracji -->
    
            <!-- section: Wlasciciel -->
            <xsl:variable name="Wlasciciel" select="$Dokument/do:Wlasciciel"/>
            <table class="border-top-bold td-border">
              <tr>
                <td colspan="2" class="title f-bold">
                  B. PODMIOT OBOWIĄZANY DO ZŁOŻENIA DEKLARACJI (WŁAŚCICIEL WG UCPG)
                </td>
              </tr>
              <tr>
                <td class="col-gray"/>
                <td class="pb-10">
                  <div class="title-small">5. Rodzaj podmiotu</div>
                  <div class="float-left field mr-5">
                    <xsl:call-template name="checkboxCompare">
                      <xsl:with-param name="value" select="$Wlasciciel/do:Wlasnosc/do:RodzajWlasnosci"/>
                      <xsl:with-param name="valueStr" select="'WLASCICIEL'"/>
                    </xsl:call-template>
                  </div>
                  <div class="float-left pt-5">
                    WŁAŚCICIEL
                  </div>
                  <div class="float-left field mr-5">
                    <xsl:call-template name="checkboxCompare">
                      <xsl:with-param name="value" select="$Wlasciciel/do:Wlasnosc/do:RodzajWlasnosci"/>
                      <xsl:with-param name="valueStr" select="'WSPOLWLASCICIEL'"/>
                    </xsl:call-template>
                  </div>
                  <div class="float-left pt-5">
                    WSPÓŁWŁAŚCICIEL
                  </div>
                  <div class="float-left field mr-5">
                    <xsl:call-template name="checkboxCompare">
                      <xsl:with-param name="value" select="$Wlasciciel/do:Wlasnosc/do:RodzajWlasnosci"/>
                      <xsl:with-param name="valueStr" select="'UZYTKOWNIK_WIECZYSTY'"/>
                    </xsl:call-template>
                  </div>
                  <div class="float-left pt-5">
                    UŻYTKOWNIK<br/>WIECZYSTY
                  </div>
                  <div class="float-left field mr-5">
                    <xsl:call-template name="checkboxCompare">
                      <xsl:with-param name="value" select="$Wlasciciel/do:Wlasnosc/do:RodzajWlasnosci"/>
                      <xsl:with-param name="valueStr" select="'INNY_PODMIOT'"/>
                    </xsl:call-template>
                  </div>
                  <div class="float-left pt-5">
                    INNY (JAKI?)
                  </div>
                  <div class="float-left ml-4 pt-5 line-bottom">
                    <xsl:value-of select="$Wlasciciel/do:Wlasnosc/do:Inny"/>
                  </div>
                  <div class="clear"/>
                </td>
              </tr>
            </table>
    
            <table class="border-top-bold lr-border">
              <tr>
                <td class="title">
                  <div class="f-bold">C. DANE WŁAŚCICIELA NIERUCHOMOŚCI (W ROZUMIENIU UCPG)</div>
                  <div class="f-8 pl-24">
                    <span class="star">*</span> - Dotyczy właściciela nieruchomości będącego osobą fizyczną <span class="star pl-15">**</span> - Dotyczy właściciela nieruchomości niebędącego osobą fizyczną
                  </div>
                </td>
              </tr>
            </table>
    
            <table class="border-top td-border">
              <tr>
                <td colspan="3" class="title">
                  C.1. DANE IDENTYFIKACYJNE
                </td>
              </tr>
              <tr>
                <td class="col-gray" rowspan="3"/>
                <td>
                  <div class="title-small">6. Nazwisko<span class="star">*</span> / Nazwa pełna<span class="star">**</span></div>
                  <xsl:call-template name="field">
                    <xsl:with-param name="value" select="$Wlasciciel/do:Nazwisko | $Wlasciciel/do:NazwaPelna "/>
                  </xsl:call-template>
                </td>
                <td>
                  <div class="title-small">7. Pierwsze imię<span class="star">*</span> / Nazwa skrócona<span class="star">**</span></div>
                  <xsl:call-template name="field">
                    <xsl:with-param name="value" select="$Wlasciciel/do:PierwszeImie | $Wlasciciel/do:NazwaSkrocona "/>
                  </xsl:call-template>
                </td>
              </tr>
              <tr>
                <td>
                  <div class="title-small">8. Identyfikator PESEL<span class="star">*</span></div>
                  <xsl:call-template name="field">
                    <xsl:with-param name="value" select="$Wlasciciel/do:PESEL"/>
                  </xsl:call-template>
                </td>
                <td>
                  <div class="title-small">9. Identyfikator NIP<span class="star">**</span></div>
                  <xsl:call-template name="field">
                    <xsl:with-param name="value" select="$Wlasciciel/do:NIP"/>
                  </xsl:call-template>
                </td>
              </tr>
              <tr>
                <td>
                  <div class="title-small">10. Data urodzenia<span class="star">*</span><span class="f-6"> (gdy identyfikator PESEL nie został nadany)</span></div>
                  <xsl:if test="$Wlasciciel/do:DataUrodzenia/do:Dzien != ''">
                    <div class="field">
                      <xsl:value-of select="format-number(number($Wlasciciel/do:DataUrodzenia/do:Dzien), '00', 'Polish')"/>
                      <xsl:text>-</xsl:text>
                      <xsl:value-of select="format-number(number($Wlasciciel/do:DataUrodzenia/do:Miesiac), '00', 'Polish')"/>
                      <xsl:text>-</xsl:text>
                      <xsl:value-of select="format-number(number($Wlasciciel/do:DataUrodzenia/do:Rok), '0000', 'Polish')"/>
                    </div>
                  </xsl:if>
                </td>
                <td>
                  <div class="title-small">11. Identyfikator REGON<span class="star">**</span></div>
                  <xsl:call-template name="field">
                    <xsl:with-param name="value" select="$Wlasciciel/do:REGON"/>
                  </xsl:call-template>
                </td>
              </tr>
            </table>
    
            <!-- section: Wlasciciel/Adres -->
            <xsl:variable name="Adres" select="$Wlasciciel/do:Adres"/>
            <table class="border-top td-border">
              <tr>
                <td colspan="5" class="title">
                  C.2. ADRES MIEJSCA ZAMIESZKANIA<span class="star">*</span> / ADRES SIEDZIBY<span class="star">**</span>
                </td>
              </tr>
              <tr>
                <td class="col-gray" rowspan="3"/>
                <td>
                  <div class="title-small">12. Kraj</div>
                  <xsl:choose>
                    <xsl:when test="$Adres/ns:Kraj = 'PL'">
                      <div class="field">Polska</div>
                    </xsl:when>
                    <xsl:otherwise>
                      <xsl:call-template name="field">
                        <xsl:with-param name="value" select="$Adres/ns:Kraj"/>
                      </xsl:call-template>
                    </xsl:otherwise>
                  </xsl:choose>
                </td>
                <td>
                  <div class="title-small">13. Województwo</div>
                  <xsl:call-template name="field">
                    <xsl:with-param name="value" select="$Adres/ns:Wojewodztwo"/>
                  </xsl:call-template>
                </td>
                <td colspan="2">
                  <div class="title-small">14. Powiat</div>
                  <xsl:call-template name="field">
                    <xsl:with-param name="value" select="$Adres/ns:Powiat"/>
                  </xsl:call-template>
                </td>
              </tr>
              <tr>
                <td>
                  <div class="title-small">15. Gmina</div>
                  <xsl:call-template name="field">
                    <xsl:with-param name="value" select="$Adres/ns:Gmina"/>
                  </xsl:call-template>
                </td>
                <td colspan="2">
                  <div class="title-small">16. Miejscowość</div>
                  <xsl:call-template name="field">
                    <xsl:with-param name="value" select="$Adres/ns:Miejscowosc"/>
                  </xsl:call-template>
                </td>
                <td>
                  <div class="title-small">17. Kod pocztowy</div>
                  <xsl:call-template name="field">
                    <xsl:with-param name="value" select="$Adres/ns:KodPocztowy"/>
                  </xsl:call-template>
                </td>
              </tr>
              <tr>
                <td colspan="2">
                  <div class="title-small">18. Ulica</div>
                  <xsl:call-template name="field">
                    <xsl:with-param name="value" select="$Adres/ns:Ulica"/>
                  </xsl:call-template>
                </td>
                <td>
                  <div class="title-small">19. Numer domu</div>
                  <xsl:call-template name="field">
                    <xsl:with-param name="value" select="$Adres/ns:Budynek"/>
                  </xsl:call-template>
                </td>
                <td>
                  <div class="title-small">20. Numer lokalu</div>
                  <xsl:call-template name="field">
                    <xsl:with-param name="value" select="$Adres/ns:Lokal"/>
                  </xsl:call-template>
                </td>
              </tr>
            </table>
            <!-- end section: Wlasciciel/Adres -->
    
            <!-- section: Wlasciciel/AdresDoKorespondencji -->
            <xsl:variable name="AdresDoKorespondencji" select="$Wlasciciel/do:AdresDoKorespondencji"/>
            <table class="border-top td-border">
              <tr>
                <td colspan="5" class="title">
                  <div>C.3. ADRES DO KORESPONDENCJI</div>
                  <div class="f-8 pl-24">Wypełnić, jeżeli jest inny niż wskazany w części C.2.</div>
                </td>
              </tr>
              <tr>
                <td class="col-gray" rowspan="3"/>
                <td>
                  <div class="title-small">21. Kraj</div>
                  <xsl:choose>
                    <xsl:when test="$AdresDoKorespondencji/ns:Kraj = 'PL'">
                      <div class="field">Polska</div>
                    </xsl:when>
                    <xsl:otherwise>
                      <xsl:call-template name="field">
                        <xsl:with-param name="value" select="$AdresDoKorespondencji/ns:Kraj"/>
                      </xsl:call-template>
                    </xsl:otherwise>
                  </xsl:choose>
                </td>
                <td>
                  <div class="title-small">22. Województwo</div>
                  <xsl:call-template name="field">
                    <xsl:with-param name="value" select="$AdresDoKorespondencji/ns:Wojewodztwo"/>
                  </xsl:call-template>
                </td>
                <td colspan="2">
                  <div class="title-small">23. Powiat</div>
                  <xsl:call-template name="field">
                    <xsl:with-param name="value" select="$AdresDoKorespondencji/ns:Powiat"/>
                  </xsl:call-template>
                </td>
              </tr>
              <tr>
                <td>
                  <div class="title-small">24. Gmina</div>
                  <xsl:call-template name="field">
                    <xsl:with-param name="value" select="$AdresDoKorespondencji/ns:Gmina"/>
                  </xsl:call-template>
                </td>
                <td colspan="2">
                  <div class="title-small">25. Miejscowość</div>
                  <xsl:call-template name="field">
                    <xsl:with-param name="value" select="$AdresDoKorespondencji/ns:Miejscowosc"/>
                  </xsl:call-template>
                </td>
                <td>
                  <div class="title-small">26. Kod pocztowy</div>
                  <xsl:call-template name="field">
                    <xsl:with-param name="value" select="$AdresDoKorespondencji/ns:KodPocztowy"/>
                  </xsl:call-template>
                </td>
              </tr>
              <tr>
                <td colspan="2">
                  <div class="title-small">27. Ulica</div>
                  <xsl:call-template name="field">
                    <xsl:with-param name="value" select="$AdresDoKorespondencji/ns:Ulica"/>
                  </xsl:call-template>
                </td>
                <td>
                  <div class="title-small">28. Numer domu</div>
                  <xsl:call-template name="field">
                    <xsl:with-param name="value" select="$AdresDoKorespondencji/ns:Budynek"/>
                  </xsl:call-template>
                </td>
                <td>
                  <div class="title-small">29. Numer lokalu</div>
                  <xsl:call-template name="field">
                    <xsl:with-param name="value" select="$AdresDoKorespondencji/ns:Lokal"/>
                  </xsl:call-template>
                </td>
              </tr>
            </table>
            <!-- end section: Wlasciciel/AdresDoKorespondencji -->
    
            <!-- section: Wlasciciel/ Tel Email Inne -->
            <table class="border-top td-border">
              <tr>
                <td colspan="3" class="title">
                  <div>C.4. NUMER TELEFONU, ADRES POCZTY ELEKTRONICZNEJ I INNE INFORMACJE</div>
                  <div class="f-8 pl-24">Podanie poniższych informacji nie jest obowiązkowe.</div>
                </td>
              </tr>
              <tr>
                <td class="col-gray" rowspan="3"/>
                <td>
                  <div class="title-small">30. Numer telefonu</div>
                  <xsl:call-template name="field">
                    <xsl:with-param name="value" select="$Wlasciciel/do:Telefon"/>
                  </xsl:call-template>
                </td>
                <td>
                  <div class="title-small">31. E-mail</div>
                  <xsl:call-template name="field">
                    <xsl:with-param name="value" select="$Wlasciciel/do:Email"/>
                  </xsl:call-template>
                </td>
              </tr>
              <tr>
                <td colspan="2" class="pb-5">
                  <div class="title-small">32. Zgoda na otrzymywanie komunikatów</div>
                  <div class="float-left field mr-5">
                    <xsl:variable name="Elektroniczna" select="$Wlasciciel/do:Elektroniczna"/>
                    <xsl:choose>
                      <xsl:when test="$Elektroniczna = 'true'">
                        <xsl:call-template name="checkbox">
                          <xsl:with-param name="value" select="$Elektroniczna"/>
                        </xsl:call-template>
                      </xsl:when>
                      <xsl:otherwise>
                        <xsl:call-template name="checkboxEmpty"/>
                      </xsl:otherwise>
                    </xsl:choose>
                  </div>
                  <div class="float-left pt-5 f-bold f-7">
                    DROGĄ<br/>ELEKTRONICZNĄ (E-MAIL)
                  </div>
                  <div class="float-left field mr-5">
                    <xsl:variable name="Telefoniczna" select="$Wlasciciel/do:Telefoniczna"/>
                    <xsl:choose>
                      <xsl:when test="$Telefoniczna = 'true'">
                        <xsl:call-template name="checkbox">
                          <xsl:with-param name="value" select="$Telefoniczna"/>
                        </xsl:call-template>
                      </xsl:when>
                      <xsl:otherwise>
                        <xsl:call-template name="checkboxEmpty"/>
                      </xsl:otherwise>
                    </xsl:choose>
                  </div>
                  <div class="float-left pt-5 f-bold f-7">
                    DROGĄ<br/>TELEFONICZNĄ (SMS)
                  </div>
                  <div class="float-left field mr-5">
                    <xsl:variable name="BrakZgodyNaKomunikacje" select="$Wlasciciel/do:BrakZgodyNaKomunikacje"/>
                    <xsl:choose>
                      <xsl:when test="$BrakZgodyNaKomunikacje = 'true'">
                        <xsl:call-template name="checkbox">
                          <xsl:with-param name="value" select="$BrakZgodyNaKomunikacje"/>
                        </xsl:call-template>
                      </xsl:when>
                      <xsl:otherwise>
                        <xsl:call-template name="checkboxEmpty"/>
                      </xsl:otherwise>
                    </xsl:choose>
                  </div>
                  <div class="float-left pt-5 f-bold f-7">
                    NIE WYRAŻAM ZGODY (ODWOŁUJĘ WCZEŚNIEJ WYRAŻONE ZGODY)
                  </div>
                  <div class="clear"/>
                </td>
              </tr>
              <tr>
                <td colspan="2" class="h-76">
                  <div class="title-small">33. Inne</div>
                  <xsl:call-template name="field">
                    <xsl:with-param name="value" select="$Wlasciciel/do:Inne"/>
                  </xsl:call-template>
                </td>
              </tr>
            </table>
            <!-- end: Wlasciciel/ Tel Email Inne -->
            <!-- end: Wlasciciel -->
    
            <!-- section: Nieruchomosc -->
            <xsl:variable name="Nieruchomosc" select="$Dokument/do:Nieruchomosc"/>
            <table class="border-top-bold lr-border">
              <tr>
                <td class="title f-bold">
                  D. DANE NIERUCHOMOŚCI, KTÓREJ DOTYCZY DEKLARACJA<span class="va-super f-9">5</span>
                </td>
              </tr>
            </table>
    
            <table class="border-top td-border">
              <tr>
                <td colspan="5" class="title">
                  D.1. ADRES NIERUCHOMOŚCI
                </td>
              </tr>
              <tr>
                <td class="col-gray no-border-bottom"/>
                <td colspan="2">
                  <div class="title-small">34. Ulica</div>
                  <xsl:call-template name="field">
                    <xsl:with-param name="value" select="$Nieruchomosc/do:Ulica"/>
                  </xsl:call-template>
                </td>
                <td>
                  <div class="title-small">35. Numer domu</div>
                  <xsl:call-template name="field">
                    <xsl:with-param name="value" select="$Nieruchomosc/do:Budynek"/>
                  </xsl:call-template>
                </td>
                <td>
                  <div class="title-small">36. Numer lokalu</div>
                  <xsl:call-template name="field">
                    <xsl:with-param name="value" select="$Nieruchomosc/do:Lokal"/>
                  </xsl:call-template>
                </td>
              </tr>
              <tr>
                <td class="col-gray no-border-bottom"/>
                <td>
                  <div class="title-small">37. Obręb</div>
                  <xsl:call-template name="field">
                    <xsl:with-param name="value" select="$Nieruchomosc/do:Obreb"/>
                  </xsl:call-template>
                </td>
                <td>
                  <div class="title-small">38. Numer działki</div>
                  <xsl:call-template name="field">
                    <xsl:with-param name="value" select="$Nieruchomosc/do:Dzialka"/>
                  </xsl:call-template>
                </td>
                <td colspan="2">
                  <div class="title-small">39. Księga wieczysta</div>
                  <xsl:call-template name="field">
                    <xsl:with-param name="value" select="$Nieruchomosc/do:KsiegaWieczysta"/>
                  </xsl:call-template>
                </td>
              </tr>
    
              <xsl:for-each select="$Nieruchomosc/do:Adresy/do:Adres">
                <tr>
                  <xsl:choose>
                    <xsl:when test="(position() = last())">
                     <td class="col-gray"/>
                    </xsl:when>
                    <xsl:otherwise>
                      <td class="col-gray no-border-bottom"/>
                    </xsl:otherwise>
                  </xsl:choose>
                  <td>
                    <xsl:choose>
                      <xsl:when test="position() = 1">
                        <div class="title-small">40. Ulica</div>
                      </xsl:when>
                      <xsl:otherwise>
                        <div class="title-small-empty"/>
                      </xsl:otherwise>
                    </xsl:choose>
                    <xsl:call-template name="field">
                      <xsl:with-param name="value" select="do:Ulica"/>
                    </xsl:call-template>
                  </td>
                  <td>
                    <xsl:choose>
                      <xsl:when test="position() = 1">
                        <div class="title-small">41. Numer domu</div>
                      </xsl:when>
                      <xsl:otherwise>
                        <div class="title-small-empty"/>
                      </xsl:otherwise>
                    </xsl:choose>
                    <xsl:call-template name="field">
                      <xsl:with-param name="value" select="do:Budynek"/>
                    </xsl:call-template>
                  </td>
                  <td colspan="2">
                    <xsl:choose>
                      <xsl:when test="position() = 1">
                        <div class="title-small">42. Numery działek</div>
                      </xsl:when>
                      <xsl:otherwise>
                        <div class="title-small-empty"/>
                      </xsl:otherwise>
                    </xsl:choose>
                    <xsl:call-template name="field">
                      <xsl:with-param name="value" select="do:Dzialka"/>
                    </xsl:call-template>
                  </td>
                </tr>
              </xsl:for-each>
              <xsl:if test="not($Nieruchomosc/do:Adresy/do:Adres)">
                <tr>
                  <td class="col-gray"/>
                  <td>
                    <div class="title-small">40. Ulica</div>
                    <div class="field h-14"/>
                  </td>
                  <td>
                    <div class="title-small">41. Numer domu</div>
                    <div class="field h-14"/>
                  </td>
                  <td colspan="2">
                    <div class="title-small">42. Numery działek</div>
                    <div class="field h-14"/>
                  </td>
                </tr>
              </xsl:if>
            </table>
    
            <table class="border-top td-border">
              <tr>
                <td colspan="3" class="title">
                  D.2. OKREŚLENIE RODZAJU NIERUCHOMOŚCI (CZĘŚCI NIERUCHOMOŚCI)
                </td>
              </tr>
              <tr>
                <td class="col-gray no-border-bottom"/>
                <td class="pb-5">
                  <div class="title-small">43.</div>
                  <div class="float-left field mr-5">
                    <xsl:choose>
                      <xsl:when test="$Nieruchomosc/do:Rodzaj/do:Mieszkaniowa/do:Wybrany = 'true'">
                        <xsl:call-template name="checkboxChecked"/>
                      </xsl:when>
                      <xsl:otherwise>
                        <xsl:call-template name="checkboxEmpty"/>
                      </xsl:otherwise>
                    </xsl:choose>
                  </div>
                  <div class="float-left pt-5 f-9 w-90p">
                    NIERUCHOMOŚĆ ZABUDOWANA BUDYNKIEM WIELOLOKALOWYM LUB BUDYNKAMI WIELOLOKALOWYMI, NA KTÓREJ ZAMIESZKUJĄ MIESZKAŃCY
                  </div>
                  <div class="clear"/>
                </td>
                <td class="pb-5 w-180">
                  <div class="title-small">44.</div>
                  <div class="float-left field mr-5">
                    <xsl:choose>
                      <xsl:when test="$Nieruchomosc/do:Rodzaj/do:Mieszkaniowa/do:Wybrany  = 'true' and $Nieruchomosc/do:Rodzaj/do:Mieszkaniowa/do:Zakres = 'CALA'">
                        <xsl:call-template name="checkboxChecked"/>
                      </xsl:when>
                      <xsl:otherwise>
                        <xsl:call-template name="checkboxEmpty"/>
                      </xsl:otherwise>
                    </xsl:choose>
                  </div>
                  <div class="float-left pt-5 f-bold f-7">
                    CAŁA NIERUCHOMOŚĆ
                  </div>
                  <div class="clear"/>
                  <div class="float-left field mr-5">
                    <xsl:choose>
                      <xsl:when test="$Nieruchomosc/do:Rodzaj/do:Mieszkaniowa/do:Wybrany  = 'true' and $Nieruchomosc/do:Rodzaj/do:Mieszkaniowa/do:Zakres = 'CZESC'">
                        <xsl:call-template name="checkboxChecked"/>
                      </xsl:when>
                      <xsl:otherwise>
                        <xsl:call-template name="checkboxEmpty"/>
                      </xsl:otherwise>
                    </xsl:choose>
                  </div>
                  <div class="float-left pt-5 f-bold f-7">
                    CZĘŚĆ NIERUCHOMOŚCI
                  </div>
                  <div class="clear"/>
                </td>
              </tr>
              <tr>
                <td class="col-gray"/>
                <td class="pb-5">
                  <div class="title-small">45.</div>
                  <div class="float-left field mr-5">
                    <xsl:choose>
                      <xsl:when test="$Nieruchomosc/do:Rodzaj/do:Laczna/do:Wybrany = 'true'">
                        <xsl:call-template name="checkboxChecked"/>
                      </xsl:when>
                      <xsl:otherwise>
                        <xsl:call-template name="checkboxEmpty"/>
                      </xsl:otherwise>
                    </xsl:choose>
                  </div>
                  <div class="float-left pt-5 f-9 w-90p">
                    NIERUCHOMOŚĆ ZABUDOWANA BUDYNKIEM WIELOLOKALOWYM LUB BUDYNKAMI WIELOLOKALOWYMI, KTÓRA W CZĘŚCI STANOWI
                    NIERUCHOMOŚĆ, NA KTÓREJ ZAMIESZKUJĄ MIESZKAŃCY, A W CZĘŚCI NIERUCHOMOŚĆ, NA KTÓREJ NIE ZAMIESZKUJĄ
                    MIESZKAŃCY A POWSTAJĄ ODPADY KOMUNALNE
                  </div>
                  <div class="clear"/>
                </td>
                <td class="pb-5 w-180">
                  <div class="title-small">46.</div>
                  <div class="float-left field mr-5">
                    <xsl:choose>
                      <xsl:when test="$Nieruchomosc/do:Rodzaj/do:Laczna/do:Wybrany  = 'true' and $Nieruchomosc/do:Rodzaj/do:Laczna/do:Zakres = 'CALA'">
                        <xsl:call-template name="checkboxChecked"/>
                      </xsl:when>
                      <xsl:otherwise>
                        <xsl:call-template name="checkboxEmpty"/>
                      </xsl:otherwise>
                    </xsl:choose>
                  </div>
                  <div class="float-left pt-5 f-bold f-7">
                    CAŁA NIERUCHOMOŚĆ
                  </div>
                  <div class="clear"/>
                  <div class="float-left field mr-5">
                    <xsl:choose>
                      <xsl:when test="$Nieruchomosc/do:Rodzaj/do:Laczna/do:Wybrany  = 'true' and $Nieruchomosc/do:Rodzaj/do:Laczna/do:Zakres = 'CZESC'">
                        <xsl:call-template name="checkboxChecked"/>
                      </xsl:when>
                      <xsl:otherwise>
                        <xsl:call-template name="checkboxEmpty"/>
                      </xsl:otherwise>
                    </xsl:choose>
                  </div>
                  <div class="float-left pt-5 f-bold f-7">
                    CZĘŚĆ NIERUCHOMOŚCI
                  </div>
                  <div class="clear"/>
                </td>
              </tr>
            </table>
            <!-- end section: Nieruchomosc -->
    
            <!-- section: Oplaty -->
            <xsl:variable name="Oplaty" select="$Dokument/do:Oplaty"/>
            <table class="border-top-bold lr-border">
              <tr>
                <td class="title f-bold">
                  E. OBLICZENIE OPŁATY ZA GOSPODAROWANIE ODPADAMI KOMUNALNYMI<span class="va-super f-9">6</span>
                </td>
              </tr>
            </table>
    
            <table class="border-top lr-border">
              <tr>
                <td class="title">
                  E.1. Z NIERUCHOMOŚCI (LUB JEJ CZĘŚCI), NA KTÓREJ ZAMIESZKUJĄ MIESZKAŃCY
                </td>
              </tr>
            </table>
    
            <xsl:variable name="WgZuzytejWody" select="$Oplaty/do:CzescZamieszkala/do:WgZuzytejWody"/>
            <table class="border-top td-border">
              <tr>
                <td colspan="6" class="title">
                  E.1.1. WEDŁUG METODY OD ILOŚCI ZUŻYTEJ WODY Z DANEJ NIERUCHOMOŚCI
                </td>
              </tr>          
              <tr>
    			    <td rowspan="5" class="col-gray"/>
                <td class="h-40 gray-bg va-middle">
                  <div class="f-bold f-9 t-center">
                    ŚREDNIOMIESIĘCZNE<br/>ZUŻYCIE WODY <sup>7</sup> [m<sup>3</sup>]
                  </div>
                </td>
                <td rowspan="2" class="col-gray-2 va-middle">
                  <div class="f-bold f-14 t-center">X</div>
                </td>
                <td class="h-40 gray-bg va-middle w-200">
                  <div class="f-bold f-9 t-center">
                    STAWKA OPŁATY<br/>
                    [zł/m<sup>3</sup>]
                  </div>
                </td>
                <td rowspan="2" class="col-gray-2 va-middle">
                  <div class="f-bold f-14 t-center">=</div>
                </td>
                <td class="h-40 gray-bg va-middle w-200">
                  <div class="f-bold f-9 t-center">
                    KWOTA OPŁATY<br/>
                    [zł/m-c]
                  </div>
                </td>
              </tr>
              <tr>
                <td class="h-40">
                  <div class="title-small">47.</div>
                  <div class="amount pt-10">
                    <xsl:call-template name="fieldAmount">
                      <xsl:with-param name="value" select="$WgZuzytejWody/do:SredniomiesieczneZuzycieWody"/>
                    </xsl:call-template>
                  </div>
                </td>
                <td class="h-40 gray-bg">
                  <div class="title-small">48.</div>
                  <div class="amount pt-10">
                    <xsl:call-template name="fieldAmount">
                      <xsl:with-param name="value" select="$WgZuzytejWody/do:StawkaOplaty"/>
                    </xsl:call-template>
                  </div>
                </td>
                <td>
                  <div class="title-small">49. Iloczyn poz. 47 i poz. 48.</div>
                  <div class="amount pt-10">
                    <xsl:call-template name="fieldAmount">
                      <xsl:with-param name="value" select="$WgZuzytejWody/do:Kwota"/>
                    </xsl:call-template>
                  </div>
                </td>
              </tr>
              <tr>
                <td colspan="4" class="gray-bg">
                  <div class="va-middle">
                    <div class="f-bold f-10">
                      KWOTA POMNIEJSZENIA NA PODSTAWIE ART. 6J UST. 3F UCPG<sup>8</sup> [zł]
                    </div>
                  </div>
                </td>
                <td>
                  <div class="title-small">50. <span>Kwota z poz. 4 załącznika ZDO-W (jeżeli nie dotyczy wpisać 0)</span>
                  </div>
                  
                  <div class="amount pt-10">
                    <xsl:call-template name="fieldAmount">
                      <xsl:with-param name="value" select="$WgZuzytejWody/do:KwotaPomniejszeniaOplaty"/>
                    </xsl:call-template>
                  </div>
                </td>
              </tr>
    		      <tr>
                <td colspan="4" class="gray-bg pl-3">
                  <div class="va-middle">
                    <div class="f-bold f-10">
                      WYSOKOŚĆ OPŁATY [zł/m-c]  
                    </div>
                  </div>
                </td>
                <td>
                  <div class="title-small">51. Od kwoty z poz. 49 odjąć kwotę z poz. 50. </div>
                  <div class="amount pt-10">
                    <xsl:call-template name="fieldAmount">
                      <xsl:with-param name="value" select="$WgZuzytejWody/do:WysokoscOplaty"/>
                    </xsl:call-template>
                  </div>
                </td>
              </tr> 
            </table>
    
            <xsl:variable name="WgLiczbyMieszkancow" select="$Oplaty/do:CzescZamieszkala/do:WgLiczbyMieszkancow"/>
            <table class="border-top td-border">
              <tr>
                <td colspan="6" class="title">
                  <div class="float-left w-47">E.1.2.</div>
                  <div class="float-left w-90p">
                    WEDŁUG METODY OD LICZBY MIESZKAŃCÓW ZAMIESZKUJĄCYCH DANĄ NIERUCHOMOŚĆ
                    <div class="f-8">
                      Dopuszczalne wyłącznie w przypadku: <span class="t-nowrap">1) braku</span> wodomierza, lub 
                      <span class="t-nowrap">2) braku</span>  odpowiednich danych dotyczących ilości zużytej wody.<br/>
                      Po uzyskaniu danych pozwalających na obliczenie opłaty w oparciu o metodę od ilości zużytej wody z danej
                      nieruchomości, należy złożyć nową deklarację w oparciu o tę metodę.
                    </div>
                  </div>
                  <div class="clear"/>
                </td>
              </tr>
              <tr>
                <td rowspan="4" class="col-gray"/>
                <td colspan="5" class="pb-5">
                  <div class="title-small">
                    <div>52. Przyczyna uzasadniająca zastosowanie metody od liczby mieszkańców zamieszkujących daną nieruchomość</div>
                  </div>              
                  <div class="float-left field mr-5">
                    <xsl:call-template name="checkboxCompare">
                      <xsl:with-param name="value" select="$WgLiczbyMieszkancow/do:Powod"/>
                      <xsl:with-param name="valueStr" select="'BRAK_WODOMIERZA'"/>
                    </xsl:call-template>
                  </div>
                  <div class="float-left pt-5">
                    BRAK WODOMIERZA
                  </div>
                  <div class="pl-24 float-left field mr-5">
                    <xsl:call-template name="checkboxCompare">
                      <xsl:with-param name="value" select="$WgLiczbyMieszkancow/do:Powod"/>
                      <xsl:with-param name="valueStr" select="'BRAK_ODPOWIEDNICH_DANYCH_DOTYCZACYCH_ILOSCI_ZUZYTEJ_WODY'"/>
                    </xsl:call-template>
                  </div>
                  <div class="float-left pt-5">
                    BRAK ODPOWIEDNICH DANYCH DOTYCZĄCYCH ILOŚCI ZUŻYTEJ WODY
                  </div>
                  <div class="clear"/>
                </td>
              </tr>
              <tr>
                <td class="h-40 gray-bg va-middle">
                  <div class="f-bold f-9 t-center">
                    LICZBA OSÓB<br/>ZAMIESZKUJĄCYCH NIERUCHOMOŚĆ
                  </div>
                </td>
                <td rowspan="2" class="col-gray-2 va-middle">
                  <div class="f-bold f-14 t-center">X</div>
                </td>
                <td class="h-40 gray-bg va-middle w-200">
                  <div class="f-bold f-9 t-center">
                    STAWKA OPŁATY<br/>
                    [zł/osoba]
                  </div>
                </td>
                <td rowspan="2" class="col-gray-2 va-middle">
                  <div class="f-bold f-14 t-center">=</div>
                </td>
                <td class="h-40 gray-bg va-middle w-200">
                  <div class="f-bold f-9 t-center">
                    WYSOKOŚĆ OPŁATY<br/>
                    [zł/m-c]
                  </div>
                </td>
              </tr>
              <tr>
                <td class="h-40">
                  <div class="title-small">53.</div>
                  <div class="t-center pt-10">
                    <xsl:call-template name="field">
                      <xsl:with-param name="value" select="$WgLiczbyMieszkancow/do:LiczbaOsob"/>
                    </xsl:call-template>
                  </div>
                </td>
                <td class="h-40 gray-bg">
                  <div class="title-small">54.</div>
                  <div class="amount pt-10">
                    <xsl:call-template name="fieldAmount">
                      <xsl:with-param name="value" select="$WgLiczbyMieszkancow/do:StawkaOplaty"/>
                    </xsl:call-template>
                  </div>
                </td>
                <td>
                  <div class="title-small">55. Iloczyn poz. 53 i poz. 54.</div>
                  <div class="amount">
                    <xsl:call-template name="fieldAmount">
                      <xsl:with-param name="value" select="$WgLiczbyMieszkancow/do:WysokoscOplaty"/>
                    </xsl:call-template>
                  </div>
                </td>
              </tr>
            </table>
    
            <table class="border-top td-border">
              <tr>
                <td colspan="8" class="title">
                  <div class="float-left w-32">E.2.</div>
                  <div class="float-left w-90p">
                    Z CZĘŚCI NIERUCHOMOŚCI, NA KTÓREJ NIE ZAMIESZKUJĄ MIESZKAŃCY, A POWSTAJĄ ODPADY KOMUNALNE
                    <br/>
                    <span class="f-8">Wypełnić w przypadku, gdy zaznaczono pole w poz. 45.</span>
                  </div>              
                  <div class="clear"/>
                </td>
              </tr>
              <tr class="f-9">
                <td rowspan="23" class="col-gray"/> <!-- łączenie wierszy na tabeli E.2 -->
                <td rowspan="1" class="gray-bg va-middle">
                  <div class="f-bold t-center">
                    RODZAJ<br/>ODPADÓW
                  </div>
                </td>
                <td rowspan="1" class="gray-bg va-middle">
                  <div class="f-bold t-center">
                    LICZBA<br/>POJEMNIKÓW/<br/>WORKÓW
                  </div>
                </td>
                <td rowspan="1" class="gray-bg va-middle">
                  <div class="f-bold t-center">
                    LICZBA<br/>OPRÓŻNIEŃ/<br/>ODBIORÓW
                  </div>
                </td>
                <td rowspan="1" class="gray-bg va-middle">
                  <div class="t-center">
                    <div class="f-bold"> ZADEKLAROWANA<br/>LICZBA<br/>POJEMNIKÓW/WORKÓW<sup>9</sup><br/></div>
                    <span>(iloczyn kolumn B i C)</span>
                  </div>              
                </td>
                <td rowspan="1" class="gray-bg va-middle">
                  <div class="f-bold t-center">
                    POJEMNOŚĆ<br/>POJEMNIKÓW/WORKÓW<br/>[w litrach]
                  </div>
                </td>
                <td rowspan="1" class="gray-bg va-middle">
                  <div class="f-bold t-center">
                    STAWKA<br/>OPŁATY<sup>10</sup><br/>ZA POJEMNIK/<br/>WOREK<br/>[w zł]
                  </div>
                </td>
                <td rowspan="1" class="gray-bg va-middle">
                  <div class="t-center">
                    <div class="f-bold">KWOTA<br/>[w zł]</div><span>(iloczyn kolumn D i F)</span>
                  </div>
                </td>
              </tr>
              
              <tr>            
                <td class="gray-bg va-middle">
                  <div class="f-bold t-center">
                    A.
                  </div>
                </td>
                <td class="gray-bg va-middle w-135">
                  <div class="f-bold t-center">
                    B.
                  </div>
                </td>
                <td class="gray-bg va-middle w-120">
                  <div class="f-bold t-center">
                    C.
                  </div>
                </td>
                <td class="gray-bg va-middle w-120">
                  <div class="f-bold t-center">
                    D.
                  </div>
                </td>
                <td class="gray-bg va-middle w-120">
                  <div class="f-bold t-center">
                    E.
                  </div>
                </td>
                <td class="gray-bg va-middle w-120">
                  <div class="f-bold t-center">
                    F.
                  </div>
                </td>
                <td class="gray-bg va-middle w-120">
                  <div class="f-bold t-center">
                    G.
                  </div>
                </td>
              </tr>
              
              <xsl:variable name="Odpady" select="$Oplaty/do:CzescNiezamieszkala/do:Odpady"/>
    
              <xsl:variable name="Resztkowe1" select="$Odpady/do:Resztkowe[1]"/>
              <tr>
                <td rowspan="4" class="gray-bg va-middle">
                  <div class="f-bold f-9 pl-3 t-center">
                    RESZTKOWE
                  </div>
                </td>
    
                <xsl:choose>
                  <xsl:when test="$Resztkowe1/do:LiczbaPojemnikow and (string-length($Resztkowe1/do:LiczbaPojemnikow)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'56'"/>
                      <xsl:with-param name="value" select="$Resztkowe1/do:LiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'56'"/>
                      <xsl:with-param name="value" select="$Resztkowe1/do:LiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Resztkowe1/do:LiczbaOproznien and (string-length($Resztkowe1/do:LiczbaOproznien)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'57'"/>
                      <xsl:with-param name="value" select="$Resztkowe1/do:LiczbaOproznien"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'57'"/>
                      <xsl:with-param name="value" select="$Resztkowe1/do:LiczbaOproznien"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>              
                <xsl:choose>
                  <xsl:when test="$Resztkowe1/do:ZadeklarowanaLiczbaPojemnikow and (string-length($Resztkowe1/do:ZadeklarowanaLiczbaPojemnikow)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'58'"/>
                      <xsl:with-param name="value" select="$Resztkowe1/do:ZadeklarowanaLiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'58'"/>
                      <xsl:with-param name="value" select="$Resztkowe1/do:ZadeklarowanaLiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Resztkowe1/do:Pojemnosc and (string-length($Resztkowe1/do:Pojemnosc)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'59'"/>
                      <xsl:with-param name="value" select="$Resztkowe1/do:Pojemnosc"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'59'"/>
                      <xsl:with-param name="value" select="$Resztkowe1/do:Pojemnosc"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Resztkowe1/do:StawkaZaPojemnik and (string-length($Resztkowe1/do:StawkaZaPojemnik)&gt;0)">
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'60'"/>
                      <xsl:with-param name="value" select="$Resztkowe1/do:StawkaZaPojemnik"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'60'"/>
                      <xsl:with-param name="value" select="$Resztkowe1/do:StawkaZaPojemnik"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Resztkowe1/do:Kwota and (string-length($Resztkowe1/do:Kwota)&gt;0)">
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'61'"/>
                      <xsl:with-param name="value" select="$Resztkowe1/do:Kwota"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'61'"/>
                      <xsl:with-param name="value" select="$Resztkowe1/do:Kwota"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
              </tr>
              
              <xsl:variable name="Resztkowe2" select="$Odpady/do:Resztkowe[2]"/>
              <tr>
               <xsl:choose>
                  <xsl:when test="$Resztkowe2/do:LiczbaPojemnikow and (string-length($Resztkowe2/do:LiczbaPojemnikow)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'62'"/>
                      <xsl:with-param name="value" select="$Resztkowe2/do:LiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'62'"/>
                      <xsl:with-param name="value" select="$Resztkowe2/do:LiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Resztkowe2/do:LiczbaOproznien and (string-length($Resztkowe2/do:LiczbaOproznien)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'63'"/>
                      <xsl:with-param name="value" select="$Resztkowe2/do:LiczbaOproznien"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'63'"/>
                      <xsl:with-param name="value" select="$Resztkowe2/do:LiczbaOproznien"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>              
                <xsl:choose>
                  <xsl:when test="$Resztkowe2/do:ZadeklarowanaLiczbaPojemnikow and (string-length($Resztkowe2/do:ZadeklarowanaLiczbaPojemnikow)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'64'"/>
                      <xsl:with-param name="value" select="$Resztkowe2/do:ZadeklarowanaLiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'64'"/>
                      <xsl:with-param name="value" select="$Resztkowe2/do:ZadeklarowanaLiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Resztkowe2/do:Pojemnosc and (string-length($Resztkowe2/do:Pojemnosc)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'65'"/>
                      <xsl:with-param name="value" select="$Resztkowe2/do:Pojemnosc"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'65'"/>
                      <xsl:with-param name="value" select="$Resztkowe2/do:Pojemnosc"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Resztkowe2/do:StawkaZaPojemnik and (string-length($Resztkowe2/do:StawkaZaPojemnik)&gt;0)">
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'66'"/>
                      <xsl:with-param name="value" select="$Resztkowe2/do:StawkaZaPojemnik"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'66'"/>
                      <xsl:with-param name="value" select="$Resztkowe2/do:StawkaZaPojemnik"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Resztkowe2/do:Kwota and (string-length($Resztkowe2/do:Kwota)&gt;0)">
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'67'"/>
                      <xsl:with-param name="value" select="$Resztkowe2/do:Kwota"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'67'"/>
                      <xsl:with-param name="value" select="$Resztkowe2/do:Kwota"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
              </tr>
    
              <xsl:variable name="Resztkowe3" select="$Odpady/do:Resztkowe[3]"/>
              <tr>
               <xsl:choose>
                  <xsl:when test="$Resztkowe3/do:LiczbaPojemnikow and (string-length($Resztkowe3/do:LiczbaPojemnikow)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'68'"/>
                      <xsl:with-param name="value" select="$Resztkowe3/do:LiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'68'"/>
                      <xsl:with-param name="value" select="$Resztkowe3/do:LiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Resztkowe3/do:LiczbaOproznien and (string-length($Resztkowe3/do:LiczbaOproznien)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'69'"/>
                      <xsl:with-param name="value" select="$Resztkowe3/do:LiczbaOproznien"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'69'"/>
                      <xsl:with-param name="value" select="$Resztkowe3/do:LiczbaOproznien"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>              
                <xsl:choose>
                  <xsl:when test="$Resztkowe3/do:ZadeklarowanaLiczbaPojemnikow and (string-length($Resztkowe3/do:ZadeklarowanaLiczbaPojemnikow)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'70'"/>
                      <xsl:with-param name="value" select="$Resztkowe3/do:ZadeklarowanaLiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'70'"/>
                      <xsl:with-param name="value" select="$Resztkowe3/do:ZadeklarowanaLiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Resztkowe3/do:Pojemnosc and (string-length($Resztkowe3/do:Pojemnosc)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'71'"/>
                      <xsl:with-param name="value" select="$Resztkowe3/do:Pojemnosc"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'71'"/>
                      <xsl:with-param name="value" select="$Resztkowe3/do:Pojemnosc"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Resztkowe3/do:StawkaZaPojemnik and (string-length($Resztkowe3/do:StawkaZaPojemnik)&gt;0)">
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'72'"/>
                      <xsl:with-param name="value" select="$Resztkowe3/do:StawkaZaPojemnik"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'72'"/>
                      <xsl:with-param name="value" select="$Resztkowe3/do:StawkaZaPojemnik"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Resztkowe3/do:Kwota and (string-length($Resztkowe3/do:Kwota)&gt;0)">
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'73'"/>
                      <xsl:with-param name="value" select="$Resztkowe3/do:Kwota"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'73'"/>
                      <xsl:with-param name="value" select="$Resztkowe3/do:Kwota"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
              </tr>
    
              <xsl:variable name="Resztkowe4" select="$Odpady/do:Resztkowe[4]"/>
              <tr>
               <xsl:choose>
                  <xsl:when test="$Resztkowe4/do:LiczbaPojemnikow and (string-length($Resztkowe4/do:LiczbaPojemnikow)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'74'"/>
                      <xsl:with-param name="value" select="$Resztkowe4/do:LiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'74'"/>
                      <xsl:with-param name="value" select="$Resztkowe4/do:LiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Resztkowe4/do:LiczbaOproznien and (string-length($Resztkowe4/do:LiczbaOproznien)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'75'"/>
                      <xsl:with-param name="value" select="$Resztkowe4/do:LiczbaOproznien"/>
                      <xsl:with-param name="class" select="'no-border-top ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'75'"/>
                      <xsl:with-param name="value" select="$Resztkowe4/do:LiczbaOproznien"/>
                      <xsl:with-param name="class" select="'no-border-top ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>              
                <xsl:choose>
                  <xsl:when test="$Resztkowe4/do:ZadeklarowanaLiczbaPojemnikow and (string-length($Resztkowe4/do:ZadeklarowanaLiczbaPojemnikow)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'76'"/>
                      <xsl:with-param name="value" select="$Resztkowe4/do:ZadeklarowanaLiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'76'"/>
                      <xsl:with-param name="value" select="$Resztkowe4/do:ZadeklarowanaLiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Resztkowe4/do:Pojemnosc and (string-length($Resztkowe4/do:Pojemnosc)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'77'"/>
                      <xsl:with-param name="value" select="$Resztkowe4/do:Pojemnosc"/>
                      <xsl:with-param name="class" select="'no-border-top ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'77'"/>
                      <xsl:with-param name="value" select="$Resztkowe4/do:Pojemnosc"/>
                      <xsl:with-param name="class" select="'no-border-top ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Resztkowe4/do:StawkaZaPojemnik and (string-length($Resztkowe4/do:StawkaZaPojemnik)&gt;0)">
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'78'"/>
                      <xsl:with-param name="value" select="$Resztkowe4/do:StawkaZaPojemnik"/>
                      <xsl:with-param name="class" select="'no-border-top'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'78'"/>
                      <xsl:with-param name="value" select="$Resztkowe4/do:StawkaZaPojemnik"/>
                      <xsl:with-param name="class" select="'no-border-top gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Resztkowe4/do:Kwota and (string-length($Resztkowe4/do:Kwota)&gt;0)">
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'79'"/>
                      <xsl:with-param name="value" select="$Resztkowe4/do:Kwota"/>
                      <xsl:with-param name="class" select="'no-border-top'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'79'"/>
                      <xsl:with-param name="value" select="$Resztkowe4/do:Kwota"/>
                      <xsl:with-param name="class" select="'no-border-top gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
              </tr>
    
              
              <xsl:variable name="Papier1" select="$Odpady/do:Papier[1]"/>
              <tr>
                <td rowspan="4" class="gray-bg va-middle">
                  <div class="f-bold f-9 pl-3 t-center">
                    PAPIER
                  </div>
                </td>
    
                <xsl:choose>
                  <xsl:when test="$Papier1/do:LiczbaPojemnikow and (string-length($Papier1/do:LiczbaPojemnikow)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'80'"/>
                      <xsl:with-param name="value" select="$Papier1/do:LiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'80'"/>
                      <xsl:with-param name="value" select="$Papier1/do:LiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Papier1/do:LiczbaOproznien and (string-length($Papier1/do:LiczbaOproznien)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'81'"/>
                      <xsl:with-param name="value" select="$Papier1/do:LiczbaOproznien"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'81'"/>
                      <xsl:with-param name="value" select="$Papier1/do:LiczbaOproznien"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>              
                <xsl:choose>
                  <xsl:when test="$Papier1/do:ZadeklarowanaLiczbaPojemnikow and (string-length($Papier1/do:ZadeklarowanaLiczbaPojemnikow)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'82'"/>
                      <xsl:with-param name="value" select="$Papier1/do:ZadeklarowanaLiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'82'"/>
                      <xsl:with-param name="value" select="$Papier1/do:ZadeklarowanaLiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Papier1/do:Pojemnosc and (string-length($Papier1/do:Pojemnosc)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'83'"/>
                      <xsl:with-param name="value" select="$Papier1/do:Pojemnosc"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'83'"/>
                      <xsl:with-param name="value" select="$Papier1/do:Pojemnosc"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Papier1/do:StawkaZaPojemnik and (string-length($Papier1/do:StawkaZaPojemnik)&gt;0)">
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'84'"/>
                      <xsl:with-param name="value" select="$Papier1/do:StawkaZaPojemnik"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'84'"/>
                      <xsl:with-param name="value" select="$Papier1/do:StawkaZaPojemnik"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Papier1/do:Kwota and (string-length($Papier1/do:Kwota)&gt;0)">
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'85'"/>
                      <xsl:with-param name="value" select="$Papier1/do:Kwota"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'85'"/>
                      <xsl:with-param name="value" select="$Papier1/do:Kwota"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
              </tr>
    
              <xsl:variable name="Papier2" select="$Odpady/do:Papier[2]"/>
              <tr>
               <xsl:choose>
                  <xsl:when test="$Papier2/do:LiczbaPojemnikow and (string-length($Papier2/do:LiczbaPojemnikow)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'86'"/>
                      <xsl:with-param name="value" select="$Papier2/do:LiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'86'"/>
                      <xsl:with-param name="value" select="$Papier2/do:LiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Papier2/do:LiczbaOproznien and (string-length($Papier2/do:LiczbaOproznien)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'87'"/>
                      <xsl:with-param name="value" select="$Papier2/do:LiczbaOproznien"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'87'"/>
                      <xsl:with-param name="value" select="$Papier2/do:LiczbaOproznien"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>              
                <xsl:choose>
                  <xsl:when test="$Papier2/do:ZadeklarowanaLiczbaPojemnikow and (string-length($Papier2/do:ZadeklarowanaLiczbaPojemnikow)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'88'"/>
                      <xsl:with-param name="value" select="$Papier2/do:ZadeklarowanaLiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'88'"/>
                      <xsl:with-param name="value" select="$Papier2/do:ZadeklarowanaLiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Papier2/do:Pojemnosc and (string-length($Papier2/do:Pojemnosc)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'89'"/>
                      <xsl:with-param name="value" select="$Papier2/do:Pojemnosc"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'89'"/>
                      <xsl:with-param name="value" select="$Papier2/do:Pojemnosc"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Papier2/do:StawkaZaPojemnik and (string-length($Papier2/do:StawkaZaPojemnik)&gt;0)">
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'90'"/>
                      <xsl:with-param name="value" select="$Papier2/do:StawkaZaPojemnik"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'90'"/>
                      <xsl:with-param name="value" select="$Papier2/do:StawkaZaPojemnik"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Papier2/do:Kwota and (string-length($Papier2/do:Kwota)&gt;0)">
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'91'"/>
                      <xsl:with-param name="value" select="$Papier2/do:Kwota"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'91'"/>
                      <xsl:with-param name="value" select="$Papier2/do:Kwota"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
              </tr>
    
              <xsl:variable name="Papier3" select="$Odpady/do:Papier[3]"/>
              <tr>
               <xsl:choose>
                  <xsl:when test="$Papier3/do:LiczbaPojemnikow and (string-length($Papier3/do:LiczbaPojemnikow)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'92'"/>
                      <xsl:with-param name="value" select="$Papier3/do:LiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'92'"/>
                      <xsl:with-param name="value" select="$Papier3/do:LiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Papier3/do:LiczbaOproznien and (string-length($Papier3/do:LiczbaOproznien)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'93'"/>
                      <xsl:with-param name="value" select="$Papier3/do:LiczbaOproznien"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'93'"/>
                      <xsl:with-param name="value" select="$Papier3/do:LiczbaOproznien"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>              
                <xsl:choose>
                  <xsl:when test="$Papier3/do:ZadeklarowanaLiczbaPojemnikow and (string-length($Papier3/do:ZadeklarowanaLiczbaPojemnikow)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'94'"/>
                      <xsl:with-param name="value" select="$Papier3/do:ZadeklarowanaLiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'94'"/>
                      <xsl:with-param name="value" select="$Papier3/do:ZadeklarowanaLiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Papier3/do:Pojemnosc and (string-length($Papier3/do:Pojemnosc)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'95'"/>
                      <xsl:with-param name="value" select="$Papier3/do:Pojemnosc"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'95'"/>
                      <xsl:with-param name="value" select="$Papier3/do:Pojemnosc"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Papier3/do:StawkaZaPojemnik and (string-length($Papier3/do:StawkaZaPojemnik)&gt;0)">
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'96'"/>
                      <xsl:with-param name="value" select="$Papier3/do:StawkaZaPojemnik"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'96'"/>
                      <xsl:with-param name="value" select="$Papier3/do:StawkaZaPojemnik"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Papier3/do:Kwota and (string-length($Papier3/do:Kwota)&gt;0)">
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'97'"/>
                      <xsl:with-param name="value" select="$Papier3/do:Kwota"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'97'"/>
                      <xsl:with-param name="value" select="$Papier3/do:Kwota"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
              </tr>
    
              <xsl:variable name="Papier4" select="$Odpady/do:Papier[4]"/>
              <tr>
               <xsl:choose>
                  <xsl:when test="$Papier4/do:LiczbaPojemnikow and (string-length($Papier4/do:LiczbaPojemnikow)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'98'"/>
                      <xsl:with-param name="value" select="$Papier4/do:LiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'98'"/>
                      <xsl:with-param name="value" select="$Papier4/do:LiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Papier4/do:LiczbaOproznien and (string-length($Papier4/do:LiczbaOproznien)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'99'"/>
                      <xsl:with-param name="value" select="$Papier4/do:LiczbaOproznien"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'99'"/>
                      <xsl:with-param name="value" select="$Papier4/do:LiczbaOproznien"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>              
                <xsl:choose>
                  <xsl:when test="$Papier4/do:ZadeklarowanaLiczbaPojemnikow and (string-length($Papier4/do:ZadeklarowanaLiczbaPojemnikow)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'100'"/>
                      <xsl:with-param name="value" select="$Papier4/do:ZadeklarowanaLiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'100'"/>
                      <xsl:with-param name="value" select="$Papier4/do:ZadeklarowanaLiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Papier4/do:Pojemnosc and (string-length($Papier4/do:Pojemnosc)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'101'"/>
                      <xsl:with-param name="value" select="$Papier4/do:Pojemnosc"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'101'"/>
                      <xsl:with-param name="value" select="$Papier4/do:Pojemnosc"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Papier4/do:StawkaZaPojemnik and (string-length($Papier4/do:StawkaZaPojemnik)&gt;0)">
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'102'"/>
                      <xsl:with-param name="value" select="$Papier4/do:StawkaZaPojemnik"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'102'"/>
                      <xsl:with-param name="value" select="$Papier4/do:StawkaZaPojemnik"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Papier4/do:Kwota and (string-length($Papier4/do:Kwota)&gt;0)">
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'103'"/>
                      <xsl:with-param name="value" select="$Papier4/do:Kwota"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'103'"/>
                      <xsl:with-param name="value" select="$Papier4/do:Kwota"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
              </tr>
              
    
              <xsl:variable name="Szklo1" select="$Odpady/do:Szklo[1]"/>
              <tr>
                <td rowspan="4" class="gray-bg va-middle">
                  <div class="f-bold f-9 pl-3 t-center">
                    SZKŁO
                  </div>
                </td>
    
                <xsl:choose>
                  <xsl:when test="$Szklo1/do:LiczbaPojemnikow and (string-length($Szklo1/do:LiczbaPojemnikow)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'104'"/>
                      <xsl:with-param name="value" select="$Szklo1/do:LiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'104'"/>
                      <xsl:with-param name="value" select="$Szklo1/do:LiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Szklo1/do:LiczbaOproznien and (string-length($Szklo1/do:LiczbaOproznien)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'105'"/>
                      <xsl:with-param name="value" select="$Szklo1/do:LiczbaOproznien"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'105'"/>
                      <xsl:with-param name="value" select="$Szklo1/do:LiczbaOproznien"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>              
                <xsl:choose>
                  <xsl:when test="$Szklo1/do:ZadeklarowanaLiczbaPojemnikow and (string-length($Szklo1/do:ZadeklarowanaLiczbaPojemnikow)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'106'"/>
                      <xsl:with-param name="value" select="$Szklo1/do:ZadeklarowanaLiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'106'"/>
                      <xsl:with-param name="value" select="$Szklo1/do:ZadeklarowanaLiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Szklo1/do:Pojemnosc and (string-length($Szklo1/do:Pojemnosc)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'107'"/>
                      <xsl:with-param name="value" select="$Szklo1/do:Pojemnosc"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'107'"/>
                      <xsl:with-param name="value" select="$Szklo1/do:Pojemnosc"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Szklo1/do:StawkaZaPojemnik and (string-length($Szklo1/do:StawkaZaPojemnik)&gt;0)">
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'108'"/>
                      <xsl:with-param name="value" select="$Szklo1/do:StawkaZaPojemnik"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'108'"/>
                      <xsl:with-param name="value" select="$Szklo1/do:StawkaZaPojemnik"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Szklo1/do:Kwota and (string-length($Szklo1/do:Kwota)&gt;0)">
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'109'"/>
                      <xsl:with-param name="value" select="$Szklo1/do:Kwota"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'109'"/>
                      <xsl:with-param name="value" select="$Szklo1/do:Kwota"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
              </tr>
    
              <xsl:variable name="Szklo2" select="$Odpady/do:Szklo[2]"/>
              <tr>
               <xsl:choose>
                  <xsl:when test="$Szklo2/do:LiczbaPojemnikow and (string-length($Szklo2/do:LiczbaPojemnikow)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'110'"/>
                      <xsl:with-param name="value" select="$Szklo2/do:LiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'110'"/>
                      <xsl:with-param name="value" select="$Szklo2/do:LiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Szklo2/do:LiczbaOproznien and (string-length($Szklo2/do:LiczbaOproznien)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'111'"/>
                      <xsl:with-param name="value" select="$Szklo2/do:LiczbaOproznien"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'111'"/>
                      <xsl:with-param name="value" select="$Szklo2/do:LiczbaOproznien"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>              
                <xsl:choose>
                  <xsl:when test="$Szklo2/do:ZadeklarowanaLiczbaPojemnikow and (string-length($Szklo2/do:ZadeklarowanaLiczbaPojemnikow)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'112'"/>
                      <xsl:with-param name="value" select="$Szklo2/do:ZadeklarowanaLiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'112'"/>
                      <xsl:with-param name="value" select="$Szklo2/do:ZadeklarowanaLiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Szklo2/do:Pojemnosc and (string-length($Szklo2/do:Pojemnosc)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'113'"/>
                      <xsl:with-param name="value" select="$Szklo2/do:Pojemnosc"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'113'"/>
                      <xsl:with-param name="value" select="$Szklo2/do:Pojemnosc"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Szklo2/do:StawkaZaPojemnik and (string-length($Szklo2/do:StawkaZaPojemnik)&gt;0)">
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'114'"/>
                      <xsl:with-param name="value" select="$Szklo2/do:StawkaZaPojemnik"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'114'"/>
                      <xsl:with-param name="value" select="$Szklo2/do:StawkaZaPojemnik"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Szklo2/do:Kwota and (string-length($Szklo2/do:Kwota)&gt;0)">
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'115'"/>
                      <xsl:with-param name="value" select="$Szklo2/do:Kwota"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'115'"/>
                      <xsl:with-param name="value" select="$Szklo2/do:Kwota"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
              </tr>
    
              <xsl:variable name="Szklo3" select="$Odpady/do:Szklo[3]"/>
              <tr>
               <xsl:choose>
                  <xsl:when test="$Szklo3/do:LiczbaPojemnikow and (string-length($Szklo3/do:LiczbaPojemnikow)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'116'"/>
                      <xsl:with-param name="value" select="$Szklo3/do:LiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'116'"/>
                      <xsl:with-param name="value" select="$Szklo3/do:LiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Szklo3/do:LiczbaOproznien and (string-length($Szklo3/do:LiczbaOproznien)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'117'"/>
                      <xsl:with-param name="value" select="$Szklo3/do:LiczbaOproznien"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'117'"/>
                      <xsl:with-param name="value" select="$Szklo3/do:LiczbaOproznien"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>              
                <xsl:choose>
                  <xsl:when test="$Szklo3/do:ZadeklarowanaLiczbaPojemnikow and (string-length($Szklo3/do:ZadeklarowanaLiczbaPojemnikow)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'118'"/>
                      <xsl:with-param name="value" select="$Szklo3/do:ZadeklarowanaLiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'118'"/>
                      <xsl:with-param name="value" select="$Szklo3/do:ZadeklarowanaLiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Szklo3/do:Pojemnosc and (string-length($Szklo3/do:Pojemnosc)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'119'"/>
                      <xsl:with-param name="value" select="$Szklo3/do:Pojemnosc"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'119'"/>
                      <xsl:with-param name="value" select="$Szklo3/do:Pojemnosc"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Szklo3/do:StawkaZaPojemnik and (string-length($Szklo3/do:StawkaZaPojemnik)&gt;0)">
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'120'"/>
                      <xsl:with-param name="value" select="$Szklo3/do:StawkaZaPojemnik"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'120'"/>
                      <xsl:with-param name="value" select="$Szklo3/do:StawkaZaPojemnik"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Szklo3/do:Kwota and (string-length($Szklo3/do:Kwota)&gt;0)">
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'121'"/>
                      <xsl:with-param name="value" select="$Szklo3/do:Kwota"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'121'"/>
                      <xsl:with-param name="value" select="$Szklo3/do:Kwota"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
              </tr>
    
              <xsl:variable name="Szklo4" select="$Odpady/do:Szklo[4]"/>
              <tr>
               <xsl:choose>
                  <xsl:when test="$Szklo4/do:LiczbaPojemnikow and (string-length($Szklo4/do:LiczbaPojemnikow)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'122'"/>
                      <xsl:with-param name="value" select="$Szklo4/do:LiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'122'"/>
                      <xsl:with-param name="value" select="$Szklo4/do:LiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Szklo4/do:LiczbaOproznien and (string-length($Szklo4/do:LiczbaOproznien)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'123'"/>
                      <xsl:with-param name="value" select="$Szklo4/do:LiczbaOproznien"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'123'"/>
                      <xsl:with-param name="value" select="$Szklo4/do:LiczbaOproznien"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>              
                <xsl:choose>
                  <xsl:when test="$Szklo4/do:ZadeklarowanaLiczbaPojemnikow and (string-length($Szklo4/do:ZadeklarowanaLiczbaPojemnikow)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'124'"/>
                      <xsl:with-param name="value" select="$Szklo4/do:ZadeklarowanaLiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'124'"/>
                      <xsl:with-param name="value" select="$Szklo4/do:ZadeklarowanaLiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Szklo4/do:Pojemnosc and (string-length($Szklo4/do:Pojemnosc)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'125'"/>
                      <xsl:with-param name="value" select="$Szklo4/do:Pojemnosc"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'125'"/>
                      <xsl:with-param name="value" select="$Szklo4/do:Pojemnosc"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Szklo4/do:StawkaZaPojemnik and (string-length($Szklo4/do:StawkaZaPojemnik)&gt;0)">
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'126'"/>
                      <xsl:with-param name="value" select="$Szklo4/do:StawkaZaPojemnik"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'126'"/>
                      <xsl:with-param name="value" select="$Szklo4/do:StawkaZaPojemnik"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Szklo4/do:Kwota and (string-length($Szklo4/do:Kwota)&gt;0)">
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'127'"/>
                      <xsl:with-param name="value" select="$Szklo4/do:Kwota"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'127'"/>
                      <xsl:with-param name="value" select="$Szklo4/do:Kwota"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
              </tr>
    
              
              <xsl:variable name="MetaleTworzywaSztuczne1" select="$Odpady/do:MetaleTworzywaSztuczne[1]"/>
              <tr>
                <td rowspan="4" class="gray-bg va-middle">
                  <div class="f-bold f-9 pl-3 t-center">
                    METALE<br/>I TWORZYWA<br/>SZTUCZNE
                  </div>
                </td>
    
                <xsl:choose>
                  <xsl:when test="$MetaleTworzywaSztuczne1/do:LiczbaPojemnikow and (string-length($MetaleTworzywaSztuczne1/do:LiczbaPojemnikow)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'128'"/>
                      <xsl:with-param name="value" select="$MetaleTworzywaSztuczne1/do:LiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'128'"/>
                      <xsl:with-param name="value" select="$MetaleTworzywaSztuczne1/do:LiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$MetaleTworzywaSztuczne1/do:LiczbaOproznien and (string-length($MetaleTworzywaSztuczne1/do:LiczbaOproznien)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'129'"/>
                      <xsl:with-param name="value" select="$MetaleTworzywaSztuczne1/do:LiczbaOproznien"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'129'"/>
                      <xsl:with-param name="value" select="$MetaleTworzywaSztuczne1/do:LiczbaOproznien"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>              
                <xsl:choose>
                  <xsl:when test="$MetaleTworzywaSztuczne1/do:ZadeklarowanaLiczbaPojemnikow and (string-length($MetaleTworzywaSztuczne1/do:ZadeklarowanaLiczbaPojemnikow)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'130'"/>
                      <xsl:with-param name="value" select="$MetaleTworzywaSztuczne1/do:ZadeklarowanaLiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'130'"/>
                      <xsl:with-param name="value" select="$MetaleTworzywaSztuczne1/do:ZadeklarowanaLiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$MetaleTworzywaSztuczne1/do:Pojemnosc and (string-length($MetaleTworzywaSztuczne1/do:Pojemnosc)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'131'"/>
                      <xsl:with-param name="value" select="$MetaleTworzywaSztuczne1/do:Pojemnosc"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'131'"/>
                      <xsl:with-param name="value" select="$MetaleTworzywaSztuczne1/do:Pojemnosc"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$MetaleTworzywaSztuczne1/do:StawkaZaPojemnik and (string-length($MetaleTworzywaSztuczne1/do:StawkaZaPojemnik)&gt;0)">
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'132'"/>
                      <xsl:with-param name="value" select="$MetaleTworzywaSztuczne1/do:StawkaZaPojemnik"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'132'"/>
                      <xsl:with-param name="value" select="$MetaleTworzywaSztuczne1/do:StawkaZaPojemnik"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$MetaleTworzywaSztuczne1/do:Kwota and (string-length($MetaleTworzywaSztuczne1/do:Kwota)&gt;0)">
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'133'"/>
                      <xsl:with-param name="value" select="$MetaleTworzywaSztuczne1/do:Kwota"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'133'"/>
                      <xsl:with-param name="value" select="$MetaleTworzywaSztuczne1/do:Kwota"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
              </tr>
    
              <xsl:variable name="MetaleTworzywaSztuczne2" select="$Odpady/do:MetaleTworzywaSztuczne[2]"/>
              <tr>
               <xsl:choose>
                  <xsl:when test="$MetaleTworzywaSztuczne2/do:LiczbaPojemnikow and (string-length($MetaleTworzywaSztuczne2/do:LiczbaPojemnikow)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'134'"/>
                      <xsl:with-param name="value" select="$MetaleTworzywaSztuczne2/do:LiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'134'"/>
                      <xsl:with-param name="value" select="$MetaleTworzywaSztuczne2/do:LiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$MetaleTworzywaSztuczne2/do:LiczbaOproznien and (string-length($MetaleTworzywaSztuczne2/do:LiczbaOproznien)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'135'"/>
                      <xsl:with-param name="value" select="$MetaleTworzywaSztuczne2/do:LiczbaOproznien"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'135'"/>
                      <xsl:with-param name="value" select="$MetaleTworzywaSztuczne2/do:LiczbaOproznien"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>              
                <xsl:choose>
                  <xsl:when test="$MetaleTworzywaSztuczne2/do:ZadeklarowanaLiczbaPojemnikow and (string-length($MetaleTworzywaSztuczne2/do:ZadeklarowanaLiczbaPojemnikow)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'136'"/>
                      <xsl:with-param name="value" select="$MetaleTworzywaSztuczne2/do:ZadeklarowanaLiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'136'"/>
                      <xsl:with-param name="value" select="$MetaleTworzywaSztuczne2/do:ZadeklarowanaLiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$MetaleTworzywaSztuczne2/do:Pojemnosc and (string-length($MetaleTworzywaSztuczne2/do:Pojemnosc)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'137'"/>
                      <xsl:with-param name="value" select="$MetaleTworzywaSztuczne2/do:Pojemnosc"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'137'"/>
                      <xsl:with-param name="value" select="$MetaleTworzywaSztuczne2/do:Pojemnosc"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$MetaleTworzywaSztuczne2/do:StawkaZaPojemnik and (string-length($MetaleTworzywaSztuczne2/do:StawkaZaPojemnik)&gt;0)">
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'138'"/>
                      <xsl:with-param name="value" select="$MetaleTworzywaSztuczne2/do:StawkaZaPojemnik"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'138'"/>
                      <xsl:with-param name="value" select="$MetaleTworzywaSztuczne2/do:StawkaZaPojemnik"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$MetaleTworzywaSztuczne2/do:Kwota and (string-length($MetaleTworzywaSztuczne2/do:Kwota)&gt;0)">
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'139'"/>
                      <xsl:with-param name="value" select="$MetaleTworzywaSztuczne2/do:Kwota"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'139'"/>
                      <xsl:with-param name="value" select="$MetaleTworzywaSztuczne2/do:Kwota"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
              </tr>
    
              <xsl:variable name="MetaleTworzywaSztuczne3" select="$Odpady/do:MetaleTworzywaSztuczne[3]"/>
              <tr>
               <xsl:choose>
                  <xsl:when test="$MetaleTworzywaSztuczne3/do:LiczbaPojemnikow and (string-length($MetaleTworzywaSztuczne3/do:LiczbaPojemnikow)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'140'"/>
                      <xsl:with-param name="value" select="$MetaleTworzywaSztuczne3/do:LiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'140'"/>
                      <xsl:with-param name="value" select="$MetaleTworzywaSztuczne3/do:LiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$MetaleTworzywaSztuczne3/do:LiczbaOproznien and (string-length($MetaleTworzywaSztuczne3/do:LiczbaOproznien)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'141'"/>
                      <xsl:with-param name="value" select="$MetaleTworzywaSztuczne3/do:LiczbaOproznien"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'141'"/>
                      <xsl:with-param name="value" select="$MetaleTworzywaSztuczne3/do:LiczbaOproznien"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>              
                <xsl:choose>
                  <xsl:when test="$MetaleTworzywaSztuczne3/do:ZadeklarowanaLiczbaPojemnikow and (string-length($MetaleTworzywaSztuczne3/do:ZadeklarowanaLiczbaPojemnikow)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'142'"/>
                      <xsl:with-param name="value" select="$MetaleTworzywaSztuczne3/do:ZadeklarowanaLiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'142'"/>
                      <xsl:with-param name="value" select="$MetaleTworzywaSztuczne3/do:ZadeklarowanaLiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$MetaleTworzywaSztuczne3/do:Pojemnosc and (string-length($MetaleTworzywaSztuczne3/do:Pojemnosc)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'143'"/>
                      <xsl:with-param name="value" select="$MetaleTworzywaSztuczne3/do:Pojemnosc"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'143'"/>
                      <xsl:with-param name="value" select="$MetaleTworzywaSztuczne3/do:Pojemnosc"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$MetaleTworzywaSztuczne3/do:StawkaZaPojemnik and (string-length($MetaleTworzywaSztuczne3/do:StawkaZaPojemnik)&gt;0)">
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'144'"/>
                      <xsl:with-param name="value" select="$MetaleTworzywaSztuczne3/do:StawkaZaPojemnik"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'144'"/>
                      <xsl:with-param name="value" select="$MetaleTworzywaSztuczne3/do:StawkaZaPojemnik"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$MetaleTworzywaSztuczne3/do:Kwota and (string-length($MetaleTworzywaSztuczne3/do:Kwota)&gt;0)">
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'145'"/>
                      <xsl:with-param name="value" select="$MetaleTworzywaSztuczne3/do:Kwota"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'145'"/>
                      <xsl:with-param name="value" select="$MetaleTworzywaSztuczne3/do:Kwota"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
              </tr>
    
              <xsl:variable name="MetaleTworzywaSztuczne4" select="$Odpady/do:MetaleTworzywaSztuczne[4]"/>
              <tr>
               <xsl:choose>
                  <xsl:when test="$MetaleTworzywaSztuczne4/do:LiczbaPojemnikow and (string-length($MetaleTworzywaSztuczne4/do:LiczbaPojemnikow)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'146'"/>
                      <xsl:with-param name="value" select="$MetaleTworzywaSztuczne4/do:LiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'146'"/>
                      <xsl:with-param name="value" select="$MetaleTworzywaSztuczne4/do:LiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$MetaleTworzywaSztuczne4/do:LiczbaOproznien and (string-length($MetaleTworzywaSztuczne4/do:LiczbaOproznien)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'147'"/>
                      <xsl:with-param name="value" select="$MetaleTworzywaSztuczne4/do:LiczbaOproznien"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'147'"/>
                      <xsl:with-param name="value" select="$MetaleTworzywaSztuczne4/do:LiczbaOproznien"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>              
                <xsl:choose>
                  <xsl:when test="$MetaleTworzywaSztuczne4/do:ZadeklarowanaLiczbaPojemnikow and (string-length($MetaleTworzywaSztuczne4/do:ZadeklarowanaLiczbaPojemnikow)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'148'"/>
                      <xsl:with-param name="value" select="$MetaleTworzywaSztuczne4/do:ZadeklarowanaLiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'148'"/>
                      <xsl:with-param name="value" select="$MetaleTworzywaSztuczne4/do:ZadeklarowanaLiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$MetaleTworzywaSztuczne4/do:Pojemnosc and (string-length($MetaleTworzywaSztuczne4/do:Pojemnosc)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'149'"/>
                      <xsl:with-param name="value" select="$MetaleTworzywaSztuczne4/do:Pojemnosc"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'149'"/>
                      <xsl:with-param name="value" select="$MetaleTworzywaSztuczne4/do:Pojemnosc"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$MetaleTworzywaSztuczne4/do:StawkaZaPojemnik and (string-length($MetaleTworzywaSztuczne4/do:StawkaZaPojemnik)&gt;0)">
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'150'"/>
                      <xsl:with-param name="value" select="$MetaleTworzywaSztuczne4/do:StawkaZaPojemnik"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'150'"/>
                      <xsl:with-param name="value" select="$MetaleTworzywaSztuczne4/do:StawkaZaPojemnik"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$MetaleTworzywaSztuczne4/do:Kwota and (string-length($MetaleTworzywaSztuczne4/do:Kwota)&gt;0)">
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'151'"/>
                      <xsl:with-param name="value" select="$MetaleTworzywaSztuczne4/do:Kwota"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'151'"/>
                      <xsl:with-param name="value" select="$MetaleTworzywaSztuczne4/do:Kwota"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
              </tr>
    
    
              <xsl:variable name="Bio1" select="$Odpady/do:Bio[1]"/>
              <tr>
                <td rowspan="4" class="gray-bg va-middle">
                  <div class="f-bold f-9 pl-3 t-center">
                    BIO
                  </div>
                </td>
    
                <xsl:choose>
                  <xsl:when test="$Bio1/do:LiczbaPojemnikow and (string-length($Bio1/do:LiczbaPojemnikow)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'152'"/>
                      <xsl:with-param name="value" select="$Bio1/do:LiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'152'"/>
                      <xsl:with-param name="value" select="$Bio1/do:LiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Bio1/do:LiczbaOproznien and (string-length($Bio1/do:LiczbaOproznien)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'153'"/>
                      <xsl:with-param name="value" select="$Bio1/do:LiczbaOproznien"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'153'"/>
                      <xsl:with-param name="value" select="$Bio1/do:LiczbaOproznien"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>              
                <xsl:choose>
                  <xsl:when test="$Bio1/do:ZadeklarowanaLiczbaPojemnikow and (string-length($Bio1/do:ZadeklarowanaLiczbaPojemnikow)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'154'"/>
                      <xsl:with-param name="value" select="$Bio1/do:ZadeklarowanaLiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'154'"/>
                      <xsl:with-param name="value" select="$Bio1/do:ZadeklarowanaLiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Bio1/do:Pojemnosc and (string-length($Bio1/do:Pojemnosc)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'155'"/>
                      <xsl:with-param name="value" select="$Bio1/do:Pojemnosc"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'155'"/>
                      <xsl:with-param name="value" select="$Bio1/do:Pojemnosc"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Bio1/do:StawkaZaPojemnik and (string-length($Bio1/do:StawkaZaPojemnik)&gt;0)">
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'156'"/>
                      <xsl:with-param name="value" select="$Bio1/do:StawkaZaPojemnik"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'156'"/>
                      <xsl:with-param name="value" select="$Bio1/do:StawkaZaPojemnik"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Bio1/do:Kwota and (string-length($Bio1/do:Kwota)&gt;0)">
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'157'"/>
                      <xsl:with-param name="value" select="$Bio1/do:Kwota"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'157'"/>
                      <xsl:with-param name="value" select="$Bio1/do:Kwota"/>
                      <xsl:with-param name="class" select="'border-bottom-dashed gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
              </tr>
    
              <xsl:variable name="Bio2" select="$Odpady/do:Bio[2]"/>
              <tr>
               <xsl:choose>
                  <xsl:when test="$Bio2/do:LiczbaPojemnikow and (string-length($Bio2/do:LiczbaPojemnikow)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'158'"/>
                      <xsl:with-param name="value" select="$Bio2/do:LiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'158'"/>
                      <xsl:with-param name="value" select="$Bio2/do:LiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Bio2/do:LiczbaOproznien and (string-length($Bio2/do:LiczbaOproznien)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'159'"/>
                      <xsl:with-param name="value" select="$Bio2/do:LiczbaOproznien"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'159'"/>
                      <xsl:with-param name="value" select="$Bio2/do:LiczbaOproznien"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>              
                <xsl:choose>
                  <xsl:when test="$Bio2/do:ZadeklarowanaLiczbaPojemnikow and (string-length($Bio2/do:ZadeklarowanaLiczbaPojemnikow)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'160'"/>
                      <xsl:with-param name="value" select="$Bio2/do:ZadeklarowanaLiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'160'"/>
                      <xsl:with-param name="value" select="$Bio2/do:ZadeklarowanaLiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Bio2/do:Pojemnosc and (string-length($Bio2/do:Pojemnosc)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'161'"/>
                      <xsl:with-param name="value" select="$Bio2/do:Pojemnosc"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'161'"/>
                      <xsl:with-param name="value" select="$Bio2/do:Pojemnosc"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Bio2/do:StawkaZaPojemnik and (string-length($Bio2/do:StawkaZaPojemnik)&gt;0)">
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'162'"/>
                      <xsl:with-param name="value" select="$Bio2/do:StawkaZaPojemnik"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'162'"/>
                      <xsl:with-param name="value" select="$Bio2/do:StawkaZaPojemnik"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Bio2/do:Kwota and (string-length($Bio2/do:Kwota)&gt;0)">
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'163'"/>
                      <xsl:with-param name="value" select="$Bio2/do:Kwota"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'163'"/>
                      <xsl:with-param name="value" select="$Bio2/do:Kwota"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
              </tr>
    
              <xsl:variable name="Bio3" select="$Odpady/do:Bio[3]"/>
              <tr>
               <xsl:choose>
                  <xsl:when test="$Bio3/do:LiczbaPojemnikow and (string-length($Bio3/do:LiczbaPojemnikow)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'164'"/>
                      <xsl:with-param name="value" select="$Bio3/do:LiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'164'"/>
                      <xsl:with-param name="value" select="$Bio3/do:LiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Bio3/do:LiczbaOproznien and (string-length($Bio3/do:LiczbaOproznien)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'165'"/>
                      <xsl:with-param name="value" select="$Bio3/do:LiczbaOproznien"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'165'"/>
                      <xsl:with-param name="value" select="$Bio3/do:LiczbaOproznien"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>              
                <xsl:choose>
                  <xsl:when test="$Bio3/do:ZadeklarowanaLiczbaPojemnikow and (string-length($Bio3/do:ZadeklarowanaLiczbaPojemnikow)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'166'"/>
                      <xsl:with-param name="value" select="$Bio3/do:ZadeklarowanaLiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'166'"/>
                      <xsl:with-param name="value" select="$Bio3/do:ZadeklarowanaLiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Bio3/do:Pojemnosc and (string-length($Bio3/do:Pojemnosc)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'167'"/>
                      <xsl:with-param name="value" select="$Bio3/do:Pojemnosc"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'167'"/>
                      <xsl:with-param name="value" select="$Bio3/do:Pojemnosc"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Bio3/do:StawkaZaPojemnik and (string-length($Bio3/do:StawkaZaPojemnik)&gt;0)">
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'168'"/>
                      <xsl:with-param name="value" select="$Bio3/do:StawkaZaPojemnik"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'168'"/>
                      <xsl:with-param name="value" select="$Bio3/do:StawkaZaPojemnik"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Bio3/do:Kwota and (string-length($Bio3/do:Kwota)&gt;0)">
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'169'"/>
                      <xsl:with-param name="value" select="$Bio3/do:Kwota"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'169'"/>
                      <xsl:with-param name="value" select="$Bio3/do:Kwota"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
              </tr>
    
              <xsl:variable name="Bio4" select="$Odpady/do:Bio[4]"/>
              <tr>
               <xsl:choose>
                  <xsl:when test="$Bio4/do:LiczbaPojemnikow and (string-length($Bio4/do:LiczbaPojemnikow)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'170'"/>
                      <xsl:with-param name="value" select="$Bio4/do:LiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'170'"/>
                      <xsl:with-param name="value" select="$Bio4/do:LiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Bio4/do:LiczbaOproznien and (string-length($Bio4/do:LiczbaOproznien)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'171'"/>
                      <xsl:with-param name="value" select="$Bio4/do:LiczbaOproznien"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'171'"/>
                      <xsl:with-param name="value" select="$Bio4/do:LiczbaOproznien"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>              
                <xsl:choose>
                  <xsl:when test="$Bio4/do:ZadeklarowanaLiczbaPojemnikow and (string-length($Bio4/do:ZadeklarowanaLiczbaPojemnikow)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'172'"/>
                      <xsl:with-param name="value" select="$Bio4/do:ZadeklarowanaLiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'172'"/>
                      <xsl:with-param name="value" select="$Bio4/do:ZadeklarowanaLiczbaPojemnikow"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Bio4/do:Pojemnosc and (string-length($Bio4/do:Pojemnosc)&gt;0)">
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'173'"/>
                      <xsl:with-param name="value" select="$Bio4/do:Pojemnosc"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWaste">
                      <xsl:with-param name="lp" select="'173'"/>
                      <xsl:with-param name="value" select="$Bio4/do:Pojemnosc"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed ml-div gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Bio4/do:StawkaZaPojemnik and (string-length($Bio4/do:StawkaZaPojemnik)&gt;0)">
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'174'"/>
                      <xsl:with-param name="value" select="$Bio4/do:StawkaZaPojemnik"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'174'"/>
                      <xsl:with-param name="value" select="$Bio4/do:StawkaZaPojemnik"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:choose>
                  <xsl:when test="$Bio4/do:Kwota and (string-length($Bio4/do:Kwota)&gt;0)">
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'175'"/>
                      <xsl:with-param name="value" select="$Bio4/do:Kwota"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed'"/>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="cellWasteAmount">
                      <xsl:with-param name="lp" select="'175'"/>
                      <xsl:with-param name="value" select="$Bio4/do:Kwota"/>
                      <xsl:with-param name="class" select="'no-border-top border-bottom-dashed gray-bg'"/>
                    </xsl:call-template>
                  </xsl:otherwise>
                </xsl:choose>
              </tr>
    
    
              <tr>
                <td colspan="6" class="gray-bg h-39 va-middle">
                  <div class="f-bold f-9 pl-3">
                    <div>WYSOKOŚĆ OPŁATY [zł/m-c]</div> 
                    <div>(suma kwot wyliczonych w kolumnie G)</div>
                  </div>
                </td>
                <xsl:call-template name="cellWasteAmount">
                  <xsl:with-param name="lp" select="'176'"/>
                  <xsl:with-param name="value" select="$Oplaty/do:CzescNiezamieszkala/do:WysokoscOplaty"/>
                  <xsl:with-param name="class" select="'mt-div'"/>
                </xsl:call-template>
              </tr>
              
            </table>
    
            <table class="border-top td-border">
            <tr>
              <td colspan="7" class="title">
                E.3. ŁĄCZNA WYSOKOŚĆ OPŁATY ZA GOSPODAROWANIE ODPADAMI KOMUNALNYMI
              </td>
            </tr>
              <tr>
                <td rowspan="2" class="col-gray"/>
                <td rowspan="2" class="gray-bg f-bold f-9 va-middle">
                  <div>
    				<ul class="li-mb">
    					<li>
    					  JEŻELI ZAZNACZONO POLE W POZ. 43, WSKAZAĆ OPŁATĘ OBLICZONĄ W CZĘŚCI E.1. (SEKCJI E.1.1. albo E.1.2.).
    					</li>
    					<li>
    					  JEŻELI ZAZNACZONO POLE W POZ. 45, WSKAZAĆ SUMĘ OPŁAT OBLICZONYCH W CZĘŚCI E.1. (SEKCJI E.1.1. albo E.1.2.) I W CZĘŚCI E.2
    					</li>
    				</ul>
    			  </div>
                </td>
    
                <td rowspan="2" class="col-gray-2 va-middle">
                  <div class="f-bold f-14 t-center">=</div>
                </td>
                <td class="h-40 gray-bg va-middle w-200">
                  <div class="f-bold f-9 t-center">
                    WYSOKOŚĆ OPŁATY<br/>
                    [zł/m-c]
                  </div>
                </td>
              </tr>
              <tr>
              <td class="h-40">
                <div class="title-small">177.</div>
                <div class="amount">
                  <xsl:call-template name="field">
                    <xsl:with-param name="value" select="format-number(number($Oplaty/do:WysokoscOplaty), '##0,00', 'Polish')"/>
                  </xsl:call-template>
                </div>
              </td>
              </tr>
    
            </table>
    
            <!-- end section: Oplaty -->
    
            <!-- section: Zalaczniki -->
            <xsl:variable name="Zalaczniki" select="$Dokument/str:Zalaczniki"/>
            <table class="border-top-bold td-border">
              <tr>
                <td colspan="4" class="title f-bold">
                  F. INFORMACJA O ZAŁĄCZNIKACH
                </td>
              </tr>
    
              <xsl:for-each select="$Zalaczniki/str:Zalacznik">
                <xsl:choose>
                  <xsl:when test="current()/@nazwaPliku != ''">
                    <tr>
                      <xsl:choose>
                        <xsl:when test="position() = last()">
                          <td class="col-gray"/>
                        </xsl:when>
                        <xsl:otherwise>
                          <td class="col-gray no-border-bottom"/>
                        </xsl:otherwise>
                      </xsl:choose>
                      <td class="p-8">
                        <div class="float-left pr-5 mb-3">
                          <xsl:call-template name="checkboxChecked"/>
                        </div>
                        <div class="float-left">
                          <xsl:choose>
                            <xsl:when test="not(current()/@rodzajZalacznika) or (current()/@rodzajZalacznika = '')">
                              <div class="pt-5"><xsl:text>pełnomocnictwo</xsl:text> - <xsl:value-of select="current()/@nazwaPliku"/></div>
                            </xsl:when>
                            <xsl:otherwise>
                              <div class="pt-5"><xsl:value-of select="current()/@rodzajZalacznika"/> - <xsl:value-of select="current()/@nazwaPliku"/></div>
                            </xsl:otherwise>
                          </xsl:choose>
                        </div>
                        <div class="clear"/>
                      </td>
                      <td class="no-border-right t-right pr-3 pt-13"><xsl:value-of select="'1'"/></td>
                      <td class="no-border-left pt-13">SZT.</td>
                    </tr>
                  </xsl:when>
                  <xsl:otherwise>
                    <tr>
                      <td class="col-gray"/>
                      <td colspan="3" class="h-38"/>
                    </tr>
                  </xsl:otherwise>
                </xsl:choose>
              </xsl:for-each>
    
              <xsl:if test="not($Zalaczniki/str:Zalacznik)">
                <tr>
                  <td class="col-gray"/>
                  <td colspan="3" class="h-38"/>
                </tr>
              </xsl:if>
            </table>
            <!-- end section: Zalaczniki -->
    
            <table class="border-top-bold td-border">
              <tr>
                <td colspan="2" class="title f-bold">
                  G. POUCZENIE
                </td>
              </tr>
              <tr>
                <td class="col-gray"/>
                <td class="f-12 pad-1">
                  W przypadku nieuiszczenia opłaty za gospodarowanie odpadami komunalnymi
                  w zadeklarowanej wysokości w terminie wynikającym z obowiązującej uchwały Rady
                  Miejskiej w Łodzi w sprawie określenia terminu, częstotliwości i trybu uiszczania opłaty
                  za gospodarowanie odpadami komunalnymi, niniejsza deklaracja stanowi podstawę
                  do wystawienia tytułu wykonawczego, zgodnie z przepisami ustawy z dnia 17 czerwca
                  1966 r. o postępowaniu egzekucyjnym w administracji.
                </td>
              </tr>
            </table>
    
            <table class="border-top-bold td-border">
              <tr>
                <td colspan="2" class="title f-bold">
                  H. KLAUZULA INFORMACYJNA
                </td>
              </tr>
              <tr>
                <td class="col-gray"/>
                <td class="pad-1 f-8-5">
                  Zgodnie z art. 13 ust. 1 i 2 ogólnego rozporządzenia o ochronie danych osobowych z dnia 27 kwietnia 2016 r. (rozporządzenie Parlamentu Europejskiego
                  i Rady UE 2016/679 w sprawie ochrony osób fizycznych w związku z przetwarzaniem danych i w sprawie swobodnego przepływu takich danych oraz uchylenia
                  dyrektywy 95/46/WE) uprzejmie informujemy, że:
                  <ol class="decimal">
                    <li>
                      Administratorem danych osobowych jest Prezydent Miasta Łodzi z siedzibą w Łodzi przy ul. Piotrkowskiej 104, 90-926 Łódź, e-mail: lckm@uml.lodz.pl.
                    </li>
                    <li>
                      Administrator wyznaczył inspektora oraz zastępcę inspektora ochrony danych, z którym może się Pani/Pan skontaktować poprzez e-mail iod@uml.lodz.pl.
                      Z inspektorem ochrony danych osobowych jego zastępcą można się kontaktować we wszystkich sprawach dotyczących przetwarzania danych osobowych przez
                      Urząd Miasta Łodzi oraz korzystania z praw związanych z przetwarzaniem danych.
                    </li>
                    <li>
                      Podanie danych osobowych jest warunkiem koniecznym do realizacji sprawy w Urzędzie Miasta Łodzi. Ogólną podstawę do przetwarzania danych stanowi
                      art. 6 ust. 1 lit. c ogólnego rozporządzenia. Szczegółowe cele przetwarzania danych zostały wskazane w następujących przepisach:
                      <table class="list">
                        <tr><td>a)</td><td>ustawie z dnia 13 września 1996 r. o utrzymaniu czystości i porządku w gminach,</td></tr>
                        <tr><td>b)</td><td>ustawie z dnia 29 sierpnia 1997 r. Ordynacja podatkowa,</td></tr>
                        <tr><td>c)</td><td>ustawie z dnia 27 kwietnia 2001 r. Prawo ochrony środowiska,</td></tr>
                        <tr><td>d)</td><td>ustawie z dnia 29 września 1994 r. o rachunkowości,</td></tr>
                        <tr><td>e)</td><td>ustawie z dnia 14 czerwca 1960 r. Kodeks postępowania administracyjnego,</td></tr>
                        <tr><td>f)</td><td>ustawie z dnia 17 czerwca 1966 r. o postępowaniu egzekucyjnym w administracji.</td></tr>
                      </table>
                      Pana/Pani dane będą przetwarzane w celu realizacji zadań:
                      <ul class="dashed dashed-2">
                        <li>prowadzenie ewidencji deklaracji, ewidencji finansowo-księgowej w zakresie rozliczeń z właścicielami nieruchomości,</li>
                        <li>związanych z organizacją odbioru odpadów komunalnych,</li>
                        <li>wykonywanie funkcji kontrolnych w zakresie przestrzegania i stosowania przepisów ustawy o utrzymaniu czystości i porządku w gminach,</li>
                        <li>weryfikacja prowadzenia przez właścicieli nieruchomości selektywnej zbiórki odpadów komunalnych,</li>
                        <li>prowadzenie postępowań administracyjnych oraz windykacji i egzekucji w zakresie opłaty za gospodarowanie odpadami komunalnymi.</li>
                      </ul>
                    </li>
                    <li>
                      Dane osobowe będą udostępnione podmiotom, z którymi administrator zawarł umowę na świadczenie usługi odbierania odpadów komunalnych (wykaz firm
                      oraz rejon obsługiwania dostępny jest na stronie lodz.pl/odpady w zakładce „Firmy odbierające odpady”). Ponadto Pani/Pana dane mogą być udostępniane organom,
                      o których mowa w art. 298 ustawy Ordynacja podatkowa lub organom egzekucyjnym, Straży Miejskiej w  Łodzi, a ponadto odbiorcom danych w rozumieniu przepisów
                      o ochronie danych osobowych, tj. podmiotom świadczącym usługi pocztowe, usługi informatyczne, bankowe. Dane osobowe nie będą przekazywane do państw trzecich,
                      na podstawie szczegółowych regulacji prawnych, w tym umów międzynarodowych.
                    </li>
                    <li>
                      Dane osobowe będą przetwarzane, w tym przechowywane przez okres 2 lat, licząc od pierwszego stycznia roku następującego po roku, w którym sprawa została
                      zakończona, a następnie, zgodnie z przepisami ustawy z dnia 14 lipca 1983 r. o narodowym zasobie archiwalnym i archiwach, przez okres 10 lat, zgodnie z kategorią
                      archiwalną B10, a w przypadku zmiany kategorii archiwalnej dokumentacji przez okres zgodny ze zmienioną kategorią archiwalną dokumentacji. W przypadku wszczęcia
                      postępowania egzekucyjnego lub upadłościowego przez okres jego trwania, a następnie przez okres 5 lat od jego zakończenia.
                    </li>
                    <li>
                      W związku z przetwarzaniem danych osobowych, na podstawie przepisów prawa, posiada Pani/Pan prawo do:
                      <table class="list">
                        <tr><td>a)</td><td>dostępu do treści swoich danych, na podstawie art. 15 ogólnego rozporządzenia;</td></tr>
                        <tr><td>b)</td><td>sprostowania danych, na podstawie art. 16 ogólnego rozporządzenia;</td></tr>
                        <tr><td>c)</td><td>ograniczenia przetwarzania, na podstawie art. 18 ogólnego rozporządzenia.</td></tr>
                      </table>
                    </li>
                    <li>
                      Ma Pani/Pan prawo wniesienia skargi do organu nadzorczego – Prezesa Urzędu Ochrony Danych Osobowych, gdy uzna Pani/Pan, iż przetwarzanie danych osobowych
                      narusza przepisy o ochronie danych osobowych.
                    </li>
                    <li>
                      Gdy podanie danych osobowych wynika z przepisów prawa, jest Pani/Pan zobowiązana(y) do ich podania. Konsekwencją braku podania danych będzie wszczęcie
                      postępowania z urzędu.
                    </li>
                    <li>
                      Dane nie będą przetwarzane w sposób zautomatyzowany, w tym również w formie profilowania.
                    </li>
                  </ol>
                </td>
              </tr>
            </table>
    
            <!-- section: Signature -->
            <table class="border-top-bold td-border">
              <tr>
                <td colspan="4" class="title f-bold">
                  <div>I. PODPIS WŁAŚCICIELA NIERUCHOMOŚCI</div>
                  <div class="pl-15">ALBO OSOBY (OSÓB) UMOCOWANEJ (UMOCOWANYCH) DO JEGO REPREZENTOWANIA</div>
                </td>
              </tr>
              <xsl:for-each select="$XML/do:Dokument/ds:Signature">
                <tr>
                  <xsl:choose>
                    <xsl:when test="position() = last()">
                      <td class="col-gray"/>
                    </xsl:when>
                    <xsl:otherwise>
                      <td class="col-gray no-border-bottom"/>
                    </xsl:otherwise>
                  </xsl:choose>
                  <xsl:choose>
                    <xsl:when test="ds:KeyInfo/ds:X509Data/ds:X509SubjectName">
                      <xsl:variable name="subjName" select="ds:KeyInfo/ds:X509Data/ds:X509SubjectName"/>
                      <td>
                        <xsl:choose>
                          <xsl:when test="position() = 1">
                            <div class="title-small">178. Pierwsze imię</div>
                          </xsl:when>
                          <xsl:otherwise>
                            <div class="title-small-empty"/>
                          </xsl:otherwise>
                        </xsl:choose>
                        <div class="field">
                          <xsl:choose>
                            <xsl:when test="contains($subjName, 'CN=')">
                              <xsl:variable name="subjNameCN" select="substring-after($subjName, 'CN=')"/>
                              <xsl:choose>
                                <xsl:when test="contains($subjNameCN, ',')">
                                  <xsl:variable name="subjNameCNPart" select="substring-before($subjName, ',')"/>
                                  <xsl:value-of select="substring-before($subjNameCNPart, ' ')"/>
                                </xsl:when>
                                <xsl:otherwise>
                                  <xsl:value-of select="substring-before($subjNameCN, ' ')"/>
                                </xsl:otherwise>
                              </xsl:choose>
                            </xsl:when>
                            <xsl:otherwise>
                              <xsl:value-of select="substring-before($subjName, ' ')"/>
                            </xsl:otherwise>
                          </xsl:choose>
                        </div>
                      </td>
                      <td>
                        <xsl:choose>
                          <xsl:when test="position() = 1">
                            <div class="title-small">179. Nazwisko</div>
                          </xsl:when>
                          <xsl:otherwise>
                            <div class="title-small-empty"/>
                          </xsl:otherwise>
                        </xsl:choose>
                        <div class="field">
                          <xsl:choose>
                            <xsl:when test="contains($subjName, 'CN=')">
                              <xsl:variable name="subjNameCN" select="substring-after($subjName, 'CN=')"/>
                              <xsl:choose>
                                <xsl:when test="contains($subjNameCN, ',')">
                                  <xsl:variable name="subjNameCNPart" select="substring-before($subjName, ',')"/>
                                  <xsl:call-template name="recursiveLastString">
                                    <xsl:with-param name="value" select="$subjNameCNPart"/>
                                  </xsl:call-template>
                                </xsl:when>
                                <xsl:otherwise>
                                  <xsl:call-template name="recursiveLastString">
                                    <xsl:with-param name="value" select="$subjNameCN"/>
                                  </xsl:call-template>
                                </xsl:otherwise>
                              </xsl:choose>
                            </xsl:when>
                            <xsl:otherwise>
                              <xsl:call-template name="recursiveLastString">
                                <xsl:with-param name="value" select="$subjName"/>
                              </xsl:call-template>
                            </xsl:otherwise>
                          </xsl:choose>
                        </div>
                      </td>
                      <td>
                        <xsl:choose>
                          <xsl:when test="position() = 1">
                            <div class="title-small">180. Podpis</div>
                          </xsl:when>
                          <xsl:otherwise>
                            <div class="title-small-empty"/>
                          </xsl:otherwise>
                        </xsl:choose>
                        <div class="field">(Podpis elektroniczny)</div>
                      </td>
                    </xsl:when>
                    <xsl:otherwise>
                      <td>
                        <xsl:choose>
                          <xsl:when test="position() = 1">
                            <div class="title-small">178. Pierwsze imię</div>
                          </xsl:when>
                          <xsl:otherwise>
                            <div class="title-small-empty"/>
                          </xsl:otherwise>
                        </xsl:choose>
                        <div class="field h-14"/>
                      </td>
                      <td>
                        <xsl:choose>
                          <xsl:when test="position() = 1">
                            <div class="title-small">179. Nazwisko</div>
                          </xsl:when>
                          <xsl:otherwise>
                            <div class="title-small-empty"/>
                          </xsl:otherwise>
                        </xsl:choose>
                        <div class="field h-14"/>
                      </td>
                      <td>
                        <xsl:choose>
                          <xsl:when test="position() = 1">
                            <div class="title-small">180. Podpis</div>
                          </xsl:when>
                          <xsl:otherwise>
                            <div class="title-small-empty"/>
                          </xsl:otherwise>
                        </xsl:choose>
                        <div class="field">(Imię i nazwisko zawarte w podpisie elektronicznym)</div>
                      </td>
                    </xsl:otherwise>
                  </xsl:choose>
                </tr>
              </xsl:for-each>
    
              <xsl:if test="not($XML/do:Dokument/ds:Signature)">
              <tr>
                <td rowspan="2" class="col-gray"/>
                <td>
                  <div class="title-small">178. Pierwsze imię</div>
                  <div class="field h-14"/>
                </td>
                <td>
                  <div class="title-small">179. Nazwisko</div>
                  <div class="field h-14"/>
                </td>
                <td>
                  <div class="title-small">180. Podpis</div>
                  <div class="field">(Brak podpisu elektronicznego)</div>
                </td>
              </tr>
              </xsl:if>
            </table>
            <!-- end section: Signature -->
    
            <table class="border-top-bold td-border">
              <tr>
                <td colspan="2" class="title f-bold">
                  J. ADNOTACJE ORGANU
                </td>
              </tr>
              <tr>
                <td rowspan="2" class="col-gray"/>
                <td class="dark-gray-bg h-126">
                  <div class="title-small">181. Uwagi organu</div>
                </td>
              </tr>
              <tr>
                <td class="dark-gray-bg h-64">
                  <div class="title-small">182. Data i podpis weryfikującego deklarację</div>
                </td>
              </tr>
            </table>
    
            <table class="border-top-bold td-border">
              <tr>
                <td colspan="2" class="title f-bold">
                  OBJAŚNIENIA
                </td>
              </tr>
              <tr>
                <td class="col-gray"/>
                <td class="pad-1 f-9">
                  <ol class="decimal decimal-2 pad-2 li-mb">
                    <li>
                      Przez właścicieli nieruchomości rozumie się także współwłaścicieli, użytkowników wieczystych oraz jednostki organizacyjne i osoby posiadające
                      nieruchomości w zarządzie lub użytkowaniu, a także inne podmioty władające nieruchomością (art. 2 ust. 1 pkt 4 ucpg). Jeżeli obowiązki wskazane w ucpg
                      mogą jednocześnie dotyczyć kilku podmiotów spośród wskazanych w ust. 1 pkt 4, obowiązany do ich wykonania jest podmiot lub podmioty faktycznie władające
                      nieruchomością. W takim przypadku podmioty, o których mowa w ust. 1 pkt 4, mogą w drodze umowy zawartej w formie pisemnej, wskazać podmiot obowiązany
                      do wykonania obowiązków wynikających z ustawy (art. 2 ust. 2a ucpg).<br/>
                      Jeżeli nieruchomość jest zabudowana budynkiem wielolokalowym, w którym ustanowiono odrębną własność lokalu, obowiązki właściciela nieruchomości wspólnej
                      oraz właściciela lokalu obciążają wspólnotę mieszkaniową albo spółdzielnię mieszkaniową (art. 2 ust. 3 ucpg).
                    </li>
                    <li>
                      Właściciel nieruchomości, na której zamieszkują mieszkańcy lub która w części stanowi nieruchomość, na której zamieszkują mieszkańcy, a w części nieruchomość,
                      na której nie zamieszkują mieszkańcy, a powstają odpady komunalne jest obowiązany złożyć do wójta, burmistrza lub prezydenta miasta pierwszą deklarację o wysokości opłaty
                      za gospodarowanie odpadami komunalnymi w terminie 14 dni od dnia zamieszkania  pierwszego mieszkańca na danej nieruchomości (art. 6m ust. 1 pkt 1 i 3, art. 6m ust. 1<sup>1</sup> pkt 1 ucpg).
                    </li>
                    <li>
                      W przypadku zmiany danych będących podstawą ustalenia wysokości należnej opłaty za gospodarowanie odpadami komunalnymi lub określonej w deklaracji ilości
                      odpadów komunalnych powstających na danej nieruchomości, właściciel nieruchomości jest obowiązany złożyć nową deklarację w terminie do 10 dnia miesiąca
                      następującego po miesiącu, w którym nastąpiła zmiana. Opłatę za gospodarowanie odpadami komunalnymi w zmienionej wysokości uiszcza się za miesiąc, w którym
                      nastąpiła zmiana (art. 6m ust. 2 ucpg). Właściciel nieruchomości nie może złożyć deklaracji zmniejszającej wysokość zobowiązania z tytułu opłaty
                      za gospodarowanie odpadami komunalnymi za okres wsteczny, z wyjątkiem przypadku, o którym mowa w ust. 2 (art. 6m ust. 4 ucpg). Przepisu ust. 4 nie stosuje się,
                      jeżeli właściciel nieruchomości złoży nową deklarację zmniejszającą wysokość:
                      <table class="list">
                        <tr><td>1)</td><td>zobowiązania z tytułu opłaty za gospodarowanie odpadami komunalnymi w związku ze śmiercią mieszkańca w terminie do 6 miesięcy od dnia tego zdarzenia;
                        </td></tr>
                        <tr><td>2)</td><td>opłaty za gospodarowanie odpadami komunalnymi w związku z informacją lub korektą faktur, uzyskaną
                          z przedsiębiorstwa wodociągowo-kanalizacyjnego
                        </td></tr>
                        <tr><td/><td>(art. 6m ust. 5 pkt 1 i 2 ucpg).</td></tr>
                      </table>
                    </li>
                    <li>
                      Właściciel nieruchomości może skorygować uprzednio złożoną deklarację, przy czym skorygowanie deklaracji następuje przez złożenie korygującej deklaracji
                      (art. 6q ust. 1 ucpg w zw. z art. 81 § 1 i 2 ustawy z dnia 29 sierpnia 1997 r. – Ordynacja podatkowa). Korygującą deklarację należy złożyć na formularzu według
                      wzoru obowiązującego w okresie, którego dotyczy korekta.
                    </li>
                    <li>
                      Jedna deklaracja nie może dotyczyć więcej niż jednej nieruchomości. Dopuszcza się złożenie odrębnych deklaracji dla poszczególnych budynków lub ich części
                      w przypadku nieruchomości zabudowanej budynkiem wielolokalowym lub budynkami wielolokalowymi, jeżeli poszczególne budynki lub ich części posiadają przyporządkowane
                      im oddzielne miejsca gromadzenia odpadów komunalnych (art. 6m ust. 1ca ucpg).
                    </li>
                    <li>
                      Metody ustalenia opłaty i jej stawki zgodne z obowiązującą uchwałą Rady Miejskiej w Łodzi w sprawie wyboru metody ustalenia opłaty za gospodarowanie odpadami
                      komunalnymi oraz ustalenia stawki takiej opłaty na terenie Miasta Łodzi.
                    </li>
    				<li>
    				  Średniomiesięczne zużycie wody jest wyliczane jako suma ilości zużytej wody według 
              wskazań wodomierza za kolejne trzy miesiące następujące po sobie –  bezpośrednio 
              poprzedzające miesiąc, w którym powstał obowiązek złożenia deklaracji, podzielone 
              przez 3. Przy wyliczaniu średniomiesięcznego zużycia nie uwzględnia się ilości
               wody: 1) bezpowrotnie zużytej w okresie przyjętym  do  wyliczenia,  ustalonej  
               na  podstawie  wskazań  dodatkowego  wodomierza zainstalowanego  na  danej  
               nieruchomości;  2)  wody  zużytej  poza  częścią  zamieszkałą nieruchomości
                – wody  wykorzystywanej  na  cele  wspólne  nieruchomości  oraz  wody
                 wykorzystywanej w lokalach użytkowych.
    				</li>
    				<li>
    				  W przypadku nieruchomości, na której zamieszkują mieszkańcy, opłata za gospodarowanie
               odpadami komunalnymi ustalana na podstawie metody, o której mowa w art. 6j ust. 1
                pkt 2, nie może wynosić więcej niż 7,8% przeciętnego miesięcznego dochodu
                 rozporządzalnego na 1 osobę ogółem za gospodarstwo domowe (art. 6j ust. 3f ucpg).
    				</li>
    				<li>
    				  Przez zadeklarowaną liczbę pojemników lub worków rozumie się iloczyn liczby
               pojemników lub worków przeznaczonych do zbierania odpadów komunalnych na terenie 
               nieruchomości oraz liczby ich opróżnień lub odbiorów wynikającej z częstotliwości 
               odbioru  odpadów komunalnych określonych w uchwale o szczegółowym sposobie i zakresie 
               świadczenia usług w  zakresie  odbierania  odpadów  komunalnych  od  właścicieli  
               nieruchomości i zagospodarowania tych odpadów, w zamian za uiszczoną przez 
               właściciela nieruchomości opłatę za gospodarowanie odpadami komunalnymi albo 
               harmonogramu  odbioru  odpadów komunalnych dla danej nieruchomości (art. 6j ust. 3 ucpg)
    				</li>
    				<li>
    				  Wysokość  stawki  opłaty  za  pojemnik  lub  worek  o  określonej  pojemności, 
              przeznaczony do zbierania odpadów komunalnych na terenie nieruchomości zgodna 
              z obowiązującą uchwałą Rady  Miejskiej  w  Łodzi  w  sprawie  wyboru  metody 
              ustalenia  opłaty  za  gospodarowanie odpadami komunalnymi oraz ustalenia 
              stawki takiej opłaty na terenie Miasta Łodzi.
    				</li>
                    <li>
                      Pełnomocnictwo w rozumieniu ustawy Ordynacja podatkowa.
                    </li>
                  </ol>
                </td>
              </tr>          
            </table>
    
            <xsl:variable name="ZDOW" select="$WgZuzytejWody/do:ZDOW"/>
            <xsl:if test="$ZDOW/do:ZalacznikWypelniony = 'tak'">
    
              <!-- ZDO-W -->
              <table class="mt-24">
                <tr class="va-top">
                  <td class="w-109 f-16 f-extra-bold">
                    ZDO-W
                  </td>
                  <td>
                    <div class="t-center f-14 f-extra-bold">OŚWIADCZENIE WŁAŚCICIELA NIERUCHOMOŚCI </div>              
                    <div class="f-10 pb-10">
                      DOTYCZĄCE GOSPODARSTW DOMOWYCH, W KTÓRYCH WYSOKOŚĆ OPŁATY ZA GOSPODAROWANIE ODPADAMI KOMUNALNYMI PRZEKRACZA 7,8% 
                      PRZECIĘTNEGO MIESIĘCZNEGO DOCHODU ROZPORZĄDZALNEGO NA 1 OSOBĘ OGÓŁEM
                    </div>
                  </td>
                </tr>
              </table>
    
              <!-- section: Nieruchomosc -->
              
              <!-- end section: Nieruchomosc -->
    
              <!-- section: Oświadzczenie -->
              
    
              
              
              <table class="border-top td-border">
                <tr>
                  <td colspan="6" class="title f-bold">
                    OŚWIADCZAM, ŻE NA NIERUCHOMOŚCI POŁOŻONEJ W ŁODZI PRZY UL. 
                    <span>
                      <xsl:call-template name="fieldInline">
                        <xsl:with-param name="value" select="$Nieruchomosc/do:Ulica"/>
                      </xsl:call-template>
                    </span> 
                    <span class="pl-10">
                      <xsl:call-template name="fieldInline">
                        <xsl:with-param name="value" select="$Nieruchomosc/do:Budynek"/>
                      </xsl:call-template>
                    </span>
                    <span>
                      <xsl:call-template name="fieldInlineAndBackslash">
                        <xsl:with-param name="value" select="$Nieruchomosc/do:Lokal"/>
                      </xsl:call-template>
                    </span>
                  </td>
                </tr>
                <tr>
                  <td rowspan="3" class="col-gray"/>
                  <td class="h-40 gray-bg no-border-bottom">
                    <div class="f-bold f-9 t-center">LICZBA GOSPODARSTW DOMOWYCH</div>              
                  </td>
                  <td class="h-40 gray-bg no-border-bottom">
                    <div class="f-bold f-9 t-center">OPŁATA PRZYPADAJĄCA NA GOSPODARSTWA DOMOWE WYMIENIONE W POZ. 1<sup>1</sup></div>
                  </td>
                  <td class="h-40 gray-bg w-200 no-border-bottom">
                    <div class="f-bold f-9 t-center">
                      OPŁATA MAKSYMALNA ZA GOSPODARSTWA DOMOWE
                    </div>              
                  </td>            
                  <td class="h-40 gray-bg w-200 no-border-bottom">
                    <div class="f-bold f-9 t-center">
                      KWOTA POMNIEJSZENIA OPŁATY<sup>3</sup>
                    </div>              
                  </td>
                </tr>
                <tr>			      
                  <td class="h-40 gray-bg va-middle t-center no-border-top">              
                    <div>
                      (w których wysokość opłaty za gospodarowanie odpadami komunalnymi przekracza 7,8% przeciętnego miesięcznego dochodu rozporządzalnego na 1 osobę ogółem)
                    </div>
                  </td>
                  <td class="h-40 gray-bg va-middle t-center no-border-top">              
                  </td>
                  <td class="h-40 gray-bg va-middle w-200 t-center no-border-top">              
                    <div>
                      (iloczyn liczby gospodarstw domowych /poz. 1/ i maksymalnej dopuszczalnej wysokości opłaty za gospodarstwo domowe<sup>2</sup>)
                    </div>
                  </td>            
                  <td class="h-40 gray-bg va-middle w-200 t-center no-border-top">
                    <div>
                      (różnica pomiędzy opłatą przypadającą na gospodarstwa domowe /poz. 2/ a opłatą maksymalną za gospodarstwa domowe /poz. 3/)
                    </div>
                  </td>
                </tr>
                <tr>
                  <td class="h-40">
                    <div class="title-small">1.</div>
                    <div class="amount pt-10">
                      <xsl:call-template name="field">
                        <xsl:with-param name="value" select="$ZDOW/do:LiczbaGospodarstwDomowych"/>
                      </xsl:call-template>
                    </div>
                  </td>
                  <td class="h-40">
                    <div class="title-small">2.</div>
                    <div class="amount pt-10">
                      <xsl:call-template name="fieldAmount">
                        <xsl:with-param name="value" select="$ZDOW/do:OplataPrzypadajacaNaGospodarstwaDomowe"/>
                      </xsl:call-template>
                    </div>
                  </td>
                  <td class="h-40">
                    <div class="title-small">3.</div>
                    <div class="amount pt-10">
                      <xsl:call-template name="fieldAmount">
                        <xsl:with-param name="value" select="$ZDOW/do:OplataMaksymalna"/>
                      </xsl:call-template>
                    </div>
                  </td>
                  <td class="h-40">
                    <div class="title-small">4.</div>
                    <div class="amount pt-10">
                      <xsl:call-template name="fieldAmount">
                        <xsl:with-param name="value" select="$ZDOW/do:KwotaPomniejszeniaOplaty"/>
                      </xsl:call-template>
                    </div>
                  </td>
                </tr>		      
              </table>
              <!-- end section: Oświadzczenie -->
    
              <!-- section: Signature -->
    
              
              <table class="border-top-bold td-border">
                <tr>
                  <td colspan="4" class="title f-bold">
                    <div>PODPIS WŁAŚCICIELA NIERUCHOMOŚCI ALBO OSOBY (OSÓB) UMOCOWANEJ (UMOCOWANYCH) DO JEGO REPREZENTOWANIA</div>
                  </td>
                </tr>
                <xsl:for-each select="$XML/do:Dokument/ds:Signature">
                  <tr>
                    <xsl:choose>
                      <xsl:when test="position() = last()">
                        <td class="col-gray"/>
                      </xsl:when>
                      <xsl:otherwise>
                        <td class="col-gray no-border-bottom"/>
                      </xsl:otherwise>
                    </xsl:choose>
                    <xsl:choose>
                      <xsl:when test="ds:KeyInfo/ds:X509Data/ds:X509SubjectName">
                        <xsl:variable name="subjName" select="ds:KeyInfo/ds:X509Data/ds:X509SubjectName"/>
                        <td>
                          <xsl:choose>
                            <xsl:when test="position() = 1">
                              <div class="title-small">5. Pierwsze imię</div>
                            </xsl:when>
                            <xsl:otherwise>
                              <div class="title-small-empty"/>
                            </xsl:otherwise>
                          </xsl:choose>
                          <div class="field">
                            <xsl:choose>
                              <xsl:when test="contains($subjName, 'CN=')">
                                <xsl:variable name="subjNameCN" select="substring-after($subjName, 'CN=')"/>
                                <xsl:choose>
                                  <xsl:when test="contains($subjNameCN, ',')">
                                    <xsl:variable name="subjNameCNPart" select="substring-before($subjName, ',')"/>
                                    <xsl:value-of select="substring-before($subjNameCNPart, ' ')"/>
                                  </xsl:when>
                                  <xsl:otherwise>
                                    <xsl:value-of select="substring-before($subjNameCN, ' ')"/>
                                  </xsl:otherwise>
                                </xsl:choose>
                              </xsl:when>
                              <xsl:otherwise>
                                <xsl:value-of select="substring-before($subjName, ' ')"/>
                              </xsl:otherwise>
                            </xsl:choose>
                          </div>
                        </td>
                        <td>
                          <xsl:choose>
                            <xsl:when test="position() = 1">
                              <div class="title-small">6. Nazwisko</div>
                            </xsl:when>
                            <xsl:otherwise>
                              <div class="title-small-empty"/>
                            </xsl:otherwise>
                          </xsl:choose>
                          <div class="field">
                            <xsl:choose>
                              <xsl:when test="contains($subjName, 'CN=')">
                                <xsl:variable name="subjNameCN" select="substring-after($subjName, 'CN=')"/>
                                <xsl:choose>
                                  <xsl:when test="contains($subjNameCN, ',')">
                                    <xsl:variable name="subjNameCNPart" select="substring-before($subjName, ',')"/>
                                    <xsl:call-template name="recursiveLastString">
                                      <xsl:with-param name="value" select="$subjNameCNPart"/>
                                    </xsl:call-template>
                                  </xsl:when>
                                  <xsl:otherwise>
                                    <xsl:call-template name="recursiveLastString">
                                      <xsl:with-param name="value" select="$subjNameCN"/>
                                    </xsl:call-template>
                                  </xsl:otherwise>
                                </xsl:choose>
                              </xsl:when>
                              <xsl:otherwise>
                                <xsl:call-template name="recursiveLastString">
                                  <xsl:with-param name="value" select="$subjName"/>
                                </xsl:call-template>
                              </xsl:otherwise>
                            </xsl:choose>
                          </div>
                        </td>
                        <td>
                          <xsl:choose>
                            <xsl:when test="position() = 1">
                              <div class="title-small">7. Podpis</div>
                            </xsl:when>
                            <xsl:otherwise>
                              <div class="title-small-empty"/>
                            </xsl:otherwise>
                          </xsl:choose>
                          <div class="field">(Podpis elektroniczny)</div>
                        </td>
                      </xsl:when>
                      <xsl:otherwise>
                        <td>
                          <xsl:choose>
                            <xsl:when test="position() = 1">
                              <div class="title-small">5. Pierwsze imię</div>
                            </xsl:when>
                            <xsl:otherwise>
                              <div class="title-small-empty"/>
                            </xsl:otherwise>
                          </xsl:choose>
                          <div class="field h-14"/>
                        </td>
                        <td>
                          <xsl:choose>
                            <xsl:when test="position() = 1">
                              <div class="title-small">6. Nazwisko</div>
                            </xsl:when>
                            <xsl:otherwise>
                              <div class="title-small-empty"/>
                            </xsl:otherwise>
                          </xsl:choose>
                          <div class="field h-14"/>
                        </td>
                        <td>
                          <xsl:choose>
                            <xsl:when test="position() = 1">
                              <div class="title-small">7. Podpis</div>
                            </xsl:when>
                            <xsl:otherwise>
                              <div class="title-small-empty"/>
                            </xsl:otherwise>
                          </xsl:choose>
                          <div class="field">(Imię i nazwisko zawarte w podpisie elektronicznym)</div>
                        </td>
                      </xsl:otherwise>
                    </xsl:choose>
                  </tr>
                </xsl:for-each>
    
                <xsl:if test="not($XML/do:Dokument/ds:Signature)">
                <tr>
                  <td rowspan="2" class="col-gray"/>
                  <td>
                    <div class="title-small">5. Pierwsze imię</div>
                    <div class="field h-14"/>
                  </td>
                  <td>
                    <div class="title-small">6. Nazwisko</div>
                    <div class="field h-14"/>
                  </td>
                  <td>
                    <div class="title-small">7. Podpis</div>
                    <div class="field">(Brak podpisu elektronicznego)</div>
                  </td>
                </tr>
                </xsl:if>
              </table>
              <!-- end section: Signature -->
    
              <!-- section Objaśnienia -->
              
              <table class="border-top-bold td-border">
                <tr>
                  <td colspan="2" class="title f-bold">
                    OBJAŚNIENIA
                  </td>
                </tr>
                <tr>
                  <td class="col-gray"/>
                  <td class="f-9">
                    <ol class="decimal decimal-2 pad-2 li-mb">
                      <li>
                        Kwoty w poz. 2, 3, 4 należy podać w złotych, z dokładnością do dwóch miejsc po przecinku.
                      </li>
                      <li>
                        Maksymalna dopuszczalna wysokość opłaty za gospodarstwo domowe wynosi 7,8% przeciętnego miesięcznego dochodu rozporządzalnego na 1 osobę ogółem.
                        Przeciętny miesięczny dochód rozporządzalny na 1 osobę ogółem za rok poprzedni ogłasza w drodze obwieszczenia w Dzienniku Urzędowym Rzeczypospolitej Polskiej 
                        „Monitor Polski” Prezes Głównego Urzędu Statystycznego w pierwszym kwartale każdego roku.
                      </li>                
                      <li>
                        Kwotę z poz. 4 należy przenieść do poz. 50 deklaracji DO-W.
                      </li>
                    </ol>
                  </td>
                </tr>          
              </table>
              <!-- end section Objaśnienia -->
            </xsl:if>
              
          </body>
    
        </html>
      </xsl:template>
    
    </xsl:stylesheet>