View stylesheet

XML schema
Output type CSV
Description des
XSL file ART11_Strategies-HTML.xsl (Last modified: 19 May 2021 08:55 )
<?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>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
        <meta name="viewport" content="width=device-width, initial-scale=1"/>
        <title>Reporting on MSFD Article 11 Strategies</title>
        <meta content="text/html; charset=utf-8"/>
        <link rel="icon" href="//cdr.eionet.europa.eu/help/msfd/Stylesheets/MSFD-logo.ico"/>
        <!-- Bootstrap core CSS -->
        <link href="//cdr.eionet.europa.eu/help/msfd/Stylesheets/bootstrap.min.css" rel="stylesheet"/>

        <!-- Custom styles for this template -->
        <link href="//cdr.eionet.europa.eu/help/msfd/Stylesheets/dashboard.css" rel="stylesheet"/>

        <script src="//cdr.eionet.europa.eu/help/msfd/Stylesheets/jquery.min.js"></script>
        <script src="//cdr.eionet.europa.eu/help/msfd/Stylesheets/bootstrap.min.js"></script>
      </head>
      <body>
        <div class="container-fluid">
          <div class="row">
            <div class="col-sm-4 col-md-3 sidebar">
              <div class="nav nav-sidebar text-center">
                <a href="https://cdr.eionet.europa.eu/help/msfd/MSFD%20ART11" target="_blank">
                  <img height="50" alt="MSFD" src="//cdr.eionet.europa.eu/help/msfd/Stylesheets/MSFD-logo.png"/>
                </a>
              </div>
              <ul class="nav nav-sidebar">
                <li>
                  <a href="#info">Reporter info</a>
                </li>
              </ul>
              <xsl:if test="ART11_Strategies/Metadata">
                <h4>Metadata</h4>
                <ul class="nav nav-sidebar">
                  <xsl:for-each select="ART11_Strategies/Metadata">
                    <li>
                      <a href="#heading{position()}">
                        <xsl:value-of select="ResponsibleCompetentAuthority" />
                      </a>
                    </li>
                  </xsl:for-each>
                </ul>
              </xsl:if>
            </div>
            <div class="col-sm-8 col-sm-offset-4 col-md-9 col-md-offset-3 main">
              <h1 class="page-header">Reporting on MSFD Article 11 Strategies</h1>
              <xsl:call-template name="Reporter"></xsl:call-template>
              <xsl:call-template name="Metadatas"></xsl:call-template>
            </div>
          </div>
        </div>
        <script>
          function toggleIcon(e) {
            $(e.target)
              .prev('.panel-heading')
              .find(".more-less")
              .toggleClass('glyphicon-plus glyphicon-minus');
          }
          $('.panel-group').on('hidden.bs.collapse', toggleIcon);
          $('.panel-group').on('shown.bs.collapse', toggleIcon);
        </script>
      </body>
    </html>
  </xsl:template>
  <xsl:template name="Reporter">
    <h2 id="info" class="sub-header">Reporter info</h2>
    <div class="table-reponsive">
      <table class="table table-striped">
        <tr>
          <td>
            <label>Country</label>
          </td>
          <td>
            <span class="form-control" readonly="readonly">
              <xsl:call-template name="CountriesCode"></xsl:call-template>
            </span>
          </td>
        </tr>
        <tr>
          <td>
            <label>Name of the reporter</label>
          </td>
          <td>
            <span class="form-control" readonly="readonly">
              <xsl:value-of select="ART11_Strategies/@ContactName" />
            </span>
          </td>
        </tr>
        <tr>
          <td>
            <label>Email of the reporter</label>
          </td>
          <td>
            <span class="form-control" readonly="readonly">
              <xsl:value-of select="ART11_Strategies/@ContactMail" />
            </span>
          </td>
        </tr>
        <tr>
          <td>
            <label>Reporter organisation</label>
          </td>
          <td>
            <span class="form-control" readonly="readonly">
              <xsl:value-of select="ART11_Strategies/@ContactOrganisation" />
            </span>
          </td>
        </tr>
        <tr>
          <td>
            <label>Reporting date</label>
          </td>
          <td>
            <span class="form-control" readonly="readonly">
              <xsl:value-of select="ART11_Strategies/@ReportingDate" />
            </span>
          </td>
        </tr>
      </table>
    </div>
  </xsl:template>
  <xsl:template name="Metadatas">
    <xsl:if test="ART11_Strategies/Metadata">
      <div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
        <xsl:for-each select="ART11_Strategies/Metadata">
          <xsl:variable name="rca" select="position()"/>
          <div class="panel panel-default">
            <div class="panel-heading" role="tab" id="heading{position()}">
              <h4 class="panel-title">
                <a role="button" data-toggle="collapse" href="#collapse{position()}" aria-expanded="false" aria-controls="collapse{position()}">
                  <i class="more-less glyphicon glyphicon-plus"></i>
                  <xsl:value-of select="ResponsibleCompetentAuthority" />
                </a>
              </h4>
            </div>
            <div id="collapse{position()}" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading{position()}">
              <div class="panel-body">
                <div class="table-reponsive">
                  <table class="table table-striped">
                    <tr>
                      <td>
                        <label>Responsible Competent Authority</label>
                      </td>
                      <td>
                        <span class="form-control" readonly="readonly">
                          <xsl:for-each select="ResponsibleCompetentAuthority">
                            <xsl:value-of select="string(.)" />
                            <xsl:if test="position() != last()">
                              <br/>
                            </xsl:if>
                          </xsl:for-each>
                        </span>
                      </td>
                    </tr>
                    <tr>
                      <td>
                        <label>Responsible Organisations</label>
                      </td>
                      <td>
                        <span class="form-control" readonly="readonly">
                          <xsl:for-each select="ResponsibleOrganisations">
                            <xsl:value-of select="string(.)" />
                            <xsl:if test="position() != last()">
                              <br/>
                            </xsl:if>
                          </xsl:for-each>
                        </span>
                      </td>
                    </tr>
                    <tr>
                      <td>
                        <label>Relationship To Competent Authority</label>
                      </td>
                      <td>
                        <span class="form-control" readonly="readonly">
                          <xsl:value-of select="RelationshipToCA" />
                        </span>
                      </td>
                    </tr>
                    <tr>
                      <td>
                        <label>Public Consultation Dates</label>
                      </td>
                      <td>
                        <span class="form-control" readonly="readonly">
                          <xsl:value-of select="PublicConsultationDates" />
                        </span>
                      </td>
                    </tr>
                    <tr>
                      <td>
                        <label>Public Consultation Site</label>
                      </td>
                      <td>
                        <span class="form-control" readonly="readonly">
                          <xsl:value-of select="PublicConsultationSite" />
                        </span>
                      </td>
                    </tr>
                    <tr>
                      <td>
                        <label>Regional Cooperation</label>
                      </td>
                      <td>
                        <span class="form-control" readonly="readonly">
                          <xsl:value-of select="RegionalCooperation" />
                        </span>
                      </td>
                    </tr>
                    <xsl:if test="MonitoringStrategy">
                      <tr class="tableBorder">
                        <td>
                          <label>Monitoring Strategies</label>
                        </td>
                        <td>
                          <div class="table-reponsive">
                            <table class="table table-striped tableBorder">
                              <xsl:for-each select="MonitoringStrategy">
                                <tr>
                                  <td>
                                    <div class="panel panel-default">
                                      <div class="panel-heading" role="tab" id="heading{$rca}_{position()}">
                                        <h4 class="panel-title">
                                          <a role="button" data-toggle="collapse" href="#collapse{$rca}_{position()}" aria-expanded="false" aria-controls="collapse{$rca}_{position()}">
                                            <i class="more-less glyphicon glyphicon-plus"></i>
                                            <xsl:call-template name="GEScomponentCode"></xsl:call-template>
                                          </a>
                                        </h4>
                                      </div>
                                      <div id="collapse{$rca}_{position()}" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading{$rca}_{position()}">
                                        <div class="panel-body">
                                          <div class="table-reponsive">
                                            <table class="table table-striped">
                                              <tr>
                                                <td>
                                                  <label>Descriptor</label>
                                                </td>
                                                <td>
                                                  <span class="form-control" readonly="readonly">
                                                    <xsl:call-template name="GEScomponentCode"></xsl:call-template>
                                                  </span>
                                                </td>
                                              </tr>
                                              <tr>
                                                <td>
                                                  <label>Monitoring Strategy Description</label>
                                                </td>
                                                <td>
                                                  <span class="form-control" readonly="readonly">
                                                    <xsl:value-of select="MonitoringStrategyDescription" />
                                                  </span>
                                                </td>
                                              </tr>
                                              <tr>
                                                <td>
                                                  <label>Related Targets</label>
                                                </td>
                                                <td>
                                                  <span class="form-control" readonly="readonly">
                                                    <xsl:for-each select="RelatedTargets">
                                                      <xsl:value-of select="string(.)" />
                                                      <xsl:if test="position() != last()">
                                                        <br/>
                                                      </xsl:if>
                                                    </xsl:for-each>
                                                  </span>
                                                </td>
                                              </tr>
                                              <tr>
                                                <td>
                                                  <label>Related Measures</label>
                                                </td>
                                                <td>
                                                  <span class="form-control" readonly="readonly">
                                                    <xsl:for-each select="RelatedMeasures">
                                                      <xsl:value-of select="RelatedMeasure_code" /> - <xsl:value-of select="RelatedMeasure_name" />
                                                      <xsl:if test="position() != last()">
                                                        <br/>
                                                      </xsl:if>
                                                    </xsl:for-each>
                                                  </span>
                                                </td>
                                              </tr>
                                              <tr>
                                                <td>
                                                  <label>Coverage GES Criteria</label>
                                                </td>
                                                <td>
                                                  <span class="form-control" readonly="readonly">
                                                    <xsl:value-of select="Coverage_GEScriteria" />
                                                  </span>
                                                </td>
                                              </tr>
                                              <tr>
                                                <td>
                                                  <label>Coverage Targets</label>
                                                </td>
                                                <td>
                                                  <span class="form-control" readonly="readonly">
                                                    <xsl:value-of select="Coverage_Targets" />
                                                  </span>
                                                </td>
                                              </tr>
                                              <tr>
                                                <td>
                                                  <label>Coverage Measures</label>
                                                </td>
                                                <td>
                                                  <span class="form-control" readonly="readonly">
                                                    <xsl:value-of select="Coverage_Measures" />
                                                  </span>
                                                </td>
                                              </tr>
                                              <tr>
                                                <td>
                                                  <label>Gaps Plans</label>
                                                </td>
                                                <td>
                                                  <span class="form-control" readonly="readonly">
                                                    <xsl:value-of select="Gaps_Plans" />
                                                  </span>
                                                </td>
                                              </tr>
                                              <tr>
                                                <td>
                                                  <label>Monitoring Programmes</label>
                                                </td>
                                                <td>
                                                  <span class="form-control" readonly="readonly">
                                                    <xsl:for-each select="MonitoringProgrammes">
                                                      <xsl:value-of select="string(.)" />
                                                      <xsl:if test="position() != last()">
                                                        <br/>
                                                      </xsl:if>
                                                    </xsl:for-each>
                                                  </span>
                                                </td>
                                              </tr>
                                            </table>
                                          </div>
                                        </div>
                                      </div>
                                    </div>
                                  </td>
                                </tr>
                              </xsl:for-each>
                            </table>
                          </div>
                        </td>
                      </tr>
                    </xsl:if>
                  </table>
                </div>
              </div>
            </div>
          </div>
        </xsl:for-each>
      </div>
    </xsl:if>
  </xsl:template>
  <xsl:template name="CountriesCode">
    <xsl:choose>
      <xsl:when test="ART11_Strategies/CountryCode = 'BE'">Belgium</xsl:when>
      <xsl:when test="ART11_Strategies/CountryCode = 'BG'">Bulgaria</xsl:when>
      <xsl:when test="ART11_Strategies/CountryCode = 'CY'">Cyprus</xsl:when>
      <xsl:when test="ART11_Strategies/CountryCode = 'DE'">Germany</xsl:when>
      <xsl:when test="ART11_Strategies/CountryCode = 'DK'">Denmark</xsl:when>
      <xsl:when test="ART11_Strategies/CountryCode = 'EE'">Estonia</xsl:when>
      <xsl:when test="ART11_Strategies/CountryCode = 'EL'">Greece</xsl:when>
      <xsl:when test="ART11_Strategies/CountryCode = 'ES'">Spain</xsl:when>
      <xsl:when test="ART11_Strategies/CountryCode = 'FI'">Finland</xsl:when>
      <xsl:when test="ART11_Strategies/CountryCode = 'FR'">France</xsl:when>
      <xsl:when test="ART11_Strategies/CountryCode = 'HR'">Croatia</xsl:when>
      <xsl:when test="ART11_Strategies/CountryCode = 'IE'">Ireland</xsl:when>
      <xsl:when test="ART11_Strategies/CountryCode = 'IT'">Italy</xsl:when>
      <xsl:when test="ART11_Strategies/CountryCode = 'LT'">Lithuania</xsl:when>
      <xsl:when test="ART11_Strategies/CountryCode = 'LV'">Latvia</xsl:when>
      <xsl:when test="ART11_Strategies/CountryCode = 'MT'">Malta</xsl:when>
      <xsl:when test="ART11_Strategies/CountryCode = 'NL'">Netherlands</xsl:when>
      <xsl:when test="ART11_Strategies/CountryCode = 'PL'">Poland</xsl:when>
      <xsl:when test="ART11_Strategies/CountryCode = 'PT'">Portugal</xsl:when>
      <xsl:when test="ART11_Strategies/CountryCode = 'RO'">Romania</xsl:when>
      <xsl:when test="ART11_Strategies/CountryCode = 'SE'">Sweden</xsl:when>
      <xsl:when test="ART11_Strategies/CountryCode = 'SI'">Slovenia</xsl:when>
      <xsl:when test="ART11_Strategies/CountryCode = 'UK'">United Kingdom</xsl:when>
    </xsl:choose>
  </xsl:template>
  <xsl:template name="GEScomponentCode">
    <xsl:choose>
      <xsl:when test="Descriptor = 'D1'">D1 Biodiversity</xsl:when>
      <xsl:when test="Descriptor = 'D1.1'">D1 Biodiversity - birds</xsl:when>
      <xsl:when test="Descriptor = 'D1.5'">D1 Biodiversity - cephalopods</xsl:when>
      <xsl:when test="Descriptor = 'D1.4'">D1 Biodiversity - fish</xsl:when>
      <xsl:when test="Descriptor = 'D1.2'">D1 Biodiversity - mammals</xsl:when>
      <xsl:when test="Descriptor = 'D1.3'">D1 Biodiversity - reptiles</xsl:when>
      <xsl:when test="Descriptor = 'D1.6'">D1 Biodiversity – pelagic habitats</xsl:when>
      <xsl:when test="Descriptor = 'D2'">D2 Non-indigenous species</xsl:when>
      <xsl:when test="Descriptor = 'D3'">D3 Commercial fish and shellfish</xsl:when>
      <xsl:when test="Descriptor = 'D4/D1'">D4 Food webs/D1 Biodiversity - ecosystems</xsl:when>
      <xsl:when test="Descriptor = 'D5'">D5 Eutrophication</xsl:when>
      <xsl:when test="Descriptor = 'D6/D1'">D6 Sea-floor integrity/D1 Biodiversity - benthic habitats</xsl:when>
      <xsl:when test="Descriptor = 'D7'">D7 Hydrographical changes</xsl:when>
      <xsl:when test="Descriptor = 'D8'">D8 Contaminants</xsl:when>
      <xsl:when test="Descriptor = 'D9'">D9 Contaminants in seafood</xsl:when>
      <xsl:when test="Descriptor = 'D10'">D10 Litter</xsl:when>
      <xsl:when test="Descriptor = 'D11'">D11 Energy, including underwater noise</xsl:when>
      <xsl:when test="Descriptor = 'D1C1'">D1C1 Mortality rate from incidental by-catch</xsl:when>
      <xsl:when test="Descriptor = 'D1C2'">D1C2 Population abundance</xsl:when>
      <xsl:when test="Descriptor = 'D1C3'">D1C3 Population demographic characteristics</xsl:when>
      <xsl:when test="Descriptor = 'D1C4'">D1C4 Population distributional range and pattern</xsl:when>
      <xsl:when test="Descriptor = 'D1C5'">D1C5 Habitat for the species</xsl:when>
      <xsl:when test="Descriptor = 'D1C6'">D1C6 Pelagic habitat condition</xsl:when>
      <xsl:when test="Descriptor = 'D2C1'">D2C1 Newly-introduced NIS</xsl:when>
      <xsl:when test="Descriptor = 'D2C2'">D2C2 Established NIS</xsl:when>
      <xsl:when test="Descriptor = 'D2C3'">D2C3 Adverse effects of NIS</xsl:when>
      <xsl:when test="Descriptor = 'D3C1'">D3C1 Fishing mortality rate (F)</xsl:when>
      <xsl:when test="Descriptor = 'D3C2'">D3C2 Spawning stock biomass (SSB)</xsl:when>
      <xsl:when test="Descriptor = 'D3C3'">D3C3 Population age/size distribution</xsl:when>
      <xsl:when test="Descriptor = 'D4C1'">D4C1 Trophic guild species diversity</xsl:when>
      <xsl:when test="Descriptor = 'D4C2'">D4C2 Abundance across trophic guilds</xsl:when>
      <xsl:when test="Descriptor = 'D4C3'">D4C3 Trophic guild size distribution</xsl:when>
      <xsl:when test="Descriptor = 'D4C4'">D4C4 Trophic guild productivity</xsl:when>
      <xsl:when test="Descriptor = 'D5C1'">D5C1 Nutrient concentrations</xsl:when>
      <xsl:when test="Descriptor = 'D5C2'">D5C2 Chlorophyll-a concentration</xsl:when>
      <xsl:when test="Descriptor = 'D5C3'">D5C3 Harmful algal blooms</xsl:when>
      <xsl:when test="Descriptor = 'D5C4'">D5C4 Photic limit</xsl:when>
      <xsl:when test="Descriptor = 'D5C5'">D5C5 Dissolved oxygen concentration</xsl:when>
      <xsl:when test="Descriptor = 'D5C6'">D5C6 Opportunistic macroalgae of benthic habitats</xsl:when>
      <xsl:when test="Descriptor = 'D5C7'">D5C7 Macrophyte communities of benthic habitats</xsl:when>
      <xsl:when test="Descriptor = 'D5C8'">D5C8 Macrofaunal communities of benthic habitats</xsl:when>
      <xsl:when test="Descriptor = 'D6C1'">D6C1 Physical loss of the seabed</xsl:when>
      <xsl:when test="Descriptor = 'D6C2'">D6C2 Physical disturbance to the seabed</xsl:when>
      <xsl:when test="Descriptor = 'D6C3'">D6C3 Adverse effects from physical disturbance</xsl:when>
      <xsl:when test="Descriptor = 'D6C4'">D6C4 Benthic habitat extent</xsl:when>
      <xsl:when test="Descriptor = 'D6C5'">D6C5 Benthic habitat condition</xsl:when>
      <xsl:when test="Descriptor = 'D7C1'">D7C1 Alteration of hydrographical conditions</xsl:when>
      <xsl:when test="Descriptor = 'D7C2'">D7C2 Adverse effects from alteration of hydrographical conditions</xsl:when>
      <xsl:when test="Descriptor = 'D8C1'">D8C1 Contaminant in environment</xsl:when>
      <xsl:when test="Descriptor = 'D8C2'">D8C2 Adverse effects of contaminants</xsl:when>
      <xsl:when test="Descriptor = 'D8C3'">D8C3 Acute pollution events</xsl:when>
      <xsl:when test="Descriptor = 'D8C4'">D8C4 Adverse effects of acute pollution events</xsl:when>
      <xsl:when test="Descriptor = 'D9C1'">D9C1 Contaminants in seafood</xsl:when>
      <xsl:when test="Descriptor = 'D10C1'">D10C1 Litter (excluding micro-litter)</xsl:when>
      <xsl:when test="Descriptor = 'D10C2'">D10C2 Micro-litter</xsl:when>
      <xsl:when test="Descriptor = 'D10C3'">D10C3 Litter ingested</xsl:when>
      <xsl:when test="Descriptor = 'D10C4'">D10C4 Adverse effects of litter</xsl:when>
      <xsl:when test="Descriptor = 'D11C1'">D11C1 Anthropogenic impulsive sound</xsl:when>
      <xsl:when test="Descriptor = 'D11C2'">D11C2 Anthropogenic continuous low-frequency sound</xsl:when>
      <xsl:when test="Descriptor = 'NotRelevant'">Non related GES component</xsl:when>
    </xsl:choose>
  </xsl:template>
</xsl:stylesheet>