View stylesheet

XML schemas http://converters.eionet.europa.eu/util/Art17/2012
Output type HTML
Description Article 17 validate fields
XSL file art17_validate_fields.xsl (Last modified: 03 Jun 2013 16:04 )
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
   <xsl:template name="getLabel">
      <xsl:param name="table_name"/>
      <xsl:param name="xml_tag"/>
      <xsl:choose>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'range_trend_long_magnitude_min'">
            <span class="label">2.3.8 a) Long-term trend Magnitude - Minimum</span>
            <span class="optional">(Optional)</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'range_trend_long_period'">
            <span class="label">2.3.6 Long-term trend Period</span>
            <span class="optional">(Optional)</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'range_trend_magnitude_max'">
            <span class="label">2.3.5 b) Short-term trend Magnitude - Maximum</span>
            <span class="optional">(Optional)</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'range_trend_magnitude_min'">
            <span class="label">2.3.5 a) Short-term trend Magnitude - Minimum</span>
            <span class="optional">(Optional)</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'range_trend_period'">
            <span class="label">2.3.3 Short-term trend Period</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'code'">
            <span class="label">2.1 Biogeographical region or marine regions</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'structure_and_functions_method'">
            <span class="label">2.7.4 Structure and functions - Methods used</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'threats_method'">
            <span class="label">2.6.1 Method used - threats</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'typical_species_method'">
            <span class="label">2.7.2 Typical species - method used</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_htypical_species' and $xml_tag = 'speciesname'">
            <span class="label">2.7.1 Typical species</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_measures' and $xml_tag = 'broad_evaluation_enhance'">
            <span class="label">3.2.5 b) Broad evaluation Enhance</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_measures' and $xml_tag = 'broad_evaluation_longterm'">
            <span class="label">3.2.5 c) Broad evaluation Long term</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_measures' and $xml_tag = 'broad_evaluation_maintain'">
            <span class="label">3.2.5 a) Broad evaluation Maintain</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_measures' and $xml_tag = 'broad_evaluation_noeffect'">
            <span class="label">3.2.5 d) Broad Evaluation No effect</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_measures' and $xml_tag = 'broad_evaluation_notevaluated'">
            <span class="label">3.2.5 f) Broad Evaluation Not evaluated</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_measures' and $xml_tag = 'broad_evaluation_unknown'">
            <span class="label">3.2.5 e) Broad Evaluation Unknown</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_measures' and $xml_tag = 'location_both'">
            <span class="label">3.2.4 c) Location Both Inside &amp; Outside</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_measures' and $xml_tag = 'location_inside'">
            <span class="label">3.2.4 a) Location Inside</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_measures' and $xml_tag = 'location_outside'">
            <span class="label">3.2.4 b) Location Outside</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_measures' and $xml_tag = 'code'">
            <span class="label">3.2.1 Measure</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_measures' and $xml_tag = 'ranking'">
            <span class="label">3.2.3 Ranking</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_measures' and $xml_tag = 'type_administrative'">
            <span class="label">3.2.2 b) Type Administrative</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_measures' and $xml_tag = 'type_contractual'">
            <span class="label">3.2.2 c) Type Contractual</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_measures' and $xml_tag = 'type_legal'">
            <span class="label">3.2.2 a) Type Legal</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_measures' and $xml_tag = 'type_oneoff'">
            <span class="label">3.2.2 e) Type One-off</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_measures' and $xml_tag = 'type_recurrent'">
            <span class="label">3.2.2 d) Type Recurrent</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_pressures_threats' and $xml_tag = 'pollution_qualifier'">
            <span class="label"/>
         </xsl:when>
         <xsl:when test="$table_name = 'data_pressures_threats' and $xml_tag = 'pollution_qualifier'">
            <span class="label"/>
         </xsl:when>
         <xsl:when test="$table_name = 'data_pressures_threats' and $xml_tag = 'code'">
            <span class="label">2.5 a) Pressure</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_pressures_threats' and $xml_tag = 'code'">
            <span class="label">2.6 a) Pressure</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_pressures_threats' and $xml_tag = 'ranking'">
            <span class="label">2.5 b) Ranking</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_pressures_threats' and $xml_tag = 'ranking'">
            <span class="label">2.6 b) Ranking</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_pressures_threats' and $xml_tag = ''">
            <span class="label"/>
         </xsl:when>
         <xsl:when test="$table_name = 'data_pressures_threats_pol' and $xml_tag = 'code'">
            <span class="label">2.5 c) Pollution qualifier</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_pressures_threats_pol' and $xml_tag = 'code'">
            <span class="label">2.6 c) Pollution qualifier</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species' and $xml_tag = 'additional_distribution_map'">
            <span class="label">1.1.4 Additional distribution map</span>
            <span class="optional">(Optional)</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species' and $xml_tag = 'alternative_speciesname'">
            <span class="label">0.2.3 Alternative species scientific name</span>
            <span class="optional">(Optional)</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species' and $xml_tag = 'common_speciesname'">
            <span class="label">0.2.4 Common name</span>
            <span class="optional">(Optional)</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species' and $xml_tag = 'country'">
            <span class="label">0.1 Member State</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species' and $xml_tag = 'region'">
            <span class="label">2.0 Regions</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species' and $xml_tag = 'distribution_date'">
            <span class="label">1.1.3 Year or period</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species' and $xml_tag = 'distribution_map'">
            <span class="label">1.1.1 Distribution map</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species' and $xml_tag = 'distribution_method'">
            <span class="label">1.1.2 Method used - map</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species' and $xml_tag = 'range_map'">
            <span class="label">1.1.5 Range map</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species' and $xml_tag = 'sensitive_species'">
            <span class="label">1.1.1 a) Sensitive species</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species' and $xml_tag = 'speciescode'">
            <span class="label">0.2.1 Species code</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'complementary_favourable_population'">
            <span class="label">2.4.14 a) Favourable reference population</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'complementary_favourable_population_method'">
            <span class="label">2.4.14 d) Favourable reference population - method used to set reference value</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'complementary_favourable_population_op'">
            <span class="label">2.4.14 b) Favourable reference population - operator</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'complementary_favourable_population_unknown'">
            <span class="label">2.4.14 c) Favourable reference population - unknown</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'complementary_favourable_range'">
            <span class="label">2.3.9 a) Favourable reference range  - km²</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'complementary_favourable_range_method'">
            <span class="label">2.3.9 d) Favourable reference range  - method used to set reference value</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'complementary_favourable_range_op'">
            <span class="label">2.3.9 b) Favourable reference range - operator</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'complementary_favourable_range_unknown'">
            <span class="label">2.3.9 c) Favourable reference range - unknown</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'conclusion_assessment'">
            <span class="label">2.9.5 Overall assessment of Conservation Status</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'conclusion_assessment_trend'">
            <span class="label">2.9.6 Overall trend in Conservation Status</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'conclusion_future'">
            <span class="label">2.9.4 a) Future prospects Assessment</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'conclusion_future_trends'">
            <span class="label">2.9.4 b) Future prospects Trend</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'conclusion_habitat'">
            <span class="label">2.9.3 a) Habitat for the species Assessment</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'conclusion_habitat_trend'">
            <span class="label">2.9.3 b) Habitat for the species Trend</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'conclusion_population'">
            <span class="label">2.9.2 a) Population Assessment</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'conclusion_population_trend'">
            <span class="label">2.9.2 b) Population Trend</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'conclusion_range'">
            <span class="label">2.9.1 a) Range Assessment</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'conclusion_range_trend'">
            <span class="label">2.9.1 b) Range Trend</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'measure'">
            <span class="label">3.2 Conservation measures</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'pressure'">
            <span class="label">2.6 Main Pressures</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'threat'">
            <span class="label">2.7 Main Threats</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'habitat_area_suitable'">
            <span class="label">2.5.9 Area of suitable habitat for the species</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'habitat_date'">
            <span class="label">2.5.2 Year or period</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'habitat_method'">
            <span class="label">2.5.3 Method used Habitat for the species</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'habitat_quality'">
            <span class="label">2.5.4 a) Quality of the habitat</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'habitat_quality_explanation'">
            <span class="label">2.5.4 b) Quality of the habitat - explanation</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'habitat_reasons_for_change_a'">
            <span class="label">2.5.10 a) Reason for change - genuine change</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'habitat_reasons_for_change_b'">
            <span class="label">2.5.10 b) Reason for change - improved knowledge/more accurate data</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'habitat_reasons_for_change_c'">
            <span class="label">2.5.10 c) Reason for change - use of different method</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'habitat_surface_area'">
            <span class="label">2.5.1 Area estimation</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'habitat_trend'">
            <span class="label">2.5.6 Short-term trend Trend direction</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'habitat_trend_long'">
            <span class="label">2.5.8 Long term trend Trend direction</span>
            <span class="optional">(Optional)</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'habitat_trend_long_period'">
            <span class="label">2.5.7 Long-term trend Period</span>
            <span class="optional">(Optional)</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'habitat_trend_period'">
            <span class="label">2.5.5 Short-term trend Period</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'justification'">
            <span class="label">2.8.1 Justification of % thresholds for trends</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'natura2000_population_max'">
            <span class="label">3.1.1 c) Population size (within network) - Maximum</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'natura2000_population_method'">
            <span class="label">3.1.2 Method used</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'natura2000_population_min'">
            <span class="label">3.1.1 b) Population size (within network) - Minimum</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'natura2000_population_trend'">
            <span class="label">3.1.3 Trend of population size within the network</span>
            <span class="optional">(Optional)</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'natura2000_population_unit'">
            <span class="label">3.1.1 a) Population size (within network) - Unit</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'other_relevant_information'">
            <span class="label">2.8.2 Other relevant information</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'population_additional_locality'">
            <span class="label">2.4.3 a) Additional information - Definition of "locality"</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'population_additional_method'">
            <span class="label">2.4.3 b) Additional information - Method to convert data</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'population_additional_problems'">
            <span class="label">2.4.3 c) Additional information - Problems encountered to provide population size estimation</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'population_alt_maximum_size'">
            <span class="label">2.4.2 c) Population size (other than individuals) - Maximum</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'population_alt_minimum_size'">
            <span class="label">2.4.2 b) Population size (other than individuals) - Minimum</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'population_alt_size_unit'">
            <span class="label">2.4.2 a) Population size (other than individuals) - Unit</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'population_date'">
            <span class="label">2.4.4 Year or period</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'population_maximum_size'">
            <span class="label">2.4.1 c) Population size (individuals or agreed exception) - Maximum</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'population_method'">
            <span class="label">2.4.5 Method used Population size</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'population_minimum_size'">
            <span class="label">2.4.1 b) Population size (individuals or agreed exception) - Minimum</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'population_reasons_for_change_a'">
            <span class="label">2.4.15 a) Reason for change - genuine change</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'population_reasons_for_change_b'">
            <span class="label">2.4.15 b) Reason for change - improved knowledge/more accurate data</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'population_reasons_for_change_c'">
            <span class="label">2.4.15 c) Reason for change - use of different method</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'population_size_unit'">
            <span class="label">2.4.1 a) Population size (individuals or agreed exception) - Unit</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'population_trend'">
            <span class="label">2.4.7 Short-term trend Trend direction</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'population_trend_long'">
            <span class="label">2.4.11 Long-term trend Trend direction</span>
            <span class="optional">(Optional)</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'population_trend_long_magnitude_ci'">
            <span class="label">2.4.12 c) Long-term trend Magnitude - Confidence Interval</span>
            <span class="optional">(Optional)</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'population_trend_long_magnitude_max'">
            <span class="label">2.4.12 b) Long-term trend Magnitude - Maximum</span>
            <span class="optional">(Optional)</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'population_trend_long_magnitude_min'">
            <span class="label">2.4.12 a) Long-term trend Magnitude - Minimum</span>
            <span class="optional">(Optional)</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'population_trend_long_method'">
            <span class="label">2.4.13 Long-term trend Method used</span>
            <span class="optional">(Optional)</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'threats_method'">
            <span class="label">2.7.1 Method used – Threats</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'transboundary_assessment'">
            <span class="label">2.8.3 Trans-boundary assessment</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'population_trend_long_period'">
            <span class="label">2.4.10 Long-term trend Period</span>
            <span class="optional">(Optional)</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'population_trend_magnitude_ci'">
            <span class="label">2.4.8 c) Short-term trend Magnitude - Confidence interval</span>
            <span class="optional">(Optional)</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'population_trend_magnitude_max'">
            <span class="label">2.4.8 b) Short-term trend Magnitude - Maximum</span>
            <span class="optional">(Optional)</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'population_trend_magnitude_min'">
            <span class="label">2.4.8 a) Short-term trend Magnitude - Minimum</span>
            <span class="optional">(Optional)</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'population_trend_method'">
            <span class="label">2.4.9 Short-term trend  Method used</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'population_trend_period'">
            <span class="label">2.4.6 Short-term trend Period</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'pressures_method'">
            <span class="label">2.6.1 Method used – Pressures</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'published'">
            <span class="label">2.2 Published sources</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'range_method'">
            <span class="label">2.3.2 Method used Surface area of Range</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'range_reasons_for_change_a'">
            <span class="label">2.3.10 a) Reason for change - genuine change</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'range_reasons_for_change_b'">
            <span class="label">2.3.10 b) Reason for change - improved knowledge/more accurate data</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'range_reasons_for_change_c'">
            <span class="label">2.3.10 c) Reason for change - use of different method</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'range_surface_area'">
            <span class="label">2.3.1 Surface area - Range (km²)</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'range_trend'">
            <span class="label">2.3.4 Short term trend Trend direction</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'range_trend_long'">
            <span class="label">2.3.7 Long-term trend Trend direction</span>
            <span class="optional">(Optional)</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'range_trend_long_magnitude_max'">
            <span class="label">2.3.8 b) Long-term trend Magnitude Maximum</span>
            <span class="optional">(Optional)</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'range_trend_long_magnitude_min'">
            <span class="label">2.3.8 a) Long-term trend Magnitude  Minimum</span>
            <span class="optional">(Optional)</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'range_trend_long_period'">
            <span class="label">2.3.6 Long-term trend period</span>
            <span class="optional">(Optional)</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'range_trend_magnitude_max'">
            <span class="label">2.3.5 b) Short-term trend Magnitude Maximum</span>
            <span class="optional">(Optional)</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'range_trend_magnitude_min'">
            <span class="label">2.3.5 a) Short-term trend Magnitude Minimum</span>
            <span class="optional">(Optional)</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'range_trend_period'">
            <span class="label">2.3.3 Short-term trend Period</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'code'">
            <span class="label">2.1 Biogeographical region &amp; marine regions</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_gmeasures' and $xml_tag = 'commission_opinion'">
            <span class="label">5.1.5 Commission Opinion?</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_gmeasures' and $xml_tag = 'project_impact'">
            <span class="label">5.1.6 Impact of projects in need of compensation measures on conservation status</span>
            <span class="optional">(Optional)</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_gmeasures' and $xml_tag = 'project_title'">
            <span class="label">5.1.4 Title of project /plan</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_gmeasures' and $xml_tag = 'project_year'">
            <span class="label">5.1.3 Year of project/plan</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_gmeasures' and $xml_tag = 'sitecode'">
            <span class="label">5.1.1 Site code</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_gmeasures' and $xml_tag = 'sitename'">
            <span class="label">5.1.2 Site name</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_greintroduction_of_species' and $xml_tag = 'additional_information'">
            <span class="label">7.1.4 Additional information on the reintroduction</span>
            <span class="optional">(Optional)</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_greintroduction_of_species' and $xml_tag = 'location_number'">
            <span class="label">7.1.2 Reintroduction location and number of individuals reintroduced</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_greintroduction_of_species' and $xml_tag = 'reintroduction_period'">
            <span class="label">7.1.1 Reintroduction period</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_greintroduction_of_species' and $xml_tag = 'speciescode'">
            <span class="label">7.1.0 a) Species code</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_greintroduction_of_species' and $xml_tag = 'speciesname'">
            <span class="label">7.1.0 b) Species name</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_greintroduction_of_species' and $xml_tag = 'successful'">
            <span class="label">7.1.3 Is the reintroduction successful?</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_greport' and $xml_tag = 'achievements'">
            <span class="label">1.1. Text in national language</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_greport' and $xml_tag = 'achievements_trans'">
            <span class="label">1.2. Translation into English</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_greport' and $xml_tag = 'coherence_measures'">
            <span class="label">6. Coherence Measures</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_greport' and $xml_tag = 'country'">
            <span class="label">0.1 Member State</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_greport' and $xml_tag = 'coverage'">
            <span class="label">4.2. % of the network area covered by management plans</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_greport' and $xml_tag = 'measure'">
            <span class="label">5. Compensation Measures</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_greport' and $xml_tag = 'species'">
            <span class="label">7. Reintroduction of Species</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_greport' and $xml_tag = 'database_date'">
            <span class="label">3.2 Date of database used</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_greport' and $xml_tag = 'general_information'">
            <span class="label">2.1 General information on the Habitats Directive</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_greport' and $xml_tag = 'information_on_network'">
            <span class="label">2.2 Information on the Natura 2000 network in the Member State</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_greport' and $xml_tag = 'monitoring_schemes'">
            <span class="label">2.3 Monitoring schemes (Art 11)</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_greport' and $xml_tag = 'plans_under_prep'">
            <span class="label">4.3. Number of sites for which management plans are under preparation</span>
            <span class="optional">(Optional)</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_greport' and $xml_tag = 'protection_of_species'">
            <span class="label">2.4 Protection of species (Art 12-16)</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_greport' and $xml_tag = 'sac_marine_area'">
            <span class="label">3.1.2d Marine area of SACs</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_greport' and $xml_tag = 'sac_marine_number'">
            <span class="label">3.1.2c Number of SACs SACs with marine area</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_greport' and $xml_tag = 'sac_terrestrial_area'">
            <span class="label">3.1.1d Terrestrial area of SACs</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_greport' and $xml_tag = 'sac_total_area'">
            <span class="label">3.1d Area of SACs</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_greport' and $xml_tag = 'sac_total_number'">
            <span class="label">3.1c Number of SACs</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_greport' and $xml_tag = 'sites_marine_area'">
            <span class="label">3.1.2b Marine area of pSCIs, SCIs, SACs</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_greport' and $xml_tag = 'sites_marine_number'">
            <span class="label">3.1.2a Number of pSCIs, SCIs, SACs with marine area</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_greport' and $xml_tag = 'sites_terrestrial_area'">
            <span class="label">3.1.1a Terrestrial area of pSCIs, SCIs, SACs</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_greport' and $xml_tag = 'sites_total_area'">
            <span class="label">3.1b Area of pSCIs, SCIs, SACs</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_greport' and $xml_tag = 'sites_total_number'">
            <span class="label">3.1a Number of pSCIs, SCIs, SACs</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_greport' and $xml_tag = 'sites_with_plans'">
            <span class="label">4.1 Number of sites for which management plans have been adopted</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_greport' and $xml_tag = 'transpose_directive'">
            <span class="label">2.5 Transposing of the Directive (legal texts)</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitats' and $xml_tag = 'additional_distribution_map'">
            <span class="label">1.1.4. Additional distribution map</span>
            <span class="optional">(Optional)</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitats' and $xml_tag = 'country'">
            <span class="label">0.1 Member State</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitats' and $xml_tag = 'region'">
            <span class="label">2. Biogeographical level</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitats' and $xml_tag = 'distribution_date'">
            <span class="label">1.1.3 Year or period</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitats' and $xml_tag = 'distribution_map'">
            <span class="label">1.1.1. Distribution map</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitats' and $xml_tag = 'distribution_method'">
            <span class="label">1.1.2 Method used - map</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitats' and $xml_tag = 'habitatcode'">
            <span class="label">0.2 Habitat code</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitats' and $xml_tag = 'range_map'">
            <span class="label">1.1.5 Range map</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'area_reasons_for_change_a'">
            <span class="label">2.4.13 a) Reason for change - genuine change</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'area_reasons_for_change_b'">
            <span class="label">2.4.13 b) Reason for change - improved knowledge/more accurate data</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'area_reasons_for_change_c'">
            <span class="label">2.4.13 c) Reason for change - use of different method</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'complementary_favourable_area'">
            <span class="label">2.4.12 a) Favourable reference area - km²</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'complementary_favourable_area_method'">
            <span class="label">2.4.12 d) Favourable reference area - method used to set reference value</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'complementary_favourable_area_op'">
            <span class="label">2.4.12 b) Favourable reference area - operators</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'complementary_favourable_area_unknown'">
            <span class="label">2.4.12 c) Favourable reference area - unknown</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'complementary_favourable_range'">
            <span class="label">2.3.9 a) Favourable reference range - km²</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'complementary_favourable_range_method'">
            <span class="label">2.3.9 d) Favourable reference range - method used to set reference value</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'complementary_favourable_range_op'">
            <span class="label">2.3.9 b) Favourable reference range - operator</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'complementary_favourable_range_unknown'">
            <span class="label">2.3.9 c) Favourable reference range - unknown</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'conclusion_area'">
            <span class="label">2.8.2 a) Area Assessment</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'conclusion_area_trend'">
            <span class="label">2.8.2 b) Area Trend</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'conclusion_assessment'">
            <span class="label">2.8.5 Overall assessment of Conservation Status</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'conclusion_assessment_trend'">
            <span class="label">2.8.6 Overall trend in Conservation Status</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'conclusion_future'">
            <span class="label">2.8.4 a) Future prospects Assessment</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'conclusion_future_trend'">
            <span class="label">2.8.4 b) Future prospects Trend</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'conclusion_range'">
            <span class="label">2.8.1 a) Range Assessment</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'conclusion_range_trend'">
            <span class="label">2.8.1 b) Range Trend</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'conclusion_structure'">
            <span class="label">2.8.3 a) Specific structures and functions Assessment</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'conclusion_structure_trend'">
            <span class="label">2.8.3 b) Specific structures and functions Trend</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'coverage_date'">
            <span class="label">2.4.2 Year or period</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'coverage_method'">
            <span class="label">2.4.3 Method used Area covered by habitat</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'coverage_surface_area'">
            <span class="label">2.4.1 Surface area</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'coverage_trend'">
            <span class="label">2.4.5 Short-term trend Trend direction</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'coverage_trend_long'">
            <span class="label">2.4.9 Long-term trend Trend direction</span>
            <span class="optional">(Optional)</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'coverage_trend_long_magnitude_ci'">
            <span class="label">2.4.10 c) Long-term trend  Magnitude - Confidence interval</span>
            <span class="optional">(Optional)</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'coverage_trend_long_magnitude_max'">
            <span class="label">2.4.10 b) Long-term trend  Magnitude - Maximum</span>
            <span class="optional">(Optional)</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'coverage_trend_long_magnitude_min'">
            <span class="label">2.4.10 a) Long-term trend  Magnitude - Minimum</span>
            <span class="optional">(Optional)</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'coverage_trend_long_method'">
            <span class="label">2.4.11 Long-term trend Method used</span>
            <span class="optional">(Optional)</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'coverage_trend_long_period'">
            <span class="label">2.4.8 Long-term trend Period</span>
            <span class="optional">(Optional)</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'coverage_trend_magnitude_ci'">
            <span class="label">2.4.6 c) Short-term trend Magnitude - Confidence interval</span>
            <span class="optional">(Optional)</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'coverage_trend_magnitude_max'">
            <span class="label">2.4.6 b) Short-term trend Magnitude - Maximum</span>
            <span class="optional">(Optional)</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'coverage_trend_magnitude_min'">
            <span class="label">2.4.6 a) Short-term trend Magnitude - Minimum</span>
            <span class="optional">(Optional)</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'coverage_trend_method'">
            <span class="label">2.4.7 Short-term trend Method used</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'coverage_trend_period'">
            <span class="label">2.4.4 Short-term trend Period</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'species'">
            <span class="label">2.7 Complementary information</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'measure'">
            <span class="label">3.2 Conservation measures</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'pressure'">
            <span class="label">2.5 Main pressures</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'threat'">
            <span class="label">2.6  Main threats</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'justification'">
            <span class="label">2.7.3 Justification of % thresholds for trends</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'natura2000_area_max'">
            <span class="label">3.1.1 b) Surface area (within network) Maximum</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'natura2000_area_method'">
            <span class="label">3.1.2 Method used</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'natura2000_area_min'">
            <span class="label">3.1.1 a) Surface area (within network) Minimum</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'natura2000_area_trend'">
            <span class="label">3.1.3 Trend of surface area within the network</span>
            <span class="optional">(Optional)</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'other_relevant_information'">
            <span class="label">2.7.5 Other relevant information</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'pressures_method'">
            <span class="label">2.5.1 Method used - pressures</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'published'">
            <span class="label">2.2 Published sources</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'range_method'">
            <span class="label">2.3.2 Method used Range</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'range_reasons_for_change_a'">
            <span class="label">2.3.10 a) Reason for change - genuine change</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'range_reasons_for_change_b'">
            <span class="label">2.3.10 b) Reason for change - improved knowledge/more accurate data</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'range_reasons_for_change_c'">
            <span class="label">2.3.10 c) Reason for change - use of different method</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'range_surface_area'">
            <span class="label">2.3.1 Surface area Range</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'range_trend'">
            <span class="label">2.3.4 Short-term trend Trend direction</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'range_trend_long'">
            <span class="label">2.3.7 Long-term trend Trend direction</span>
            <span class="optional">(Optional)</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'range_trend_long_magnitude_max'">
            <span class="label">2.3.8 b) Long-term trend Magnitude - Maximum</span>
            <span class="optional">(Optional)</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_greintroduction_of_species' and $xml_tag = 'reintro_period_since'">
            <span class="label">7.1.1 Reintroduction period since</span>
         </xsl:when>
         <xsl:when test="$table_name = 'data_species' and $xml_tag = 'speciesname'">
            <span class="label">0.2.2 Species scientific name</span>
         </xsl:when>
      </xsl:choose>
   </xsl:template>
   <xsl:template name="getLookupName">
      <xsl:param name="table_name"/>
      <xsl:param name="xml_tag"/>
      <xsl:choose>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'code'">lu_biogeoreg</xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'structure_and_functions_method'">lu_methods_used</xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'threats_method'">lu_methods_threats</xsl:when>
         <xsl:when test="$table_name = 'data_measures' and $xml_tag = 'code'">lu_measures</xsl:when>
         <xsl:when test="$table_name = 'data_measures' and $xml_tag = 'ranking'">lu_ranking</xsl:when>
         <xsl:when test="$table_name = 'data_pressures_threats' and $xml_tag = 'code'">lu_threats</xsl:when>
         <xsl:when test="$table_name = 'data_pressures_threats' and $xml_tag = 'code'">lu_threats</xsl:when>
         <xsl:when test="$table_name = 'data_pressures_threats' and $xml_tag = 'ranking'">lu_ranking</xsl:when>
         <xsl:when test="$table_name = 'data_pressures_threats' and $xml_tag = 'ranking'">lu_ranking</xsl:when>
         <xsl:when test="$table_name = 'data_pressures_threats_pol' and $xml_tag = 'code'">lu_pollution</xsl:when>
         <xsl:when test="$table_name = 'data_pressures_threats_pol' and $xml_tag = 'code'">lu_pollution</xsl:when>
         <xsl:when test="$table_name = 'data_species' and $xml_tag = 'country'">lu_country_code</xsl:when>
         <xsl:when test="$table_name = 'data_species' and $xml_tag = 'distribution_method'">lu_methods_used</xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'complementary_favourable_population_op'">lu_favourable_range_operator</xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'complementary_favourable_range_op'">lu_favourable_range_operator</xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'conclusion_assessment'">lu_assessments</xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'conclusion_assessment_trend'">lu_trends_conclusion</xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'conclusion_future'">lu_assessments</xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'conclusion_future_trends'">lu_trends_conclusion</xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'conclusion_habitat'">lu_assessments</xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'conclusion_habitat_trend'">lu_trends_conclusion</xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'conclusion_population'">lu_assessments</xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'conclusion_population_trend'">lu_trends_conclusion</xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'conclusion_range'">lu_assessments</xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'conclusion_range_trend'">lu_trends_conclusion</xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'habitat_method'">lu_methods_used</xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'habitat_quality'">lu_quality</xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'habitat_trend'">lu_trends</xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'habitat_trend_long'">lu_trends</xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'natura2000_population_method'">lu_methods_used</xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'natura2000_population_trend'">lu_trends</xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'natura2000_population_unit'">lu_population_number</xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'population_alt_size_unit'">lu_population_number</xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'population_method'">lu_methods_used</xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'population_size_unit'">lu_population_number</xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'population_trend'">lu_trends</xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'population_trend_long'">lu_trends</xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'population_trend_long_method'">lu_methods_used</xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'threats_method'">lu_methods_threats</xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'population_trend_method'">lu_methods_used</xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'pressures_method'">lu_methods_pressures</xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'range_method'">lu_methods_used</xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'range_trend'">lu_trends</xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'range_trend_long'">lu_trends</xsl:when>
         <xsl:when test="$table_name = 'data_species_regions' and $xml_tag = 'code'">lu_biogeoreg</xsl:when>
         <xsl:when test="$table_name = 'data_greport' and $xml_tag = 'country'">lu_country_code</xsl:when>
         <xsl:when test="$table_name = 'data_habitats' and $xml_tag = 'country'">lu_country_code</xsl:when>
         <xsl:when test="$table_name = 'data_habitats' and $xml_tag = 'distribution_method'">lu_methods_used</xsl:when>
         <xsl:when test="$table_name = 'data_habitats' and $xml_tag = 'habitatcode'">lu_habitattype_codes</xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'complementary_favourable_area_op'">lu_favourable_range_operator</xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'complementary_favourable_range_op'">lu_favourable_range_operator</xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'conclusion_area'">lu_assessments</xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'conclusion_area_trend'">lu_trends_conclusion</xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'conclusion_assessment'">lu_assessments</xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'conclusion_assessment_trend'">lu_trends_conclusion</xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'conclusion_future'">lu_assessments</xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'conclusion_future_trend'">lu_trends_conclusion</xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'conclusion_range'">lu_assessments</xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'conclusion_range_trend'">lu_trends_conclusion</xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'conclusion_structure'">lu_assessments</xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'conclusion_structure_trend'">lu_trends_conclusion</xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'coverage_method'">lu_methods_used</xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'coverage_trend'">lu_trends</xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'coverage_trend_long'">lu_trends</xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'coverage_trend_long_method'">lu_methods_used</xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'coverage_trend_method'">lu_methods_used</xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'natura2000_area_method'">lu_methods_used</xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'natura2000_area_trend'">lu_trends</xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'pressures_method'">lu_methods_pressures</xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'range_method'">lu_methods_used</xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'range_trend'">lu_trends</xsl:when>
         <xsl:when test="$table_name = 'data_habitattype_regions' and $xml_tag = 'range_trend_long'">lu_trends</xsl:when>
      </xsl:choose>
   </xsl:template>
</xsl:stylesheet>