| XML schema |
http://dd.eionet.europa.eu/schemas/IEDAnnexIIModule3/module3.xsd
|
|---|---|
| Output type | EXCEL |
| Description | MS Excel |
| XSL file | IEDAnnexIIModule3-excel.xsl (Last modified: 08 Nov 2018 18:47 ) |
<?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:skos="http://www.w3.org/2004/02/skos/core#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<xsl:output method="xml"/>
<xsl:variable name="AirMonitoringFrequencyCodeURL" select="document('http://dd.eionet.europa.eu/vocabulary/IEDAnnexIIModule3/AirMonitoringFrequencyCode/rdf')"/>
<xsl:variable name="AirPollutantsGlassCodeURL" select="document('http://dd.eionet.europa.eu/vocabulary/IEDAnnexIIModule3/AirPollutantsGlassCode/rdf')"/>
<xsl:variable name="AirPollutantsIronSteelCodeURL" select="document('http://dd.eionet.europa.eu/vocabulary/IEDAnnexIIModule3/AirPollutantsIronSteelCode/rdf')"/>
<xsl:variable name="AveragingPeriodCodeURL" select="document('http://dd.eionet.europa.eu/vocabulary/IEDAnnexIIModule3/AveragingPeriodCode/rdf')"/>
<xsl:variable name="BATAELGlassCodeURL" select="document('http://dd.eionet.europa.eu/vocabulary/IEDAnnexIIModule3/BATAELGlassCode/rdf')"/>
<xsl:variable name="BATAELIronSteelCodeURL" select="document('http://dd.eionet.europa.eu/vocabulary/IEDAnnexIIModule3/BATAELIronSteelCode/rdf')"/>
<xsl:variable name="BATGlassCodeURL" select="document('http://dd.eionet.europa.eu/vocabulary/IEDAnnexIIModule3/BATGlassCode/rdf')"/>
<xsl:variable name="BATGlassHeadingCodeURL" select="document('http://dd.eionet.europa.eu/vocabulary/IEDAnnexIIModule3/BATGlassHeadingCode/rdf')"/>
<xsl:variable name="BATIronSteelCodeURL" select="document('http://dd.eionet.europa.eu/vocabulary/IEDAnnexIIModule3/BATIronSteelCode/rdf')"/>
<xsl:variable name="BATIronSteelHeadingCodeURL" select="document('http://dd.eionet.europa.eu/vocabulary/IEDAnnexIIModule3/BATIronSteelHeadingCode/rdf')"/>
<xsl:variable name="CompartmentCodeURL" select="document('http://dd.eionet.europa.eu/vocabulary/IEDAnnexIIModule3/CompartmentCode/rdf')"/>
<xsl:variable name="CriteriaCodeURL" select="document('http://dd.eionet.europa.eu/vocabulary/IEDAnnexIIModule3/CriteriaCode/rdf')"/>
<xsl:variable name="EQSAirPollutantsGlassCodeURL" select="document('http://dd.eionet.europa.eu/vocabulary/IEDAnnexIIModule3/EQSAirPollutantsGlassCode/rdf')"/>
<xsl:variable name="EQSAirPollutantsIronSteelCodeURL" select="document('http://dd.eionet.europa.eu/vocabulary/IEDAnnexIIModule3/EQSAirPollutantsIronSteelCode/rdf')"/>
<xsl:variable name="EQSSoilPollutantsCodeURL" select="document('http://dd.eionet.europa.eu/vocabulary/IEDAnnexIIModule3/EQSSoilPollutantsCode/rdf')"/>
<xsl:variable name="EQSWaterPollutantsGlassCodeURL" select="document('http://dd.eionet.europa.eu/vocabulary/IEDAnnexIIModule3/EQSWaterPollutantsGlassCode/rdf')"/>
<xsl:variable name="EQSWaterPollutantsIronSteelCodeURL" select="document('http://dd.eionet.europa.eu/vocabulary/IEDAnnexIIModule3/EQSWaterPollutantsIronSteelCode/rdf')"/>
<xsl:variable name="OtherSituationsCodeURL" select="document('http://dd.eionet.europa.eu/vocabulary/IEDAnnexIIModule3/OtherSituationsCode/rdf')"/>
<xsl:variable name="OxygenContentCodeURL" select="document('http://dd.eionet.europa.eu/vocabulary/IEDAnnexIIModule3/OxygenContentCode/rdf')"/>
<xsl:variable name="PermitConditionsBasisTypeCodeURL" select="document('http://dd.eionet.europa.eu/vocabulary/IEDAnnexIIModule3/PermitConditionsBasisTypeCode/rdf')"/>
<xsl:variable name="ReasonsCodeURL" select="document('http://dd.eionet.europa.eu/vocabulary/IEDAnnexIIModule3/ReasonsCode/rdf')"/>
<xsl:variable name="SectorCodeURL" select="document('http://dd.eionet.europa.eu/vocabulary/IEDAnnexIIModule3/SectorCode/rdf')"/>
<xsl:variable name="SourceTypeCodeURL" select="document('http://dd.eionet.europa.eu/vocabulary/IEDAnnexIIModule3/SourceTypeCode/rdf')"/>
<xsl:variable name="UnitsCodeURL" select="document('http://dd.eionet.europa.eu/vocabulary/IEDAnnexIIModule3/UnitsCode/rdf')"/>
<xsl:variable name="WaterMonitoringFrequencyCodeURL" select="document('http://dd.eionet.europa.eu/vocabulary/IEDAnnexIIModule3/WaterMonitoringFrequencyCode/rdf')"/>
<xsl:variable name="WaterPollutantsGlassCodeURL" select="document('http://dd.eionet.europa.eu/vocabulary/IEDAnnexIIModule3/WaterPollutantsGlassCode/rdf')"/>
<xsl:variable name="WaterPollutantsIronSteelCodeURL" select="document('http://dd.eionet.europa.eu/vocabulary/IEDAnnexIIModule3/WaterPollutantsIronSteelCode/rdf')"/>
<!-- <xsl:variable name="labelsLanguage" select="IEDModule3/@xml:lang"/>
<xsl:variable name="labels" select="document('module3-labels-en.xml')/labels"/> -->
<xsl:variable name="schema"
select="document('http://dd.eionet.europa.eu/schemas/IEDAnnexIIModule3/module3.xsd')/xs:schema"/>
<xsl:variable name="labelsLanguage" select="IEDModule3/@xml:lang"/>
<xsl:variable name="xmlPath" select="'https://converterstest.eionet.europa.eu/xmlfile'"/>
<xsl:variable name="labelsUrl">
<xsl:choose>
<xsl:when test="doc-available(concat($xmlPath, 'IEDAnnexIIModule3-labels-', $labelsLanguage ,'.xml'))">
<xsl:value-of select="concat($xmlPath, 'IEDAnnexIIModule3-labels-', $labelsLanguage ,'.xml')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="concat($xmlPath, '/IEDAnnexIIModule3-labels-en.xml')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="labels" select="document($labelsUrl)/labels"/>
<xsl:template name="getLabel">
<xsl:param name="labelName"/>
<xsl:variable name="labelValue" select="$labels/*[local-name() = $labelName]"/>
<xsl:choose>
<xsl:when test="string-length($labelValue) > 0">
<xsl:value-of disable-output-escaping="yes" select="$labelValue"/>
</xsl:when>
<xsl:otherwise>- <xsl:value-of disable-output-escaping="yes" select="$labelName"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="getYesNoValue">
<xsl:param name="elem"/>
<!-- <xsl:param name="codelistElement" select="''"/> -->
<xsl:variable name="elemValue">
<xsl:choose>
<xsl:when test="$elem/text()='true'">Yes</xsl:when>
<xsl:when test="$elem/text()='false'">No</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$elem"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:value-of select="$elemValue"/>
</xsl:template>
<xsl:template name="getCDLValue">
<xsl:param name="elem"/>
<xsl:param name="codelistURL" />
<xsl:variable name="codeValue" select="replace(($codelistURL/rdf:RDF/skos:Concept/skos:notation[text()= $elem/text()]/../skos:prefLabel/text()),'&','and')"/>
<xsl:choose>
<xsl:when test="codeValue = ''">
<xsl:value-of disable-output-escaping="yes" select="$elem"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of disable-output-escaping="yes" select="replace($codeValue, '<', ' less than ')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="getCDLValueEQS">
<xsl:param name="elem"/>
<xsl:variable name="codelistAirPollutantsGlassCodeValue" select="$EQSAirPollutantsGlassCodeURL/rdf:RDF/skos:Concept/skos:notation[text()= $elem/text()]/../skos:prefLabel/text()"/>
<xsl:variable name="codelistAirPollutantsIronSteelCodeValue" select="$EQSAirPollutantsIronSteelCodeURL/rdf:RDF/skos:Concept/skos:notation[text()= $elem/text()]/../skos:prefLabel/text()"/>
<xsl:variable name="codelistSoilPollutantsCodeValue" select="$EQSSoilPollutantsCodeURL/rdf:RDF/skos:Concept/skos:notation[text()= $elem/text()]/../skos:prefLabel/text()"/>
<xsl:variable name="codelistWaterPollutantsGlassCodeValue" select="$EQSWaterPollutantsGlassCodeURL/rdf:RDF/skos:Concept/skos:notation[text()= $elem/text()]/../skos:prefLabel/text()"/>
<xsl:variable name="codelistWaterPollutantsIronSteelCodeValue" select="$EQSWaterPollutantsIronSteelCodeURL/rdf:RDF/skos:Concept/skos:notation[text()= $elem/text()]/../skos:prefLabel/text()"/>
<xsl:variable name="all">
<xsl:value-of select="concat($codelistAirPollutantsGlassCodeValue,',',$codelistAirPollutantsIronSteelCodeValue,',',$codelistSoilPollutantsCodeValue,',',$codelistWaterPollutantsGlassCodeValue,',',$codelistWaterPollutantsIronSteelCodeValue)"/>
</xsl:variable>
<xsl:variable name="tokens" select="tokenize($all, ',')" />
<xsl:variable name="tokensUnique" select="distinct-values($tokens)" />
<xsl:variable name="unique">
<xsl:for-each select="$tokensUnique">
<xsl:value-of select="."/>
</xsl:for-each>
</xsl:variable>
<xsl:choose>
<xsl:when test="not(unique = '')">
<xsl:value-of disable-output-escaping="yes" select="$unique"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of disable-output-escaping="yes" select="$elem"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="/IEDModule3">
<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="row-height" style:family="table-cell">
<style:properties style:row-height="2cm" />
</style:style>
<style:style style:name="string-cell" style:family="table-cell">
<style:properties fo:text-align="left"
fo:font-size="10pt" style:column-width="5cm" />
</style:style>
<style:style style:name="long-string-cell" style:family="table-cell">
<style:properties fo:text-align="left"
fo:font-size="10pt" style:column-width="15cm" />
</style:style>
<style:style style:name="number-cell" style:family="table-cell">
<style:properties fo:text-align="right"
fo:font-size="12pt" style:column-width="5cm" />
</style:style>
<style:style style:name="long-number-cell" style:family="table-cell">
<style:properties fo:text-align="right"
fo:font-size="10pt" style:column-width="10cm" />
</style:style>
<style:style style:name="total-number-cell" style:family="table-cell">
<style:properties fo:text-align="right" fo:font-weight="bold"
fo:font-size="10pt" style:column-width="5cm" />
</style:style>
<style:style style:name="string-heading" style:family="table-cell">
<style:properties fo:text-align="left"
fo:font-size="10pt" style:column-width="5cm" fo:font-weight="bold" style:row-height="2cm" />
</style:style>
<style:style style:name="long-string-heading" style:family="table-cell">
<style:properties fo:text-align="left"
fo:font-size="10pt" style:column-width="10cm" fo:font-weight="bold" />
</style:style>
<style:style style:name="cell1" style:family="table-cell">
<style:properties fo:text-align="right"
fo:font-size="10pt" style:column-width="5cm" />
</style:style>
<style:style style:name="cell2" style:family="table-cell">
<style:properties fo:text-align="center"
fo:font-size="12pt" fo:font-style="italic" style:column-width="5cm" />
</style:style>
<style:style style:name="Heading" style:family="table-cell">
<style:properties fo:text-align="center"
fo:font-size="10pt" fo:font-weight="bold" style:column-width="3cm" style:row-height="2cm"/>
</style:style>
<style:style style:name="Heading2" style:family="table-cell">
<style:properties fo:text-align="left"
fo:font-size="12pt" fo:font-weight="bold" style:column-width="10cm" style:row-height="2cm"/>
</style:style>
<style:style style:name="long-Heading2" style:family="table-cell">
<style:properties fo:text-align="left"
fo:font-size="10pt" fo:font-weight="bold" style:column-width="10cm" style:row-height="2cm"/>
</style:style>
<style:style style:name="Heading3" style:family="table-cell">
<style:properties fo:text-align="left"
fo:font-size="12pt" fo:font-weight="normal" style:column-width="5cm" />
</style:style>
<style:style style:name="Heading4" style:family="table-cell">
<style:properties fo:text-align="right"
fo:font-size="10pt" fo:font-weight="bold" style:column-width="10cm" />
</style:style>
</office:automatic-styles>
<office:body>
<table:table>
<xsl:attribute name="table:name">
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'basicData'"/>
</xsl:call-template>
</xsl:attribute>
<!-- <xsl:if test="./ImplementationChanges/q_1_changesMade = true()"> -->
<table:table-columns>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading">
</table:table-column>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading">
</table:table-column>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading">
</table:table-column>
</table:table-columns>
<table:table-rows>
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'intro-table-1'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'intro-table-2'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'intro-table-4'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
</table:table-row>
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'intro-table-5'"/>
</xsl:call-template> 3.3
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'intro-table-6'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="number-cell" table:value-type="number">
<text:p>
<xsl:value-of select="./numberOfGLS_3_3_Installations"/>
</text:p>
</table:table-cell>
</table:table-row>
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'intro-table-5'"/>
</xsl:call-template> 3.4
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'intro-table-7'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="number-cell" table:value-type="number">
<text:p>
<xsl:value-of select="./numberOfGLS_3_4_Installations"/>
</text:p>
</table:table-cell>
</table:table-row>
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading2">
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'numOfGLSInst'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="number-cell" table:value-type="number">
<text:p>
<xsl:value-of select="./numberOfGLSInstallations"/>
</text:p>
</table:table-cell>
</table:table-row>
<table:table-row table:default-cell-value-type="string" >
</table:table-row>
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'intro-table-1'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'intro-table-3'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'intro-table-4'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
</table:table-row>
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'intro-table-5'"/>
</xsl:call-template> 1.3
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'intro-table-8'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="number-cell" table:value-type="number">
<text:p>
<xsl:value-of select="./numberOfIS_1_3_Installations"/>
</text:p>
</table:table-cell>
</table:table-row>
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'intro-table-5'"/>
</xsl:call-template> 2.1
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'intro-table-9'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="number-cell" table:value-type="number">
<text:p>
<xsl:value-of select="./numberOfIS_2_1_Installations"/>
</text:p>
</table:table-cell>
</table:table-row>
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'intro-table-5'"/>
</xsl:call-template> 2.2
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'intro-table-10'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="number-cell" table:value-type="number">
<text:p>
<xsl:value-of select="./numberOfIS_2_2_Installations"/>
</text:p>
</table:table-cell>
</table:table-row>
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'intro-table-5'"/>
</xsl:call-template> 5.3.b (iii)
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'intro-table-11'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="number-cell" table:value-type="number">
<text:p>
<xsl:value-of select="./numberOfIS_5_3_Installations"/>
</text:p>
</table:table-cell>
</table:table-row>
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading2">
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'numOfISInst'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="number-cell" table:value-type="number">
<text:p>
<xsl:value-of select="./numberOfISInstallations"/>
</text:p>
</table:table-cell>
</table:table-row>
</table:table-rows>
<!-- </xsl:if> -->
</table:table>
<table:table>
<xsl:attribute name="table:name">
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question4-heading'"/>
</xsl:call-template>
</xsl:attribute>
<table:table-columns>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading"></table:table-column>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading"></table:table-column>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading"></table:table-column>
</table:table-columns>
<table:table-rows>
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question4-4.1'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2"></table:table-cell>
<table:table-cell table:style-name="Heading2"></table:table-cell>
</table:table-row>
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:call-template name="getYesNoValue">
<xsl:with-param name="elem" select="./PermitConditionSources/q_4_1_otherSourceUsed"/>
</xsl:call-template>
</text:p>
</table:table-cell>
</table:table-row>
<xsl:if test="./PermitConditionSources/q_4_1_otherSourceUsed = true()">
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question4-4.1.1'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
</table:table-row>
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question4-4.1.1-table-1'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'source'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'sector'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
</table:table-row>
<xsl:for-each select="./PermitConditionSources/Source">
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:call-template name="getCDLValue">
<xsl:with-param name="elem" select="./q_4_1_typeOfSource"/>
<xsl:with-param name="codelistURL" select="$SourceTypeCodeURL"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:value-of select="./q_4_1_source"/>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:for-each select="./Sectors/sector">
<xsl:call-template name="getCDLValue">
<xsl:with-param name="elem" select="."/>
<xsl:with-param name="codelistURL" select="$SectorCodeURL"/>
</xsl:call-template><xsl:if test=". != ''"><xsl:text>, </xsl:text></xsl:if>
</xsl:for-each>
</text:p>
</table:table-cell>
</table:table-row>
</xsl:for-each>
<table:table-row table:default-cell-value-type="string" >
</table:table-row>
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'add-feedback'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<td><xsl:value-of select="./PermitConditionSources/q_4_1_feedback"/></td>
</text:p>
</table:table-cell>
</table:table-row>
</xsl:if>
</table:table-rows>
</table:table>
<table:table>
<xsl:attribute name="table:name">
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question5-heading'"/>
</xsl:call-template>
</xsl:attribute>
<table:table-columns>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading">
</table:table-column>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading">
</table:table-column>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading">
</table:table-column>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading">
</table:table-column>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading">
</table:table-column>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading">
</table:table-column>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading">
</table:table-column>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading">
</table:table-column>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading">
</table:table-column>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading">
</table:table-column>
</table:table-columns>
<table:table-rows>
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question5-5.1'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
</table:table-cell>
<table:table-cell table:style-name="Heading2">
</table:table-cell>
<table:table-cell table:style-name="Heading2">
</table:table-cell>
<table:table-cell table:style-name="Heading2">
</table:table-cell>
<table:table-cell table:style-name="Heading2">
</table:table-cell>
<table:table-cell table:style-name="Heading2">
</table:table-cell>
<table:table-cell table:style-name="Heading2">
</table:table-cell>
<table:table-cell table:style-name="Heading2">
</table:table-cell>
<table:table-cell table:style-name="Heading2">
</table:table-cell>
</table:table-row>
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'sector'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question5-5.1-EQS-1'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question5-5.1-EQS-2'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question5-5.1-EQS-3'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'link-to-permit'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'perm-issue-date'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'inst-name'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'latitude'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'longitude'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'add-measures'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
</table:table-row>
<xsl:for-each select="./EnvironmentalQualityStandards">
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:call-template name="getCDLValue">
<xsl:with-param name="elem" select="./q_5_1_sector"/>
<xsl:with-param name="codelistURL" select="$SectorCodeURL"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:for-each select="./EnvironmentalCompartments/q_5_1_type">
<xsl:call-template name="getCDLValue">
<xsl:with-param name="elem" select="."/>
<xsl:with-param name="codelistURL" select="$CompartmentCodeURL"/>
</xsl:call-template><xsl:if test=". != ''"><xsl:text>, </xsl:text></xsl:if>
</xsl:for-each>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:for-each select="./EQSPullutants/q_5_1_pollutant">
<xsl:text disable-output-escaping="yes"> </xsl:text>
<xsl:call-template name="getCDLValueEQS">
<xsl:with-param name="elem" select="."/>
</xsl:call-template><xsl:text disable-output-escaping="yes">, </xsl:text>
</xsl:for-each>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:call-template name="getCDLValue">
<xsl:with-param name="elem" select="./q_5_1_waterReson"/>
<xsl:with-param name="codelistURL" select="$ReasonsCodeURL"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:value-of select="./q_5_1_linkToPermit"/>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:value-of select="./q_5_1_permitIssueDate"/>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:value-of select="./q_5_1_installationName"/>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="number-cell" table:value-type="number">
<text:p>
<xsl:value-of select="./q_5_1_latitude"/>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="number-cell" table:value-type="number">
<text:p>
<xsl:value-of select="./q_5_1_longitude"/>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:value-of select="./q_5_1_additionalMeasures"/>
</text:p>
</table:table-cell>
</table:table-row>
</xsl:for-each>
<table:table-row table:default-cell-value-type="string" >
</table:table-row>
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question5-5.2'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
</table:table-row>
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:call-template name="getYesNoValue">
<xsl:with-param name="elem" select="./StricterPermitConditions/q_5_2_stricterPermitConditions"/>
</xsl:call-template>
</text:p>
</table:table-cell>
</table:table-row>
<xsl:if test="./StricterPermitConditions/q_5_2_stricterPermitConditions = true()">
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'inst-name'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'link-to-permit'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'perm-issue-date'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'latitude'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'longitude'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'sector'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'o-situation'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'i-o-specify'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
</table:table-row>
<xsl:for-each select="./StricterPermitConditions/Example">
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:value-of select="./q_5_2_installationName"/>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:value-of select="./q_5_2_linkToPermit"/>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:value-of select="./q_5_2_permitIssueDate"/>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="number-cell" table:value-type="number">
<text:p>
<xsl:value-of select="./q_5_2_latitude"/>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="number-cell" table:value-type="number">
<text:p>
<xsl:value-of select="./q_5_2_longitude"/>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:call-template name="getCDLValue">
<xsl:with-param name="elem" select="./q_5_2_sector"/>
<xsl:with-param name="codelistURL" select="$SectorCodeURL"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:call-template name="getCDLValue">
<xsl:with-param name="elem" select="./q_5_2_otherSituation"/>
<xsl:with-param name="codelistURL" select="$OtherSituationsCodeURL"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:value-of select="./q_5_2_otherSituationSpecify"/>
</text:p>
</table:table-cell>
</table:table-row>
</xsl:for-each>
</xsl:if>
</table:table-rows>
</table:table>
<table:table>
<xsl:attribute name="table:name">
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question6-heading'"/>
</xsl:call-template>
</xsl:attribute>
<table:table-columns>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading">
</table:table-column>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading">
</table:table-column>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading">
</table:table-column>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading">
</table:table-column>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading">
</table:table-column>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading">
</table:table-column>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading">
</table:table-column>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading">
</table:table-column>
</table:table-columns>
<table:table-rows>
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question6-6.1-6.2'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
</table:table-cell>
<table:table-cell table:style-name="Heading2">
</table:table-cell>
<table:table-cell table:style-name="Heading2">
</table:table-cell>
<table:table-cell table:style-name="Heading2">
</table:table-cell>
<table:table-cell table:style-name="Heading2">
</table:table-cell>
<table:table-cell table:style-name="Heading2">
</table:table-cell>
<table:table-cell table:style-name="Heading2">
</table:table-cell>
</table:table-row>
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:call-template name="getYesNoValue">
<xsl:with-param name="elem" select="./PermitConditionsAbsenseBAT/q_6_permitConditionsNotInBATc"/>
</xsl:call-template>
</text:p>
</table:table-cell>
</table:table-row>
<xsl:if test="./PermitConditionsAbsenseBAT/q_6_permitConditionsNotInBATc = true()">
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'sector'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question6-sub-2'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question6-sub-3'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question6-sub-4'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question6-sub-5'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question6-sub-6'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question6-sub-7a'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question6-sub-7b'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
</table:table-row>
<xsl:for-each select="./PermitConditionsAbsenseBAT/SettingPermitConditions">
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:for-each select="./Sectors/sector">
<xsl:call-template name="getCDLValue">
<xsl:with-param name="elem" select="."/>
<xsl:with-param name="codelistURL" select="$SectorCodeURL"/>
</xsl:call-template><xsl:if test=". != ''"><xsl:text>, </xsl:text></xsl:if>
</xsl:for-each>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:call-template name="getCDLValue">
<xsl:with-param name="elem" select="./q_6_basisOfPermitConditions"/>
<xsl:with-param name="codelistURL" select="$PermitConditionsBasisTypeCodeURL"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:value-of select="./q_6_procedureDescription"/>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:value-of select="./q_6_BATnotDescribed"/>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:value-of select="./q_6_explanation"/>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:value-of select="./q_6_supplementaryInfo"/>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:for-each select="./Criteria/criterion">
<xsl:text disable-output-escaping="yes"> </xsl:text>
<xsl:call-template name="getCDLValue">
<xsl:with-param name="elem" select="."/>
<xsl:with-param name="codelistURL" select="$CriteriaCodeURL"/>
</xsl:call-template><xsl:text disable-output-escaping="yes">, </xsl:text>
</xsl:for-each>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:value-of select="./q_6_criteriaDetails"/>
</text:p>
</table:table-cell>
</table:table-row>
</xsl:for-each>
</xsl:if>
</table:table-rows>
</table:table>
<table:table>
<xsl:attribute name="table:name">
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question7-heading'"/>
</xsl:call-template>
</xsl:attribute>
<table:table-columns>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading">
</table:table-column>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading">
</table:table-column>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading">
</table:table-column>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading">
</table:table-column>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading">
</table:table-column>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading">
</table:table-column>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading">
</table:table-column>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading">
</table:table-column>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading">
</table:table-column>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading">
</table:table-column>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading">
</table:table-column>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading">
</table:table-column>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading">
</table:table-column>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading">
</table:table-column>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading">
</table:table-column>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading">
</table:table-column>
</table:table-columns>
<table:table-rows>
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question7-7.1'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2"></table:table-cell>
<table:table-cell table:style-name="Heading2"></table:table-cell>
<table:table-cell table:style-name="Heading2"></table:table-cell>
<table:table-cell table:style-name="Heading2"></table:table-cell>
<table:table-cell table:style-name="Heading2"></table:table-cell>
<table:table-cell table:style-name="Heading2"></table:table-cell>
<table:table-cell table:style-name="Heading2"></table:table-cell>
<table:table-cell table:style-name="Heading2"></table:table-cell>
<table:table-cell table:style-name="Heading2"></table:table-cell>
<table:table-cell table:style-name="Heading2"></table:table-cell>
<table:table-cell table:style-name="Heading2"></table:table-cell>
<table:table-cell table:style-name="Heading2"></table:table-cell>
<table:table-cell table:style-name="Heading2"></table:table-cell>
<table:table-cell table:style-name="Heading2"></table:table-cell>
<table:table-cell table:style-name="Heading2"></table:table-cell>
</table:table-row>
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:call-template name="getYesNoValue">
<xsl:with-param name="elem" select="./DifferentELVs/q_7_1_article153b_provisionUsed"/>
</xsl:call-template>
</text:p>
</table:table-cell>
</table:table-row>
<xsl:if test="./DifferentELVs/q_7_1_article153b_provisionUsed = true()">
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'sector'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question7-7.1-numOfInst'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'inst-name'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question7-7.1-envComp'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question7-7.1-monFreq'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question7-7.1-poll-par'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question7-7.1-diffLev'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'unit'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'av-period'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question7-7.1-RefOxygen'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question7-7.1-values'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question7-7.1-periods'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question7-7.1-refCond'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
</table:table-row>
<xsl:for-each select="./DifferentELVs/Provision_Article_15_3b">
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:call-template name="getCDLValue">
<xsl:with-param name="elem" select="./q_7_1_sector"/>
<xsl:with-param name="codelistURL" select="$SectorCodeURL"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="number-cell" table:value-type="number">
<text:p>
<xsl:value-of select="./q_7_1_numOfInstallations"/>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:value-of select="./q_7_1_installationName"/>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:call-template name="getCDLValue">
<xsl:with-param name="elem" select="./q_7_1_environmentalCompartment"/>
<xsl:with-param name="codelistURL" select="$CompartmentCodeURL"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:call-template name="getCDLValue">
<xsl:with-param name="elem" select="./q_7_1_monitoringFrequency"/>
<xsl:with-param name="codelistURL" select="$AirMonitoringFrequencyCodeURL"/>
</xsl:call-template>
<xsl:call-template name="getCDLValue">
<xsl:with-param name="elem" select="./q_7_1_monitoringFrequency"/>
<xsl:with-param name="codelistURL" select="$WaterMonitoringFrequencyCodeURL"/>
</xsl:call-template><xsl:if test="./q_7_1_monitoringFrequencyOther != ''"><xsl:text>, </xsl:text></xsl:if>
<xsl:value-of select="./q_7_1_monitoringFrequencyOther"/>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:call-template name="getCDLValue">
<xsl:with-param name="elem" select="./q_7_1_pollutant"/>
<xsl:with-param name="codelistURL" select="$AirPollutantsGlassCodeURL"/>
</xsl:call-template>
<xsl:call-template name="getCDLValue">
<xsl:with-param name="elem" select="./q_7_1_pollutant"/>
<xsl:with-param name="codelistURL" select="$AirPollutantsIronSteelCodeURL"/>
</xsl:call-template>
<xsl:call-template name="getCDLValue">
<xsl:with-param name="elem" select="./q_7_1_pollutant"/>
<xsl:with-param name="codelistURL" select="$WaterPollutantsGlassCodeURL"/>
</xsl:call-template>
<xsl:call-template name="getCDLValue">
<xsl:with-param name="elem" select="./q_7_1_pollutant"/>
<xsl:with-param name="codelistURL" select="$WaterPollutantsIronSteelCodeURL"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="number-cell" table:value-type="number">
<text:p>
<xsl:value-of select="./q_7_1_differingLevel"/>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:call-template name="getCDLValue">
<xsl:with-param name="elem" select="./q_7_1_unit"/>
<xsl:with-param name="codelistURL" select="$UnitsCodeURL"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:call-template name="getCDLValue">
<xsl:with-param name="elem" select="./q_7_1_avgPeriod"/>
<xsl:with-param name="codelistURL" select="$AveragingPeriodCodeURL"/>
</xsl:call-template>
<xsl:value-of select="./q_7_1_avgPeriodOther"/>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="number-cell" table:value-type="number">
<text:p>
<xsl:call-template name="getCDLValue">
<xsl:with-param name="elem" select="./q_7_1_refConditionsOxygen"/>
<xsl:with-param name="codelistURL" select="$OxygenContentCodeURL"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:value-of select="./q_7_1_monitoringValues"/><xsl:text>, </xsl:text>
<xsl:call-template name="getCDLValue">
<xsl:with-param name="elem" select="./q_7_1_monitoringUnit"/>
<xsl:with-param name="codelistURL" select="$UnitsCodeURL"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:value-of select="./q_7_1_monitoringPeriodsOfTime"/><xsl:text>, </xsl:text>
<xsl:call-template name="getCDLValue">
<xsl:with-param name="elem" select="./q_7_1_monitoringAvgPeriod"/>
<xsl:with-param name="codelistURL" select="$AveragingPeriodCodeURL"/>
</xsl:call-template><xsl:text>, </xsl:text>
<xsl:value-of select="./q_7_1_monitoringAvgPeriodOther"/>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:value-of select="./q_7_1_monitoringRefConditions"/><xsl:text>, </xsl:text>
<xsl:call-template name="getCDLValue">
<xsl:with-param name="elem" select="./q_7_1_monitoringRefConditionsOxygen"/>
<xsl:with-param name="codelistURL" select="$OxygenContentCodeURL"/>
</xsl:call-template>
</text:p>
</table:table-cell>
</table:table-row>
</xsl:for-each>
</xsl:if>
<table:table-row table:default-cell-value-type="string" >
</table:table-row>
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question7-7.2-1'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
</table:table-row>
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question7-7.2-2'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
</table:table-row>
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question7-7.2-3'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
</table:table-row>
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question7-7.2a'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
</table:table-row>
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:call-template name="getYesNoValue">
<xsl:with-param name="elem" select="./Derogations/q_7_2_derogationsGranted"/>
</xsl:call-template>
</text:p>
</table:table-cell>
</table:table-row>
<xsl:if test="./Derogations/q_7_2_derogationsGranted = true()">
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question7-7.2b'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question7-7.2c'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="number-cell" table:value-type="number">
<text:p>
<xsl:value-of select="./Derogations/q_7_2_numOfInstallations"/>
</text:p>
</table:table-cell>
</table:table-row>
<table:table-row table:default-cell-value-type="string" >
</table:table-row>
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question7-7.2d'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
</table:table-row>
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question7-7.2e'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
</table:table-row>
<table:table-row table:default-cell-value-type="string" >
</table:table-row>
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'link-to-permit'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'perm-issue-date'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
</table:table-row>
<xsl:for-each select="./Derogations/Derogation_A">
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:for-each select="./PermitLinks/q_7_2_link">
<xsl:text> </xsl:text>
<xsl:value-of select="."/><xsl:if test=". != ''"><xsl:text disable-output-escaping="yes">, </xsl:text></xsl:if>
</xsl:for-each>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:value-of select="./q_7_2_permitIssueDate"/>
</text:p>
</table:table-cell>
</table:table-row>
</xsl:for-each>
<table:table-row table:default-cell-value-type="string" >
</table:table-row>
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question7-7.2h'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
</table:table-row>
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'sector'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'inst-name'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'perm-issue-date'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'latitude'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'longitude'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
</table:table-row>
<xsl:for-each select="./Derogations/Derogation_B">
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:call-template name="getCDLValue">
<xsl:with-param name="elem" select="./q_7_2_sector"/>
<xsl:with-param name="codelistURL" select="$SectorCodeURL"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:value-of select="./q_7_2_installationName"/>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:value-of select="./q_7_2_permitIssueDate"/>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="number-cell" table:value-type="number">
<text:p>
<xsl:value-of select="./q_7_2_latitude"/>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="number-cell" table:value-type="number">
<text:p>
<xsl:value-of select="./q_7_2_longitude"/>
</text:p>
</table:table-cell>
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading3">
<text:p>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question7-7.2-emission-sources-benef'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question7-7.2-BAT-concl-heading'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question7-7.2-BAT-concl'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question7-7.2-BAT-emission-levels'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'pollutant'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'compartment'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'level'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'unit'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'av-period'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'ref-cond'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'trans-period'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
</table:table-row>
<xsl:for-each select="./EmissionSource">
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading3">
<text:p>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:value-of select="./q_7_2_source"/>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:if test="../q_7_2_sector = 'GLS'">
<xsl:call-template name="getCDLValue">
<xsl:with-param name="elem" select="./SourceSpecification/q_7_2_BATheading"/>
<xsl:with-param name="codelistURL" select="$BATGlassHeadingCodeURL"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="../q_7_2_sector = 'IS'">
<xsl:call-template name="getCDLValue">
<xsl:with-param name="elem" select="./SourceSpecification/q_7_2_BATheading"/>
<xsl:with-param name="codelistURL" select="$BATIronSteelHeadingCodeURL"/>
</xsl:call-template>
</xsl:if>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:if test="../q_7_2_sector = 'GLS'">
<xsl:call-template name="getCDLValue">
<xsl:with-param name="elem" select="./SourceSpecification/q_7_2_BATconclusion"/>
<xsl:with-param name="codelistURL" select="$BATGlassCodeURL"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="../q_7_2_sector = 'IS'">
<xsl:call-template name="getCDLValue">
<xsl:with-param name="elem" select="./SourceSpecification/q_7_2_BATconclusion"/>
<xsl:with-param name="codelistURL" select="$BATIronSteelCodeURL"/>
</xsl:call-template>
</xsl:if>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:if test="../q_7_2_sector = 'GLS'">
<xsl:call-template name="getCDLValue">
<xsl:with-param name="elem" select="./SourceSpecification/q_7_2_BATAEL"/>
<xsl:with-param name="codelistURL" select="$BATAELGlassCodeURL"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="../q_7_2_sector = 'IS'">
<xsl:call-template name="getCDLValue">
<xsl:with-param name="elem" select="./SourceSpecification/q_7_2_BATAEL"/>
<xsl:with-param name="codelistURL" select="$BATAELIronSteelCodeURL"/>
</xsl:call-template>
</xsl:if>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:if test="../q_7_2_sector = 'GLS'">
<xsl:call-template name="getCDLValue">
<xsl:with-param name="elem" select="./SourceSpecification/q_7_2_pollutant"/>
<xsl:with-param name="codelistURL" select="$AirPollutantsGlassCodeURL"/>
</xsl:call-template>
<xsl:call-template name="getCDLValue">
<xsl:with-param name="elem" select="./SourceSpecification/q_7_2_pollutant"/>
<xsl:with-param name="codelistURL" select="$WaterPollutantsGlassCodeURL"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="../q_7_2_sector = 'IS'">
<xsl:call-template name="getCDLValue">
<xsl:with-param name="elem" select="./SourceSpecification/q_7_2_pollutant"/>
<xsl:with-param name="codelistURL" select="$AirPollutantsIronSteelCodeURL"/>
</xsl:call-template>
<xsl:call-template name="getCDLValue">
<xsl:with-param name="elem" select="./SourceSpecification/q_7_2_pollutant"/>
<xsl:with-param name="codelistURL" select="$WaterPollutantsIronSteelCodeURL"/>
</xsl:call-template>
</xsl:if>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:call-template name="getCDLValue">
<xsl:with-param name="elem" select="./SourceSpecification/q_7_2_compartment"/>
<xsl:with-param name="codelistURL" select="$CompartmentCodeURL"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="number-cell" table:value-type="number">
<text:p>
<xsl:value-of select="./ActualELV/q_7_2_level"/>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:call-template name="getCDLValue">
<xsl:with-param name="elem" select="./ActualELV/q_7_2_unit"/>
<xsl:with-param name="codelistURL" select="$UnitsCodeURL"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:call-template name="getCDLValue">
<xsl:with-param name="elem" select="./ActualELV/q_7_2_avgPeriod"/>
<xsl:with-param name="codelistURL" select="$AveragingPeriodCodeURL"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="number-cell" table:value-type="number">
<text:p>
<xsl:value-of select="./ActualELV/q_7_2_refConditions"/>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:if test="./TransitionalPeriod/q_7_2_nextPermitReview != '' and ./TransitionalPeriod/q_7_2_nextPermitReview = true()">
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'next-permit-review'"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="./TransitionalPeriod/q_7_2_nextPermitReview != '' and ./TransitionalPeriod/q_7_2_nextPermitReview = false()">
<xsl:value-of select="./TransitionalPeriod/q_7_2_expDate"/>
</xsl:if>
</text:p>
</table:table-cell>
</table:table-row>
</xsl:for-each>
</table:table-row>
</xsl:for-each>
</xsl:if>
<table:table-row table:default-cell-value-type="string" >
</table:table-row>
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question7-7.3'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
</table:table-row>
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:call-template name="getYesNoValue">
<xsl:with-param name="elem" select="./TemporaryDerogations/q_7_3_temporaryDerogations"/>
</xsl:call-template>
</text:p>
</table:table-cell>
</table:table-row>
<xsl:if test="./TemporaryDerogations/q_7_3_temporaryDerogations = true()">
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'sector'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question7-7.3-table-emerging-techniques'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
</table:table-row>
<xsl:for-each select="./TemporaryDerogations/EmergingTechnique">
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:call-template name="getCDLValue">
<xsl:with-param name="elem" select="./q_7_3_sector"/>
<xsl:with-param name="codelistURL" select="$SectorCodeURL"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:value-of select="./q_7_3_description"/>
</text:p>
</table:table-cell>
</table:table-row>
</xsl:for-each>
</xsl:if>
</table:table-rows>
</table:table>
<table:table>
<xsl:attribute name="table:name">
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question8-heading'"/>
</xsl:call-template>
</xsl:attribute>
<table:table-columns>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading">
</table:table-column>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading">
</table:table-column>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading">
</table:table-column>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading">
</table:table-column>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading">
</table:table-column>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading">
</table:table-column>
</table:table-columns>
<table:table-rows>
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question8-8.1'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2"></table:table-cell>
<table:table-cell table:style-name="Heading2"></table:table-cell>
<table:table-cell table:style-name="Heading2"></table:table-cell>
<table:table-cell table:style-name="Heading2"></table:table-cell>
<table:table-cell table:style-name="Heading2"></table:table-cell>
</table:table-row>
<table:table-row table:default-cell-value-type="string" >
</table:table-row>
<xsl:for-each select="./MonitoringFrequencies">
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question8-8.1-selSector'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:call-template name="getCDLValue">
<xsl:with-param name="elem" select="q_8_1_sector"/>
<xsl:with-param name="codelistURL" select="$SectorCodeURL"/>
</xsl:call-template>
</text:p>
</table:table-cell>
</table:table-row>
<xsl:for-each select="./EmissionType">
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:if test="q_8_1_emissionType = '1AIR'">
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question8-8.1a'"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="q_8_1_emissionType = '2W'">
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question8-8.1b'"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="q_8_1_emissionType = '3SL'">
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question8-8.1d'"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="q_8_1_emissionType = '4GW'">
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question8-8.1c'"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="q_8_1_emissionType = '5O'">
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question8-8.1e'"/>
</xsl:call-template>
</xsl:if>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:if test="q_8_1_emissionType = '1AIR'">
<xsl:call-template name="getYesNoValue">
<xsl:with-param name="elem" select="../q_8_1_airEmission"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="q_8_1_emissionType = '2W'">
<xsl:call-template name="getYesNoValue">
<xsl:with-param name="elem" select="../q_8_1_waterEmission"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="q_8_1_emissionType = '3SL'">
<xsl:call-template name="getYesNoValue">
<xsl:with-param name="elem" select="../q_8_1_soilEmission"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="q_8_1_emissionType = '4GW'">
<xsl:call-template name="getYesNoValue">
<xsl:with-param name="elem" select="../q_8_1_groundWaterEmission"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="q_8_1_emissionType = '5O'">
<xsl:call-template name="getYesNoValue">
<xsl:with-param name="elem" select="../q_8_1_otherParameters"/>
</xsl:call-template>
</xsl:if>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:if test="q_8_1_emissionType = '1AIR'">
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question8-8.1a-b-options-1'"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="q_8_1_emissionType = '2W'">
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question8-8.1a-b-options-1'"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="q_8_1_emissionType = '3SL'">
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question8-8.1c-d-options-1'"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="q_8_1_emissionType = '4GW'">
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question8-8.1c-d-options-1'"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="q_8_1_emissionType = '5O'">
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question8-8.1e-options-1'"/>
</xsl:call-template>
</xsl:if>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:if test="q_8_1_emissionType = '1AIR'">
<xsl:call-template name="getYesNoValue">
<xsl:with-param name="elem" select="./q_8_1_frequenciesUsed"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="q_8_1_emissionType = '2W'">
<xsl:call-template name="getYesNoValue">
<xsl:with-param name="elem" select="./q_8_1_frequenciesUsed"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="q_8_1_emissionType = '3SL'">
<xsl:call-template name="getYesNoValue">
<xsl:with-param name="elem" select="./q_8_1_frequenciesUsed"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="q_8_1_emissionType = '4GW'">
<xsl:call-template name="getYesNoValue">
<xsl:with-param name="elem" select="./q_8_1_frequenciesUsed"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="q_8_1_emissionType = '5O'">
<xsl:call-template name="getYesNoValue">
<xsl:with-param name="elem" select="./q_8_1_frequenciesUsed"/>
</xsl:call-template>
</xsl:if>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:if test="q_8_1_emissionType = '1AIR'">
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question8-8.1a-b-options-2'"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="q_8_1_emissionType = '2W'">
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question8-8.1a-b-options-2'"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="q_8_1_emissionType = '3SL'">
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question8-8.1c-d-options-2'"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="q_8_1_emissionType = '4GW'">
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question8-8.1c-d-options-2'"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="q_8_1_emissionType = '5O'">
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question8-8.1e-options-2'"/>
</xsl:call-template>
</xsl:if>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="number-cell" table:value-type="number">
<text:p>
<xsl:if test="q_8_1_emissionType = '1AIR'">
<xsl:value-of select="./q_8_1_numOfInstallations"/>
</xsl:if>
<xsl:if test="q_8_1_emissionType = '2W'">
<xsl:value-of select="./q_8_1_numOfInstallations"/>
</xsl:if>
<xsl:if test="q_8_1_emissionType = '3SL'">
<xsl:value-of select="./q_8_1_numOfInstallations"/>
</xsl:if>
<xsl:if test="q_8_1_emissionType = '4GW'">
<xsl:value-of select="./q_8_1_numOfInstallations"/>
</xsl:if>
<xsl:if test="q_8_1_emissionType = '5O'">
<xsl:value-of select="./q_8_1_numOfInstallations"/>
</xsl:if>
</text:p>
</table:table-cell>
</table:table-row>
</xsl:for-each>
</xsl:for-each>
<table:table-row table:default-cell-value-type="string" >
</table:table-row>
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question8-8.2'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
</table:table-row>
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'sector'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'description'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
</table:table-row>
<xsl:for-each select="./MonitoringBATUsage/BATUsageDescription">
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:call-template name="getCDLValue">
<xsl:with-param name="elem" select="./sector"/>
<xsl:with-param name="codelistURL" select="$SectorCodeURL"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:value-of select="./description"/>
</text:p>
</table:table-cell>
</table:table-row>
</xsl:for-each>
</table:table-rows>
</table:table>
<table:table>
<xsl:attribute name="table:name">
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question9-heading'"/>
</xsl:call-template>
</xsl:attribute>
<table:table-columns>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading"></table:table-column>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading"></table:table-column>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading"></table:table-column>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading"></table:table-column>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading"></table:table-column>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading"></table:table-column>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading"></table:table-column>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading"></table:table-column>
<table:table-column table:default-cell-value-type="string" table:default-cell-style-name="long-string-heading"></table:table-column>
</table:table-columns>
<table:table-rows>
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question9-9.1'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2"></table:table-cell>
<table:table-cell table:style-name="Heading2"></table:table-cell>
<table:table-cell table:style-name="Heading2"></table:table-cell>
<table:table-cell table:style-name="Heading2"></table:table-cell>
<table:table-cell table:style-name="Heading2"></table:table-cell>
<table:table-cell table:style-name="Heading2"></table:table-cell>
<table:table-cell table:style-name="Heading2"></table:table-cell>
<table:table-cell table:style-name="Heading2"></table:table-cell>
</table:table-row>
<table:table-row table:default-cell-value-type="string" >
</table:table-row>
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'sector'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'inst-name'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'latitude'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'longitude'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question9-9.1-link-to-active-permit'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'perm-issue-date'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question9-9.1-reasons'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question9-9.1-date'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question9-9.1-comments'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
</table:table-row>
<xsl:for-each select="./PermitReconsiderations">
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:for-each select="./Sectors/sector">
<xsl:call-template name="getCDLValue">
<xsl:with-param name="elem" select="."/>
<xsl:with-param name="codelistURL" select="$SectorCodeURL"/>
</xsl:call-template><xsl:if test=". != ''"><xsl:text>, </xsl:text></xsl:if>
</xsl:for-each>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:value-of select="./q_9_installationName"/>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="number-cell" table:value-type="number">
<text:p>
<xsl:value-of select="./q_9_latitude"/>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="number-cell" table:value-type="number">
<text:p>
<xsl:value-of select="./q_9_longitude"/>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:value-of select="./q_9_linkToPermit"/>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:value-of select="./q_9_permitIssueDate"/>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:value-of select="./q_9_reasons"/>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:value-of select="./q_9_dateReconsideration"/>
</text:p>
</table:table-cell>
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:value-of select="./q_9_comments"/>
</text:p>
</table:table-cell>
</table:table-row>
</xsl:for-each>
</table:table-rows>
</table:table>
<table:table>
<xsl:attribute name="table:name">
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question10-heading'"/>
</xsl:call-template>
</xsl:attribute>
<table:table-rows>
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading2">
<text:p>
<xsl:call-template name="getLabel">
<xsl:with-param name="labelName" select="'question10-10.1'"/>
</xsl:call-template>
</text:p>
</table:table-cell>
</table:table-row>
<table:table-row table:default-cell-value-type="string" >
<table:table-cell table:style-name="Heading3">
<text:p>
<xsl:value-of select="./q_10_feedback"/>
</text:p>
</table:table-cell>
</table:table-row>
</table:table-rows>
</table:table>
<xsl:apply-templates/>
</office:body>
</office:document-content>
</xsl:template>
</xsl:stylesheet>
European Environment Agency
Kgs. Nytorv 6, DK-1050 Copenhagen K, Denmark