View stylesheet

XML schema http://dd.eionet.europa.eu/schemas/MSFD2018/ART9_GES.xsd
Output type HTML
Description HTML view
XSL file ART9_GES-HTML.xslt (Last modified: 22 Aug 2018 07:53 )
<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:dc="http://purl.org/dc/elements/1.1/"
                xmlns:fn="http://www.w3.org/2005/xpath-functions"
                xmlns:xs="http://www.w3.org/2001/XMLSchema"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                version="1.0"
                >
  <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"/>

  <xsl:template match="/">
    <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
      <head>
        <title>Reporting on MSFD Article 9 GES</title>
        <meta content="text/html; charset=utf-8"/>
        <style type="text/css">
          body {
          font-family: Verdana, Arial, Helvetica,sans-serif, "MS sans serif";
          background: #fff;
          color: #000;
          font-size: 8pt;
          }

          fieldset {
          margin-bottom: 1em;
          }

          fieldset legend {
          font-weight: bold;
          }
          /* IE - Fix some weirdness with group labels/legends */
          legend span {
          display: block !important;
          white-space: normal !important;
          width: 100%;
          }
          /* Fix for odd br in label in IE only for other langs */
          label br {
          display: none;
          }

          .label {
          width: auto !important;
          white-space: normal !important;
          }

          .info {
          padding: 0.5em;
          display: block;
          }

          .ta {
          display: block;
          border: 1px solid #bcd884;
          padding: 0.5em;
          color: rgb(85, 96, 63);
          font-size: 8pt;
          font-weight: bold;
          }

          .qa {
          display: block;
          width: 98%;
          border: 1px solid #fff;
          }

          .qa-table {
          width: 100%;
          }

          .qa-table td, .qa-table th {
          padding-left: 0.5em;
          padding-right: 0.5em;
          width: 45%;
          }

          .q-cell .a-cell {
          }

          .notPresent {
          color: blue;
          }

          .oneCol {
          width: 100%;
          overflow: hidden;
          }

          .twoCol {
          width: 100%;
          overflow: hidden;
          }

          .leftCol {
          float: left;
          width: 49.8%;
          overflow: hidden;
          }

          .rightCol {
          float: right;
          width: 49.8%;
          overflow: hidden;
          }
          /*.rightCol { float: left; margin-left: 50%; width: 100%; overflow:hidden;}*/
          #container {
          width: 100%;
          min-width: 600px;
          position: relative;
          margin: 0px auto;
          /*  max-width: 80em;*/
          background-color: #fff;
          color: #333;
          }
        </style>

      </head>
      <body class="fullscreen">
        <div id="container">
          <form name="chibaform" >
            <h1>
              <label class="label heading" id="C1" for="C1">Reporting on MSFD Article 9 GES</label>
            </h1>
            <div class="oneCol">
              <xsl:call-template name="Index"></xsl:call-template>
            </div>
            <h2>
              <a id="info">Reporter Info</a>
            </h2>
            <div class="oneCol">
              <xsl:call-template name="Reporter"></xsl:call-template>
            </div>
            <xsl:call-template name="GESComponents"></xsl:call-template>
          </form>
        </div>
      </body>
    </html>
  </xsl:template>
  <xsl:template name="Index">
    <fieldset class="group" >
      <legend class="label">Index</legend>
      <span>
        <dl>
          <dt>
            <a href="#info">Reporter Info</a>
          </dt>
          <xsl:if test="ART9_GES/GEScomponent">
            <dt>GES Components</dt>
            <xsl:for-each select="ART9_GES/GEScomponent">
              <dd>
                <xsl:variable name="ges" select="GEScomponent"/>
                <a href="#{generate-id($ges)}">
                  <xsl:call-template name="GEScomponentCode"></xsl:call-template>
                </a>
              </dd>
            </xsl:for-each>
          </xsl:if>
        </dl>
      </span>
    </fieldset>
  </xsl:template>
  <xsl:template name="Reporter">
    <fieldset class="group" >
      <legend class="label">Reporter</legend>
      <table class="qa-table">
        <tr>
          <th class="q-cell"></th>
          <th class="a-cell"></th>
        </tr>
        <tr>
          <td>
            <label class="label" >Country</label>
          </td>
          <td>
            <span class="ta" >
              <xsl:call-template name="CountriesCode"></xsl:call-template>
            </span>
          </td>
        </tr>
        <tr>
          <td>
            <label class="label" >Name of the reporter</label>
          </td>
          <td>
            <span class="ta" >
              <xsl:value-of select="ART9_GES/@ContactName" />
            </span>
          </td>
        </tr>
        <tr>
          <td>
            <label class="label" >Email of Reporter</label>
          </td>
          <td>
            <span class="ta" >
              <xsl:value-of select="ART9_GES/@ContactMail" />
            </span>
          </td>
        </tr>
        <tr>
          <td>
            <label class="label" >Reporter organisation</label>
          </td>
          <td>
            <span class="ta" >
              <xsl:value-of select="ART9_GES/@ContactOrganisation" />
            </span>
          </td>
        </tr>
        <tr>
          <td>
            <label class="label" >Reporting date</label>
          </td>
          <td>
            <span class="ta" >
              <xsl:value-of select="ART9_GES/@ReportingDate" />
            </span>
          </td>
        </tr>
      </table>
    </fieldset>
  </xsl:template>
  <xsl:template name="GESComponents">
    <xsl:if test="ART9_GES/GEScomponent">
      <xsl:for-each select="ART9_GES/GEScomponent">
        <div class="oneCol">
          <xsl:variable name="ges" select="GEScomponent"/>
          <h2>
            <a id="{generate-id($ges)}">
              <xsl:call-template name="GEScomponentCode"></xsl:call-template>
            </a>
          </h2>
          <fieldset class="group" >
            <legend class="label">GES Component</legend>
            <table class="qa-table">
              <tr>
                <th class="q-cell"></th>
                <th class="a-cell"></th>
              </tr>
              <tr>
                <td>
                  <label class="label" >GES Component</label>
                </td>
                <td>
                  <span class="ta" >
                    <xsl:call-template name="GEScomponentCode"></xsl:call-template>
                  </span>
                </td>
              </tr>
              <tr>
                <td>
                  <label class="label" >Justification Delay</label>
                </td>
                <td>
                  <span class="ta" >
                    <xsl:value-of select="JustificationDelay" />
                  </span>
                </td>
              </tr>
              <tr>
                <td>
                  <label class="label" >Justification No Use</label>
                </td>
                <td>
                  <span class="ta" >
                    <xsl:value-of select="JustificationNonUse" />
                  </span>
                </td>
              </tr>
              <xsl:if test="GESdetermination">
                <xsl:for-each select="GESdetermination">
                  <tr>
                    <td colspan="2">
                      <fieldset class="group" >
                        <legend class="label">GES Determination</legend>
                        <table class="qa-table">
                          <tr>
                            <th class="q-cell"></th>
                            <th class="a-cell"></th>
                          </tr>
                          <tr>
                            <td>
                              <label class="label" >Feature(s)</label>
                            </td>
                            <td>
                              <span class="ta" >
                                <xsl:for-each select="Feature">
                                  <xsl:call-template name="FeatureCode"></xsl:call-template>
                                  <xsl:if test="position() != last()">
                                    <br/>
                                  </xsl:if>
                                </xsl:for-each>
                              </span>
                            </td>
                          </tr>
                          <tr>
                            <td>
                              <label class="label" >Description</label>
                            </td>
                            <td>
                              <span class="ta" >
                                <xsl:value-of select="GESDescription" />
                              </span>
                            </td>
                          </tr>
                          <tr>
                            <td>
                              <label class="label" >Determination Date</label>
                            </td>
                            <td>
                              <span class="ta" >
                                <xsl:value-of select="DeterminationDate" />
                              </span>
                            </td>
                          </tr>
                          <tr>
                            <td>
                              <label class="label" >Update Type</label>
                            </td>
                            <td>
                              <span class="ta" >
                                <xsl:value-of select="UpdateType" />
                              </span>
                            </td>
                          </tr>
                          <xsl:if test="MarineUnit">
                            <tr>
                              <td colspan="2">
                                <fieldset class="group" >
                                  <legend class="label">Marine Unit(s)</legend>
                                  <table class="qa-table">
                                    <tr>
                                      <th class="q-cell"></th>
                                      <th class="a-cell"></th>
                                    </tr>
                                    <tr>
                                      <td>
                                        <label class="label" >Marine Reporting Unit(s)</label>
                                      </td>
                                      <td>
                                        <span class="ta" >
                                          <xsl:for-each select="MarineUnit">
                                            <xsl:value-of select="MarineReportingUnit" />
                                            <xsl:if test="position() != last()">
                                              <br/>
                                            </xsl:if>
                                          </xsl:for-each>
                                        </span>
                                      </td>
                                    </tr>
                                  </table>
                                </fieldset>
                              </td>
                            </tr>
                          </xsl:if>
                        </table>
                      </fieldset>
                    </td>
                  </tr>
                </xsl:for-each>
              </xsl:if>
            </table>
          </fieldset>
        </div>
      </xsl:for-each>
    </xsl:if>
  </xsl:template>
  <xsl:template name="CountriesCode">
    <xsl:choose>
      <xsl:when test="ART9_GES/CountryCode = 'BE'">Belgium</xsl:when>
      <xsl:when test="ART9_GES/CountryCode = 'BG'">Bulgaria</xsl:when>
      <xsl:when test="ART9_GES/CountryCode = 'CY'">Cyprus</xsl:when>
      <xsl:when test="ART9_GES/CountryCode = 'DE'">Germany</xsl:when>
      <xsl:when test="ART9_GES/CountryCode = 'DK'">Denmark</xsl:when>
      <xsl:when test="ART9_GES/CountryCode = 'EE'">Estonia</xsl:when>
      <xsl:when test="ART9_GES/CountryCode = 'EL'">Greece</xsl:when>
      <xsl:when test="ART9_GES/CountryCode = 'ES'">Spain</xsl:when>
      <xsl:when test="ART9_GES/CountryCode = 'FI'">Finland</xsl:when>
      <xsl:when test="ART9_GES/CountryCode = 'FR'">France</xsl:when>
      <xsl:when test="ART9_GES/CountryCode = 'HR'">Croatia</xsl:when>
      <xsl:when test="ART9_GES/CountryCode = 'IE'">Ireland</xsl:when>
      <xsl:when test="ART9_GES/CountryCode = 'IT'">Italy</xsl:when>
      <xsl:when test="ART9_GES/CountryCode = 'LT'">Lithuania</xsl:when>
      <xsl:when test="ART9_GES/CountryCode = 'LV'">Latvia</xsl:when>
      <xsl:when test="ART9_GES/CountryCode = 'MT'">Malta</xsl:when>
      <xsl:when test="ART9_GES/CountryCode = 'NL'">Netherlands</xsl:when>
      <xsl:when test="ART9_GES/CountryCode = 'PL'">Poland</xsl:when>
      <xsl:when test="ART9_GES/CountryCode = 'PT'">Portugal</xsl:when>
      <xsl:when test="ART9_GES/CountryCode = 'RO'">Romania</xsl:when>
      <xsl:when test="ART9_GES/CountryCode = 'SE'">Sweden</xsl:when>
      <xsl:when test="ART9_GES/CountryCode = 'SI'">Slovenia</xsl:when>
      <xsl:when test="ART9_GES/CountryCode = 'UK'">United Kingdom</xsl:when>
    </xsl:choose>
  </xsl:template>
  <xsl:template name="GEScomponentCode">
    <xsl:choose>
      <xsl:when test="GEScomponent = '1.1.3'">(Indicator(old)) Area covered by the species (for sessile/benthic species)</xsl:when>
      <xsl:when test="GEScomponent = '1.3.2'">(Indicator(old)) Population genetic structure</xsl:when>
      <xsl:when test="GEScomponent = '1.4'">(Criteria(old)) Habitat distribution</xsl:when>
      <xsl:when test="GEScomponent = '1.4.1'">(Indicator(old)) Distributional range</xsl:when>
      <xsl:when test="GEScomponent = '1.4.2'">(Indicator(old)) Distributional pattern</xsl:when>
      <xsl:when test="GEScomponent = '1.5.2'">(Indicator(old)) Habitat volume</xsl:when>
      <xsl:when test="GEScomponent = '3.3.2'">(Indicator(old)) Mean maximum length across all species found in research vessel surveys</xsl:when>
      <xsl:when test="GEScomponent = '5.1.2'">(Indicator(old)) Nutrient ratios (silica, nitrogen and phosphorus)</xsl:when>
      <xsl:when test="GEScomponent = '5.2'">(Criteria(old)) Direct effects of nutrient enrichment</xsl:when>
      <xsl:when test="GEScomponent = '5.3'">(Criteria(old)) Indirect effects of nutrient enrichment</xsl:when>
      <xsl:when test="GEScomponent = '9.1.2'">(Indicator(old)) Frequency of regulatory levels being exceeded</xsl:when>
      <xsl:when test="GEScomponent = 'D1'">(Descriptor) D1 - Biodiversity</xsl:when>
      <xsl:when test="GEScomponent = 'D1.1'">(Descriptor) D1 - Biodiversity - birds</xsl:when>
      <xsl:when test="GEScomponent = 'D1.2'">(Descriptor) D1 - Biodiversity - mammals</xsl:when>
      <xsl:when test="GEScomponent = 'D1.3'">(Descriptor) D1 - Biodiversity - reptiles</xsl:when>
      <xsl:when test="GEScomponent = 'D1.4'">(Descriptor) D1 - Biodiversity - fish</xsl:when>
      <xsl:when test="GEScomponent = 'D1.5'">(Descriptor) D1 - Biodiversity - cephalopods</xsl:when>
      <xsl:when test="GEScomponent = 'D1.6'">(Descriptor) D1 - Biodiversity - pelagic habitats</xsl:when>
      <xsl:when test="GEScomponent = 'D10'">(Descriptor) D10 - Marine litter</xsl:when>
      <xsl:when test="GEScomponent = 'D10C1'">(Criteria) D10C1 - Litter (excluding micro-litter)</xsl:when>
      <xsl:when test="GEScomponent = 'D10C2'">(Criteria) D10C2 - Micro-litter</xsl:when>
      <xsl:when test="GEScomponent = 'D10C3'">(Criteria) D10C3 - Litter ingested</xsl:when>
      <xsl:when test="GEScomponent = 'D10C4'">(Criteria) D10C4 – Adverse effects of litter</xsl:when>
      <xsl:when test="GEScomponent = 'D11'">(Descriptor) D11 - Underwater noise</xsl:when>
      <xsl:when test="GEScomponent = 'D11C1'">(Criteria) D11C1 – Anthropogenic impulsive sound</xsl:when>
      <xsl:when test="GEScomponent = 'D11C2'">(Criteria) D11C2 – Anthropogenic continuous low-frequency sound</xsl:when>
      <xsl:when test="GEScomponent = 'D1C1'">(Criteria) D1C1 – Mortality rate from incidental by-catch</xsl:when>
      <xsl:when test="GEScomponent = 'D1C2'">(Criteria) D1C2 – Population abundance</xsl:when>
      <xsl:when test="GEScomponent = 'D1C3'">(Criteria) D1C3 - Population demographic characteristics</xsl:when>
      <xsl:when test="GEScomponent = 'D1C4'">(Criteria) D1C4 - Population distributional range and pattern</xsl:when>
      <xsl:when test="GEScomponent = 'D1C5'">(Criteria) D1C5 - Habitat for the species</xsl:when>
      <xsl:when test="GEScomponent = 'D1C6'">(Criteria) D1C6 – Pelagic habitat condition</xsl:when>
      <xsl:when test="GEScomponent = 'D2'">(Descriptor) D2 – Non-indigenous species</xsl:when>
      <xsl:when test="GEScomponent = 'D2C1'">(Criteria) D2C1 – Newly-introduced NIS</xsl:when>
      <xsl:when test="GEScomponent = 'D2C2'">(Criteria) D2C2 - Established NIS</xsl:when>
      <xsl:when test="GEScomponent = 'D2C3'">(Criteria) D2C3 - Adverse effects of NIS</xsl:when>
      <xsl:when test="GEScomponent = 'D3'">(Descriptor) D3 – Commercial fish and shellfish</xsl:when>
      <xsl:when test="GEScomponent = 'D3C1'">(Criteria) D3C1 - Fishing mortality rate (F)</xsl:when>
      <xsl:when test="GEScomponent = 'D3C2'">(Criteria) D3C2 - Spawning stock biomass (SSB)</xsl:when>
      <xsl:when test="GEScomponent = 'D3C3'">(Criteria) D3C3 – Population age/size distribution</xsl:when>
      <xsl:when test="GEScomponent = 'D4/D1'">(Descriptor) D4 – Food webs/D1 - Biodiversity - ecosystems</xsl:when>
      <xsl:when test="GEScomponent = 'D4C1'">(Criteria) D4C1 – Trophic guild species diversity</xsl:when>
      <xsl:when test="GEScomponent = 'D4C2'">(Criteria) D4C2 - Abundance across trophic guilds</xsl:when>
      <xsl:when test="GEScomponent = 'D4C3'">(Criteria) D4C3 – Trophic guild size distribution</xsl:when>
      <xsl:when test="GEScomponent = 'D4C4'">(Criteria) D4C4 – Trophic guild productivity</xsl:when>
      <xsl:when test="GEScomponent = 'D5'">(Descriptor) D5 – Eutrophication</xsl:when>
      <xsl:when test="GEScomponent = 'D5C1'">(Criteria) D5C1 - Nutrient concentrations</xsl:when>
      <xsl:when test="GEScomponent = 'D5C2'">(Criteria) D5C2 - Chlorophyll a concentration</xsl:when>
      <xsl:when test="GEScomponent = 'D5C3'">(Criteria) D5C3 - Harmful algal blooms</xsl:when>
      <xsl:when test="GEScomponent = 'D5C4'">(Criteria) D5C4 - Photic limit</xsl:when>
      <xsl:when test="GEScomponent = 'D5C5'">(Criteria) D5C5 - Dissolved oxygen concentration</xsl:when>
      <xsl:when test="GEScomponent = 'D5C6'">(Criteria) D5C6 - Opportunistic macroalgae of benthic habitats</xsl:when>
      <xsl:when test="GEScomponent = 'D5C7'">(Criteria) D5C7 - Macrophyte communities of benthic habitats</xsl:when>
      <xsl:when test="GEScomponent = 'D5C8'">(Criteria) D5C8 - Macrofaunal communities of benthic habitats</xsl:when>
      <xsl:when test="GEScomponent = 'D6/D1'">(Descriptor) D6 - Seafloor integrity/D1 - Biodiversity - benthic habitats</xsl:when>
      <xsl:when test="GEScomponent = 'D6C1'">(Criteria) D6C1 - Physical loss of the seabed</xsl:when>
      <xsl:when test="GEScomponent = 'D6C2'">(Criteria) D6C2 - Physical disturbance to the seabed</xsl:when>
      <xsl:when test="GEScomponent = 'D6C3'">(Criteria) D6C3 – Adverse effects from physical disturbance</xsl:when>
      <xsl:when test="GEScomponent = 'D6C4'">(Criteria) D6C4 – Benthic habitat extent</xsl:when>
      <xsl:when test="GEScomponent = 'D6C5'">(Criteria) D6C5 – Benthic habitat condition</xsl:when>
      <xsl:when test="GEScomponent = 'D7'">(Descriptor) D7 - Hydrographic changes</xsl:when>
      <xsl:when test="GEScomponent = 'D7C1'">(Criteria) D7C1 – Permanent alteration of hydrographical conditions</xsl:when>
      <xsl:when test="GEScomponent = 'D7C2'">(Criteria) D7C2 – Adverse effects from permanent alterations of hydrographical conditions </xsl:when>
      <xsl:when test="GEScomponent = 'D8'">(Descriptor) D8 - Contaminants</xsl:when>
      <xsl:when test="GEScomponent = 'D8C1'">(Criteria) D8C1 - Contaminant in environment</xsl:when>
      <xsl:when test="GEScomponent = 'D8C2'">(Criteria) D8C2 – Adverse effects of contaminants</xsl:when>
      <xsl:when test="GEScomponent = 'D8C3'">(Criteria) D8C3 – Significant acute pollution events</xsl:when>
      <xsl:when test="GEScomponent = 'D8C4'">(Criteria) D8C4 – Adverse effect of significant acute pollution events</xsl:when>
      <xsl:when test="GEScomponent = 'D9'">(Descriptor) D9 - Contaminants in seafood</xsl:when>
      <xsl:when test="GEScomponent = 'D9C1'">(Criteria) D9C1 - Contaminants in seafood</xsl:when>
      <xsl:when test="GEScomponent = 'NotRelevant'">Non related GES component</xsl:when>
    </xsl:choose>
  </xsl:template>
  <xsl:template name="FeatureCode">
    <xsl:choose>
      <xsl:when test="string(.) = 'EcosysElemAll'">All marine ecosystem elements</xsl:when>
      <xsl:when test="string(.) = 'SppAll'">All marine species</xsl:when>
      <xsl:when test="string(.) = 'BirdsAll'">All birds</xsl:when>
      <xsl:when test="string(.) = 'BirdsGrazing'">Grazing birds</xsl:when>
      <xsl:when test="string(.) = 'BirdsWading'">Wading birds</xsl:when>
      <xsl:when test="string(.) = 'BirdsSurfaceFeeding'">Surface-feeding birds</xsl:when>
      <xsl:when test="string(.) = 'BirdsPelagicFeeding'">Pelagic-feeding birds</xsl:when>
      <xsl:when test="string(.) = 'BirdsBenthicFeeding'">Benthic-feeding birds</xsl:when>
      <xsl:when test="string(.) = 'MamAll'">All mammals</xsl:when>
      <xsl:when test="string(.) = 'MamCetacSmall'">Small toothed cetaceans</xsl:when>
      <xsl:when test="string(.) = 'MamCetacDeepDiving'">Deep-diving toothed cetaceans</xsl:when>
      <xsl:when test="string(.) = 'MamCetacBaleenWhales'">Baleen whales</xsl:when>
      <xsl:when test="string(.) = 'MamSeals'">Seals</xsl:when>
      <xsl:when test="string(.) = 'RepTurtles'">Turtles</xsl:when>
      <xsl:when test="string(.) = 'FishAll'">All fish</xsl:when>
      <xsl:when test="string(.) = 'FishCoastal'">Coastal fish</xsl:when>
      <xsl:when test="string(.) = 'FishPelagicShelf'">Pelagic shelf fish</xsl:when>
      <xsl:when test="string(.) = 'FishDemersalShelf'">Demersal shelf fish</xsl:when>
      <xsl:when test="string(.) = 'FishDeepSea'">Deep-sea fish</xsl:when>
      <xsl:when test="string(.) = 'FishCommercial'">Commercially exploited fish and shellfish</xsl:when>
      <xsl:when test="string(.) = 'CephaAll'">All cephalopods</xsl:when>
      <xsl:when test="string(.) = 'CephaCoastShelf'">Coastal/shelf cephalopods</xsl:when>
      <xsl:when test="string(.) = 'CephaDeepSea'">Deep-sea cephalopods</xsl:when>
      <xsl:when test="string(.) = 'HabAll'">All habitats</xsl:when>
      <xsl:when test="string(.) = 'HabBenAll'">Benthic habitats</xsl:when>
      <xsl:when test="string(.) = 'HabBenBHT'">Benthich broad habitats</xsl:when>
      <xsl:when test="string(.) = 'HabBenLitRock'">Littoral rock and biogenic reef </xsl:when>
      <xsl:when test="string(.) = 'HabBenLitSed'">Littoral sediment </xsl:when>
      <xsl:when test="string(.) = 'HabBenInfralitRock'">Infralittoral rock and biogenic reef </xsl:when>
      <xsl:when test="string(.) = 'HabBenInfralitCoarSed'">Infralittoral coarse sediment </xsl:when>
      <xsl:when test="string(.) = 'HabBenInfralitMxdSed'">Infralittoral mixed sediment </xsl:when>
      <xsl:when test="string(.) = 'HabBenInfralitSand'">Infralittoral sand </xsl:when>
      <xsl:when test="string(.) = 'HabBenInfralitMud'">Infralittoral mud </xsl:when>
      <xsl:when test="string(.) = 'HabBenCircalitRock'">Circalittoral rock and biogenic reef </xsl:when>
      <xsl:when test="string(.) = 'HabBenCircalitCoarSed'">Circalittoral coarse sediment </xsl:when>
      <xsl:when test="string(.) = 'HabBenCircalitMxdSed'">Circalittoral mixed sediment </xsl:when>
      <xsl:when test="string(.) = 'HabBenCircalitSand'">Circalittoral sand </xsl:when>
      <xsl:when test="string(.) = 'HabBenCircalitMud'">Circalittoral mud </xsl:when>
      <xsl:when test="string(.) = 'HabBenOffshRock'">Offshore circalittoral rock and biogenic reef </xsl:when>
      <xsl:when test="string(.) = 'HabBenOffshCoarSed'">Offshore circalittoral coarse sediment </xsl:when>
      <xsl:when test="string(.) = 'HabBenOffshMxdSed'">Offshore circalittoral mixed sediment </xsl:when>
      <xsl:when test="string(.) = 'HabBenOffshSand'">Offshore circalittoral sand </xsl:when>
      <xsl:when test="string(.) = 'HabBenOffshMud'">Offshore circalittoral mud </xsl:when>
      <xsl:when test="string(.) = 'HabBenBathyalUpRock'">Upper bathyal rock and biogenic reef </xsl:when>
      <xsl:when test="string(.) = 'HabBenBathyalUpSed'">Upper bathyal sediment </xsl:when>
      <xsl:when test="string(.) = 'HabBenBathyalLowRock'">Lower bathyal rock and biogenic reef </xsl:when>
      <xsl:when test="string(.) = 'HabBenBathyalLowSed'">Lower bathyal sediment </xsl:when>
      <xsl:when test="string(.) = 'HabBenAbyssal'">Abyssal </xsl:when>
      <xsl:when test="string(.) = 'HabBenOther'">Other benthic habitats</xsl:when>
      <xsl:when test="string(.) = 'HabPelagAll'">Pelagic habitats</xsl:when>
      <xsl:when test="string(.) = 'HabPelBHT'">Pelagic broad habitats</xsl:when>
      <xsl:when test="string(.) = 'HabPelagVarSalinity'">Variable salinity</xsl:when>
      <xsl:when test="string(.) = 'HabPelagCoastal'">Coastal</xsl:when>
      <xsl:when test="string(.) = 'HabPelagShelf'">Shelf</xsl:when>
      <xsl:when test="string(.) = 'HabPelagOcean'">Oceanic/beyond shelf</xsl:when>
      <xsl:when test="string(.) = 'HabPelagOther'">Other pelagic habitats</xsl:when>
      <xsl:when test="string(.) = 'HabOther'">Other habitat types</xsl:when>
      <xsl:when test="string(.) = 'PhyHydroCharacAll'">All physical and hydrological characteristics</xsl:when>
      <xsl:when test="string(.) = 'Temperature'">Temperature</xsl:when>
      <xsl:when test="string(.) = 'Ice'">Ice</xsl:when>
      <xsl:when test="string(.) = 'Waves'">Wave regime</xsl:when>
      <xsl:when test="string(.) = 'Currents'">Current regime</xsl:when>
      <xsl:when test="string(.) = 'Upwelling'">Upwelling</xsl:when>
      <xsl:when test="string(.) = 'Mixing'">Mixing</xsl:when>
      <xsl:when test="string(.) = 'ResidenceTime'">Residence time</xsl:when>
      <xsl:when test="string(.) = 'FreshwaterInput'">Freshwater input</xsl:when>
      <xsl:when test="string(.) = 'SeaLevel'">Sea level</xsl:when>
      <xsl:when test="string(.) = 'Bathymetry'">Bathymetry</xsl:when>
      <xsl:when test="string(.) = 'Turbidity'">Turbidity (silt/sediment loads)</xsl:when>
      <xsl:when test="string(.) = 'Transparency'">Transparency</xsl:when>
      <xsl:when test="string(.) = 'Sound'">Sound</xsl:when>
      <xsl:when test="string(.) = 'SubstrateMorphology'">Seabed substrate and morphology</xsl:when>
      <xsl:when test="string(.) = 'ChemCharacAll'">All chemical characteristics</xsl:when>
      <xsl:when test="string(.) = 'Salinity'">Salinity</xsl:when>
      <xsl:when test="string(.) = 'Nutrients'">Nutrients (N, P)</xsl:when>
      <xsl:when test="string(.) = 'OrganicCarbon'">Organic carbon</xsl:when>
      <xsl:when test="string(.) = 'pCO2 '">Dissolved carbon dioxide (pCO2) </xsl:when>
      <xsl:when test="string(.) = 'Oxygen'">Dissolved oxygen</xsl:when>
      <xsl:when test="string(.) = 'pH'">pH</xsl:when>
      <xsl:when test="string(.) = 'TrophicGuildsAll'">All trophic guilds</xsl:when>
      <xsl:when test="string(.) = 'TrophicGuildsPrimProd'">Primary producers</xsl:when>
      <xsl:when test="string(.) = 'TrophicGuildsSecProd'">Secondary producers</xsl:when>
      <xsl:when test="string(.) = 'TrophicGuildsFilFeed'">Filter-feeders</xsl:when>
      <xsl:when test="string(.) = 'TrophicGuildsDepFeed'">Deposit-feeders</xsl:when>
      <xsl:when test="string(.) = 'TrophicGuildsPlankt'">Planktivores</xsl:when>
      <xsl:when test="string(.) = 'TrophicGuildsPredSApexPel'">Sub-apex pelagic predators</xsl:when>
      <xsl:when test="string(.) = 'TrophicGuildsPredSApexDem'">Sub-apex demersal predators</xsl:when>
      <xsl:when test="string(.) = 'TrophicGuildsPredApex'">Apex predators</xsl:when>
      <xsl:when test="string(.) = 'EcosystemFoodWeb'">Ecosystems, including food webs</xsl:when>
      <xsl:when test="string(.) = 'EcosysCoastal'">Coastal ecosystem</xsl:when>
      <xsl:when test="string(.) = 'EcosysShelf'">Shelf ecosystem</xsl:when>
      <xsl:when test="string(.) = 'EcosysOceanic'">Oceanic/deep-sea ecosystem</xsl:when>
      <xsl:when test="string(.) = 'PresAll'">All pressures</xsl:when>
      <xsl:when test="string(.) = 'PresBioAll'">All biological pressures</xsl:when>
      <xsl:when test="string(.) = 'PresBioIntroNIS'">Input or spread of non-indigenous species</xsl:when>
      <xsl:when test="string(.) = 'PresBioIntroMicroPath'">Input of microbial pathogens</xsl:when>
      <xsl:when test="string(.) = 'PresBioIntroGenModSpp'">Input of genetically modified species and translocation of native species</xsl:when>
      <xsl:when test="string(.) = 'PresBioCultHab'">Loss of, or change to, natural biological communities due to cultivation of animal or plant species</xsl:when>
      <xsl:when test="string(.) = 'PresBioDisturbSpp'">Disturbance of species (e.g. where they breed, rest and feed) due to human presence</xsl:when>
      <xsl:when test="string(.) = 'PresBioExtractSpp'">Extraction of, or mortality/injury to, wild species (by commercial and recreational fishing and other activities)</xsl:when>
      <xsl:when test="string(.) = 'PresPhyAll'">All physical pressures</xsl:when>
      <xsl:when test="string(.) = 'PresPhyDisturbSeabed'">Physical disturbance to seabed</xsl:when>
      <xsl:when test="string(.) = 'PresPhyLoss'">Physical loss of the seabed</xsl:when>
      <xsl:when test="string(.) = 'PresPhyHydroCond'">Changes to hydrological conditions</xsl:when>
      <xsl:when test="string(.) = 'PresInputAll'">All pressures related to inputs of substances, litter and energy</xsl:when>
      <xsl:when test="string(.) = 'PresInputNut'">Input of nutrients – diffuse sources, point sources, atmospheric deposition</xsl:when>
      <xsl:when test="string(.) = 'PresInputOrg'">Input of organic matter – diffuse sources and point sources</xsl:when>
      <xsl:when test="string(.) = 'PresInputCont'">Input of other substances (e.g. synthetic substances, non-synthetic substances, radionuclides) – diffuse sources, point sources, atmospheric deposition, acute events</xsl:when>
      <xsl:when test="string(.) = 'PresInputLitter'">Input of litter (solid waste matter, including micro-sized litter)</xsl:when>
      <xsl:when test="string(.) = 'PresInputSound'">Input of anthropogenic sound (impulsive, continuous)</xsl:when>
      <xsl:when test="string(.) = 'PresInputOthEnergy'">Input of other forms of energy (including electromagnetic fields, light and heat)</xsl:when>
      <xsl:when test="string(.) = 'PresInputWater'">Input of water – point sources (e.g. brine)</xsl:when>
      <xsl:when test="string(.) = 'PresEnvNISnew'">Newly-introduced non-indigenous species</xsl:when>
      <xsl:when test="string(.) = 'PresEnvNISestablished'">Established non-indigenous species</xsl:when>
      <xsl:when test="string(.) = 'PresEnvHydroChanges'">Hydrographical changes</xsl:when>
      <xsl:when test="string(.) = 'PresEnvSoundContinuous'">Continuous low frequency sound</xsl:when>
      <xsl:when test="string(.) = 'PresEnvSoundImpulsive'">Impulsive sound in water</xsl:when>
      <xsl:when test="string(.) = 'PresEnvEutrophi'">Eutrophication</xsl:when>
      <xsl:when test="string(.) = 'PresEnvContNonUPBTs'">Contaminants - non UPBT substances</xsl:when>
      <xsl:when test="string(.) = 'PresEnvContUPBTs'">Contaminants - UPBT substances</xsl:when>
      <xsl:when test="string(.) = 'PresEnvContSeafood'">Contaminants – in seafood</xsl:when>
      <xsl:when test="string(.) = 'PresEnvAcuPolluEvents'">Acute pollution events</xsl:when>
      <xsl:when test="string(.) = 'PresEnvLitter'">Litter in the environment</xsl:when>
      <xsl:when test="string(.) = 'PresEnvLitterMicro'">Micro-litter in the environment</xsl:when>
      <xsl:when test="string(.) = 'PresEnvLitterSpp'">Litter and micro-litter in species</xsl:when>
      <xsl:when test="string(.) = 'EcosysServAll'">All ecosystem services</xsl:when>
      <xsl:when test="string(.) = 'EcosysServNutrAll'">All ecosystem services related to nutrition</xsl:when>
      <xsl:when test="string(.) = 'EcosysServNutrSeafoodAlgae'">Wild plants, algae and their outputs</xsl:when>
      <xsl:when test="string(.) = 'EcosysServNutrSeafoodAnimals'">Wild animals and their outputs</xsl:when>
      <xsl:when test="string(.) = 'EcosysServNutrAquacAlgae'">Algal seafood from aquaculture</xsl:when>
      <xsl:when test="string(.) = 'EcosysServNutrAquacAnimals'">Animals from in-situ aquaculture</xsl:when>
      <xsl:when test="string(.) = 'EcosysServMatAll'">All ecosystem services related to provision of materials</xsl:when>
      <xsl:when test="string(.) = 'EcosysServMatRaw'">Fibres and other materials from plants, algae and animals for direct use or processing</xsl:when>
      <xsl:when test="string(.) = 'EcosysServMatAlgaeAnimalsForAquac'">Materials from plants, algae and animals for agricultural use</xsl:when>
      <xsl:when test="string(.) = 'EcosysServMatGenetic'">Genetic materials from all biota</xsl:when>
      <xsl:when test="string(.) = 'EcosysServEnerAll'">All ecosystem services related to provision of energy</xsl:when>
      <xsl:when test="string(.) = 'EcosysServEnerPlants'">Plant-based resources</xsl:when>
      <xsl:when test="string(.) = 'EcosysServEnerAnimals'">Animal-based resources</xsl:when>
      <xsl:when test="string(.) = 'EcosysServWasteAll'">All ecosystem services related to mediation of waste, toxics and other nuisances</xsl:when>
      <xsl:when test="string(.) = 'EcosysServWasteTreatment'">Bio-remediation by micro-organisms, algae, plants, and animals</xsl:when>
      <xsl:when test="string(.) = 'EcosysServWasteRemovalByOrgan'">Filtration/sequestration/storage/accumulation by micro-organisms, algae, plants, and animals</xsl:when>
      <xsl:when test="string(.) = 'EcosysServWasteRemovalByEcosys'">Filtration/sequestration/storage/accumulation by ecosystems</xsl:when>
      <xsl:when test="string(.) = 'EcosysServWasteSmellVisImpacts'">Mediation of smell/visual impacts</xsl:when>
      <xsl:when test="string(.) = 'EcosysServFlowsAll'">All ecosystem services related to mediation of flows</xsl:when>
      <xsl:when test="string(.) = 'EcosysServFlowsErosionPrev1'">Mass stabilisation and control of erosion rates</xsl:when>
      <xsl:when test="string(.) = 'EcosysServFlowsErosionPrev2'">Buffering and attenuation of mass flows</xsl:when>
      <xsl:when test="string(.) = 'EcosysServFlowsFloodProt'">Flood protection</xsl:when>
      <xsl:when test="string(.) = 'EcosysServFlowsOxygenProd'">Ventilation and transpiration</xsl:when>
      <xsl:when test="string(.) = 'EcosysServMainCondAll'">All ecosystem services related to maintenance of physical, chemical and biological conditions</xsl:when>
      <xsl:when test="string(.) = 'EcosysServMainCondPolli'">Pollination and seed dispersal</xsl:when>
      <xsl:when test="string(.) = 'EcosysServMainCondNurs'">Maintaining Nursery Populations and Habitats </xsl:when>
      <xsl:when test="string(.) = 'EcosysServMainCondGene'">Gene pool protection</xsl:when>
      <xsl:when test="string(.) = 'EcosysServMainCondPest'">Pest control</xsl:when>
      <xsl:when test="string(.) = 'EcosysServMainCondDis'">Disease control</xsl:when>
      <xsl:when test="string(.) = 'EcosysServMainCondDeco'">Decomposition and fixing processes</xsl:when>
      <xsl:when test="string(.) = 'EcosysServMainCondChem'">Chemical condition of salt waters</xsl:when>
      <xsl:when test="string(.) = 'EcosysServMainCondClim'">Global climate regulation by reduction of greenhouse gas concentrations</xsl:when>
      <xsl:when test="string(.) = 'EcosysServInteracPhyAll'">All ecosystem services underpinning physical and intellectual interactions</xsl:when>
      <xsl:when test="string(.) = 'EcosysServInteracPhyRecreat1'">Experiential use of plants, animals and land-/seascapes in different environmental settings</xsl:when>
      <xsl:when test="string(.) = 'EcosysServInteracPhyRecreat2'">Physical use of land-/seascapes in different environmental settings</xsl:when>
      <xsl:when test="string(.) = 'EcosysServInteracPhyScientif'">Scientific</xsl:when>
      <xsl:when test="string(.) = 'EcosysServInteracPhyEducat'">Educational</xsl:when>
      <xsl:when test="string(.) = 'EcosysServInteracPhyCultur'">Heritage, cultural</xsl:when>
      <xsl:when test="string(.) = 'EcosysServInteracPhyEntert'">Entertainment</xsl:when>
      <xsl:when test="string(.) = 'EcosysServInteracPhyAesthe'">Aesthetic</xsl:when>
      <xsl:when test="string(.) = 'EcosysServInteracSpiAll'">All ecosystem services underpinning spiritual, symbolic and other interactions</xsl:when>
      <xsl:when test="string(.) = 'EcosysServInteracSpiSymb'">Symbolic</xsl:when>
      <xsl:when test="string(.) = 'EcosysServInteracSpiRelig'">Sacred and/or religious</xsl:when>
      <xsl:when test="string(.) = 'EcosysServInteracSpiExis'">Existence</xsl:when>
      <xsl:when test="string(.) = 'EcosysServInteracSpiBequ'">Bequest</xsl:when>
    </xsl:choose>
  </xsl:template>
</xsl:stylesheet>