View stylesheet

XML schema http://dd.eionet.europa.eu/schemas/habitatsdirective/art17_generalreport.xsd
Output type HTML
Description HTML Factsheet
XSL file hgeneral-2018.xsl (Last modified: 20 Mar 2019 11:41 )
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns="http://www.w3.org/1999/xhtml" xmlns:lookup="http://biodiversity.eionet.europa.eu/art17dataflow"
    version="1.0" exclude-result-prefixes="xml lookup">

    <xsl:import href="art12_art17-common-2018.xsl"/>
    <xsl:variable name="report_type" select="'greport'"/>

    <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:param name="envelopeurl"/>
    <xsl:param name="envelopepath"/>
    <xsl:param name="filename"/>

    <xsl:preserve-space elements="published reasons-specify"/>
    <xsl:template match="report">
        <html>
            <xsl:attribute name="xml:lang"><xsl:value-of select="@xml:lang"/></xsl:attribute>

            <head>
                <meta charset="UTF-8"/>
                <title>Factsheet</title>
                <xsl:call-template name="getCss"/>
            </head>
            <body>
                <h1>General reporting format for the 2013 - 2018 report</h1>
                <table>
                    <tbody>
                        <xsl:apply-templates select = "country"/>
                    </tbody>
                </table>
                <h2>1. Main achievements under the Habitats Directive</h2>
                <table>
                    <tbody>
                        <xsl:apply-templates select = "achievements"/>
                        <xsl:apply-templates select = "achievements_trans"/>
                    </tbody>
                </table>
                <h2>2. General information sources on the implementation of the Habitats Directive
                       – links to information sources of the Member State</h2>
                <table>
                    <tbody>
                        <xsl:apply-templates select = "general_info"/>
                        <xsl:apply-templates select = "info_on_network"/>
                        <xsl:apply-templates select = "monitoring_schemes"/>
                        <xsl:apply-templates select = "protection_of_species"/>
                        <xsl:apply-templates select = "measures_impact"/>
                        <xsl:apply-templates select = "transpose_directive"/>
                    </tbody>
                </table>

                <h2>3. Natura 2000 (pSCIs, SCIs &amp; SACs) - site designation (Art. 4)</h2>
                <xsl:call-template name = "n2000"/>
                <h2>4. Set of conservation measures and management plans for Natura 2000 sites (SACs) (Art. 6(1))</h2>
                <xsl:call-template name = "conservation_measures"/>
                <h2>5. Measures taken in relation to approval of plans &amp; projects (Art. 6.4)</h2>
                <xsl:apply-templates select = "compensation_measures"/>
                <h2>6. Measures taken to ensure coherence of the Natura 2000 Network (Art. 10)</h2>
                <xsl:value-of select = "coherence_measures"/>
                <h2>7. Reintroduction of Annex IV species (Art 22.a)</h2>
                <xsl:apply-templates select = "reintroduction_of_species"/>
            </body>
        </html>
    </xsl:template>

    <xsl:template name="n2000">
        <table>
            <tr>
                <th>Natura 2000 <br/>(pSCIs, SCIs &amp; SAC)</th>
                <th colspan="2">pSCIs, SCIs, SACs</th>
                <th colspan="2">SACs only</th>
            </tr>
            <tr>
                <th/>
                <th>Number of pSCIs, SCIs, SACs</th>
                <th>Surface area of pSCIs, SCIs, SACs</th>
                <th>Number of SACs</th>
                <th>Surface area of SACs</th>
            </tr>
            <tr>
                <th>3.1 All Sites</th>
                <td><xsl:value-of select="sites_total_number"/></td>
                <td><xsl:value-of select="sites_total_area"/></td>
                <td><xsl:value-of select="sac_total_number"/></td>
                <td><xsl:value-of select="sac_total_area"/></td>
            </tr>
            <tr>
                <th>3.2 Terrestrial area of sites <br/> (excluding marine areas)</th>
                <th/>
                <td><xsl:value-of select="sites_terrestrial_area"/></td>
                <th/>
                <td><xsl:value-of select="sac_terrestrial_area"/></td>
            </tr>
            <tr>
                <th>3.3 Marine sites</th>
                <td><xsl:value-of select="sites_marine_number"/></td>
                <td><xsl:value-of select="sites_marine_area"/></td>
                <td><xsl:value-of select="sac_marine_number"/></td>
                <td><xsl:value-of select="sac_marine_area"/></td>
            </tr>
            <tr>
                <th>3.4 Date of database used</th>
                <td colspan="4"><xsl:value-of select="database_date"/></td>
            </tr>
        </table>
    </xsl:template>

    <xsl:template name="conservation_measures">
        <table>
            <tr>
                <th />
                <th>Number of SACs</th>
                <th>Proportion (% area) of the SAC network</th>
            </tr>
            <tr>
                <th>4.1 Necessary conservation measures have been established according to Art.6(1) and are applied</th>
                <td><xsl:value-of select="measures_applied_number"/></td>
                <td><xsl:value-of select="measures_applied_perc"/></td>
            </tr>
            <tr>
                <th>4.2 Conservation measures have been set out in a comprehensive management plan or a similar instrument</th>
                <td><xsl:value-of select="measures_setout_number"/></td>
                <td><xsl:value-of select="measures_setout_perc"/></td>
            </tr>
        </table>
    </xsl:template>

    <xsl:template match="achievements|achievements_trans|additional_info">
        <tr>
            <th>
                <xsl:call-template name="tag-label">
                    <xsl:with-param name="tagname" select="name(.)"/>
                </xsl:call-template>
            </th>
            <td class="preserve" colspan="2">
                <xsl:if test="string-length(.)=0">
                </xsl:if>
                <xsl:if test="string-length(.)!=0">
                    <xsl:call-template name="break">
                        <xsl:with-param name="text" select="."/>
                    </xsl:call-template>
                </xsl:if>
            </td>
        </tr>
    </xsl:template>

    <xsl:template match="compensation_measures">
        <table>
            <tr>
                <th>5.1 Site code</th>
                <th>5.2 Site name</th>
                <th>5.3 Title of project/plan</th>
                <th>5.4 Year Commission was informed of compensatory measures</th>
                <th>5.5 Year project/plan was started</th>
                <th>5.6 Commission opinion requested?</th>
                <th>5.7 Impact of projects requiring compensatory measures on conservation status <span class="optional">(Optional)</span></th>
            </tr>
            <xsl:apply-templates/>
        </table>
    </xsl:template>

    <xsl:template match="reintroduction_of_species">
        <table>
            <tr>
                <th>7.1 Species code</th>
                <th>7.2 Species scientific name</th>
                <th>7.3 Alternative species scientific name <span class="optional">(Optional)</span></th>
                <th>7.4 Common name <span class="optional">(Optional)</span></th>
                <th>7.5 Reintroduction period</th>
                <th>7.6 Reintroduction location and number of individuals reintroduced</th>
                <th>7.7 Is the reintroduction successful?</th>
                <th>7.8 Additional information on the reintroduction <span class="optional">(Optional)</span></th>
            </tr>
            <xsl:apply-templates/>
        </table>
    </xsl:template>

    <xsl:template match="measure">
        <tr>
            <td><xsl:value-of select="sitecode"/></td>
            <td><xsl:value-of select="sitename"/></td>
            <td><xsl:value-of select="project_title"/></td>
            <td><xsl:value-of select="commission_informed_year"/></td>
            <td><xsl:value-of select="project_year"/></td>
            <td>
                   <xsl:choose>
                    <xsl:when test="commission_opinion='true'">Yes</xsl:when>
                      <xsl:when test="commission_opinion='false'">No</xsl:when>
                      <xsl:otherwise></xsl:otherwise>
                </xsl:choose>
            </td>
               <td><xsl:value-of select="project_impact"/></td>
         </tr>
    </xsl:template>

    <xsl:template match="species">
      <tr>
         <td><xsl:value-of select="speciescode"/></td>
         <td><xsl:value-of select="speciesname"/></td>
         <td><xsl:value-of select="reintro_alternative_speciesname"/></td>
         <td><xsl:value-of select="reintro_common_speciesname"/></td>
         <td><xsl:value-of select="reintro_period"/></td>
         <td><xsl:value-of select="location_number"/></td>
         <td><xsl:value-of select="successful"/></td>
         <td><xsl:value-of select="additional_info"/></td>
      </tr>
    </xsl:template>

</xsl:stylesheet>