View stylesheet

XML schema http://dd.eionet.europa.eu/schemas/Mercury/SpecsActivities.xsd
Output type EXCEL
Description MercurySpecsActivities EXCEL preview
XSL file MercurySpecsActivitiesEXCEL.xsl (Last modified: 16 Jun 2020 09:50 )
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version="2.0" xmlns:office="http://openoffice.org/2000/office"
                xmlns:table="http://openoffice.org/2000/table" xmlns:text="http://openoffice.org/2000/text" xmlns:xs="http://www.w3.org/2001/XMLSchema"
				xmlns:d="http://dd.eionet.europa.eu/schemas/Mercury" exclude-result-prefixes="d">
    <xsl:output method="xml"/>

    <xsl:template match="/d:MercuryReport">
        <office:document-content xmlns:office="http://openoffice.org/2000/office"
                                 xmlns:table="http://openoffice.org/2000/table" office:version="1.0"
                                 xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:number="http://openoffice.org/2000/datastyle"
                                 xmlns:text="http://openoffice.org/2000/text" xmlns:fo="http://www.w3.org/1999/XSL/Format"
                                 xmlns:style="http://openoffice.org/2000/style">
            <office:automatic-styles>

				<style:style style:name="heading-section" style:family="table-cell">
                    <style:properties fo:font-weight="bold" fo:color="#ff0000"/>
                </style:style>
				
				<style:style style:name="heading-form" style:family="table-cell">
                    <style:properties fo:font-size="10pt" fo:font-weight="bold" fo:color="#ff0000"/>
                </style:style>
				
				<style:style style:name="heading-table" style:family="table-cell">
                    <style:properties fo:text-align="left" fo:font-size="10pt" fo:font-weight="bold" />
                </style:style>

            </office:automatic-styles>

			<office:body>
				<!-- mercury report sheet definition -->
				<table:table>
                    <xsl:attribute name="table:name"><xsl:value-of select="'Mercury Report Activities Form'" /></xsl:attribute>
                    <xsl:for-each select=".">
                        <table:table-columns>
                            <table:table-column table:default-cell-value-type="string"></table:table-column>
                            <!-- <table:table-column table:default-cell-value-type="string"></table:table-column> -->
                        </table:table-columns>
                        
						<table:table-header-rows>
                            <table:table-row table:default-cell-value-type="string">
                                <table:table-cell>
                                    <text:p></text:p>
                                </table:table-cell>
                                <!-- <table:table-cell>
                                    <text:p></text:p>
                                </table:table-cell> -->
                            </table:table-row>
                        </table:table-header-rows>
                        
						<table:table-rows>
                            <xsl:call-template name="mercuryReport-table"/>
                        </table:table-rows>
                    </xsl:for-each>
				</table:table>
				
				<!-- facilities sheet definition -->
				<table:table>
                    <xsl:attribute name="table:name"><xsl:value-of select="'Facilities'" /></xsl:attribute>
                        <table:table-columns>
                            <table:table-column table:default-cell-value-type="string"></table:table-column>
                            <table:table-column table:default-cell-value-type="string"></table:table-column>
							<table:table-column table:default-cell-value-type="string"></table:table-column>
                            <table:table-column table:default-cell-value-type="string"></table:table-column>
							<table:table-column table:default-cell-value-type="string"></table:table-column>
                            <table:table-column table:default-cell-value-type="string"></table:table-column>
							<table:table-column table:default-cell-value-type="string"></table:table-column>
                            <table:table-column table:default-cell-value-type="string"></table:table-column>
							<table:table-column table:default-cell-value-type="string"></table:table-column>
                            <table:table-column table:default-cell-value-type="string"></table:table-column>
							<table:table-column table:default-cell-value-type="string"></table:table-column>
                            <table:table-column table:default-cell-value-type="string"></table:table-column>
							<table:table-column table:default-cell-value-type="string"></table:table-column>
                            <table:table-column table:default-cell-value-type="string"></table:table-column>
							<table:table-column table:default-cell-value-type="string"></table:table-column>
							<table:table-column table:default-cell-value-type="string"></table:table-column>
							<table:table-column table:default-cell-value-type="string"></table:table-column>
							<table:table-column table:default-cell-value-type="string"></table:table-column>
							<table:table-column table:default-cell-value-type="string"></table:table-column>
							<table:table-column table:default-cell-value-type="string"></table:table-column>
							<table:table-column table:default-cell-value-type="string"></table:table-column>
							<table:table-column table:default-cell-value-type="string"></table:table-column>
                        </table:table-columns>
                        
						<table:table-header-rows>
							<table:table-row table:default-cell-value-type="string">
                                <table:table-cell table:style-name="heading-table"><text:p><xsl:value-of select="'Thematic ID'"/></text:p></table:table-cell>
								<table:table-cell table:style-name="heading-table"><text:p><xsl:value-of select="'Name'"/></text:p></table:table-cell>
								<table:table-cell table:style-name="heading-table"><text:p><xsl:value-of select="'Latitude'"/></text:p></table:table-cell>
								<table:table-cell table:style-name="heading-table"><text:p><xsl:value-of select="'Longitude'"/></text:p></table:table-cell>
								<table:table-cell table:style-name="heading-table"><text:p><xsl:value-of select="'Address'"/></text:p></table:table-cell>
								<table:table-cell table:style-name="heading-table"><text:p><xsl:value-of select="'inspireIdLocalId'"/></text:p></table:table-cell>
								<table:table-cell table:style-name="heading-table"><text:p><xsl:value-of select="'inspireIdNamespace'"/></text:p></table:table-cell>
								<table:table-cell table:style-name="heading-table"><text:p><xsl:value-of select="'Reporting Status'"/></text:p></table:table-cell>
								<table:table-cell table:style-name="heading-table"><text:p><xsl:value-of select="'Methylate'"/></text:p></table:table-cell>
								<table:table-cell table:style-name="heading-table"><text:p><xsl:value-of select="'Primary Mining'"/></text:p></table:table-cell>
								<table:table-cell table:style-name="heading-table"><text:p><xsl:value-of select="'Chlor-Alkali'"/></text:p></table:table-cell>
								<table:table-cell table:style-name="heading-table"><text:p><xsl:value-of select="'Natural Gas Cleaning'"/></text:p></table:table-cell>
								<table:table-cell table:style-name="heading-table"><text:p><xsl:value-of select="'Non Ferrous'"/></text:p></table:table-cell>
								<table:table-cell table:style-name="heading-table"><text:p><xsl:value-of select="'Non Waste over 50ton'"/></text:p></table:table-cell>
								<table:table-cell table:style-name="heading-table"><text:p><xsl:value-of select="'Waste over 50ton'"/></text:p></table:table-cell>
								<table:table-cell table:style-name="heading-table"><text:p><xsl:value-of select="'Over 10ton'"/></text:p></table:table-cell>
								<table:table-cell table:style-name="heading-table"><text:p><xsl:value-of select="'Water 2010'"/></text:p></table:table-cell>
								<table:table-cell table:style-name="heading-table"><text:p><xsl:value-of select="'Air 2010'"/></text:p></table:table-cell>
								<table:table-cell table:style-name="heading-table"><text:p><xsl:value-of select="'Land 2010'"/></text:p></table:table-cell>
								<table:table-cell table:style-name="heading-table"><text:p><xsl:value-of select="'Water 2020'"/></text:p></table:table-cell>
								<table:table-cell table:style-name="heading-table"><text:p><xsl:value-of select="'Air 2020'"/></text:p></table:table-cell>
								<table:table-cell table:style-name="heading-table"><text:p><xsl:value-of select="'Land 2020'"/></text:p></table:table-cell>
                            </table:table-row>
						</table:table-header-rows>

						<table:table-rows>
                            <xsl:call-template name="facilities-table"/>
                        </table:table-rows>
				</table:table>
				
				<!-- facilities capacity sheet definition -->
				<table:table>
                    <xsl:attribute name="table:name"><xsl:value-of select="'Facilities capacity'" /></xsl:attribute>
                        <table:table-columns>
                            <table:table-column table:default-cell-value-type="string"></table:table-column>
                            <table:table-column table:default-cell-value-type="string"></table:table-column>
							<table:table-column table:default-cell-value-type="string"></table:table-column>
                            <table:table-column table:default-cell-value-type="string"></table:table-column>
                        </table:table-columns>
                        
						<table:table-header-rows>
							<table:table-row table:default-cell-value-type="string">
                                <table:table-cell table:style-name="heading-table"><text:p><xsl:value-of select="'Thematic ID'"/></text:p></table:table-cell>
								<table:table-cell table:style-name="heading-table"><text:p><xsl:value-of select="'Name'"/></text:p></table:table-cell>
								<table:table-cell table:style-name="heading-table"><text:p><xsl:value-of select="'Year'"/></text:p></table:table-cell>
								<table:table-cell table:style-name="heading-table"><text:p><xsl:value-of select="'Capacity'"/></text:p></table:table-cell>
                            </table:table-row>
						</table:table-header-rows>

						<table:table-rows>
                            <xsl:call-template name="capacity-table"/>
                        </table:table-rows>
				</table:table>
				
				<!-- facilities stock sheet definition -->
				<table:table>
                    <xsl:attribute name="table:name"><xsl:value-of select="'Facilities Stock'" /></xsl:attribute>
                    <!-- <xsl:for-each select="d:Facilities"> -->
                        <table:table-columns>
                            <table:table-column table:default-cell-value-type="string"></table:table-column>
                            <table:table-column table:default-cell-value-type="string"></table:table-column>
							<table:table-column table:default-cell-value-type="string"></table:table-column>
                            <table:table-column table:default-cell-value-type="string"></table:table-column>
							<table:table-column table:default-cell-value-type="string"></table:table-column>
                            <table:table-column table:default-cell-value-type="string"></table:table-column>
							<table:table-column table:default-cell-value-type="string"></table:table-column>
                            <table:table-column table:default-cell-value-type="string"></table:table-column>
							<table:table-column table:default-cell-value-type="string"></table:table-column>
                            <table:table-column table:default-cell-value-type="string"></table:table-column>
                        </table:table-columns>
                        
						<table:table-header-rows>
							<table:table-row table:default-cell-value-type="string">
                                <table:table-cell table:style-name="heading-table"><text:p><xsl:value-of select="'Capacity'"/></text:p></table:table-cell>
								<table:table-cell table:style-name="heading-table"><text:p><xsl:value-of select="'Name'"/></text:p></table:table-cell>
								<table:table-cell table:style-name="heading-table"><text:p><xsl:value-of select="'Year'"/></text:p></table:table-cell>
								<table:table-cell table:style-name="heading-table"><text:p><xsl:value-of select="'Amount stored'"/></text:p></table:table-cell>
								<table:table-cell table:style-name="heading-table"><text:p><xsl:value-of select="'Sent to temporary storage'"/></text:p></table:table-cell>
								<table:table-cell table:style-name="heading-table"><text:p><xsl:value-of select="'Sent to conversion'"/></text:p></table:table-cell>
								<table:table-cell table:style-name="heading-table"><text:p><xsl:value-of select="'Sent to permanent storage'"/></text:p></table:table-cell>
								<table:table-cell table:style-name="heading-table"><text:p><xsl:value-of select="'Non-waste stored'"/></text:p></table:table-cell>
								<table:table-cell table:style-name="heading-table"><text:p><xsl:value-of select="'Waste stored'"/></text:p></table:table-cell>
								<table:table-cell table:style-name="heading-table"><text:p><xsl:value-of select="'Amount supplied'"/></text:p></table:table-cell>
                            </table:table-row>
						</table:table-header-rows>

						
						<table:table-rows>
                            <xsl:call-template name="stock-table"/>
                        </table:table-rows>
                    <!-- </xsl:for-each> -->
				</table:table>
				
			</office:body>
        
			</office:document-content>
    </xsl:template>

	<!-- getting data from mercury report node -->
	<xsl:template name="mercuryReport-table">
		<!-- SECTION 1 -->
		<table:table-row>
            <table:table-cell table:style-name="heading-section">
                <text:p>1. Industrial Activities (Article 7(1) and (2))</text:p>
            </table:table-cell>
        </table:table-row>

        <!-- referenceYear -->
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell table:style-name="heading-form">
                <text:p>
                    <xsl:value-of select="'Reference year'"/>
                </text:p>
            </table:table-cell>
        </table:table-row>
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell>
                <text:p>
                    <xsl:value-of select="d:referenceYear"/>
                </text:p>
            </table:table-cell>
        </table:table-row>
		
		<!-- hasPhasedOutVinilChloride -->
        <table:table-row table:default-cell-value-type="string">
            <table:table-cell table:style-name="heading-form">
                <text:p>
                    <xsl:value-of select="'Has the use of mercury for the production of vinyl chloride monomer been phased out (to be phased out by 1 January 2022 at the latest)?'"/>
                </text:p>
            </table:table-cell>
		</table:table-row>
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell>
                <text:p>
                    <xsl:value-of select="d:hasPhasedOutVinilChloride"/>
                </text:p>
            </table:table-cell>
        </table:table-row>
		
		<!-- phaseOutVinilChlorideProblem -->
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell table:style-name="heading-form">
                <text:p>
                    <xsl:value-of select="'State the reason(s) for the perpetuation of this manufacturing process after the phase-out date'"/>
                </text:p>
            </table:table-cell>
		</table:table-row>
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell>
                <text:p>
                    <xsl:value-of select="d:phaseOutVinilChlorideProblem"/>
                </text:p>
            </table:table-cell>
		</table:table-row>
		
		<!-- phaseOutVinilChloridePlan -->
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell table:style-name="heading-form">
                <text:p>
                    <xsl:value-of select="'State the measure(s) taken or planned to phase out this manufacturing process and associated timetable'"/>
                </text:p>
            </table:table-cell>
		</table:table-row>
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell>
                <text:p>
                    <xsl:value-of select="d:phaseOutVinilChloridePlan"/>
                </text:p>
            </table:table-cell>
		</table:table-row>
		
		<!-- hasPhasedOutChlorAlkali -->
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell table:style-name="heading-form">
                <text:p>
                    <xsl:value-of select="'Has the use of mercury for the production of chlor-alkali been phased out (to be phased out by 11 December 2017 at the latest)?'"/>
                </text:p>
            </table:table-cell>
		</table:table-row>
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell>
                <text:p>
                    <xsl:value-of select="d:hasPhasedOutChlorAlkali"/>
                </text:p>
            </table:table-cell>
		</table:table-row>
		
		<!-- phaseOutChlorAlkaliProblem -->
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell table:style-name="heading-form">
                <text:p>
                    <xsl:value-of select="'State the reason(s) for the perpetuation of this manufacturing process after the phase-out date'"/>
                </text:p>
            </table:table-cell>
		</table:table-row>
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell>
                <text:p>
                    <xsl:value-of select="d:phaseOutChlorAlkaliProblem"/>
                </text:p>
            </table:table-cell>
		</table:table-row>

		<!-- phaseOutChlorAlkaliPlan -->
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell table:style-name="heading-form">
                <text:p>
                    <xsl:value-of select="'State the measure(s) taken or planned to phase out this manufacturing process and associated timetable'"/>
                </text:p>
            </table:table-cell>
		</table:table-row>
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell>
                <text:p>
                    <xsl:value-of select="d:phaseOutChlorAlkaliPlan"/>
                </text:p>
            </table:table-cell>
		</table:table-row>
		
		<!-- hasPhasedOutMethylate -->
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell table:style-name="heading-form">
                <text:p>
                    <xsl:value-of select="'Has the use of mercury for the production of sodium and potassium methylate or ethylate been phased out (to be phased out by 1 January 2018 at the latest)?'"/>
                </text:p>
            </table:table-cell>
		</table:table-row>
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell>
                <text:p>
                    <xsl:value-of select="d:hasPhasedOutMethylate"/>
                </text:p>
            </table:table-cell>
		</table:table-row>

		<!-- phaseOutMethylateProblem -->
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell table:style-name="heading-form">
                <text:p>
                    <xsl:value-of select="'State the reason(s) for the perpetuation of this manufacturing process after the phase-out date'"/>
                </text:p>
            </table:table-cell>
		</table:table-row>
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell>
                <text:p>
                    <xsl:value-of select="d:phaseOutMethylateProblem"/>
                </text:p>
            </table:table-cell>
		</table:table-row>
		
		<!-- phaseOutMethylatePlan -->
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell table:style-name="heading-form">
                <text:p>
                    <xsl:value-of select="'State the measure(s) taken or planned to phase out this manufacturing process and associated timetable'"/>
                </text:p>
            </table:table-cell>
		</table:table-row>
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell>
                <text:p>
                    <xsl:value-of select="d:phaseOutMethylatePlan"/>
                </text:p>
            </table:table-cell>
		</table:table-row>
		
		<!-- hasPhaseOutPolyurethane -->
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell table:style-name="heading-form">
                <text:p>
                    <xsl:value-of select="'Has the use of mercury for the production of polyurethane been phased out (to be phased out by 1 January 2018 at the latest)?'"/>
                </text:p>
            </table:table-cell>
		</table:table-row>
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell>
                <text:p>
                    <xsl:value-of select="d:hasPhaseOutPolyurethane"/>
                </text:p>
            </table:table-cell>
		</table:table-row>
		
		<!-- phaseOutPolyurethaneProblem -->
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell table:style-name="heading-form">
                <text:p>
                    <xsl:value-of select="'State the reason(s) for the perpetuation of this manufacturing process after the phase-out date'"/>
                </text:p>
            </table:table-cell>
		</table:table-row>
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell>
                <text:p>
                    <xsl:value-of select="d:phaseOutPolyurethaneProblem"/>
                </text:p>
            </table:table-cell>
		</table:table-row>
		
		<!-- phaseOutPolyurethanePlan -->
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell table:style-name="heading-form">
                <text:p>
                    <xsl:value-of select="'State the measure(s) taken or planned to phase out this manufacturing process and associated timetable'"/>
                </text:p>
            </table:table-cell>
		</table:table-row>
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell>
                <text:p>
                    <xsl:value-of select="d:phaseOutPolyurethanePlan"/>
                </text:p>
            </table:table-cell>
		</table:table-row>
		
		<!-- hasMethylateInstalations -->
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell table:style-name="heading-form">
                <text:p>
                    <xsl:value-of select="'Are there any installations in the territory of the Member State producing sodium or potassium methylate or ethylate making use of a manufacturing process involving the use of mercury and mercury compounds as referred to in Part II of Annex III to Regulation (EU) 2017/852?'"/>
                </text:p>
            </table:table-cell>
		</table:table-row>
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell>
                <text:p>
                    <xsl:value-of select="d:hasMethylateInstalations"/>
                </text:p>
            </table:table-cell>
		</table:table-row>
		
		<!-- EMPTY ROW -->
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell table:style-name="heading-section">
                <text:p></text:p>
            </table:table-cell>
        </table:table-row>
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell table:style-name="heading-section">
                <text:p></text:p>
            </table:table-cell>
        </table:table-row>
		
		<!-- SECTION 2 -->
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell table:style-name="heading-section">
                <text:p>
                    <xsl:value-of select="'2. Artisanal and small-scale gold mining (Article 9)'"/>
                </text:p>
            </table:table-cell>
        </table:table-row>
		
		<!-- hasGoldMining -->
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell table:style-name="heading-form">
                <text:p>
                    <xsl:value-of select="'Has the Member State found evidence of more than isolated cases of use of mercury amalgamation to extract gold in its territory?'"/>
                </text:p>
            </table:table-cell>
		</table:table-row>
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell>
                <text:p>
                    <xsl:value-of select="d:hasGoldMining"/>
                </text:p>
            </table:table-cell>
		</table:table-row>
		
		
		<!-- hasGoldMiningPlan -->
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell table:style-name="heading-form">
                <text:p>
                    <xsl:value-of select="'Has the competent authority of the Member State developed and implemented a national plan on artisanal and small-scale gold mining and processing in accordance with Article 9(2) and Annex IV of Regulation (EU) 2017/852?'"/>
                </text:p>
            </table:table-cell>
		</table:table-row>
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell>
                <text:p>
                    <xsl:value-of select="d:hasGoldMiningPlan"/>
                </text:p>
            </table:table-cell>
		</table:table-row>
		
		<!-- goldMiningPlanLink -->
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell table:style-name="heading-form">
                <text:p>
                    <xsl:value-of select="'Internet link to the national plan on artisanal and small-scale gold mining and processing'"/>
                </text:p>
            </table:table-cell>
		</table:table-row>
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell>
                <text:p>
                    <xsl:value-of select="d:goldMiningPlanLink"/>
                </text:p>
            </table:table-cell>
		</table:table-row>
		
		<!-- goldMiningPlanProblem -->
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell table:style-name="heading-form">
                <text:p>
                    <xsl:value-of select="'Information on the reason(s) for not having developed and implemented a national plan on artisanal and small-scale gold mining and processig and on the measures taken and/or planned to establish such a plan and an associated timetable'"/>
                </text:p>
            </table:table-cell>
		</table:table-row>
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell>
                <text:p>
                    <xsl:value-of select="d:goldMiningPlanProblem"/>
                </text:p>
            </table:table-cell>
		</table:table-row>


		<!-- EMPTY ROW -->
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell table:style-name="heading-section">
                <text:p></text:p>
            </table:table-cell>
        </table:table-row>
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell table:style-name="heading-section">
                <text:p></text:p>
            </table:table-cell>
        </table:table-row>
		
		<!-- SECTION 3 -->
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell table:style-name="heading-section">
                <text:p>
                    <xsl:value-of select="'3. Dental Amalgam (Article 10)'"/>
                </text:p>
            </table:table-cell>
        </table:table-row>
		
		<!-- hasDentalAmalgam -->
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell table:style-name="heading-form">
                <text:p>
                    <xsl:value-of select="'Has the Member State faced important challenges in implementing Article 10 of Regulation (EU) 2017/852 on dental amalgam?'"/>
                </text:p>
            </table:table-cell>
		</table:table-row>
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell>
                <text:p>
                    <xsl:value-of select="d:hasDentalAmalgam"/>
                </text:p>
            </table:table-cell>
		</table:table-row>
		
		<!-- dentalAmalgamProblem -->
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell table:style-name="heading-form">
                <text:p>
                    <xsl:value-of select="'Nature and scope of the challenges'"/>
                </text:p>
            </table:table-cell>
		</table:table-row>
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell>
                <text:p>
                    <xsl:value-of select="d:dentalAmalgamProblem"/>
                </text:p>
            </table:table-cell>
        </table:table-row>
		
		<!-- dentalAmalgamPlan -->
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell table:style-name="heading-form">
                <text:p>
                    <xsl:value-of select="'measure(s) taken and/or planned to address these challenges and provide a timetable'"/>
                </text:p>
            </table:table-cell>
		</table:table-row>
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell>
                <text:p>
                    <xsl:value-of select="d:dentalAmalgamPlan"/>
                </text:p>
            </table:table-cell>
		</table:table-row>
		
		<!-- EMPTY ROW -->
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell table:style-name="heading-section">
                <text:p></text:p>
            </table:table-cell>
        </table:table-row>
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell table:style-name="heading-section">
                <text:p></text:p>
            </table:table-cell>
        </table:table-row>
		
		<!-- SECTION 4 -->
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell table:style-name="heading-section">
                <text:p>
                    <xsl:value-of select="'4. Reporting on Large Scale Sources (Article 12)'"/>
                </text:p>
            </table:table-cell>
        </table:table-row>
		
		<!-- hasLargeSources -->
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell table:style-name="heading-form">
                <text:p>
                    <xsl:value-of select="'Do you have any installation concerned per type of large source referred to Article 11(a), (b) and (c) of Regulation (EU) 2017/852?'"/>
                </text:p>
            </table:table-cell>
		</table:table-row>
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell>
                <text:p>
                    <xsl:value-of select="d:hasLargeSources"/>
                </text:p>
            </table:table-cell>
		</table:table-row>
		
		<!-- largeScaleSourcesAdditionalInformation -->
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell table:style-name="heading-form">
                <text:p>
                    <xsl:value-of select="'Other relevant information the Member State wishes to make available'"/>
                </text:p>
            </table:table-cell>
		</table:table-row>
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell>
                <text:p>
                    <xsl:value-of select="d:largeScaleSourcesAdditionalInformation"/>
                </text:p>
            </table:table-cell>
		</table:table-row>
		

		<!-- EMPTY ROW -->
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell table:style-name="heading-section">
                <text:p></text:p>
            </table:table-cell>
        </table:table-row>
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell table:style-name="heading-section">
                <text:p></text:p>
            </table:table-cell>
        </table:table-row>
		
		<!-- SECTION 5 -->
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell table:style-name="heading-section">
                <text:p>
                    <xsl:value-of select="'5. Other Reporting required under Article 18'"/>
                </text:p>
            </table:table-cell>
        </table:table-row>
		
		<!-- hasMercuryStocks -->
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell table:style-name="heading-form">
                <text:p>
                    <xsl:value-of select="'Are there facilities that follow the requirements of Directive 2007/2/EC for stocks of more than 50 metric tonnes of mercury other than mercury waste that are located on 31 Decemeber of each reporting year?'"/>
                </text:p>
            </table:table-cell>
		</table:table-row>
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell>
                <text:p>
                    <xsl:value-of select="d:hasMercuryStocks"/>
                </text:p>
            </table:table-cell>
		</table:table-row>
		
		<!-- hasMercuryWasteSites -->
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell table:style-name="heading-form">
                <text:p>
                    <xsl:value-of select="'Are there facilities that follow the requirements of Directive 2007/2/EC for sites where more than 50 metric tonnes of mercury waste is accumulated on 31 December of each reporting year, including the unique identifiers that follow the requirements of Directive 2007/2/EC?'"/>
                </text:p>
            </table:table-cell>
		</table:table-row>
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell>
                <text:p>
                    <xsl:value-of select="d:hasMercuryWasteSites"/>
                </text:p>
            </table:table-cell>
		</table:table-row>
		
		<!-- hasMercurySources -->
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell table:style-name="heading-form">
                <text:p>
                    <xsl:value-of select="'Are there facilities that follow the requirements of Directive 2007/2/EC for sources supplying more than 10 metric tonnes of mercury per year?'"/>
                </text:p>
            </table:table-cell>
		</table:table-row>
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell>
                <text:p>
                    <xsl:value-of select="d:hasMercurySources"/>
                </text:p>
            </table:table-cell>
		</table:table-row>
		
		<!-- EMPTY ROW -->
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell table:style-name="heading-section">
                <text:p></text:p>
            </table:table-cell>
        </table:table-row>
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell table:style-name="heading-section">
                <text:p></text:p>
            </table:table-cell>
        </table:table-row>
		
		<!-- SECTION 6 -->
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell table:style-name="heading-section">
                <text:p>
                    <xsl:value-of select="'6. Final Questions'"/>
                </text:p>
            </table:table-cell>
        </table:table-row>
		
		<!-- hasImplementationProblem -->
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell table:style-name="heading-form">
                <text:p>
                    <xsl:value-of select="'Has the Member State faced other important challenges in implementing Regulation (EU) 2017/852?'"/>
                </text:p>
            </table:table-cell>
		</table:table-row>
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell>
                <text:p>
                    <xsl:value-of select="d:hasImplementationProblem"/>
                </text:p>
            </table:table-cell>
		</table:table-row>
		
		<!-- implementationProblem -->
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell table:style-name="heading-form">
                <text:p>
                    <xsl:value-of select="'Explanation of the challenges faced'"/>
                </text:p>
            </table:table-cell>
		</table:table-row>
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell>
                <text:p>
                    <xsl:value-of select="d:implementationProblem"/>
                </text:p>
            </table:table-cell>
        </table:table-row>
		
		<!-- implementationPlan -->
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell table:style-name="heading-form">
                <text:p>
                    <xsl:value-of select="'Information on measures taken or planned to address the difficulties encountered and associated timetable'"/>
                </text:p>
            </table:table-cell>
		</table:table-row>
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell>
                <text:p>
                    <xsl:value-of select="d:implementationPlan"/>
                </text:p>
            </table:table-cell>
        </table:table-row>
		
		<!-- implementationOther -->
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell table:style-name="heading-form">
                <text:p>
                    <xsl:value-of select="'Information on other implementation promotion initiative undertaken or planned'"/>
                </text:p>
            </table:table-cell>
		</table:table-row>
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell>
                <text:p>
                    <xsl:value-of select="d:implementationOther"/>
                </text:p>
            </table:table-cell>
        </table:table-row>
		
		<!-- comments -->
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell table:style-name="heading-form">
                <text:p>
                    <xsl:value-of select="'Additional comments'"/>
                </text:p>
            </table:table-cell>
		</table:table-row>
		<table:table-row table:default-cell-value-type="string">
            <table:table-cell>
                <text:p>
                    <xsl:value-of select="d:comments"/>
                </text:p>
            </table:table-cell>
        </table:table-row>
		
		
		
		
		
		
		
		
		
		
		
		
	</xsl:template>
	
	<!-- getting data from facilities node -->
	<xsl:template name="facilities-table">
		<xsl:for-each select="d:Facility">
			<table:table-row table:default-cell-value-type="string">
				<table:table-cell><text:p><xsl:value-of select="d:thematicId"/></text:p></table:table-cell>
				<table:table-cell><text:p><xsl:value-of select="d:name"/></text:p></table:table-cell>
				<table:table-cell><text:p><xsl:value-of select="d:lat"/></text:p></table:table-cell>
				<table:table-cell><text:p><xsl:value-of select="d:lon"/></text:p></table:table-cell>
				<table:table-cell><text:p><xsl:value-of select="d:address"/></text:p></table:table-cell>
				<table:table-cell><text:p><xsl:value-of select="d:inspireIdLocalId"/></text:p></table:table-cell>
				<table:table-cell><text:p><xsl:value-of select="d:inspireIdNamespace"/></text:p></table:table-cell>
				<table:table-cell><text:p><xsl:value-of select="d:reportingStatus"/></text:p></table:table-cell>
				<table:table-cell><text:p><xsl:value-of select="d:isMethylateProductionFacility"/></text:p></table:table-cell>
				<table:table-cell><text:p><xsl:value-of select="d:usesMercuryFromPrimaryMining"/></text:p></table:table-cell>
				<table:table-cell><text:p><xsl:value-of select="d:isChlorAlkaliProductionFacility"/></text:p></table:table-cell>
				<table:table-cell><text:p><xsl:value-of select="d:isCleaningNaturalGasProductionFacility"/></text:p></table:table-cell>
				<table:table-cell><text:p><xsl:value-of select="d:isNonFerrousMiningAndSmeltingFacility"/></text:p></table:table-cell>
				<table:table-cell><text:p><xsl:value-of select="d:hasMercuryNonWasteOver50Ton"/></text:p></table:table-cell>
				<table:table-cell><text:p><xsl:value-of select="d:hasMercuryWasteOver50Ton"/></text:p></table:table-cell>
				<table:table-cell><text:p><xsl:value-of select="d:suppliesMercuryOver10TonYear"/></text:p></table:table-cell>
				<table:table-cell><text:p><xsl:value-of select="d:releaseToWater2010"/></text:p></table:table-cell>
				<table:table-cell><text:p><xsl:value-of select="d:releaseToAir2010"/></text:p></table:table-cell>
				<table:table-cell><text:p><xsl:value-of select="d:releaseToLand2010"/></text:p></table:table-cell>
				<table:table-cell><text:p><xsl:value-of select="d:releaseToWater2020"/></text:p></table:table-cell>
				<table:table-cell><text:p><xsl:value-of select="d:releaseToAir2020"/></text:p></table:table-cell>
				<table:table-cell><text:p><xsl:value-of select="d:releaseToLand2020"/></text:p></table:table-cell>
			</table:table-row>
		</xsl:for-each>
	</xsl:template>
	
	<!-- getting data from facilities capacity node -->
	<xsl:template name="capacity-table">
		<xsl:for-each select="d:Facility">
			<xsl:variable name="fcthid" select="d:thematicId"/>
			<xsl:variable name="fcname" select="d:name"/>
			<xsl:for-each select="d:FacilityCapacity">
				<table:table-row table:default-cell-value-type="string">
					<table:table-cell><text:p><xsl:value-of select="$fcthid"/></text:p></table:table-cell>
					<table:table-cell><text:p><xsl:value-of select="$fcname"/></text:p></table:table-cell>
					<table:table-cell><text:p><xsl:value-of select="d:year"/></text:p></table:table-cell>
					<table:table-cell><text:p><xsl:value-of select="d:capacity"/></text:p></table:table-cell>
				</table:table-row>
			</xsl:for-each>
		</xsl:for-each>
	</xsl:template>
	
	<!-- getting data from facilities stock node -->
	<xsl:template name="stock-table">
		<xsl:for-each select="d:Facility">
			<xsl:variable name="fthid" select="d:thematicId"/>
			<xsl:variable name="fname" select="d:name"/>
			<xsl:for-each select="d:FacilityStock">
				<table:table-row table:default-cell-value-type="string">
					<table:table-cell><text:p><xsl:value-of select="$fthid"/></text:p></table:table-cell>
					<table:table-cell><text:p><xsl:value-of select="$fname"/></text:p></table:table-cell>
					<table:table-cell><text:p><xsl:value-of select="d:year"/></text:p></table:table-cell>
					<table:table-cell><text:p><xsl:value-of select="d:amountStored"/></text:p></table:table-cell>
					<table:table-cell><text:p><xsl:value-of select="d:amountSentToTemporaryStorage"/></text:p></table:table-cell>
					<table:table-cell><text:p><xsl:value-of select="d:amountSentToConversion"/></text:p></table:table-cell>
					<table:table-cell><text:p><xsl:value-of select="d:amountSentToPermanentStorage"/></text:p></table:table-cell>
					<table:table-cell><text:p><xsl:value-of select="d:amountMercuryNonWasteStored"/></text:p></table:table-cell>
					<table:table-cell><text:p><xsl:value-of select="d:amountMercuryWasteStored"/></text:p></table:table-cell>
					<table:table-cell><text:p><xsl:value-of select="d:amountMercurySupplied"/></text:p></table:table-cell>
				</table:table-row>
			</xsl:for-each>
		</xsl:for-each>
	</xsl:template>

</xsl:stylesheet>