View stylesheet

XML schema http://dd.eionet.europa.eu/schemas/habitatsdirective/art12_generalreport.xsd
Output type HTML
Description HTML Factsheet
XSL file bgeneral-2018.xsl (Last modified: 20 Mar 2019 11:27 )
<?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/art12dataflow"
    version="1.0" exclude-result-prefixes="xml lookup">

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

    <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:template match="birds_general_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 report format (Article 12), for the 2013 - 2018 report</h1>
                <table>
                    <tbody>
                        <xsl:apply-templates select="country"/>
                    </tbody>
                </table>
                <h2>1. Main achievements under the Birds 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 Birds 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="transpose_directive"/>
                    </tbody>
                </table>
                <h2>3. Natura 2000 (SPAs) - site classification (Art. 4)</h2>
                <table>
                    <tbody>
                        <tr>
                            <th/>
                            <th>Number of SPAs</th>
                            <th>Surface area of SPAs (km<sup>2</sup>)</th>
                        </tr>
                        <tr>
                            <th>3.1 All SPAs</th>
                            <td>
                                <xsl:value-of select="spa_total_number"/>
                            </td>
                            <td>
                                <xsl:value-of select="spa_total_area"/>
                            </td>
                        </tr>
                        <tr>
                            <th>3.2 Terrestrial area of sites <br/> (excluding marine area)</th>
                            <th/>
                            <td>
                                <xsl:value-of select="spa_terrestrial_area"/>
                            </td>
                        </tr>
                        <tr>
                            <th>3.3 Marine sites</th>
                            <td>
                                <xsl:value-of select="spa_marine_number"/>
                            </td>
                            <td>
                                <xsl:value-of select="spa_marine_area"/>
                            </td>
                        </tr>
                        <tr>
                            <th>3.4 Date of database used</th>
                            <td colspan="2">
                                <xsl:value-of select="database_date"/>
                            </td>
                        </tr>
                    </tbody>
                </table>
                <h2>4. Set of conservation measures and management plans for Natura 2000 sites (SPAs)</h2>
                <table>
                    <tbody>
                        <tr>
                            <th/>
                            <th>Number of SPAs</th>
                            <th> Proportion (%) of the SPA network area</th>
                        </tr>
                        <tr>
                            <th>4.1 Necessary conservation measures have been established 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>
                    </tbody>
                </table>
                <h2>5. Measures taken in relation to approval of plans and projects (Art. 6.4 and Art. 7 of the Habitats Directive)</h2>
                <xsl:apply-templates select="compensation_measures"/>
                <h2>6. Research and work required as a basis for the protection, management and sustainable use of bird populations (Art. 10)</h2>
                <table>
                    <tbody>
                        <tr><th colspan="2"><strong>6.1 National bird atlas</strong></th></tr>
                        <tr>
                            <th>6.1.1 Title</th>
                            <td>
                                <xsl:value-of select="national_bird_atlas_title"/>
                            </td>
                        </tr>
                        <tr>
                            <th>6.1.2 Year of publication</th>
                            <td>
                                <xsl:value-of select="national_bird_atlas_year"/>
                            </td>
                        </tr>
                        <tr>
                            <th>6.1.3 Web-link and/or bibliographic reference</th>
                            <td>
                                <xsl:value-of select="national_bird_atlas_reference"/>
                            </td>
                        </tr>
                        <tr><th colspan="2"><strong>6.2 National bird monitoring overview</strong></th></tr>
                        <tr><td colspan="2"><xsl:apply-templates select="monitoring_publications"/></td></tr>
                        <tr><th colspan="2"><b>6.3 National bird red list</b></th></tr>
                        <tr>
                            <th>6.3.1 Title</th>
                            <td>
                                <xsl:value-of select="national_bird_redlist_title"/>
                            </td>
                        </tr>
                        <tr>
                            <th>6.3.2 Year of publication</th>
                            <td>
                                <xsl:value-of select="national_bird_redlist_year"/>
                            </td>
                        </tr>
                        <tr>
                            <th>6.3.3 Web-link and/or bibliographic reference</th>
                            <td>
                                <xsl:value-of select="national_bird_redlist_reference"/>
                            </td>
                        </tr>
                        <tr><th colspan="2"><b>6.4 Other publications of EU-wide interest (e.g. national overview of action for threatened species)</b></th></tr>
                        <tr><td colspan="2"><xsl:apply-templates select="other_publications"/></td></tr>
                    </tbody>
                </table>
                <h2>7. Non-native bird species (Art. 11)</h2>
                <xsl:apply-templates select="other_species"/>
            </body>
        </html>
    </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 of project/plan</th>
                <th>5.6 Year of project/plan was started</th>
                <th>5.7 Impact of projects requiring compensatory measures on relevant bird species <span class="optional">(Optional)</span></th>
            </tr>
            <xsl:apply-templates/>
        </table>
    </xsl:template>

    <xsl:template match="other_species">
        <table>
            <tr>
                <th>7.1 Species scientific name</th>
                <th>7.2 Subspecific unit</th>
                <th>7.3 Main contents of legal decision for introduction</th>
                <th>7.4 Consultation with the Commission</th>
                <th>7.5 Additional Information <span class="optional">(Optional)</span></th>
            </tr>
            <xsl:apply-templates/>
        </table>
    </xsl:template>

    <xsl:template match="other_publications|monitoring_publications">
        <xsl:variable name="no">
            <xsl:choose>
                <xsl:when test="name(.) = 'monitoring_publications'">2</xsl:when>
                <xsl:otherwise>4</xsl:otherwise>
            </xsl:choose>
        </xsl:variable>
        <table>
            <tr>
                <th>6.<xsl:value-of select="$no"/>.1 Title or similar plus short description</th>
                <th>6.<xsl:value-of select="$no"/>.2 Year of publication</th>
                <th>6.<xsl:value-of select="$no"/>.3 Web-link and/or bibliographic reference </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:call-template name="break">
                    <xsl:with-param name="text" select="project_title"/>
                </xsl:call-template>
            </td>
            <td>
                <xsl:value-of select="commission_informed_year"/>
            </td>
            <td>
                <xsl:value-of select="project_year"/>
            </td>
            <td>
                <xsl:call-template name="break">
                    <xsl:with-param name="text" select="impact"/>
                </xsl:call-template>
            </td>
        </tr>
    </xsl:template>

    <xsl:template match="species">
        <tr>
            <xsl:apply-templates/>
        </tr>
    </xsl:template>

    <xsl:template match="publication">
        <tr>
            <td>
                <xsl:call-template name="break">
                    <xsl:with-param name="text" select="title"/>
                </xsl:call-template>
            </td>
            <td>
                <xsl:value-of select="year"/>
            </td>
            <td>
                <xsl:call-template name="break">
                    <xsl:with-param name="text" select="reference"/>
                </xsl:call-template>
            </td>
        </tr>
    </xsl:template>

    <xsl:template match="achievements|achievements_trans|general_info|info_on_network|monitoring_schemes|protection_of_species|transpose_directive">
        <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="speciesname|subspecies_name|introduction|consultation_date|info">
        <td class="preserve">
            <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>
    </xsl:template>

</xsl:stylesheet>