View stylesheet

XML schema http://bd.eionet.europa.eu/schemas/Art12Art17_reporting_2013/art17_generalreport.xsd
Output type HTML
Description HTML factsheet
XSL file hgeneral.xsl (Last modified: 15 May 2013 15:02 )
<?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.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>
                <title>Factsheet</title>
                <xsl:call-template name="getCss"/>
            </head>
            <body>
                <h1>General reporting format for the 2007-2012 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_information"/>
                              <xsl:apply-templates select = "information_on_network"/>
                              <xsl:apply-templates select = "monitoring_schemes"/>
                              <xsl:apply-templates select = "protection_of_species"/>
                              <xsl:apply-templates select = "transpose_directive"/>
                       </tbody>
                </table>
                <h2>3. Natura 2000 – site designation</h2>
                <table>
                       <tbody>
                              <xsl:call-template name = "n2000"/>
                       </tbody>
                </table>
                <h2>4. Comprehensive management plans for the Natura 2000 sites (Art. 6(1))</h2>
                 <table>
                       <tbody>
                                   <xsl:apply-templates select = "sites_with_plans"/>
                                   <xsl:apply-templates select = "coverage"/>
                                   <xsl:apply-templates select = "plans_under_prep"/>
                       </tbody>
                </table>
                <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>Area of pSCIs, SCIs, SACs</th>
                         <th>Number of SACs</th>
                         <th>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.1.1 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.1.2 Marine area of 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.2 Date of database used</th>
                         <td colspan="4"><xsl:value-of select="database_date"/></td>
                     </tr>
               </table>
    </xsl:template>


    <xsl:template match="achievements|achievements_trans|additional_information">
        <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 colspan="6">5.1 Projects/plans with compensation measures</th></tr>
                    <tr>
                        <th>5.1.1 Site code</th>
                        <th>5.1.2 Site name</th>
                        <th>5.1.3 Year of project/plan</th>
                        <th>5.1.4 Title of project/plan</th>
                        <th>5.1.5 Commission oppinion requested?</th>
                        <th>5.1.6 Impact of projects</th>
                    </tr>
                    <xsl:apply-templates/>
                </table>

    </xsl:template>

       <xsl:template match="reintroduction_of_species">

                <table>
                    <tr>
                        <th>7.1.0 a) Species code</th>
                        <th>7.1.0 b) Species name</th>
                        <th>7.1.1 Reintroduction period</th>
                        <th>7.1.2 Reintroduction location <br/>and number of individuals reintroduced</th>
                        <th>7.1.3 Is the reintroduction successful?</th>
                        <th>7.1.4 Additional information </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_year"/></td>
            <td><xsl:value-of select="project_title"/></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_period_since"/><xsl:value-of select="reintroduction_period"/></td>
         <td><xsl:value-of select="location_number"/></td>
         <td><xsl:value-of select="successful"/></td>
         <td><xsl:value-of select="additional_information"/></td>
      </tr>
    </xsl:template>



</xsl:stylesheet>