View stylesheet

XML schemas http://biodiversity.eionet.europa.eu/schemas/barcelona_convention/hazardous.xsd
Output type HTML
Description XSL for Hazardous Protocol
XSL file hazardous.xslt (Last modified: 26 May 2008 15:00 )
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp "&#160;"> ]>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns="http://www.w3.org/1999/xhtml" 
                version="1.0">
	<xsl:output method="xml" indent="yes"
              doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
              doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
              omit-xml-declaration="yes"/>
  <xsl:preserve-space elements="difficulty-type"/>
  <xsl:param name="xml_folder_uri"/>
  <xsl:include href="http://converters.eionet.europa.eu/xsl/common.xslt"/>
  <xsl:variable name="labels_xml" select="document(concat($xml_folder_uri,'hazardous-labels-en.xml'))"/>
  <xsl:variable name="labels" select="$labels_xml/labels"/>
  
  <xsl:template match="hazardous">
    <html>
      <xsl:attribute name="xml:lang">
        <xsl:value-of select="@xml:lang"/>
      </xsl:attribute>
      <head>
          <style type="text/css"><![CDATA[
html
{
  font-family: arial, sans-serif;
  font-size: .8em;
}          
.zebra0
{
  background-color: white;
}          
.zebra1
{
  background-color: lightgrey;
}          
.datatable
{
  border-collapse: collapse;
}
.datatable td
{
  border: 1px solid black;
}

#description pre
{
  font-family: arial, sans-serif;
}

.vertical-text
{
  text-align: center;
}

.check-column
{
  text-align: center;
  font-weight: bold;
}

.center-text
{
  text-align: center;
}
]]>       </style> 
        <title>Hazardous Wastes Protocol</title>
      </head>
      <body>
        <h1><xsl:value-of select="$labels/label[@id='title']"/></h1>
        <!-- METADATA INFORMATION -->
        <xsl:apply-templates select="reporting-party"/>
        <!-- REPORT -->
        <xsl:apply-templates select="report"/>
      </body>
    </html>
  </xsl:template>  
  
  <!-- REPORT -->
  <xsl:template match="report">
    <xsl:apply-templates select="legal-measures"/>
    <br />
    <xsl:apply-templates select="resource-allocation"/>
    <br />
    <xsl:apply-templates select="technical-data"/>
    <br />
    <xsl:apply-templates select="enforcement-measures"/>
    <br />
    <xsl:apply-templates select="effectiveness"/>
  </xsl:template>
  <!-- END OF REPORT -->
  
  <xsl:template match="legal-measures">
    <h2><xsl:value-of select="$labels/label[@id='p1-title']"/></h2>
    <p>
      <strong>
        <xsl:value-of select="$labels/label[@id='p1-q1']"/>
      </strong>
    </p>      
    <table border="1" cellpadding="1" cellspacing="0" class="datatable">
      <caption>
        <xsl:value-of select="$labels/label[@id='p1-t1-caption']"/>
      </caption>
      <thead>
        <tr>
          <th rowspan="2"><xsl:value-of select="$labels/label[@id='p1-t1-col1']"/></th>
          <th rowspan="2"><xsl:value-of select="$labels/label[@id='number']"/></th>
          <th rowspan="2"><xsl:value-of select="$labels/label[@id='p1-t1-col3']"/></th>
          <th colspan="5">
            <xsl:value-of select="$labels/label[@id='status']"/>
            <br />
            <em><xsl:value-of select="$labels/label[@id='tick-answer']"/></em>
          </th>
          <th colspan="6">
            <xsl:value-of select="$labels/label[@id='difficulties']"/>
            <br />
            <em><xsl:value-of select="$labels/label[@id='tick-answers']"/></em>
          </th>
        </tr>
        <tr>
          <td class="vertical-text"><xsl:value-of select="$labels/label[@id='status-yes']"/></td>
          <td class="vertical-text"><xsl:value-of select="$labels/label[@id='status-no']"/></td>
          <td class="vertical-text"><xsl:value-of select="$labels/label[@id='status-dev']"/></td>
          <td class="vertical-text"><xsl:value-of select="$labels/label[@id='status-other']"/></td>
          <td class="vertical-text"><xsl:value-of select="$labels/label[@id='status-na']"/></td>
          <td class="vertical-text"><xsl:value-of select="$labels/label[@id='diff-policy']"/></td>
          <td class="vertical-text"><xsl:value-of select="$labels/label[@id='diff-regul']"/></td>
          <td class="vertical-text"><xsl:value-of select="$labels/label[@id='diff-finance']"/></td>
          <td class="vertical-text"><xsl:value-of select="$labels/label[@id='diff-admin']"/></td>
          <td class="vertical-text"><xsl:value-of select="$labels/label[@id='diff-tech']"/></td>
          <td class="vertical-text"><xsl:value-of select="$labels/label[@id='diff-public']"/></td>
        </tr>
      </thead>
      <tbody>
        <xsl:for-each select="table/*">
          <tr class="zebra{position() mod 2}">
            <xsl:variable name="relart" select="concat(concat('p1-t1-row', position()), '-ra')" />
            <xsl:variable name="descob" select="concat(concat('p1-t1-row', position()), '-od')" />
            <td rowspan="3"><xsl:value-of select="$labels/label[@id=$relart]"/></td>
            <td rowspan="3" class="center-text"><xsl:value-of select="position()"/></td>
            <td rowspan="3"><xsl:value-of select="$labels/label[@id=$descob]"/></td>
            <td class="check-column">
              <xsl:if test="./status-column/status-type = 00">X</xsl:if>
              <xsl:if test="./status-column/status-type != 00">&nbsp;</xsl:if>
            </td>
            <td class="check-column">
              <xsl:if test="./status-column/status-type = 01">X</xsl:if>
              <xsl:if test="./status-column/status-type != 01">&nbsp;</xsl:if>
            </td>
            <td class="check-column">
              <xsl:if test="./status-column/status-type = 02">X</xsl:if>
              <xsl:if test="./status-column/status-type != 02">&nbsp;</xsl:if>
            </td>
            <td class="check-column">
              <xsl:if test="./status-column/status-type = 03">X</xsl:if>
              <xsl:if test="./status-column/status-type != 03">&nbsp;</xsl:if>
            </td>
            <td class="check-column">
              <xsl:if test="./status-column/status-type = 04">X</xsl:if>
              <xsl:if test="./status-column/status-type != 04">&nbsp;</xsl:if>
            </td>
            <td class="check-column">
              <xsl:call-template name="decode-difficulty">
                <xsl:with-param name="text" select="./difficulties-column/difficulty-type" />
                <xsl:with-param name="pattern" select="'00'"/>
              </xsl:call-template>
            </td>
            <td class="check-column">
              <xsl:call-template name="decode-difficulty">
                <xsl:with-param name="text" select="./difficulties-column/difficulty-type" />
                <xsl:with-param name="pattern" select="'01'"/>
              </xsl:call-template>
            </td>
            <td class="check-column">
              <xsl:call-template name="decode-difficulty">
                <xsl:with-param name="text" select="./difficulties-column/difficulty-type" />
                <xsl:with-param name="pattern" select="'02'"/>
              </xsl:call-template>
            </td>
            <td class="check-column">
              <xsl:call-template name="decode-difficulty">
                <xsl:with-param name="text" select="./difficulties-column/difficulty-type" />
                <xsl:with-param name="pattern" select="'03'"/>
              </xsl:call-template>
            </td>
            <td class="check-column">
              <xsl:call-template name="decode-difficulty">
                <xsl:with-param name="text" select="./difficulties-column/difficulty-type" />
                <xsl:with-param name="pattern" select="'04'"/>
              </xsl:call-template>
            </td>
            <td class="check-column">
              <xsl:call-template name="decode-difficulty">
                <xsl:with-param name="text" select="./difficulties-column/difficulty-type" />
                <xsl:with-param name="pattern" select="'05'"/>
              </xsl:call-template>
            </td>
          </tr>
          <tr class="zebra{position() mod 2}">
            <td colspan="5" class="center-text">
              <xsl:value-of select="./status-column/reference"/>
            </td>
            <td colspan="6" rowspan="2" class="center-text">
              <xsl:value-of select="./difficulties-column/comment"/>
            </td>
          </tr>
          <tr class="zebra{position() mod 2}">
            <td colspan="5" class="center-text">
              <xsl:value-of select="./status-column/comment"/>
            </td>
          </tr>
        </xsl:for-each>  
      </tbody>      
    </table>
  </xsl:template>
  <xsl:template match="resource-allocation">
    <h2><xsl:value-of select="$labels/label[@id='p2-title']"/></h2>
    <p>
      <xsl:value-of select="$labels/label[@id='p2-q1']"/>
    </p>
    <table border="1" cellpadding="1" cellspacing="0" class="datatable">
      <caption>
        <xsl:value-of select="$labels/label[@id='p2-t1-caption']"/>
      </caption>
      <thead>
        <tr>
          <th rowspan="2"><xsl:value-of select="$labels/label[@id='number']"/></th>
          <th rowspan="2"><xsl:value-of select="$labels/label[@id='p2-t1-col1']"/></th>
          <th colspan="5">
            <xsl:value-of select="$labels/label[@id='status']"/>
            <br />
            <em><xsl:value-of select="$labels/label[@id='tick-answer']"/></em>
          </th>
          <th colspan="6">
            <xsl:value-of select="$labels/label[@id='difficulties']"/>
            <br />
            <em><xsl:value-of select="$labels/label[@id='tick-answers']"/></em>
          </th>
        </tr>
        <tr>
          <td class="vertical-text"><xsl:value-of select="$labels/label[@id='status-yes']"/></td>
          <td class="vertical-text"><xsl:value-of select="$labels/label[@id='status-no']"/></td>
          <td class="vertical-text"><xsl:value-of select="$labels/label[@id='status-dev']"/></td>
          <td class="vertical-text"><xsl:value-of select="$labels/label[@id='status-other']"/></td>
          <td class="vertical-text"><xsl:value-of select="$labels/label[@id='status-na']"/></td>
          <td class="vertical-text"><xsl:value-of select="$labels/label[@id='diff-policy']"/></td>
          <td class="vertical-text"><xsl:value-of select="$labels/label[@id='diff-regul']"/></td>
          <td class="vertical-text"><xsl:value-of select="$labels/label[@id='diff-finance']"/></td>
          <td class="vertical-text"><xsl:value-of select="$labels/label[@id='diff-admin']"/></td>
          <td class="vertical-text"><xsl:value-of select="$labels/label[@id='diff-tech']"/></td>
          <td class="vertical-text"><xsl:value-of select="$labels/label[@id='diff-public']"/></td>
        </tr>
      </thead>
      <tbody>
        <xsl:for-each select="table/*">
          <tr class="zebra{position() mod 2}">
            <xsl:variable name="relart" select="concat('p2-t1-row', position())" />
            <td rowspan="3" class="center-text"><xsl:value-of select="position()"/></td>
            <td rowspan="3"><xsl:value-of select="$labels/label[@id=$relart]"/></td>
            <td class="check-column">
              <xsl:if test="./status-column/status-type = 00">X</xsl:if>
              <xsl:if test="./status-column/status-type != 00">&nbsp;</xsl:if>
            </td>
            <td class="check-column">
              <xsl:if test="./status-column/status-type = 01">X</xsl:if>
              <xsl:if test="./status-column/status-type != 01">&nbsp;</xsl:if>
            </td>
            <td class="check-column">
              <xsl:if test="./status-column/status-type = 02">X</xsl:if>
              <xsl:if test="./status-column/status-type != 02">&nbsp;</xsl:if>
            </td>
            <td class="check-column">
              <xsl:if test="./status-column/status-type = 03">X</xsl:if>
              <xsl:if test="./status-column/status-type != 03">&nbsp;</xsl:if>
            </td>
            <td class="check-column">
              <xsl:if test="./status-column/status-type = 04">X</xsl:if>
              <xsl:if test="./status-column/status-type != 04">&nbsp;</xsl:if>
            </td>
            <td class="check-column">
              <xsl:call-template name="decode-difficulty">
                <xsl:with-param name="text" select="./difficulties-column/difficulty-type" />
                <xsl:with-param name="pattern" select="'00'"/>
              </xsl:call-template>
            </td>
            <td class="check-column">
              <xsl:call-template name="decode-difficulty">
                <xsl:with-param name="text" select="./difficulties-column/difficulty-type" />
                <xsl:with-param name="pattern" select="'01'"/>
              </xsl:call-template>
            </td>
            <td class="check-column">
              <xsl:call-template name="decode-difficulty">
                <xsl:with-param name="text" select="./difficulties-column/difficulty-type" />
                <xsl:with-param name="pattern" select="'02'"/>
              </xsl:call-template>
            </td>
            <td class="check-column">
              <xsl:call-template name="decode-difficulty">
                <xsl:with-param name="text" select="./difficulties-column/difficulty-type" />
                <xsl:with-param name="pattern" select="'03'"/>
              </xsl:call-template>
            </td>
            <td class="check-column">
              <xsl:call-template name="decode-difficulty">
                <xsl:with-param name="text" select="./difficulties-column/difficulty-type" />
                <xsl:with-param name="pattern" select="'04'"/>
              </xsl:call-template>
            </td>
            <td class="check-column">
              <xsl:call-template name="decode-difficulty">
                <xsl:with-param name="text" select="./difficulties-column/difficulty-type" />
                <xsl:with-param name="pattern" select="'05'"/>
              </xsl:call-template>
            </td>
          </tr>
          <tr class="zebra{position() mod 2}">
            <td colspan="5" class="center-text">
              <xsl:value-of select="./status-column/reference"/>
            </td>
            <td colspan="6" rowspan="2" class="center-text">
              <xsl:value-of select="./difficulties-column/comment"/>
            </td>
          </tr>
          <tr class="zebra{position() mod 2}">
            <td colspan="5" class="center-text">
              <xsl:value-of select="./status-column/comment"/>
            </td>
          </tr>
        </xsl:for-each>  
      </tbody>
    </table>
  </xsl:template>
  <xsl:template match="technical-data">
    <h2><xsl:value-of select="$labels/label[@id='p3-title']"/></h2>
    <h3><xsl:value-of select="$labels/label[@id='p3.1-title']"/></h3>
    <em><xsl:value-of select="$labels/label[@id='p3.1-desc']"/></em>
    <table border="1" cellpadding="1" cellspacing="0" class="datatable">
      <caption>
        <xsl:value-of select="$labels/label[@id='p3.1-t3-caption']"/>
      </caption>
      <thead>
        <tr>
          <th><xsl:value-of select="$labels/label[@id='number']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p3.1-t3-col2']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p3.1-t3-col3']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p3.1-t3-col4']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p3.1-t3-col5']"/></th>
        </tr>
      </thead>    
      <tbody>
        <xsl:for-each select="table/*">
          <tr class="zebra{position() mod 2}">
            <td><xsl:value-of select="position()"/></td>
            <td><xsl:value-of select="./description"/></td>
            <td><xsl:value-of select="./definition"/></td>
            <td><xsl:value-of select="./characteristics"/></td>
            <td><xsl:value-of select="./movement"/></td>
          </tr>
        </xsl:for-each>  
      </tbody>
    </table>
    <h3><xsl:value-of select="$labels/label[@id='p3.2-title']"/></h3>
    <table border="1" cellpadding="1" cellspacing="0" class="datatable">
      <caption>
        <xsl:value-of select="$labels/label[@id='p3.2-t4-caption']"/>
      </caption>
      <thead>
        <tr>
          <th>&nbsp;</th>
          <xsl:variable name="columns" select="count(table2/*)" />
          <th colspan="{$columns}"><xsl:value-of select="$labels/label[@id='p3.2-t4-row0']"/></th>
        </tr>
        <tr>
          <th>&nbsp;</th>
          <xsl:for-each select="table2/*">
            <th><xsl:value-of select="year"/></th>
          </xsl:for-each>
        </tr>
      </thead>    
      <tbody>
        <tr class="zebra{position() mod 2}">
          <td><xsl:value-of select="$labels/label[@id='p3.2-t4-row1']"/></td>
          <xsl:for-each select="table2/*">
            <td><xsl:value-of select="hazardous-wastes-generated"/></td>
          </xsl:for-each>
        </tr>
        <tr class="zebra{position() mod 2}">
          <td><xsl:value-of select="$labels/label[@id='p3.2-t4-row2']"/></td>
          <xsl:for-each select="table2/*">
            <td><xsl:value-of select="other-wastes"/></td>
          </xsl:for-each>
        </tr>
      </tbody>
    </table>
    <xsl:value-of select="$labels/label[@id='p3.2-remarks']"/><xsl:value-of select="remark"/>
    <br />
    <br />
    <!-- Table 3-->
    <em><xsl:value-of select="$labels/label[@id='p3.2-t3-remark']"/></em>
    <table border="1" cellpadding="1" cellspacing="0" class="datatable">
      <xsl:variable name="years" select="count(table3/*)" />
      <caption>
        <xsl:value-of select="$labels/label[@id='p3.2-t3-title']"/>
      </caption>
      <thead>
        <tr>
          <th colspan="2"><xsl:value-of select="$labels/label[@id='p3.2-t3-col1']"/></th>
          <th colspan="${years}">&nbsp;</th>
        </tr>
        <tr>
          <th colspan="2"><xsl:value-of select="$labels/label[@id='p3.2-t3-streams']"/></th>
          <xsl:for-each select="table3/*">
            <th><xsl:value-of select="year"/></th>
          </xsl:for-each>
        </tr>
      </thead>
      <tbody>
        <tr>
          <xsl:variable name="var" select="y1" />
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y1']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y1-desc']"/></td>
          <xsl:for-each select="table3/*">
            <td><xsl:value-of select="y1"/></td>
          </xsl:for-each>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y2']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y2-desc']"/></td>
          <xsl:for-each select="table3/*">
            <td><xsl:value-of select="y2"/></td>
          </xsl:for-each>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y3']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y3-desc']"/></td>
          <xsl:for-each select="table3/*">
            <td><xsl:value-of select="y3"/></td>
          </xsl:for-each>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y4']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y4-desc']"/></td>
          <xsl:for-each select="table3/*">
            <td><xsl:value-of select="y4"/></td>
          </xsl:for-each>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y5']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y5-desc']"/></td>
          <xsl:for-each select="table3/*">
            <td><xsl:value-of select="y5"/></td>
          </xsl:for-each>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y6']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y6-desc']"/></td>
          <xsl:for-each select="table3/*">
            <td><xsl:value-of select="y6"/></td>
          </xsl:for-each>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y7']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y7-desc']"/></td>
          <xsl:for-each select="table3/*">
            <td><xsl:value-of select="y7"/></td>
          </xsl:for-each>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y8']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y8-desc']"/></td>
          <xsl:for-each select="table3/*">
            <td><xsl:value-of select="y8"/></td>
          </xsl:for-each>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y9']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y9-desc']"/></td>
          <xsl:for-each select="table3/*">
            <td><xsl:value-of select="y9"/></td>
          </xsl:for-each>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y10']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y10-desc']"/></td>
          <xsl:for-each select="table3/*">
            <td><xsl:value-of select="y10"/></td>
          </xsl:for-each>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y11']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y11-desc']"/></td>
          <xsl:for-each select="table3/*">
            <td><xsl:value-of select="y11"/></td>
          </xsl:for-each>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y12']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y12-desc']"/></td>
          <xsl:for-each select="table3/*">
            <td><xsl:value-of select="y12"/></td>
          </xsl:for-each>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y13']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y13-desc']"/></td>
          <xsl:for-each select="table3/*">
            <td><xsl:value-of select="y13"/></td>
          </xsl:for-each>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y14']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y14-desc']"/></td>
          <xsl:for-each select="table3/*">
            <td><xsl:value-of select="y14"/></td>
          </xsl:for-each>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y15']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y15-desc']"/></td>
          <xsl:for-each select="table3/*">
            <td><xsl:value-of select="y15"/></td>
          </xsl:for-each>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y16']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y16-desc']"/></td>
          <xsl:for-each select="table3/*">
            <td><xsl:value-of select="y16"/></td>
          </xsl:for-each>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y17']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y17-desc']"/></td>
          <xsl:for-each select="table3/*">
            <td><xsl:value-of select="y17"/></td>
          </xsl:for-each>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y18']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y18-desc']"/></td>
          <xsl:for-each select="table3/*">
            <td><xsl:value-of select="y18"/></td>
          </xsl:for-each>
        </tr>
        <tr>
            <td colspan="2"><strong><xsl:value-of select="$labels/label[@id='p3.2-t3-constituents']"/></strong></td>
            <xsl:for-each select="table3/*">
              <td><strong><xsl:value-of select="year"/></strong></td>
            </xsl:for-each>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y19']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y19-desc']"/></td>
          <xsl:for-each select="table3/*">
            <td><xsl:value-of select="y19"/></td>
          </xsl:for-each>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y20']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y20-desc']"/></td>
          <xsl:for-each select="table3/*">
            <td><xsl:value-of select="y20"/></td>
          </xsl:for-each>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y21']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y21-desc']"/></td>
          <xsl:for-each select="table3/*">
            <td><xsl:value-of select="y21"/></td>
          </xsl:for-each>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y22']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y22-desc']"/></td>
          <xsl:for-each select="table3/*">
            <td><xsl:value-of select="y22"/></td>
          </xsl:for-each>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y23']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y23-desc']"/></td>
          <xsl:for-each select="table3/*">
            <td><xsl:value-of select="y23"/></td>
          </xsl:for-each>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y24']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y24-desc']"/></td>
          <xsl:for-each select="table3/*">
            <td><xsl:value-of select="y24"/></td>
          </xsl:for-each>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y25']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y25-desc']"/></td>
          <xsl:for-each select="table3/*">
            <td><xsl:value-of select="y25"/></td>
          </xsl:for-each>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y26']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y26-desc']"/></td>
          <xsl:for-each select="table3/*">
            <td><xsl:value-of select="y26"/></td>
          </xsl:for-each>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y27']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y27-desc']"/></td>
          <xsl:for-each select="table3/*">
            <td><xsl:value-of select="y27"/></td>
          </xsl:for-each>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y28']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y28-desc']"/></td>
          <xsl:for-each select="table3/*">
            <td><xsl:value-of select="y28"/></td>
          </xsl:for-each>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y29']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y29-desc']"/></td>
          <xsl:for-each select="table3/*">
            <td><xsl:value-of select="y29"/></td>
          </xsl:for-each>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y30']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y30-desc']"/></td>
          <xsl:for-each select="table3/*">
            <td><xsl:value-of select="y30"/></td>
          </xsl:for-each>
        </tr>
        <tr>
            <td colspan="2"><strong><xsl:value-of select="$labels/label[@id='p3.2-t3-constituents']"/></strong></td>
            <xsl:for-each select="table3/*">
              <td><strong><xsl:value-of select="year"/></strong></td>
            </xsl:for-each>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y31']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y31-desc']"/></td>
          <xsl:for-each select="table3/*">
            <td><xsl:value-of select="y31"/></td>
          </xsl:for-each>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y32']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y32-desc']"/></td>
          <xsl:for-each select="table3/*">
            <td><xsl:value-of select="y32"/></td>
          </xsl:for-each>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y33']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y33-desc']"/></td>
          <xsl:for-each select="table3/*">
            <td><xsl:value-of select="y33"/></td>
          </xsl:for-each>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y34']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y34-desc']"/></td>
          <xsl:for-each select="table3/*">
            <td><xsl:value-of select="y34"/></td>
          </xsl:for-each>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y35']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y35-desc']"/></td>
          <xsl:for-each select="table3/*">
            <td><xsl:value-of select="y35"/></td>
          </xsl:for-each>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y36']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y8-desc']"/></td>
          <xsl:for-each select="table3/*">
            <td><xsl:value-of select="y8"/></td>
          </xsl:for-each>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y36']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y36-desc']"/></td>
          <xsl:for-each select="table3/*">
            <td><xsl:value-of select="y36"/></td>
          </xsl:for-each>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y37']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y37-desc']"/></td>
          <xsl:for-each select="table3/*">
            <td><xsl:value-of select="y37"/></td>
          </xsl:for-each>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y38']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y38-desc']"/></td>
          <xsl:for-each select="table3/*">
            <td><xsl:value-of select="y38"/></td>
          </xsl:for-each>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y39']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y39-desc']"/></td>
          <xsl:for-each select="table3/*">
            <td><xsl:value-of select="y39"/></td>
          </xsl:for-each>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y40']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y40-desc']"/></td>
          <xsl:for-each select="table3/*">
            <td><xsl:value-of select="y40"/></td>
          </xsl:for-each>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y41']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y41-desc']"/></td>
          <xsl:for-each select="table3/*">
            <td><xsl:value-of select="y41"/></td>
          </xsl:for-each>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y42']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y42-desc']"/></td>
          <xsl:for-each select="table3/*">
            <td><xsl:value-of select="y42"/></td>
          </xsl:for-each>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y43']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y43-desc']"/></td>
          <xsl:for-each select="table3/*">
            <td><xsl:value-of select="y43"/></td>
          </xsl:for-each>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y44']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y44-desc']"/></td>
          <xsl:for-each select="table3/*">
            <td><xsl:value-of select="y44"/></td>
          </xsl:for-each>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y45']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y45-desc']"/></td>
          <xsl:for-each select="table3/*">
            <td><xsl:value-of select="y45"/></td>
          </xsl:for-each>
        </tr>
        <tr>
            <td colspan="2"><strong><xsl:value-of select="$labels/label[@id='p3.2-t3-household']"/></strong></td>
            <xsl:for-each select="table3/*">
              <td><strong><xsl:value-of select="year"/></strong></td>
            </xsl:for-each>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y46']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y46-desc']"/></td>
          <xsl:for-each select="table3/*">
            <td><xsl:value-of select="y46"/></td>
          </xsl:for-each>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y47']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3.2-t3-y47-desc']"/></td>
          <xsl:for-each select="table3/*">
            <td><xsl:value-of select="y47"/></td>
          </xsl:for-each>
        </tr>
      </tbody>
    </table>
    <h3><xsl:value-of select="$labels/label[@id='p3.3-title']"/></h3>
    <table border="1" cellpadding="1" cellspacing="0" class="datatable">
      <caption>
        <xsl:value-of select="$labels/label[@id='p3.3-t4-caption']"/>
      </caption>
      <tbody>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3.3-t4-row1']"/></td>
          <td><xsl:value-of select="waste-exported/exported"/></td>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3.3-t4-row2']"/></td>
          <td><xsl:value-of select="waste-exported/exported-ia"/></td>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3.3-t4-row3']"/></td>
          <td><xsl:value-of select="waste-exported/exported-ib"/></td>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3.3-t4-row4']"/></td>
          <td><xsl:value-of select="waste-exported/exported-other"/></td>
        </tr>
      </tbody>
    </table>
    <br />
    <table border="1" cellpadding="1" cellspacing="0" class="datatable">
      <thead>
        <tr>
          <th colspan="3"><xsl:value-of select="$labels/label[@id='p3.3-t5-row1-col1']"/></th>
          <th colspan="3"><xsl:value-of select="$labels/label[@id='p3.3-t5-row1-col2']"/></th>
          <th colspan="5">&nbsp;</th>
        </tr>
        <tr>
          <th colspan="2"><xsl:value-of select="$labels/label[@id='p3.3-t5-row2-col1']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p3.3-t5-row2-col2']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p3.3-t5-row2-col3']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p3.3-t5-row2-col4']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p3.3-t5-row2-col5']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p3.3-t5-row2-col6']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p3.3-t5-row2-col7']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p3.3-t5-row2-col8']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p3.3-t5-row2-col9']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p3.3-t5-row2-col10']"/></th>
        </tr>
        <tr>
          <th><xsl:value-of select="$labels/label[@id='p3.3-t5-row3-col1']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p3.3-t5-row3-col2']"/></th>
          <th colspan="9">&nbsp;</th>
        </tr>
      </thead>
      <tbody>
        <xsl:for-each select="table4-1/*">
          <tr>
            <td><xsl:value-of select="waste-category/annex1/y-code"/></td>
            <td><xsl:value-of select="waste-category/annex1/streams"/></td>
            <td><xsl:value-of select="waste-category/annex8"/></td>
            <td><xsl:value-of select="hazardous-characteristics/un"/></td>
            <td><xsl:value-of select="hazardous-characteristics/h"/></td>
            <td><xsl:value-of select="hazardous-characteristics/characteristics"/></td>
            <td><xsl:value-of select="exported"/></td>
            <td><xsl:value-of select="transit"/></td>
            <td><xsl:value-of select="destination"/></td>
            <td><xsl:value-of select="disposal"/></td>
            <td><xsl:value-of select="recovery"/></td>
          </tr>
        </xsl:for-each>
      </tbody>
    </table>
    <br />
    <em><xsl:value-of select="$labels/label[@id='p3.3-2-title']"/></em>
    <br />
    <br />
    <table border="1" cellpadding="1" cellspacing="0" class="datatable">
      <thead>
        <tr>
          <th colspan="3"><xsl:value-of select="$labels/label[@id='p3.3-t5-row1-col1']"/></th>
          <th colspan="3"><xsl:value-of select="$labels/label[@id='p3.3-t5-row1-col2']"/></th>
          <th colspan="5">&nbsp;</th>
        </tr>
        <tr>
          <th colspan="2"><xsl:value-of select="$labels/label[@id='p3.3-t5-row2-col1']"/></th>
          <th>&nbsp;</th>
          <th><xsl:value-of select="$labels/label[@id='p3.3-t5-row2-col3']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p3.3-t5-row2-col4']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p3.3-t5-row2-col5']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p3.3-t5-row2-col6']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p3.3-t5-row2-col7']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p3.3-t5-row2-col8']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p3.3-t5-row2-col9']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p3.3-t5-row2-col10']"/></th>
        </tr>
        <tr>
          <th><xsl:value-of select="$labels/label[@id='p3.3-t5-row3-col1']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p3.3-t5-row3-col2']"/></th>
          <th>&nbsp;</th>
          <th colspan="8">&nbsp;</th>
        </tr>
      </thead>
      <tbody>
        <xsl:for-each select="table4-2/*">
          <tr>
            <td><xsl:value-of select="waste-category/annex1/y-code"/></td>
            <td><xsl:value-of select="waste-category/annex1/streams"/></td>
            <td><xsl:value-of select="waste-category/annex8"/></td>
            <td><xsl:value-of select="hazardous-characteristics/un"/></td>
            <td><xsl:value-of select="hazardous-characteristics/h"/></td>
            <td><xsl:value-of select="hazardous-characteristics/characteristics"/></td>
            <td><xsl:value-of select="exported"/></td>
            <td><xsl:value-of select="transit"/></td>
            <td><xsl:value-of select="destination"/></td>
            <td><xsl:value-of select="disposal"/></td>
            <td><xsl:value-of select="recovery"/></td>
          </tr>
        </xsl:for-each>
      </tbody>
    </table>
    <br />
    <br />
    <em><xsl:value-of select="$labels/label[@id='p3.3-intended']"/></em>
    <table border="1" cellpadding="1" cellspacing="0" class="datatable">
      <thead>
        <tr>
          <th><xsl:value-of select="$labels/label[@id='p3.3-t7-col1']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p3.3-t7-col2']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p3.3-t7-col3']"/></th>
        </tr>
      </thead>
      <tbody>
        <xsl:for-each select="table4-3/*">
          <tr>
            <td><xsl:value-of select="waste"/></td>
            <td><xsl:value-of select="quantity"/></td>
            <td><xsl:value-of select="remarks"/></td>
          </tr>
        </xsl:for-each>
      </tbody>
    </table>
    <h3><xsl:value-of select="$labels/label[@id='p3.3-accidents']"/></h3>
    <em><xsl:value-of select="$labels/label[@id='p3.3-accidents-remark']"/></em>
    <table border="1" cellpadding="1" cellspacing="0" class="datatable">
      <caption>
        <xsl:value-of select="$labels/label[@id='p3.3-t8-caption']"/>
      </caption>
      <thead>
        <tr>
          <th><xsl:value-of select="$labels/label[@id='p3.3-t8-col1']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p3.3-t8-col2']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p3.3-t8-col3']"/></th>
        </tr>
      </thead>
      <tbody>
        <xsl:for-each select="table5/*">
          <tr>
            <td><xsl:value-of select="accidents"/></td>
            <td><xsl:value-of select="measures"/></td>
            <td><xsl:value-of select="effectiveness"/></td>
          </tr>
        </xsl:for-each>
      </tbody>
    </table>
    <h3><xsl:value-of select="$labels/label[@id='p3.3-disposal']"/></h3>
    <em><xsl:value-of select="$labels/label[@id='p3.3-disposal-remark']"/></em>
    <table border="1" cellpadding="1" cellspacing="0" class="datatable">
      <caption>
        <xsl:value-of select="$labels/label[@id='p3.3-t8-caption']"/>
      </caption>
      <thead>
        <tr>
          <th><xsl:value-of select="$labels/label[@id='p3.3-t9-col1']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p3.3-t9-col2']"/></th>
        </tr>
      </thead>
      <tbody>
        <xsl:for-each select="art8-3/*">
          <tr>
            <td><xsl:value-of select="alternative-options"/></td>
            <td><xsl:value-of select="description"/></td>
          </tr>
        </xsl:for-each>
      </tbody>
    </table>
  </xsl:template>
  <xsl:template match="enforcement-measures">
    <h2><xsl:value-of select="$labels/label[@id='p4-title']"/></h2>
    <p>
      <xsl:value-of select="$labels/label[@id='p4-desc']"/>
    </p>
    <table border="1" cellpadding="1" cellspacing="0" class="datatable">
      <caption>
        <xsl:value-of select="$labels/label[@id='p4-t1-caption']"/>
      </caption>
      <thead>
        <tr>
          <th><xsl:value-of select="$labels/label[@id='p4-t1-col1']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p4-t1-col2']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p4-t1-col3']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p4-t1-col4']"/></th>
          <th>&nbsp;</th>
          <th><xsl:value-of select="$labels/label[@id='p4-t1-col6']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p4-t1-col7']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p4-t1-col8']"/></th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p4-t1-row1']"/></td>
          <td><xsl:value-of select="/hazardous/report/enforcement-measures/table/inspections"/></td>
          <td><xsl:value-of select="/hazardous/report/enforcement-measures/table/contraventions"/></td>
          <td><xsl:value-of select="/hazardous/report/enforcement-measures/table/sanctions"/></td>
          <td>&nbsp;</td>
          <td><xsl:value-of select="/hazardous/report/enforcement-measures/table/other-measures"/></td>
          <td><xsl:value-of select="/hazardous/report/enforcement-measures/table/clean-measures"/></td>
          <td><xsl:value-of select="/hazardous/report/enforcement-measures/table/remarks"/></td>
        </tr>
      </tbody>
    </table>
  </xsl:template>  
  <xsl:template match="effectiveness">
    <h2><xsl:value-of select="$labels/label[@id='p5-title']"/></h2>
    <p>
      <xsl:value-of select="$labels/label[@id='p5-1']"/>
      <strong>
        <xsl:value-of select="/hazardous/report/effectiveness/wastes-generated"/>
      </strong>
    </p>
    <p>
      <xsl:value-of select="$labels/label[@id='p5-2']"/>
      <strong>
        <xsl:value-of select="/hazardous/report/effectiveness/wastes-imported"/>
      </strong>
    </p>
    <p>
      <xsl:value-of select="$labels/label[@id='p5-3']"/>
      <strong>
        <xsl:value-of select="/hazardous/report/effectiveness/wastes-exported"/>
      </strong>
    </p>
    <p>
      <xsl:value-of select="$labels/label[@id='p5-4']"/>
      <strong>
        <xsl:value-of select="/hazardous/report/effectiveness/inspections"/>
      </strong>
    </p>
    <p>
      <xsl:value-of select="$labels/label[@id='p5-5']"/>
      <strong>
        <xsl:value-of select="/hazardous/report/effectiveness/contraventions"/>
      </strong>
    </p>
    <p>
      <xsl:value-of select="$labels/label[@id='p5-6']"/>
      <strong>
        <xsl:value-of select="/hazardous/report/effectiveness/contraventions-sanctioned"/>
      </strong>
    </p>
  </xsl:template>
</xsl:stylesheet>