View stylesheet

XML schemas http://biodiversity.eionet.europa.eu/schemas/barcelona_convention/dumping.xsd
Output type HTML
Description XSLT for Dumping Protocol
XSL file dumping.xslt (Last modified: 26 May 2008 14:59 )
<?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,'dumping-labels-en.xml'))"/>
  <xsl:variable name="labels" select="$labels_xml/labels"/>
  
  <xsl:template match="dumping">
    <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>Barcelona Convention</title>
      </head>
      <body>
        <h1><xsl:value-of select="$labels/label[@id='barcelona-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">
    <h2><xsl:value-of select="@label"/></h2>
    <xsl:apply-templates select="legal-measures"/>
    <br />
    <xsl:apply-templates select="resource-allocation"/>
    <br />
    <xsl:apply-templates select="administrative-measures"/>
    <br />
    <xsl:apply-templates select="enforcement-measures"/>
    <br />
    <xsl:apply-templates select="guidelines"/>
    <br />
    <xsl:apply-templates select="effectiveness"/>
  </xsl:template>
  <!-- END OF REPORT -->
  
  <!-- REPORT / PART I -->
  <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-caption']"/>
      </caption>
      <thead>
        <tr>
          <th rowspan="2"><xsl:value-of select="$labels/label[@id='p1-ra']"/></th>
          <th rowspan="2"><xsl:value-of select="$labels/label[@id='number']"/></th>
          <th rowspan="2"><xsl:value-of select="$labels/label[@id='p1-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>
  <!-- END OF PART I -->
  
  <!-- REPORT / PART II -->
  <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>
  <!-- END OF PART II -->
  
  <!-- REPORT / PART III -->
  <xsl:template match="administrative-measures">
    <h2><xsl:value-of select="$labels/label[@id='p3-title']"/></h2>
    <p>
      <strong>
        <xsl:value-of select="$labels/label[@id='p3-t1-title']"/><sup><a name="U1" href="#S1">1</a></sup>
      </strong>
      <br />
      <xsl:value-of select="$labels/label[@id='p3-t1-desc']"/>
    </p>
    <table border="1" cellpadding="1" cellspacing="0" class="datatable">
      <caption>
        <xsl:value-of select="$labels/label[@id='p3-t1-caption']"/>
      </caption>
      <thead>
        <tr>
          <th rowspan="2"><xsl:value-of select="$labels/label[@id='p3-t1-col1']"/></th>
          <th rowspan="2"><xsl:value-of select="$labels/label[@id='p3-t1-col2']"/></th>
          <th rowspan="2"><xsl:value-of select="$labels/label[@id='p3-t1-col3']"/></th>
          <th rowspan="2"><xsl:value-of select="$labels/label[@id='p3-t1-col4']"/></th>
          <th rowspan="2"><xsl:value-of select="$labels/label[@id='p3-t1-col5']"/></th>
          <th rowspan="2"><xsl:value-of select="$labels/label[@id='p3-t1-col6']"/></th>
          <th rowspan="2" colspan="2"><xsl:value-of select="$labels/label[@id='p3-t1-col7']"/></th>
          <th colspan="4"><xsl:value-of select="$labels/label[@id='p3-t1-col8']"/></th>
          <th colspan="3"><xsl:value-of select="$labels/label[@id='p3-t1-col9']"/><sup><a name="U2" href="#S2">2</a></sup></th>
          <th><xsl:value-of select="$labels/label[@id='p3-t1-col10']"/></th>
          <th colspan="3"><xsl:value-of select="$labels/label[@id='p3-t1-col11']"/></th>
          <th colspan="6"><xsl:value-of select="$labels/label[@id='p3-t1-col12']"/><sup><a name="U3" href="#S3">3</a></sup></th>
          <th rowspan="2"><xsl:value-of select="$labels/label[@id='p3-t1-col13']"/></th>
          <th rowspan="2"><xsl:value-of select="$labels/label[@id='p3-t1-col14']"/></th>
          <th rowspan="2"><xsl:value-of select="$labels/label[@id='p3-t1-col15']"/></th>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3-t1-col8-1']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3-t1-col8-2']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3-t1-col8-3']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3-t1-col8-4']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3-t1-col9-1']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3-t1-col9-2']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3-t1-col9-3']"/></td>
          <td>&nbsp;</td>
          <td><xsl:value-of select="$labels/label[@id='p3-t1-col11-1']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3-t1-col11-2']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3-t1-col11-3']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3-t1-col12-1']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3-t1-col12-2']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3-t1-col12-3']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3-t1-col12-4']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3-t1-col12-5']"/></td>
          <td><xsl:value-of select="$labels/label[@id='p3-t1-col12-6']"/></td>
        </tr>
      </thead>
      <tbody>
        <xsl:for-each select="table/*">
          <tr class="zebra{position() mod 2}">
            <td><xsl:value-of select="./granted-permits"/></td>
            <td><xsl:value-of select="./issue-date"/></td>
            <td><xsl:value-of select="./validity"/></td>
            <td><xsl:value-of select="./origin"/></td>
            <td><xsl:value-of select="./loading-port"/></td>
            <td><xsl:value-of select="./frequency"/></td>
            <td><xsl:value-of select="./vessel-speed"/></td>
            <td><xsl:value-of select="./vessel-load-rate"/></td>
            <td><xsl:value-of select="./dumping-site/length"/></td>
            <td><xsl:value-of select="./dumping-site/nearest-coast"/></td>
            <td><xsl:value-of select="./dumping-site/longitude"/></td>
            <td><xsl:value-of select="./dumping-site/depth"/></td>
            <td><xsl:value-of select="./waste-form/solid"/></td>
            <td><xsl:value-of select="./waste-form/liquid"/></td>
            <td><xsl:value-of select="./waste-form/mixed"/></td>
            <td><xsl:value-of select="./waste-quantity"/></td>
            <td><xsl:value-of select="./waste-properties/solubility"/></td>
            <td><xsl:value-of select="./waste-properties/ph"/></td>
            <td><xsl:value-of select="./waste-properties/density"/></td>
            <td><xsl:value-of select="./waste-composition/x"/></td>
            <td><xsl:value-of select="./waste-composition/y"/></td>
            <td><xsl:value-of select="./waste-composition/z"/></td>
            <td><xsl:value-of select="./waste-composition/yy"/></td>
            <td><xsl:value-of select="./waste-composition/zz"/></td>
            <td><xsl:value-of select="./waste-composition/other"/></td>
            <td><xsl:value-of select="./packaging"/></td>
            <td><xsl:value-of select="./release"/></td>
            <td><xsl:value-of select="./cleansing"/></td>
          </tr>
        </xsl:for-each>
      </tbody>
    </table>
    <p>
      <strong>
        <xsl:value-of select="$labels/label[@id='p3-t2-title']"/><sup><a name="U4" href="#S4">4</a></sup>
      </strong>
      <br />
      <xsl:value-of select="$labels/label[@id='p3-t2-desc']"/>
    </p>
    <table border="1" cellpadding="1" cellspacing="0" class="datatable">
      <caption>
        <xsl:value-of select="$labels/label[@id='p3-t2-caption']"/>
      </caption>
      <thead>
        <tr>
          <th><xsl:value-of select="$labels/label[@id='p3-t2-col1']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p3-t2-col2']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p3-t2-col3']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p3-t2-col4']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p3-t2-col5']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p3-t2-col6']"/></th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3-t2-row1']"/></td>
          <td><xsl:value-of select="table4/dredge/cases"/></td>
          <td><xsl:value-of select="table4/dredge/occurrence"/></td>
          <td><xsl:value-of select="table4/dredge/ref-no-med"/></td>
          <td><xsl:value-of select="table4/dredge/ref-no-cp"/></td>
          <td><xsl:value-of select="table4/dredge/circumstances"/></td>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3-t2-row2']"/></td>
          <td><xsl:value-of select="table4/marine-waste/cases"/></td>
          <td><xsl:value-of select="table4/marine-waste/occurrence"/></td>
          <td><xsl:value-of select="table4/marine-waste/ref-no-med"/></td>
          <td><xsl:value-of select="table4/marine-waste/ref-no-cp"/></td>
          <td><xsl:value-of select="table4/marine-waste/circumstances"/></td>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3-t2-row3']"/></td>
          <td><xsl:value-of select="table4/sea-structures/cases"/></td>
          <td><xsl:value-of select="table4/sea-structures/occurrence"/></td>
          <td><xsl:value-of select="table4/sea-structures/ref-no-med"/></td>
          <td><xsl:value-of select="table4/sea-structures/ref-no-cp"/></td>
          <td><xsl:value-of select="table4/sea-structures/circumstances"/></td>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3-t2-row4']"/></td>
          <td><xsl:value-of select="table4/geo-materials/cases"/></td>
          <td><xsl:value-of select="table4/geo-materials/occurrence"/></td>
          <td><xsl:value-of select="table4/geo-materials/ref-no-med"/></td>
          <td><xsl:value-of select="table4/geo-materials/ref-no-cp"/></td>
          <td><xsl:value-of select="table4/geo-materials/circumstances"/></td>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p3-t2-row5']"/></td>
          <td><xsl:value-of select="table4/other/cases"/></td>
          <td><xsl:value-of select="table4/other/occurrence"/></td>
          <td><xsl:value-of select="table4/other/ref-no-med"/></td>
          <td><xsl:value-of select="table4/other/ref-no-cp"/></td>
          <td><xsl:value-of select="table4/other/circumstances"/></td>
        </tr>
      </tbody>
    </table>
    <p>
      <strong>
        <xsl:value-of select="$labels/label[@id='p3-t3-title']"/>
      </strong>
      <br />
      <xsl:value-of select="$labels/label[@id='p3-t3-desc']"/>
    </p>
    <table border="1" cellpadding="1" cellspacing="0" class="datatable">
      <caption>
        <xsl:value-of select="$labels/label[@id='p5-t1-caption']"/>
      </caption>
      <thead>
        <tr>
          <th><xsl:value-of select="$labels/label[@id='p3-t3-col1']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p3-t3-col2']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p3-t3-col3']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p3-t3-col4']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p3-t3-col5']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p3-t3-col6']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p3-t3-col7']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p3-t3-col8']"/></th>
        </tr>
      </thead>
      <tbody>
        <xsl:for-each select="table5/*">
          <tr>
            <td><xsl:value-of select="./category"/></td>
            <td><xsl:value-of select="./cases"/></td>
            <td><xsl:value-of select="./occurrence"/></td>
            <td><xsl:value-of select="./ref-no-med"/></td>
            <td><xsl:value-of select="./ref-no-cp"/></td>
            <td><xsl:value-of select="./quantity"/></td>
            <td><xsl:value-of select="./circumstances"/></td>
            <td><xsl:value-of select="./handling"/></td>
          </tr>
        </xsl:for-each>
      </tbody>
    </table>
    <br />
    <a name="S1" href="#U1"><xsl:value-of select="$labels/label[@id='p3-sup-1']"/></a>
    <br />
    <a name="S2" href="#U2"><xsl:value-of select="$labels/label[@id='p3-sup-2']"/></a>
    <br />
    <a name="S3" href="#U3"><xsl:value-of select="$labels/label[@id='p3-sup-3']"/></a>
    <br />
    <a name="S4" href="#U4"><xsl:value-of select="$labels/label[@id='p3-sup-4']"/></a>
  </xsl:template>
  <!-- END OF PART III -->
  
  <!-- PART IV -->  
  <xsl:template match="enforcement-measures">
    <h2><xsl:value-of select="$labels/label[@id='p4-title']"/></h2>
    <p>
      <strong>
        <xsl:value-of select="$labels/label[@id='p4-desc']"/>
      </strong>
    </p>
    <table border="1" cellpadding="1" cellspacing="0" class="datatable">
      <caption>
        <xsl:value-of select="$labels/label[@id='p4-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><xsl:value-of select="$labels/label[@id='p4-t1-col5']"/></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="table/national/inspections"/></td>
          <td><xsl:value-of select="table/national/non-compliance"/></td>
          <td><xsl:value-of select="table/national/fines"/></td>
          <td><xsl:value-of select="table/national/suspensions"/></td>
          <td><xsl:value-of select="table/national/other"/></td>
          <td><xsl:value-of select="table/national/clean"/></td>
          <td><xsl:value-of select="table/national/remarks"/></td>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p4-t1-row2']"/></td>
          <td><xsl:value-of select="table/specific/inspections"/></td>
          <td><xsl:value-of select="table/specific/non-compliance"/></td>
          <td><xsl:value-of select="table/specific/fines"/></td>
          <td><xsl:value-of select="table/specific/suspensions"/></td>
          <td><xsl:value-of select="table/specific/other"/></td>
          <td><xsl:value-of select="table/specific/clean"/></td>
          <td><xsl:value-of select="table/specific/remarks"/></td>
        </tr>
        <tr>
          <td><xsl:value-of select="$labels/label[@id='p4-t1-row3']"/></td>
          <td><xsl:value-of select="table/provisions/inspections"/></td>
          <td><xsl:value-of select="table/provisions/non-compliance"/></td>
          <td><xsl:value-of select="table/provisions/fines"/></td>
          <td><xsl:value-of select="table/provisions/suspensions"/></td>
          <td><xsl:value-of select="table/provisions/other"/></td>
          <td><xsl:value-of select="table/provisions/clean"/></td>
          <td><xsl:value-of select="table/provisions/remarks"/></td>
        </tr>
      </tbody>
    </table>
  </xsl:template>
  <!-- END OF PART IV -->    
  
  <!-- PART V -->  
  <xsl:template match="guidelines">
    <h2><xsl:value-of select="$labels/label[@id='p5-title']"/></h2>
    <p>
      <strong>
        <xsl:value-of select="$labels/label[@id='p5-desc']"/>
      </strong>
    </p>
    <table border="1" cellpadding="1" cellspacing="0" class="datatable">
      <caption><xsl:value-of select="$labels/label[@id='p5-t1-caption']"/></caption>
      <thead>
        <tr>
          <th><xsl:value-of select="$labels/label[@id='p5-t1-col1']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p5-t1-col2']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p5-t1-col3']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p5-t1-col4']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p5-t1-col5']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p5-t1-col6']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p5-t1-col7']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p5-t1-col8']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p5-t1-col9']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p5-t1-col10']"/></th>
        </tr>
      </thead>
      <tbody>
        <xsl:for-each select="table/*">
          <tr>
            <td><xsl:value-of select="./permit-number"/></td>
            <td><xsl:value-of select="./audit"/></td>
            <td><xsl:value-of select="./waste-options"/></td>
            <td><xsl:value-of select="./waste-composition"/></td>
            <td><xsl:value-of select="./dumping-site"/></td>
            <td><xsl:value-of select="./impacts"/></td>
            <td><xsl:value-of select="./permit-requirements"/></td>
            <td><xsl:value-of select="./permit-evaluation"/></td>
            <td><xsl:value-of select="./permit-conditions"/></td>
            <td><xsl:value-of select="./consultation"/></td>
          </tr>
        </xsl:for-each>  
      </tbody>
    </table>
    <table border="1" cellpadding="1" cellspacing="0" class="datatable">
      <caption><xsl:value-of select="$labels/label[@id='p5-t2-caption']"/></caption>
      <thead>
        <tr>
          <th><xsl:value-of select="$labels/label[@id='p5-t2-col1']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p5-t2-col2']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p5-t2-col3']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p5-t2-col4']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p5-t2-col5']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p5-t2-col6']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p5-t2-col7']"/></th>
          <th><xsl:value-of select="$labels/label[@id='p5-t2-col8']"/></th>
        </tr>
      </thead>
      <tbody>
        <xsl:for-each select="table2/*">
          <tr>
            <td><xsl:value-of select="./permit-number"/></td>
            <td><xsl:value-of select="./objective"/></td>
            <td><xsl:value-of select="./impact"/></td>
            <td><xsl:value-of select="./reference"/></td>
            <td><xsl:value-of select="./monitoring-programme"/></td>
            <td><xsl:value-of select="./reporting-frequency"/></td>
            <td><xsl:value-of select="./quality-control"/></td>
            <td><xsl:value-of select="./quality-assurance"/></td>
          </tr>
        </xsl:for-each>  
      </tbody>
    </table>
    <br />
    <xsl:value-of select="$labels/label[@id='p5-sup-5']"/>
  </xsl:template>
  <!-- END OF PART V -->  
  
  <!-- PART VI -->  
  <xsl:template match="effectiveness">
    <h2><xsl:value-of select="$labels/label[@id='p6-title']"/></h2>
    <br />
    <xsl:value-of select="$labels/label[@id='p6-1']"/>:<xsl:value-of select="permits"/>
    <br />
    <xsl:value-of select="$labels/label[@id='p6-2']"/>:<xsl:value-of select="waste-dumped"/>
    <br />
    <xsl:value-of select="$labels/label[@id='p6-3']"/>:<xsl:value-of select="inspection"/>
    <br />
    <xsl:value-of select="$labels/label[@id='p6-4']"/>:<xsl:value-of select="non-compliance"/>
    <br />
    <xsl:value-of select="$labels/label[@id='p6-5']"/>:<xsl:value-of select="non-compliance-sanctioned"/>
  </xsl:template>
  <!-- END OF PART VI -->  
</xsl:stylesheet>