View stylesheet

XML schemas http://dd.eionet.europa.eu/schemas/id2011850eu-1.0/AirQualityReporting.xsd
Output type EXCEL
Description EXCEL Output
XSL file aqd10_excel.xsl (Last modified: 04 Apr 2016 09:49 )
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [
        <!ENTITY sep ";">
        <!ENTITY nl "&#xa;">
        <!ENTITY bom "&#xFEFF;">
        ]>
<xsl:stylesheet version="2.0"
                xmlns:ad="urn:x-inspire:specification:gmlas:Addresses:3.0"
                xmlns:am="http://inspire.ec.europa.eu/schemas/am/3.0"
                xmlns:am-ru="http://inspire.jrc.ec.europa.eu/schemas/am-ru/2.0"
                xmlns:aqd="http://dd.eionet.europa.eu/schemaset/id2011850eu-1.0"
                xmlns:base="http://inspire.ec.europa.eu/schemas/base/3.3"
                xmlns:base2="http://inspire.ec.europa.eu/schemas/base2/1.0"
                xmlns:ef="http://inspire.ec.europa.eu/schemas/ef/3.0"
                xmlns:fn="http://www.w3.org/2005/xpath-functions"
                xmlns:gco="http://www.isotc211.org/2005/gco"
                xmlns:gmd="http://www.isotc211.org/2005/gmd"
                xmlns:gml="http://www.opengis.net/gml/3.2"
                xmlns:gn="urn:x-inspire:specification:gmlas:GeographicalNames:3.0"
                xmlns:gsr="http://www.isotc211.org/2005/gsr"
                xmlns:gss="http://www.isotc211.org/2005/gss"
                xmlns:gts="http://www.isotc211.org/2005/gts"
                xmlns:om="http://www.opengis.net/om/2.0"
                xmlns:ompr="http://inspire.ec.europa.eu/schemas/ompr/2.0"
                xmlns:sam="http://www.opengis.net/sampling/2.0"
                xmlns:sams="http://www.opengis.net/samplingSpatial/2.0"
                xmlns:swe="http://www.opengis.net/swe/2.0"
                xmlns:xlink="http://www.w3.org/1999/xlink"
                xmlns:office="http://openoffice.org/2000/office"
                xmlns:table="http://openoffice.org/2000/table"
                xmlns:number="http://openoffice.org/2000/datastyle"
                xmlns:text="http://openoffice.org/2000/text"
                xmlns:xs="http://www.w3.org/2001/XMLSchema"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:style="http://openoffice.org/2000/style">
  <xsl:output method="xml"/>

  <xsl:variable name="language">en</xsl:variable>
  <xsl:variable name="labels" select="document('http://converters.eionet.europa.eu/xmlfile/aqd-labels.xml')"/>
  <xsl:variable name="schema" select="document('http://dd.eionet.europa.eu/schemas/aqd10/aqd10.xsd')/xs:schema"/>

  <xsl:template match="gml:FeatureCollection">
    <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="10pt" 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="short-string-heading" style:family="table-cell">
          <style:properties fo:text-align="left"
                            fo:font-size="10pt" style:column-width="2cm" fo:font-weight="bold" style:row-height="2cm" />
        </style:style>
        <style:style style:name="cell1" style:family="table-cell">
          <style:properties fo:text-align="left"
                            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="Heading2" style:family="table-cell">
          <style:properties fo:text-align="left"
                            fo:font-size="10pt" fo:font-weight="bold" style:column-width="5cm" 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="right"
                            fo:font-size="10pt" fo:font-weight="bold" 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>
        <!-- ZONE COMPETENT -->
        <xsl:if test="count(gml:featureMember/aqd:AQD_ReportingHeader/aqd:content/aqd:AQD_Zone) > 0 or
        count(gml:featureMember/aqd:AQD_Zone) > 0">
          <table:table>
            <xsl:attribute name="table:name"><xsl:text>CompetentAuthorities</xsl:text></xsl:attribute>
            <xsl:call-template name="zoneCompetent_headers"/>
            <table:table-rows>
              <xsl:for-each select="gml:featureMember/aqd:AQD_ReportingHeader/aqd:content/aqd:AQD_Zone">
                <xsl:call-template name="zoneCompetent_rows"/>
              </xsl:for-each>
              <xsl:for-each select="gml:featureMember/aqd:AQD_Zone">
                <xsl:call-template name="zoneCompetent_rows"/>
              </xsl:for-each>
            </table:table-rows>
          </table:table>
        </xsl:if>
        <!-- ZONE GENERAL -->
        <xsl:if test="count(gml:featureMember/aqd:AQD_ReportingHeader/aqd:content/aqd:AQD_Zone) > 0 or
        count(gml:featureMember/aqd:AQD_Zone) > 0">
          <table:table>
            <xsl:attribute name="table:name"><xsl:text>AirQualityZones</xsl:text></xsl:attribute>
            <xsl:call-template name="zoneGeneral_headers"/>
            <table:table-rows>
              <xsl:for-each select="gml:featureMember/aqd:AQD_ReportingHeader/aqd:content/aqd:AQD_Zone">
                <xsl:call-template name="zoneGeneral_rows"/>
              </xsl:for-each>
              <xsl:for-each select="gml:featureMember/aqd:AQD_Zone">
                <xsl:call-template name="zoneGeneral_rows"/>
              </xsl:for-each>
            </table:table-rows>
          </table:table>
        </xsl:if>
        <!-- ZONE POLLUTANTS -->
        <xsl:if test="count(gml:featureMember/aqd:AQD_ReportingHeader/aqd:content/aqd:AQD_Zone/aqd:pollutants) > 0 or
        count(gml:featureMember/aqd:AQD_Zone/aqd:pollutants) > 0">
          <table:table>
            <xsl:attribute name="table:name"><xsl:text>PollutantsAndProtectionTargets</xsl:text></xsl:attribute>
            <xsl:call-template name="zonePollutants_headers"/>
            <table:table-rows>
              <xsl:for-each select="gml:featureMember/aqd:AQD_ReportingHeader/aqd:content/aqd:AQD_Zone/aqd:pollutants">
                <xsl:call-template name="zonePollutants_rows"/>
              </xsl:for-each>
              <xsl:for-each select="gml:featureMember/aqd:AQD_Zone/aqd:pollutants">
                <xsl:call-template name="zonePollutants_rows"/>
              </xsl:for-each>
            </table:table-rows>
          </table:table>
        </xsl:if>
        <!-- SAMPLING POINT STATION -->
        <xsl:if test="count(gml:featureMember/aqd:AQD_ReportingHeader/aqd:content/aqd:AQD_Station) > 0 or
        count(gml:featureMember/aqd:AQD_Station) > 0">
          <table:table>
            <xsl:attribute name="table:name"><xsl:text>AirQualityStations</xsl:text></xsl:attribute>
            <xsl:call-template name="sampointStation_headers"/>
            <table:table-rows>
              <xsl:for-each select="gml:featureMember/aqd:AQD_ReportingHeader/aqd:content/aqd:AQD_Station">
                <xsl:call-template name="sampointStation_rows"/>
              </xsl:for-each>
              <xsl:for-each select="gml:featureMember/aqd:AQD_Station">
                <xsl:call-template name="sampointStation_rows"/>
              </xsl:for-each>
            </table:table-rows>
          </table:table>
        </xsl:if>
        <!-- SAMPLING POINT SAMPLE -->
        <xsl:if test="count(gml:featureMember/aqd:AQD_ReportingHeader/aqd:content/aqd:AQD_Sample) > 0 or
        count(gml:featureMember/aqd:AQD_Sample) > 0">
          <table:table>
            <xsl:attribute name="table:name"><xsl:text>Sample</xsl:text></xsl:attribute>
            <xsl:call-template name="sampointSample_headers"/>
            <table:table-rows>
              <xsl:for-each select="gml:featureMember/aqd:AQD_ReportingHeader/aqd:content/aqd:AQD_Sample">
                <xsl:call-template name="sampointSample_rows"/>
              </xsl:for-each>
              <xsl:for-each select="gml:featureMember/aqd:AQD_Sample">
                <xsl:call-template name="sampointSample_rows"/>
              </xsl:for-each>
            </table:table-rows>
          </table:table>
        </xsl:if>
        <!-- SAMPLING POINT PROCESS -->
        <xsl:if test="count(gml:featureMember/aqd:AQD_ReportingHeader/aqd:content/aqd:AQD_SamplingPointProcess) > 0 or count(gml:featureMember/aqd:AQD_SamplingPointProcess) > 0">
          <table:table>
            <xsl:attribute name="table:name"><xsl:text>SamplingProcesses</xsl:text></xsl:attribute>
            <xsl:call-template name="sampointProcess_headers"/>
            <table:table-rows>
              <xsl:for-each select="gml:featureMember/aqd:AQD_ReportingHeader/aqd:content/aqd:AQD_SamplingPointProcess">
                <xsl:call-template name="sampointProcess_rows"/>
              </xsl:for-each>
              <xsl:for-each select="gml:featureMember/aqd:AQD_SamplingPointProcess">
                <xsl:call-template name="sampointProcess_rows"/>
              </xsl:for-each>
            </table:table-rows>
          </table:table>
        </xsl:if>
        <!-- SAMPLING POINT NETWORK -->
        <xsl:if test="count(gml:featureMember/aqd:AQD_ReportingHeader/aqd:content/aqd:AQD_Network) > 0 or
        count(gml:featureMember/aqd:AQD_Network) > 0">
          <table:table>
            <xsl:attribute name="table:name"><xsl:text>AirQualityNetworks</xsl:text></xsl:attribute>
            <xsl:call-template name="sampointNetwork_headers"/>
            <table:table-rows>
              <xsl:for-each select="gml:featureMember/aqd:AQD_ReportingHeader/aqd:content/aqd:AQD_Network">
                <xsl:call-template name="sampointNetwork_rows"/>
              </xsl:for-each>
              <xsl:for-each select="gml:featureMember/aqd:AQD_Network">
                <xsl:call-template name="sampointNetwork_rows"/>
              </xsl:for-each>
            </table:table-rows>
          </table:table>
        </xsl:if>
        <!-- SAMPLING POINT MODEL -->
        <xsl:if test="count(gml:featureMember/aqd:AQD_ReportingHeader/aqd:content/aqd:AQD_Model) > 0 or
        count(gml:featureMember/aqd:AQD_Model) > 0">
          <table:table>
            <xsl:attribute name="table:name"><xsl:text>AirQualityModels</xsl:text></xsl:attribute>
            <xsl:call-template name="sampointModel_headers"/>
            <table:table-rows>
              <xsl:for-each select="gml:featureMember/aqd:AQD_ReportingHeader/aqd:content/aqd:AQD_Model">
                <xsl:for-each select="ef:observingCapability">
                  <xsl:call-template name="sampointModel_observing"/>
                </xsl:for-each>
                <xsl:if test="count(aqd:environmentalObjective) > 1">
                  <xsl:for-each select="aqd:environmentalObjective">
                    <xsl:call-template name="sampointModel_environment"/>
                  </xsl:for-each>
                </xsl:if>
              </xsl:for-each>
              <xsl:for-each select="gml:featureMember/aqd:AQD_Model">
                <xsl:for-each select="ef:observingCapability">
                  <xsl:call-template name="sampointModel_observing"/>
                </xsl:for-each>
                <xsl:if test="count(aqd:environmentalObjective) > 1">
                  <xsl:for-each select="aqd:environmentalObjective">
                    <xsl:call-template name="sampointModel_environment"/>
                  </xsl:for-each>
                </xsl:if>
              </xsl:for-each>
            </table:table-rows>
          </table:table>
        </xsl:if>
        <!-- SAMPLING POINT EMISSIONS -->
        <xsl:if test="count(gml:featureMember/aqd:AQD_ReportingHeader/aqd:content/aqd:AQD_SamplingPoint) > 0 or
        count(gml:featureMember/aqd:AQD_SamplingPoint) > 0">
          <table:table>
            <xsl:attribute name="table:name"><xsl:text>EmissionConditions</xsl:text></xsl:attribute>
            <xsl:call-template name="sampointEmissions_headers"/>
            <table:table-rows>
              <xsl:for-each select="gml:featureMember/aqd:AQD_ReportingHeader/aqd:content/aqd:AQD_SamplingPoint/ef:observingCapability">
                <xsl:call-template name="sampointEmissions_rows"/>
              </xsl:for-each>
              <xsl:for-each select="gml:featureMember/aqd:AQD_SamplingPoint/ef:observingCapability">
                <xsl:call-template name="sampointEmissions_rows"/>
              </xsl:for-each>
            </table:table-rows>
          </table:table>
        </xsl:if>
        <!-- SAMPLING POINT DISPERSION -->
        <xsl:if test="count(gml:featureMember/aqd:AQD_ReportingHeader/aqd:content/aqd:AQD_Station) > 0 or
        count(gml:featureMember/aqd:AQD_Station) > 0">
          <table:table>
            <xsl:attribute name="table:name"><xsl:text>DispersionConditions</xsl:text></xsl:attribute>
            <xsl:call-template name="sampointDispersion_headers"/>
            <table:table-rows>
              <xsl:for-each select="gml:featureMember/aqd:AQD_ReportingHeader/aqd:content/aqd:AQD_Station">
                <xsl:call-template name="sampointDispersion_rows"/>
              </xsl:for-each>
              <xsl:for-each select="gml:featureMember/aqd:AQD_Station">
                <xsl:call-template name="sampointDispersion_rows"/>
              </xsl:for-each>
            </table:table-rows>
          </table:table>
        </xsl:if>
        <!-- SAMPLING POINT MODEL PROCESS -->
        <xsl:if test="count(gml:featureMember/aqd:AQD_ReportingHeader/aqd:content/aqd:AQD_ModelProcess) > 0 or
        count(gml:featureMember/aqd:AQD_ModelProcess) > 0">
          <table:table>
            <xsl:attribute name="table:name"><xsl:text>ModelProcesses</xsl:text></xsl:attribute>
            <xsl:call-template name="sampointModelprocess_headers"/>
            <table:table-rows>
              <xsl:for-each select="gml:featureMember/aqd:AQD_ReportingHeader/aqd:content/aqd:AQD_ModelProcess">
                <xsl:call-template name="sampointModelprocess_rows"/>
              </xsl:for-each>
              <xsl:for-each select="gml:featureMember/aqd:AQD_ModelProcess">
                <xsl:call-template name="sampointModelprocess_rows"/>
              </xsl:for-each>
            </table:table-rows>
          </table:table>
        </xsl:if>
        <!-- SAMPLING POINT MODEL AREA -->
        <xsl:if test="count(gml:featureMember/aqd:AQD_ReportingHeader/aqd:content/aqd:AQD_ModelArea) > 0 or
        count(gml:featureMember/aqd:AQD_ModelArea) > 0">
          <table:table>
            <xsl:attribute name="table:name"><xsl:text>AQModelArea</xsl:text></xsl:attribute>
            <xsl:call-template name="sampointModelArea_headers"/>
            <table:table-rows>
              <xsl:for-each select="gml:featureMember/aqd:AQD_ReportingHeader/aqd:content/aqd:AQD_ModelArea">
                <xsl:call-template name="sampointModelArea_rows"/>
              </xsl:for-each>
              <xsl:for-each select="gml:featureMember/aqd:AQD_ModelArea">
                <xsl:call-template name="sampointModelArea_rows"/>
              </xsl:for-each>
            </table:table-rows>
          </table:table>
        </xsl:if>
        <!-- SAMPLING POINT GENERAL -->
        <xsl:if test="count(gml:featureMember/aqd:AQD_ReportingHeader/aqd:content/aqd:AQD_SamplingPoint) > 0 or
        count(gml:featureMember/aqd:AQD_SamplingPoint) > 0">
          <table:table>
            <xsl:attribute name="table:name"><xsl:text>SamplingPoints</xsl:text></xsl:attribute>
            <xsl:call-template name="sampointGeneral_headers"/>
            <table:table-rows>
              <xsl:for-each select="gml:featureMember/aqd:AQD_ReportingHeader/aqd:content/aqd:AQD_SamplingPoint">
                <xsl:choose>
                  <xsl:when test="count(aqd:environmentalObjective) > 0">
                    <xsl:call-template name="sampointGeneral_environment"/>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="sampointGeneral_observing"/>
                  </xsl:otherwise>
                </xsl:choose>
              </xsl:for-each>
              <xsl:for-each select="gml:featureMember/aqd:AQD_SamplingPoint">
                <xsl:choose>
                  <xsl:when test="count(aqd:environmentalObjective) > 0">
                    <xsl:call-template name="sampointGeneral_environment"/>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="sampointGeneral_observing"/>
                  </xsl:otherwise>
                </xsl:choose>
              </xsl:for-each>
            </table:table-rows>
          </table:table>
        </xsl:if>
        <!-- ATTAINMENT PRELIM EXCEED-->
        <xsl:if test="count(gml:featureMember/aqd:AQD_ReportingHeader/aqd:content/aqd:AQD_Attainment/aqd:exceedanceDescriptionBase) > 0 or
        count(gml:featureMember/aqd:AQD_Attainment/aqd:exceedanceDescriptionBase) > 0">
          <table:table>
            <xsl:attribute name="table:name"><xsl:text>BaseExceedanceSituations</xsl:text></xsl:attribute>
            <xsl:call-template name="attainmentPrelimExceed_headers"/>
            <table:table-rows>
              <xsl:for-each select="gml:featureMember/aqd:AQD_ReportingHeader/aqd:content/aqd:AQD_Attainment/aqd:exceedanceDescriptionBase">
                <xsl:call-template name="attainmentPrelimExceed_rows"/>
              </xsl:for-each>
              <xsl:for-each select="gml:featureMember/aqd:AQD_Attainment/aqd:exceedanceDescriptionBase">
                <xsl:call-template name="attainmentPrelimExceed_rows"/>
              </xsl:for-each>
            </table:table-rows>
          </table:table>
        </xsl:if>
        <!-- ATTAINMENT PRELIM DESC ADM
        <xsl:if test="count(gml:featureMember/aqd:AQD_ReportingHeader/aqd:content/aqd:AQD_Attainment) > 0 or
        count(gml:featureMember/aqd:AQD_Attainment) > 0">
          <table:table>
            <xsl:attribute name="table:name"><xsl:text>ATTAINMENT PRELIM DESC ADM</xsl:text></xsl:attribute>
            <xsl:call-template name="attainmentPrelimdescAdm_headers"/>
            <table:table-rows>
              <xsl:for-each select="gml:featureMember/aqd:AQD_ReportingHeader/aqd:content/aqd:AQD_Attainment">
                <xsl:call-template name="attainmentPrelimdescAdm_rows"/>
              </xsl:for-each>
              <xsl:for-each select="gml:featureMember/aqd:AQD_Attainment">
                <xsl:call-template name="attainmentPrelimdescAdm_rows"/>
              </xsl:for-each>
            </table:table-rows>
          </table:table>
        </xsl:if>-->
        <!-- ATTAINMENT PRELIM DESC-->
        <xsl:if test="count(gml:featureMember/aqd:AQD_ReportingHeader/aqd:content/aqd:AQD_Attainment/aqd:exceedanceDescriptionBase) > 0 or
        count(gml:featureMember/aqd:AQD_Attainment/aqd:exceedanceDescriptionBase) > 0">
          <table:table>
            <xsl:attribute name="table:name"><xsl:text>BaseExceedanceDescription</xsl:text></xsl:attribute>
            <xsl:call-template name="attainmentPrelimdesc_headers"/>
            <table:table-rows>
              <xsl:for-each select="gml:featureMember/aqd:AQD_ReportingHeader/aqd:content/aqd:AQD_Attainment/aqd:exceedanceDescriptionBase">
                <xsl:call-template name="attainmentPrelimdesc_rows"/>
              </xsl:for-each>
              <xsl:for-each select="gml:featureMember/aqd:AQD_Attainment/aqd:exceedanceDescriptionBase">
                <xsl:call-template name="attainmentPrelimdesc_rows"/>
              </xsl:for-each>
            </table:table-rows>
          </table:table>
        </xsl:if>
        <!-- ATTAINMENT GENERAL-->
        <xsl:if test="count(gml:featureMember/aqd:AQD_ReportingHeader/aqd:content/aqd:AQD_Attainment) > 0 or
        count(gml:featureMember/aqd:AQD_Attainment) > 0">
          <table:table>
            <xsl:attribute name="table:name"><xsl:text>GeneralAttainmentInfo</xsl:text></xsl:attribute>
            <xsl:call-template name="attainmentGeneral_headers"/>
            <table:table-rows>
              <xsl:for-each select="gml:featureMember/aqd:AQD_ReportingHeader/aqd:content/aqd:AQD_Attainment">
                <xsl:call-template name="attainmentGeneral_rows"/>
              </xsl:for-each>
              <xsl:for-each select="gml:featureMember/aqd:AQD_Attainment">
                <xsl:call-template name="attainmentGeneral_rows"/>
              </xsl:for-each>
            </table:table-rows>
          </table:table>
        </xsl:if>
        <!-- ATTAINMENT FINAL EXCEED-->
        <xsl:if test="count(gml:featureMember/aqd:AQD_ReportingHeader/aqd:content/aqd:AQD_Attainment/aqd:exceedanceDescriptionFinal) > 0 or
        count(gml:featureMember/aqd:AQD_Attainment/aqd:exceedanceDescriptionFinal) > 0">
          <table:table>
            <xsl:attribute name="table:name"><xsl:text>FinalExceedanceSituations</xsl:text></xsl:attribute>
            <xsl:call-template name="attainmentFinalExceed_headers"/>
            <table:table-rows>
              <xsl:for-each select="gml:featureMember/aqd:AQD_ReportingHeader/aqd:content/aqd:AQD_Attainment/aqd:exceedanceDescriptionFinal">
                <xsl:call-template name="attainmentFinalExceed_rows"/>
              </xsl:for-each>
              <xsl:for-each select="gml:featureMember/aqd:AQD_Attainment/aqd:exceedanceDescriptionFinal">
                <xsl:call-template name="attainmentFinalExceed_rows"/>
              </xsl:for-each>
            </table:table-rows>
          </table:table>
        </xsl:if>
        <!-- ATTAINMENT FINAL DESC ADM
        <xsl:if test="count(gml:featureMember/aqd:AQD_ReportingHeader/aqd:content/aqd:AQD_Attainment) > 0 or
        count(gml:featureMember/aqd:AQD_Attainment) > 0">
          <table:table>
            <xsl:attribute name="table:name"><xsl:text>ATTAINMENT FINAL DESC ADM</xsl:text></xsl:attribute>
            <xsl:call-template name="attainmentFinaldescAdm_headers"/>
            <table:table-rows>
              <xsl:for-each select="gml:featureMember/aqd:AQD_ReportingHeader/aqd:content/aqd:AQD_Attainment">
                <xsl:call-template name="attainmentFinaldescAdm_rows"/>
              </xsl:for-each>
              <xsl:for-each select="gml:featureMember/aqd:AQD_Attainment">
                <xsl:call-template name="attainmentFinaldescAdm_rows"/>
              </xsl:for-each>
            </table:table-rows>
          </table:table>
        </xsl:if>-->
        <!-- ATTAINMENT FINAL DESC -->
        <xsl:if test="count(gml:featureMember/aqd:AQD_ReportingHeader/aqd:content/aqd:AQD_Attainment/aqd:exceedanceDescriptionFinal) > 0 or
        count(gml:featureMember/aqd:AQD_Attainment/aqd:exceedanceDescriptionFinal) > 0">
          <table:table>
            <xsl:attribute name="table:name"><xsl:text>FinalExceedanceDescription</xsl:text></xsl:attribute>
            <xsl:call-template name="attainmentFinaldesc_headers"/>
            <table:table-rows>
              <xsl:for-each select="gml:featureMember/aqd:AQD_ReportingHeader/aqd:content/aqd:AQD_Attainment/aqd:exceedanceDescriptionFinal">
                <xsl:call-template name="attainmentFinaldesc_rows"/>
              </xsl:for-each>
              <xsl:for-each select="gml:featureMember/aqd:AQD_Attainment/aqd:exceedanceDescriptionFinal">
                <xsl:call-template name="attainmentFinaldesc_rows"/>
              </xsl:for-each>
            </table:table-rows>
          </table:table>
        </xsl:if>
        <!-- ASSESS REGIME METHODS -->
        <xsl:if test="count(gml:featureMember/aqd:AQD_ReportingHeader/aqd:content/aqd:AQD_AssessmentRegime/aqd:assessmentMethods/aqd:AssessmentMethods) > 0 or
        count(gml:featureMember/aqd:AQD_AssessmentRegime/aqd:assessmentMethods/aqd:AssessmentMethods) > 0">
          <table:table>
            <xsl:attribute name="table:name"><xsl:text>AssessmentRegimeMethods</xsl:text></xsl:attribute>
            <xsl:call-template name="assessRegimeMethods_headers"/>
            <table:table-rows>
              <xsl:for-each select="gml:featureMember/aqd:AQD_ReportingHeader/aqd:content/aqd:AQD_AssessmentRegime/aqd:assessmentMethods/aqd:AssessmentMethods">
                <xsl:call-template name="assesRegimeMethods_rows"/>
              </xsl:for-each>
              <xsl:for-each select="gml:featureMember/aqd:AQD_AssessmentRegime/aqd:assessmentMethods/aqd:AssessmentMethods">
                <xsl:call-template name="assesRegimeMethods_rows"/>
              </xsl:for-each>
            </table:table-rows>
          </table:table>
        </xsl:if>
        <!-- ZoneMethodsRelation -->
        <xsl:if test="count(gml:featureMember/aqd:AQD_ReportingHeader/aqd:content/aqd:AQD_AssessmentRegime/aqd:assessmentMethods/aqd:AssessmentMethods) > 0 or
        count(gml:featureMember/aqd:AQD_AssessmentRegime/aqd:assessmentMethods/aqd:AssessmentMethods) > 0">
          <table:table>
            <xsl:attribute name="table:name"><xsl:text>ZoneMethodsRelation</xsl:text></xsl:attribute>
            <xsl:call-template name="zoneMethodsRelation_headers"/>
            <table:table-rows>
              <xsl:for-each select="gml:featureMember/aqd:AQD_ReportingHeader/aqd:content/aqd:AQD_AssessmentRegime/aqd:assessmentMethods/aqd:AssessmentMethods/aqd:samplingPointAssessmentMetadata">
                <xsl:call-template name="zoneMethodsRelation_rows"/>
              </xsl:for-each>
              <xsl:for-each select="gml:featureMember/aqd:AQD_AssessmentRegime/aqd:assessmentMethods/aqd:AssessmentMethods/aqd:samplingPointAssessmentMetadata">
                <xsl:call-template name="zoneMethodsRelation_rows"/>
              </xsl:for-each>

              <xsl:for-each select="gml:featureMember/aqd:AQD_ReportingHeader/aqd:content/aqd:AQD_AssessmentRegime/aqd:assessmentMethods/aqd:AssessmentMethods/aqd:modelAssessmentMetadata">
                <xsl:call-template name="zoneMethodsRelation_rows"/>
              </xsl:for-each>
              <xsl:for-each select="gml:featureMember/aqd:AQD_AssessmentRegime/aqd:assessmentMethods/aqd:AssessmentMethods/aqd:modelAssessmentMetadata">
                <xsl:call-template name="zoneMethodsRelation_rows"/>
              </xsl:for-each>
            </table:table-rows>
          </table:table>
        </xsl:if>
        <!-- ASSESS REGIME GENERAL -->
        <xsl:if test="count(gml:featureMember/aqd:AQD_ReportingHeader/aqd:content/aqd:AQD_AssessmentRegime) > 0 or count(gml:featureMember/aqd:AQD_AssessmentRegime) > 0">
          <table:table>
            <xsl:attribute name="table:name"><xsl:text>AssessmentRegimes</xsl:text></xsl:attribute>
            <xsl:call-template name="assessRegimeGeneral_headers"/>
            <table:table-rows>
              <xsl:for-each select="gml:featureMember/aqd:AQD_ReportingHeader/aqd:content/aqd:AQD_AssessmentRegime">
                <xsl:call-template name="assesRegimeGeneral_rows"/>
              </xsl:for-each>
              <xsl:for-each select="gml:featureMember/aqd:AQD_AssessmentRegime">
                <xsl:call-template name="assesRegimeGeneral_rows"/>
              </xsl:for-each>
            </table:table-rows>
          </table:table>
        </xsl:if>

        <!--XSLT for E1 ( E1a,E2a )-->
        <xsl:if test="count(gml:featureMember/aqd:AQD_ReportingHeader/aqd:content/om:OM_Observation) > 0 or count(gml:featureMember/om:OM_Observation) > 0">
          <table:table>
            <xsl:attribute name="table:name">
              <xsl:text>OM_Observation</xsl:text>
            </xsl:attribute>
            <xsl:call-template name="omObservation_headers"/>
            <table:table-rows>
              <xsl:for-each select="gml:featureMember/aqd:AQD_ReportingHeader/aqd:content/om:OM_Observation">
                <xsl:call-template name="omObservation_rows"/>
              </xsl:for-each>
              <xsl:for-each select="gml:featureMember/om:OM_Observation">
                <xsl:call-template name="omObservation_rows"/>
              </xsl:for-each>
            </table:table-rows>
          </table:table>
        </xsl:if>

        <!--(XSLT excel output for H dataflows) POLLUTANTS -->
        <xsl:if test="count(gml:featureMember/aqd:AQD_Plan)">
          <table:table>
            <xsl:attribute name="table:name">
              <xsl:text>AQPlan_allInfo</xsl:text>
            </xsl:attribute>
            <xsl:call-template name="AQPlan_allInfo_headers"/>
            <table:table-rows>
              <xsl:for-each select="gml:featureMember/aqd:AQD_Plan">
                <xsl:call-template name="AQPlan_allInfo_rows"/>
              </xsl:for-each>
            </table:table-rows>
          </table:table>
          <table:table>
            <xsl:attribute name="table:name">
              <xsl:text>Pollutant</xsl:text>
            </xsl:attribute>
            <xsl:call-template name="pollutant_headers"/>
            <table:table-rows>
              <xsl:for-each select="gml:featureMember/aqd:AQD_Plan">
                <xsl:call-template name="pollutant_rows"/>
              </xsl:for-each>
            </table:table-rows>
          </table:table>
          <table:table>
            <xsl:attribute name="table:name">
              <xsl:text>exceedanceSituation</xsl:text>
            </xsl:attribute>
            <xsl:call-template name="exceedanceSituation_headers"/>
            <table:table-rows>
              <xsl:for-each select="gml:featureMember/aqd:AQD_Plan">
                <xsl:call-template name="exceedanceSituation_rows"/>
              </xsl:for-each>
            </table:table-rows>
          </table:table>
        </xsl:if>

        <!-- XSLT excel output for I dataflow -->
        <xsl:if test="count(gml:featureMember/aqd:AQD_SourceApportionment)">
          <!-- I dataflow 1st tab (SourceApp) -->
          <table:table>
            <xsl:attribute name="table:name">
              <xsl:text>SourceApp_allInfo</xsl:text>
            </xsl:attribute>
            <xsl:call-template name="SourceApp_allInfo_headers"/>
            <table:table-rows>
              <xsl:for-each select="gml:featureMember/aqd:AQD_SourceApportionment">
                <xsl:call-template name="SourceApp_allInfo_rows"/>
              </xsl:for-each>
            </table:table-rows>
          </table:table>
          <!-- I dataflow 2nd tab (regionalBackground_) -->
          <table:table>
            <xsl:attribute name="table:name">
              <xsl:text>regionalBackground</xsl:text>
            </xsl:attribute>
            <xsl:call-template name="regionalBackground_allInfo_headers"/>
            <table:table-rows>
              <xsl:for-each select="gml:featureMember/aqd:AQD_SourceApportionment">
                <xsl:call-template name="regionalBackground_allInfo_rows"/>
              </xsl:for-each>
            </table:table-rows>
          </table:table>

          <!-- I dataflow 3rd tab (urbanBackground) -->
          <table:table>
            <xsl:attribute name="table:name">
              <xsl:text>urbanBackground</xsl:text>
            </xsl:attribute>
            <xsl:call-template name="urbanBackground_allInfo_headers"/>
            <table:table-rows>
              <xsl:for-each select="gml:featureMember/aqd:AQD_SourceApportionment">
                <xsl:call-template name="urbanBackground_allInfo_rows"/>
              </xsl:for-each>
            </table:table-rows>
          </table:table>


          <!-- I dataflow 4th tab (localIncrement) -->
          <table:table>
            <xsl:attribute name="table:name">
              <xsl:text>localIncrement</xsl:text>
            </xsl:attribute>
            <xsl:call-template name="localIncrement_allInfo_headers"/>
            <table:table-rows>
              <xsl:for-each select="gml:featureMember/aqd:AQD_SourceApportionment">
                <xsl:call-template name="localIncrement_allInfo_rows"/>
              </xsl:for-each>
            </table:table-rows>
          </table:table>


          <!-- I dataflow 5th tab -->
          <!-- I dataflow 4th tab (Exceedance) -->
          <table:table>
            <xsl:attribute name="table:name">
              <xsl:text>Exceedance</xsl:text>
            </xsl:attribute>
            <xsl:call-template name="Exceedance_allInfo_headers"/>
            <table:table-rows>
              <xsl:for-each select="gml:featureMember/aqd:AQD_SourceApportionment">
                <xsl:call-template name="Exceedance_allInfo_rows"/>
              </xsl:for-each>
            </table:table-rows>
          </table:table>

        </xsl:if>


        <!-- XSLT excel output for J dataflow -->
        <xsl:if test="count(gml:featureMember/aqd:AQD_EvaluationScenario)">

          <table:table>
            <xsl:attribute name="table:name">
              <xsl:text>EvaluationScenarios_all_info</xsl:text>
            </xsl:attribute>
            <xsl:call-template name="EvaluationScenarios_allInfo_headers"/>
            <table:table-rows>
              <xsl:for-each select="gml:featureMember/aqd:AQD_EvaluationScenario">
                <xsl:call-template name="EvaluationScenarios_allInfo_rows"/>
              </xsl:for-each>
            </table:table-rows>
          </table:table>

          <table:table>
            <xsl:attribute name="table:name">
              <xsl:text>BaselineScenario</xsl:text>
            </xsl:attribute>
            <xsl:call-template name="BaselineScenario_allInfo_headers"/>
            <table:table-rows>
              <xsl:for-each select="gml:featureMember/aqd:AQD_EvaluationScenario">
                <xsl:call-template name="BaselineScenario_allInfo_rows"/>
              </xsl:for-each>
            </table:table-rows>
          </table:table>

          <table:table>
            <xsl:attribute name="table:name">
              <xsl:text>BaselineMeasures</xsl:text>
            </xsl:attribute>
            <xsl:call-template name="BaselineMeasures_allInfo_headers"/>
            <table:table-rows>
              <xsl:for-each select="gml:featureMember/aqd:AQD_EvaluationScenario">
                <xsl:call-template name="BaselineMeasures_allInfo_rows"/>
              </xsl:for-each>
            </table:table-rows>
          </table:table>

          <table:table>
            <xsl:attribute name="table:name">
              <xsl:text>projectionScenario</xsl:text>
            </xsl:attribute>
            <xsl:call-template name="projectionScenario_allInfo_headers"/>
            <table:table-rows>
              <xsl:for-each select="gml:featureMember/aqd:AQD_EvaluationScenario">
                <xsl:call-template name="projectionScenario_allInfo_rows"/>
              </xsl:for-each>
            </table:table-rows>
          </table:table>

          <table:table>
            <xsl:attribute name="table:name">
              <xsl:text>ProjectionMeasures</xsl:text>
            </xsl:attribute>
            <xsl:call-template name="ProjectionMeasures_allInfo_headers"/>
            <table:table-rows>
              <xsl:for-each select="gml:featureMember/aqd:AQD_EvaluationScenario">
                <xsl:call-template name="ProjectionMeasures_allInfo_rows"/>
              </xsl:for-each>
            </table:table-rows>
          </table:table>


        </xsl:if>

        <!-- XSLT excel output for I dataflow -->
        <xsl:if test="count(gml:featureMember/aqd:AQD_Plan)">
          <!-- I datafolow 1st tab (SourceApp) -->
          <table:table>
            <xsl:attribute name="table:name">
              <xsl:text>SourceApp_allInfo</xsl:text>
            </xsl:attribute>
            <xsl:call-template name="SourceApp_allInfo_headers"/>
            <table:table-rows>
              <xsl:for-each select="gml:featureMember/aqd:AQD_Plan">
                <xsl:call-template name="SourceApp_allInfo_rows"/>
              </xsl:for-each>
            </table:table-rows>
          </table:table>
          <!-- I dataflow 2nd tab (regionalBackground_) -->
          <table:table>
            <xsl:attribute name="table:name">
              <xsl:text>regionalBackground_allInfo</xsl:text>
            </xsl:attribute>
            <xsl:call-template name="regionalBackground_allInfo_headers"/>
            <table:table-rows>
              <xsl:for-each select="gml:featureMember/aqd:AQD_Plan">
                <xsl:call-template name="regionalBackground_allInfo_rows"/>
              </xsl:for-each>
            </table:table-rows>
          </table:table>

          <!-- I dataflow 3rd tab (urbanBackground) -->
          <table:table>
            <xsl:attribute name="table:name">
              <xsl:text>urbanBackground_allInfo</xsl:text>
            </xsl:attribute>
            <xsl:call-template name="urbanBackground_allInfo_headers"/>
            <table:table-rows>
              <xsl:for-each select="gml:featureMember/aqd:AQD_Plan">
                <xsl:call-template name="urbanBackground_allInfo_rows"/>
              </xsl:for-each>
            </table:table-rows>
          </table:table>


          <!-- I dataflow 4th tab (regionalBackground) -->
          <table:table>
            <xsl:attribute name="table:name">
              <xsl:text>localIncrement</xsl:text>
            </xsl:attribute>
            <xsl:call-template name="localIncrement_allInfo_headers"/>
            <table:table-rows>
              <xsl:for-each select="gml:featureMember/aqd:AQD_Plan">
                <xsl:call-template name="localIncrement_allInfo_rows"/>
              </xsl:for-each>
            </table:table-rows>
          </table:table>


          <!-- I dataflow 5th tab -->
          <table:table>
            <xsl:attribute name="table:name">
              <xsl:text>Exceedance</xsl:text>
            </xsl:attribute>
            <xsl:call-template name="Exceedance_allInfo_headers"/>
            <table:table-rows>
              <xsl:for-each select="gml:featureMember/aqd:AQD_Plan">
                <xsl:call-template name="Exceedance_allInfo_rows"/>
              </xsl:for-each>
            </table:table-rows>
          </table:table>


        </xsl:if>



        <!--(XSLT excel output for K dataflows) Measures -->
        <xsl:if test="count(gml:featureMember/aqd:AQD_Measures)">
          <!--(XSLT excel output for K dataflows) Measures - tab1 -->
          <table:table>
            <xsl:attribute name="table:name">
              <xsl:text>Measures_allInfo</xsl:text>
            </xsl:attribute>
            <xsl:call-template name="Measures_allInfo_headers"/>
            <table:table-rows>
              <xsl:for-each select="gml:featureMember/aqd:AQD_Measures">
                <xsl:call-template name="Measures_allInfo_rows"/>
              </xsl:for-each>
            </table:table-rows>
          </table:table>

          <!--(XSLT excel output for K dataflows) Measures - tab2 -->
          <table:table>
            <xsl:attribute name="table:name">
              <xsl:text>description</xsl:text>
            </xsl:attribute>
            <xsl:call-template name="Measures_description_headers"/>
            <table:table-rows>
              <xsl:for-each select="gml:featureMember/aqd:AQD_Measures">
                <xsl:call-template name="Measures_description_rows"/>
              </xsl:for-each>
            </table:table-rows>
          </table:table>

          <!--(XSLT excel output for K dataflows) Measures - tab3 -->
          <table:table>
            <xsl:attribute name="table:name">
              <xsl:text>plannedImplementation</xsl:text>
            </xsl:attribute>
            <xsl:call-template name="Measures_plannedImplementation_headers"/>
            <table:table-rows>
              <xsl:for-each select="gml:featureMember/aqd:AQD_Measures">
                <xsl:call-template name="Measures_plannedImplementation_rows"/>
              </xsl:for-each>
            </table:table-rows>
          </table:table>

          <!--(XSLT excel output for K dataflows) Measures - tab4 -->
          <table:table>
            <xsl:attribute name="table:name">
              <xsl:text>reductionEmissions</xsl:text>
            </xsl:attribute>
            <xsl:call-template name="Measures_reductionEmissions_headers"/>
            <table:table-rows>
              <xsl:for-each select="gml:featureMember/aqd:AQD_Measures">
                <xsl:call-template name="Measures_reductionEmissions_rows"/>
              </xsl:for-each>
            </table:table-rows>
          </table:table>

          <!--(XSLT excel output for K dataflows) Measures - tab5 -->
          <table:table>
            <xsl:attribute name="table:name">
              <xsl:text>expectedImpact</xsl:text>
            </xsl:attribute>
            <xsl:call-template name="Measures_expectedImpact_headers"/>
            <table:table-rows>
              <xsl:for-each select="gml:featureMember/aqd:AQD_Measures">
                <xsl:call-template name="Measures_expectedImpact_rows"/>
              </xsl:for-each>
            </table:table-rows>
          </table:table>

          <!--(XSLT excel output for K dataflows) Measures - tab6 -->
          <table:table>
            <xsl:attribute name="table:name">
              <xsl:text>exceedanceAffected</xsl:text>
            </xsl:attribute>
            <xsl:call-template name="Measures_exceedanceAffected_headers"/>
            <table:table-rows>
              <xsl:for-each select="gml:featureMember/aqd:AQD_Measures">
                <xsl:call-template name="Measures_exceedanceAffected_rows"/>
              </xsl:for-each>
            </table:table-rows>
          </table:table>

          <!--(XSLT excel output for K dataflows) Measures - tab6 -->
          <table:table>
            <xsl:attribute name="table:name">
              <xsl:text>usedForScenario</xsl:text>
            </xsl:attribute>
            <xsl:call-template name="Measures_usedForScenario_headers"/>
            <table:table-rows>
              <xsl:for-each select="gml:featureMember/aqd:AQD_Measures">
                <xsl:call-template name="Measures_usedForScenario_rows"/>
              </xsl:for-each>
            </table:table-rows>
          </table:table>

        </xsl:if>
      </office:body>
    </office:document-content>
  </xsl:template>

  <xsl:template name="zoneCompetent_headers">
    <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-columns>
    <table:table-header-rows>
      <table:table-row table:default-cell-value-type="string">
        <table:table-cell table:style-name="Heading2">
          <text:p>
            GMLID
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            LocalId
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Namespace
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            GeographicalName
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ZoneCode
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            IndividualName
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Organisation
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Language
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Nativeness
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Address
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Mail
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Telephone
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Website
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Role
          </text:p>
        </table:table-cell>
      </table:table-row>
    </table:table-header-rows>
  </xsl:template>

  <xsl:template name="zoneCompetent_rows">
    <xsl:for-each select=".">
      <table:table-row table:default-cell-value-type="string">
        <!-- 1 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="@gml:id"/>
          </text:p>
        </table:table-cell>
        <!-- 2 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="am:inspireId/base:Identifier/base:localId"/>
          </text:p>
        </table:table-cell>
        <!-- 3 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="am:inspireId/base:Identifier/base:namespace"/>
          </text:p>
        </table:table-cell>
        <!-- 3 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="am:name/descendant::gn:text"/>
          </text:p>
        </table:table-cell>
        <!-- 3 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:zoneCode"/>
          </text:p>
        </table:table-cell>
        <!-- 3 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="am:competentAuthority/base2:RelatedParty/base2:individualName/gmd:LocalisedCharacterString"/>
          </text:p>
        </table:table-cell>
        <!-- 3 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="am:competentAuthority/base2:RelatedParty/base2:organisationName/gmd:LocalisedCharacterString"/>
          </text:p>
        </table:table-cell>
        <!-- 3 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="am:competentAuthority/base2:RelatedParty/base2:contact/base2:Contact/base2:address/ad:AddressRepresentation/ad:adminUnit/gn:GeographicalName/gn:language"/>
          </text:p>
        </table:table-cell>
        <!-- 3 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="am:competentAuthority/base2:RelatedParty/base2:contact/base2:Contact/base2:address/ad:AddressRepresentation/ad:adminUnit/gn:GeographicalName/gn:nativeness"/>
          </text:p>
        </table:table-cell>
        <!-- 3 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="am:competentAuthority/base2:RelatedParty/base2:contact/base2:Contact/base2:address/ad:AddressRepresentation/ad:adminUnit/gn:GeographicalName/gn:spelling/gn:SpellingOfName/gn:text"/>
          </text:p>
        </table:table-cell>
        <!-- 3 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="am:competentAuthority/base2:RelatedParty/base2:contact/base2:Contact/base2:electronicMailAddress"/>
          </text:p>
        </table:table-cell>
        <!-- 3 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="am:competentAuthority/base2:RelatedParty/base2:contact/base2:Contact/base2:telephoneVoice"/>
          </text:p>
        </table:table-cell>
        <!-- 3 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="am:competentAuthority/base2:RelatedParty/base2:contact/base2:Contact/base2:website"/>
          </text:p>
        </table:table-cell>
        <!-- 3 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="am:competentAuthority/base2:RelatedParty/base2:contact/base2:Contact/base2:role"/>
          </text:p>
        </table:table-cell>
      </table:table-row>
    </xsl:for-each>
  </xsl:template>

  <xsl:template name="sampointStation_headers">
    <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-column
              table:default-cell-value-type="string"
              table:default-cell-style-name="long-string-heading">
      </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="Heading2">
          <text:p>
            GMLID
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            LocalId
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Namespace
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Version
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            NatlStationCode
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Name
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Municipality
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            EUStationCode
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ActivityBegin
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ActivityEnd
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Latitude
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Longitude
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            SRSName
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Altitude
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            AltitudeUnit
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            AreaClassification
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            BelongsTo
          </text:p>
        </table:table-cell>
      </table:table-row>
    </table:table-header-rows>
  </xsl:template>

  <xsl:template name="sampointStation_rows">
    <xsl:for-each select=".">
      <table:table-row table:default-cell-value-type="string">
        <!-- 1 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="@gml:id"/>
          </text:p>
        </table:table-cell>
        <!-- 2 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="ef:inspireId/base:Identifier/base:localId"/>
          </text:p>
        </table:table-cell>
        <!-- 3 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="ef:inspireId/base:Identifier/base:namespace"/>
          </text:p>
        </table:table-cell>
        <!-- 4 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="ef:inspireId/base:Identifier/base:versionId"/>
          </text:p>
        </table:table-cell>
        <!-- 5 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:natlStationCode"/>
          </text:p>
        </table:table-cell>
        <!-- 6 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="ef:name"/>
          </text:p>
        </table:table-cell>
        <!-- 7 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:municipality"/>
          </text:p>
        </table:table-cell>
        <!-- 8 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:EUStationCode"/>
          </text:p>
        </table:table-cell>
        <!-- 9 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="ef:operationalActivityPeriod/ef:OperationalActivityPeriod/ef:activityTime/gml:TimePeriod/gml:beginPosition"/>
          </text:p>
        </table:table-cell>
        <!-- 10 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="ef:operationalActivityPeriod/ef:OperationalActivityPeriod/ef:activityTime/gml:TimePeriod/gml:endPosition"/>
          </text:p>
        </table:table-cell>
        <!-- 11 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="normalize-space(tokenize(ef:geometry/gml:Point/gml:pos, ' ')[1])"/>
          </text:p>
        </table:table-cell>
        <!-- 12 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="normalize-space(tokenize(ef:geometry/gml:Point/gml:pos, ' ')[2])"/>
          </text:p>
        </table:table-cell>
        <!-- 13 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="ef:geometry/gml:Point/@srsName"/>
          </text:p>
        </table:table-cell>
        <!-- 14 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:altitude"/>
          </text:p>
        </table:table-cell>
        <!-- 15 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:altitude/@uom"/>
          </text:p>
        </table:table-cell>
        <!-- 16 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:areaClassification/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 17 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="ef:belongsTo/@xlink:href"/>
          </text:p>
        </table:table-cell>
      </table:table-row>
    </xsl:for-each>
  </xsl:template>

  <xsl:template name="sampointSample_headers">
    <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-columns>
    <table:table-header-rows>
      <table:table-row table:default-cell-value-type="string">
        <table:table-cell table:style-name="Heading2">
          <text:p>
            GMLID
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            LocalId
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Namespace
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Version
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            InletHeight
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            InletHeightUnit
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            BuilldingDistance
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            BuilldingDistanceUnit
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            KerbDistance
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            KerbDistanceUnit
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Latitude
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Longitude
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            SRSName
          </text:p>
        </table:table-cell>
      </table:table-row>
    </table:table-header-rows>
  </xsl:template>

  <xsl:template name="sampointSample_rows">
    <xsl:for-each select=".">
      <table:table-row table:default-cell-value-type="string">
        <!-- 1 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="@gml:id"/>
          </text:p>
        </table:table-cell>
        <!-- 2 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:inspireId/base:Identifier/base:localId"/>
          </text:p>
        </table:table-cell>
        <!-- 3 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:inspireId/base:Identifier/base:namespace"/>
          </text:p>
        </table:table-cell>
        <!-- 4 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:inspireId/base:Identifier/base:versionId"/>
          </text:p>
        </table:table-cell>
        <!-- 5 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:inletHeight"/>
          </text:p>
        </table:table-cell>
        <!-- 6 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:inletHeight/@uom"/>
          </text:p>
        </table:table-cell>
        <!-- 7 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:buildingDistance"/>
          </text:p>
        </table:table-cell>
        <!-- 8 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:buildingDistance/@uom"/>
          </text:p>
        </table:table-cell>
        <!-- 9 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:kerbDistance"/>
          </text:p>
        </table:table-cell>
        <!-- 10 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:kerbDistance/@uom"/>
          </text:p>
        </table:table-cell>
        <!-- 11 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="normalize-space(tokenize(sams:shape/gml:Point/gml:pos,' ')[1])" />
          </text:p>
        </table:table-cell>
        <!-- 12 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="normalize-space(tokenize(sams:shape/gml:Point/gml:pos,' ')[2])" />
          </text:p>
        </table:table-cell>
        <!-- 13 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="sams:shape/gml:Point/@srsName"/>
          </text:p>
        </table:table-cell>
      </table:table-row>
    </xsl:for-each>
  </xsl:template>

  <xsl:template name="sampointProcess_headers">
    <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-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-header-rows>
      <table:table-row table:default-cell-value-type="string">
        <table:table-cell table:style-name="Heading2">
          <text:p>
            GMLID
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            LocalId
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Namespace
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Version
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Type
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            measurementType
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            measurementMethod
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            otherMeasurementMethod
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            samplingMethod
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            otherSamplingMethod
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            equivalenceDemonstrated
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            demonstrationReport
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            detectionLimit
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            detectionLimitUnit
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            documentation
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            qaReport
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            DurationUnit
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            DurationNumUnits
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            CadenceUnit
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            CadenceNumUnits
          </text:p>
        </table:table-cell>
      </table:table-row>
    </table:table-header-rows>
  </xsl:template>

  <xsl:template name="sampointProcess_rows">
    <xsl:for-each select=".">
      <table:table-row table:default-cell-value-type="string">
        <!-- 1 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="@gml:id"/>
          </text:p>
        </table:table-cell>
        <!-- 2 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="ompr:inspireId/base:Identifier/base:localId"/>
          </text:p>
        </table:table-cell>
        <!-- 3 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="ompr:inspireId/base:Identifier/base:namespace"/>
          </text:p>
        </table:table-cell>
        <!-- 4 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="ompr:inspireId/base:Identifier/base:versionId"/>
          </text:p>
        </table:table-cell>
        <!-- 5 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="ompr:type"/>
          </text:p>
        </table:table-cell>
        <!-- 6 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:measurementType/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 7 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:measurementMethod/aqd:MeasurementMethod/aqd:measurementMethod/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 8 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:measurementMethod/aqd:MeasurementMethod/aqd:otherMeasurementMethod"/>
          </text:p>
        </table:table-cell>
        <!-- 9 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:samplingMethod/aqd:SamplingMethod/aqd:samplingMethod/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 10 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:samplingMethod/aqd:SamplingMethod/aqd:otherSamplingMethod"/>
          </text:p>
        </table:table-cell>
        <!-- 11 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:equivalenceDemonstration/aqd:EquivalenceDemonstration/aqd:equivalenceDemonstrated/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 12 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:equivalenceDemonstration/aqd:EquivalenceDemonstration/aqd:demonstrationReport"/>
          </text:p>
        </table:table-cell>
        <!-- 13 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:dataQuality/aqd:DataQuality/aqd:detectionLimit"/>
          </text:p>
        </table:table-cell>
        <!-- 14 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:dataQuality/aqd:DataQuality/aqd:detectionLimit/@uom"/>
          </text:p>
        </table:table-cell>
        <!-- 15 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:dataQuality/aqd:DataQuality/aqd:documentation"/>
          </text:p>
        </table:table-cell>
        <!-- 16 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:dataQuality/aqd:DataQuality/aqd:qaReport"/>
          </text:p>
        </table:table-cell>
        <!-- 17 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:duration/aqd:TimeReferences/aqd:unit/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 18 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:duration/aqd:TimeReferences/aqd:numUnits"/>
          </text:p>
        </table:table-cell>
        <!-- 19 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:cadence/aqd:TimeReferences/aqd:unit/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 20 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:cadence/aqd:TimeReferences/aqd:numUnits"/>
          </text:p>
        </table:table-cell>
      </table:table-row>
    </xsl:for-each>
  </xsl:template>

  <xsl:template name="sampointNetwork_headers">
    <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-columns>
    <table:table-header-rows>
      <table:table-row table:default-cell-value-type="string">
        <table:table-cell table:style-name="Heading2">
          <text:p>
            GMLID
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            LocalId
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Namespace
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Version
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Name
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            NetworkType
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            OperationBegin
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            OperationEnd
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Timezone
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Individual Name
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Organisation Name
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            e-mail Address
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Telephone
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Website
          </text:p>
        </table:table-cell>
      </table:table-row>
    </table:table-header-rows>
  </xsl:template>

  <xsl:template name="sampointNetwork_rows">
    <xsl:for-each select=".">
      <table:table-row table:default-cell-value-type="string">
        <!-- 1 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="@gml:id"/>
          </text:p>
        </table:table-cell>
        <!-- 2 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="ef:inspireId/base:Identifier/base:localId"/>
          </text:p>
        </table:table-cell>
        <!-- 3 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="ef:inspireId/base:Identifier/base:namespace"/>
          </text:p>
        </table:table-cell>
        <!-- 4 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="ef:inspireId/base:Identifier/base:versionId"/>
          </text:p>
        </table:table-cell>
        <!-- 5 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="ef:name"/>
          </text:p>
        </table:table-cell>
        <!-- 6 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:networkType/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 7 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:operationActivityPeriod/gml:TimePeriod/gml:beginPosition"/>
          </text:p>
        </table:table-cell>
        <!-- 8 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:operationActivityPeriod/gml:TimePeriod/gml:endPosition"/>
          </text:p>
        </table:table-cell>
        <!-- 9 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:aggregationTimeZone/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 10 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="ef:responsibleParty/base2:RelatedParty/base2:individualName/gmd:LocalisedCharacterString"/>
          </text:p>
        </table:table-cell>
        <!-- 11 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="ef:responsibleParty/base2:RelatedParty/base2:organisationName/gmd:LocalisedCharacterString"/>
          </text:p>
        </table:table-cell>
        <!-- 12 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="ef:responsibleParty/base2:RelatedParty/base2:contact/base2:Contact/base2:electronicMailAddress"/>
          </text:p>
        </table:table-cell>
        <!-- 13 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="ef:responsibleParty/base2:RelatedParty/base2:contact/base2:Contact/base2:telephoneVoice"/>
          </text:p>
        </table:table-cell>
        <!-- 14 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="ef:responsibleParty/base2:RelatedParty/base2:contact/base2:Contact/base2:website"/>
          </text:p>
        </table:table-cell>
      </table:table-row>
    </xsl:for-each>
  </xsl:template>

  <xsl:template name="sampointModel_headers">
    <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-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-header-rows>
      <table:table-row table:default-cell-value-type="string">
        <table:table-cell table:style-name="Heading2">
          <text:p>
            GMLID
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            LocalId
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Namespace
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Version
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Name
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            MediaMonitored
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ObservingTimeBegin
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ObservingTimeEnd
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ProcessType
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ResultNature
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Procedure
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            FeatureOfInterestId
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            FeatureOfInterestName
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            OrganisationLevel
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ObservedProperty
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ObjectiveType
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ReportingMetric
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ProtectionTarget
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            AssessmentType
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Zone
          </text:p>
        </table:table-cell>
      </table:table-row>
    </table:table-header-rows>
  </xsl:template>

  <xsl:template name="sampointModel_observing">
    <xsl:for-each select=".">
      <table:table-row table:default-cell-value-type="string">
        <!-- 1 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../@gml:id"/>
          </text:p>
        </table:table-cell>
        <!-- 2 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../ef:inspireId/base:Identifier/base:localId"/>
          </text:p>
        </table:table-cell>
        <!-- 3 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../ef:inspireId/base:Identifier/base:namespace"/>
          </text:p>
        </table:table-cell>
        <!-- 4 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../ef:inspireId/base:Identifier/base:versionId"/>
          </text:p>
        </table:table-cell>
        <!-- 5 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../ef:name"/>
          </text:p>
        </table:table-cell>
        <!-- 6 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../ef:mediaMonitored/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 7 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="ef:ObservingCapability/ef:observingTime/gml:TimePeriod/gml:beginPosition"/>
          </text:p>
        </table:table-cell>
        <!-- 8 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="ef:ObservingCapability/ef:observingTime/gml:TimePeriod/gml:endPosition"/>
          </text:p>
        </table:table-cell>
        <!-- 9 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="ef:ObservingCapability/ef:processType/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 10 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="ef:ObservingCapability/ef:resultNature/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 11 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="ef:ObservingCapability/ef:procedure/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 12 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="ef:ObservingCapability/ef:featureOfInterest/aqd:AQD_ModelArea/@gml:id"/>
          </text:p>
        </table:table-cell>
        <!-- 13 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="ef:ObservingCapability/ef:featureOfInterest/aqd:AQD_ModelArea/gml:name"/>
          </text:p>
        </table:table-cell>
        <!-- 14 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../ef:organisationLevel/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 15 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="ef:ObservingCapability/ef:observedProperty/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 16 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../aqd:environmentalObjective/aqd:EnvironmentalObjective/aqd:objectiveType/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 17 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../aqd:environmentalObjective/aqd:EnvironmentalObjective/aqd:reportingMetric/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 18 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../aqd:environmentalObjective/aqd:EnvironmentalObjective/aqd:protectionTarget/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 19 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../aqd:assessmentType/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 20 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../aqd:zone/@xlink:href"/>
          </text:p>
        </table:table-cell>
      </table:table-row>
    </xsl:for-each>
  </xsl:template>

  <xsl:template name="sampointModel_environment">
    <xsl:for-each select=".">
      <table:table-row table:default-cell-value-type="string">
        <!-- 1 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../@gml:id"/>
          </text:p>
        </table:table-cell>
        <!-- 2 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../ef:inspireId/base:Identifier/base:localId"/>
          </text:p>
        </table:table-cell>
        <!-- 3 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../ef:inspireId/base:Identifier/base:namespace"/>
          </text:p>
        </table:table-cell>
        <!-- 4 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../ef:inspireId/base:Identifier/base:versionId"/>
          </text:p>
        </table:table-cell>
        <!-- 5 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../ef:name"/>
          </text:p>
        </table:table-cell>
        <!-- 6 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../ef:mediaMonitored/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 7 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../ef:observingCapability/ef:ObservingCapability/ef:observingTime/gml:TimePeriod/gml:beginPosition"/>
          </text:p>
        </table:table-cell>
        <!-- 8 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../ef:observingCapability/ef:ObservingCapability/ef:observingTime/gml:TimePeriod/gml:endPosition"/>
          </text:p>
        </table:table-cell>
        <!-- 9 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../ef:observingCapability/ef:ObservingCapability/ef:processType/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 10 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../ef:observingCapability/ef:ObservingCapability/ef:resultNature/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 11 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../ef:observingCapability/ef:ObservingCapability/ef:procedure/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 12 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../ef:observingCapability/ef:ObservingCapability/ef:featureOfInterest/aqd:AQD_ModelArea/@gml:id"/>
          </text:p>
        </table:table-cell>
        <!-- 13 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../ef:observingCapability/ef:ObservingCapability/ef:featureOfInterest/aqd:AQD_ModelArea/gml:name"/>
          </text:p>
        </table:table-cell>
        <!-- 14 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../ef:organisationLevel/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 15 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../ef:observingCapability/ef:ObservingCapability/ef:observedProperty/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 16 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:EnvironmentalObjective/aqd:objectiveType/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 17 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:EnvironmentalObjective/aqd:reportingMetric/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 18 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:EnvironmentalObjective/aqd:protectionTarget/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 19 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../aqd:assessmentType/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 20 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../aqd:zone/@xlink:href"/>
          </text:p>
        </table:table-cell>
      </table:table-row>
    </xsl:for-each>
  </xsl:template>

  <xsl:template name="sampointEmissions_headers">
    <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-columns>
    <table:table-header-rows>
      <table:table-row table:default-cell-value-type="string">
        <table:table-cell table:style-name="Heading2">
          <text:p>
            GMLID
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            LocalId
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Namespace
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Version
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Name
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ObservedProperty
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            StationClassification
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            MainEmmissionSources
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            TrafficEmissions
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            HeatingEmissions
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            IndustrialEmissions
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            DistanceSource
          </text:p>
        </table:table-cell>
      </table:table-row>
    </table:table-header-rows>
  </xsl:template>

  <xsl:template name="sampointEmissions_rows">
    <xsl:for-each select=".">
      <table:table-row table:default-cell-value-type="string">
        <!-- 1 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../@gml:id"/>
          </text:p>
        </table:table-cell>
        <!-- 2 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../ef:inspireId/base:Identifier/base:localId"/>
          </text:p>
        </table:table-cell>
        <!-- 3 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../ef:inspireId/base:Identifier/base:namespace"/>
          </text:p>
        </table:table-cell>
        <!-- 4 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../ef:inspireId/base:Identifier/base:versionId"/>
          </text:p>
        </table:table-cell>
        <!-- 5 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../ef:name"/>
          </text:p>
        </table:table-cell>
        <!-- 6 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="ef:ObservingCapability/ef:observedProperty/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 7 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../aqd:relevantEmissions/aqd:RelevantEmissions/aqd:stationClassification/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 8 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../aqd:relevantEmissions/aqd:RelevantEmissions/aqd:mainEmissionSources/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 9 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../aqd:relevantEmissions/aqd:RelevantEmissions/aqd:trafficEmissions"/>
          </text:p>
        </table:table-cell>
        <!-- 10 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../aqd:relevantEmissions/aqd:RelevantEmissions/aqd:heatingEmissions"/>
          </text:p>
        </table:table-cell>
        <!-- 11 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../aqd:relevantEmissions/aqd:RelevantEmissions/aqd:industrialEmissions"/>
          </text:p>
        </table:table-cell>
        <!-- 12 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../aqd:relevantEmissions/aqd:RelevantEmissions/aqd:distanceSource"/>
          </text:p>
        </table:table-cell>
      </table:table-row>
    </xsl:for-each>
  </xsl:template>

  <xsl:template name="sampointDispersion_headers">
    <table:table-columns>
      <!-- 1 -->
      <table:table-column
              table:default-cell-value-type="string"
              table:default-cell-style-name="long-string-heading">
      </table:table-column>
      <!-- 2 -->
      <table:table-column
              table:default-cell-value-type="string"
              table:default-cell-style-name="long-string-heading">
      </table:table-column>
      <!-- 3 -->
      <table:table-column
              table:default-cell-value-type="string"
              table:default-cell-style-name="long-string-heading">
      </table:table-column>
      <!-- 4 -->
      <table:table-column
              table:default-cell-value-type="string"
              table:default-cell-style-name="long-string-heading">
      </table:table-column>
      <!-- 5 -->
      <table:table-column
              table:default-cell-value-type="string"
              table:default-cell-style-name="long-string-heading">
      </table:table-column>
      <!-- 6 -->
      <table:table-column
              table:default-cell-value-type="string"
              table:default-cell-style-name="long-string-heading">
      </table:table-column>
      <!-- 7 -->
      <table:table-column
              table:default-cell-value-type="string"
              table:default-cell-style-name="long-string-heading">
      </table:table-column>
      <!-- 8 -->
      <table:table-column
              table:default-cell-value-type="string"
              table:default-cell-style-name="long-string-heading">
      </table:table-column>
      <!-- 9 -->
      <table:table-column
              table:default-cell-value-type="string"
              table:default-cell-style-name="long-string-heading">
      </table:table-column>
      <!-- 10 -->
      <table:table-column
              table:default-cell-value-type="string"
              table:default-cell-style-name="long-string-heading">
      </table:table-column>
      <!-- 11 -->
      <table:table-column
              table:default-cell-value-type="string"
              table:default-cell-style-name="long-string-heading">
      </table:table-column>
      <!-- 12 -->
      <table:table-column
              table:default-cell-value-type="string"
              table:default-cell-style-name="long-string-heading">
      </table:table-column>
      <!-- 13 -->
      <table:table-column
              table:default-cell-value-type="string"
              table:default-cell-style-name="long-string-heading">
      </table:table-column>
      <!-- 14 -->
      <table:table-column
              table:default-cell-value-type="string"
              table:default-cell-style-name="long-string-heading">
      </table:table-column>
      <!-- 15 -->
      <table:table-column
              table:default-cell-value-type="string"
              table:default-cell-style-name="long-string-heading">
      </table:table-column>
      <!-- 16 -->
      <table:table-column
              table:default-cell-value-type="string"
              table:default-cell-style-name="long-string-heading">
      </table:table-column>
      <!-- 17 -->
      <table:table-column
              table:default-cell-value-type="string"
              table:default-cell-style-name="long-string-heading">
      </table:table-column>
      <!-- 18 -->
      <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-header-rows>
      <table:table-row table:default-cell-value-type="string">
        <!-- 1 -->
        <table:table-cell table:style-name="Heading2">
          <text:p>
            GMLID
          </text:p>
        </table:table-cell>
        <!-- 2 -->
        <table:table-cell table:style-name="Heading2">
          <text:p>
            LocalId
          </text:p>
        </table:table-cell>
        <!-- 3 -->
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Namespace
          </text:p>
        </table:table-cell>
        <!-- 4 -->
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Version
          </text:p>
        </table:table-cell>
        <!-- 5 -->
        <table:table-cell table:style-name="Heading2">
          <text:p>
            NatlStationCode
          </text:p>
        </table:table-cell>
        <!-- 6 -->
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Name
          </text:p>
        </table:table-cell>
        <!-- 7 -->
        <table:table-cell table:style-name="Heading2">
          <text:p>
            EUStationCode
          </text:p>
        </table:table-cell>
        <!-- 8 -->
        <table:table-cell table:style-name="Heading2">
          <text:p>
            StationInfo
          </text:p>
        </table:table-cell>
        <!-- 9 -->
        <table:table-cell table:style-name="Heading2">
          <text:p>
            AreaClassification
          </text:p>
        </table:table-cell>
        <!-- 10 -->
        <table:table-cell table:style-name="Heading2">
          <text:p>
            DispersionLocal
          </text:p>
        </table:table-cell>
        <!-- 11 -->
        <table:table-cell table:style-name="Heading2">
          <text:p>
            DistanceJunction
          </text:p>
        </table:table-cell>
        <!-- 12 -->
        <table:table-cell table:style-name="Heading2">
          <text:p>
            DistanceJunctionUnit
          </text:p>
        </table:table-cell>
        <!-- 13 -->
        <table:table-cell table:style-name="Heading2">
          <text:p>
            TrafficVolume
          </text:p>
        </table:table-cell>
        <!-- 14 -->
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Heavy-dutyFraction
          </text:p>
        </table:table-cell>
        <!-- 15 -->
        <table:table-cell table:style-name="Heading2">
          <text:p>
            TrafficSpeed
          </text:p>
        </table:table-cell>
        <!-- 16 -->
        <table:table-cell table:style-name="Heading2">
          <text:p>
            StreetWidth
          </text:p>
        </table:table-cell>
        <!-- 17 -->
        <table:table-cell table:style-name="Heading2">
          <text:p>
            HeightFacades
          </text:p>
        </table:table-cell>
        <!-- 18 -->
        <table:table-cell table:style-name="Heading2">
          <text:p>
            DispersionRegional
          </text:p>
        </table:table-cell>
      </table:table-row>
    </table:table-header-rows>
  </xsl:template>

  <xsl:template name="sampointDispersion_rows">
    <xsl:for-each select=".">
      <table:table-row table:default-cell-value-type="string">
        <!-- 1 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="@gml:id"/>
          </text:p>
        </table:table-cell>
        <!-- 2 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="ef:inspireId/base:Identifier/base:localId"/>
          </text:p>
        </table:table-cell>
        <!-- 3 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="ef:inspireId/base:Identifier/base:namespace"/>
          </text:p>
        </table:table-cell>
        <!-- 4 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="ef:inspireId/base:Identifier/base:versionId"/>
          </text:p>
        </table:table-cell>
        <!-- 5 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:natlStationCode"/>
          </text:p>
        </table:table-cell>
        <!-- 6 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="ef:name"/>
          </text:p>
        </table:table-cell>
        <!-- 7 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:EUStationCode"/>
          </text:p>
        </table:table-cell>
        <!-- 8 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:stationInfo"/>
          </text:p>
        </table:table-cell>
        <!-- 9 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:areaClassification/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 10 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:dispersionSituation/aqd:DispersionSituation/aqd:dispersionLocal/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 11 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:dispersionSituation/aqd:DispersionSituation/aqd:distanceJunction"/>
          </text:p>
        </table:table-cell>
        <!-- 12 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:dispersionSituation/aqd:DispersionSituation/aqd:distanceJunction/@uom"/>
          </text:p>
        </table:table-cell>
        <!-- 13 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:dispersionSituation/aqd:DispersionSituation/aqd:trafficVolume"/>
          </text:p>
        </table:table-cell>
        <!-- 14 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:dispersionSituation/aqd:DispersionSituation/aqd:heavy-dutyFraction"/>
          </text:p>
        </table:table-cell>
        <!-- 15 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:dispersionSituation/aqd:DispersionSituation/aqd:trafficSpeed"/>
          </text:p>
        </table:table-cell>
        <!-- 16 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:dispersionSituation/aqd:DispersionSituation/aqd:streetWidth"/>
          </text:p>
        </table:table-cell>
        <!-- 17 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:dispersionSituation/aqd:DispersionSituation/aqd:heightFacades"/>
          </text:p>
        </table:table-cell>
        <!-- 18 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:dispersionSituation/aqd:DispersionSituation/aqd:dispersionRegional/@xlink:href"/>
          </text:p>
        </table:table-cell>
      </table:table-row>
    </xsl:for-each>
  </xsl:template>

  <xsl:template name="attainmentPrelimExceed_headers">
    <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-columns>
    <table:table-header-rows>
      <table:table-row table:default-cell-value-type="string">
        <table:table-cell table:style-name="Heading2">
          <text:p>
            GMLID
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            LocalId
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Namespace
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Zone
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Exceedance
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            NumericalExceedance
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            NumberExceedances
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ObjectiveType
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ReportingMetric
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ProtectionTarget
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Pollutant
          </text:p>
        </table:table-cell>
        <!-- <table:table-cell table:style-name="Heading2">
          <text:p>
            Adjustments
          </text:p>
        </table:table-cell> -->
      </table:table-row>
    </table:table-header-rows>
  </xsl:template>

  <xsl:template name="attainmentPrelimExceed_rows">
    <xsl:for-each select=".">
      <table:table-row table:default-cell-value-type="string">
        <!-- 1 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../@gml:id"/>
          </text:p>
        </table:table-cell>
        <!-- 2 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../aqd:inspireId/base:Identifier/base:localId"/>
          </text:p>
        </table:table-cell>
        <!-- 3 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../aqd:inspireId/base:Identifier/base:namespace"/>
          </text:p>
        </table:table-cell>
        <!-- 4 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../aqd:zone/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 5 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:ExceedanceDescription/aqd:exceedance"/>
          </text:p>
        </table:table-cell>
        <!-- 6 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:ExceedanceDescription/aqd:numericalExceedance"/>
          </text:p>
        </table:table-cell>
        <!-- 7 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:ExceedanceDescription/aqd:numberExceedances"/>
          </text:p>
        </table:table-cell>
        <!-- 8 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../aqd:environmentalObjective/aqd:EnvironmentalObjective/aqd:objectiveType/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 9 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../aqd:environmentalObjective/aqd:EnvironmentalObjective/aqd:reportingMetric/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 10 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../aqd:environmentalObjective/aqd:EnvironmentalObjective/aqd:protectionTarget/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 11 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../aqd:pollutant/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 11
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:exceedanceDescriptionBase/aqd:ExceedanceDescription/aqd:adjustments/@xlink:href"/>
          </text:p>
        </table:table-cell> -->
      </table:table-row>
    </xsl:for-each>
  </xsl:template>

  <xsl:template name="attainmentPrelimdescAdm_headers">
    <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-columns>
    <table:table-header-rows>
      <table:table-row table:default-cell-value-type="string">
        <table:table-cell table:style-name="Heading2">
          <text:p>
            GMLID
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            LocalId
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Namespace
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Exceedance
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            AdministrativeUnit
          </text:p>
        </table:table-cell>
      </table:table-row>
    </table:table-header-rows>
  </xsl:template>

  <xsl:template name="attainmentPrelimdescAdm_rows">
    <xsl:for-each select=".">
      <table:table-row table:default-cell-value-type="string">
        <!-- 1 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="@gml:id"/>
          </text:p>
        </table:table-cell>
        <!-- 2 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:exceedanceDescriptionPreliminary/aqd:ExceedanceDescription/aqd:inspireId/base:Identifier/base:localId"/>
          </text:p>
        </table:table-cell>
        <!-- 3 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:exceedanceDescriptionPreliminary/aqd:ExceedanceDescription/aqd:inspireId/base:Identifier/base:namespace"/>
          </text:p>
        </table:table-cell>
        <!-- 4 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:exceedanceDescriptionPreliminary/aqd:ExceedanceDescription/aqd:exceedance"/>
          </text:p>
        </table:table-cell>
        <!-- 5 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:exceedanceDescriptionPreliminary/aqd:ExceedanceDescription/aqd:exceedanceArea/aqd:ExceedanceArea/aqd:administrativeUnit/@xlink:href"/>
          </text:p>
        </table:table-cell>
      </table:table-row>
    </xsl:for-each>
  </xsl:template>

  <xsl:template name="attainmentPrelimdesc_headers">
    <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-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-header-rows>
      <table:table-row table:default-cell-value-type="string">
        <table:table-cell table:style-name="Heading2">
          <text:p>
            GMLID
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            LocalId
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Namespace
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Zone
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Exceedance
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            AreaClassification
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            SurfaceArea
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            RoadLength
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            StationUsed
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ModelUsed
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            PopulationExposed
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            EcosystemAreaExposed
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            SensitivePopulation
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            InfrastructureServices
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ReferenceYear
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ExceedanceDurationBegin
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ExceedanceDurationEnd
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Comment
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Pollutant
          </text:p>
        </table:table-cell>
      </table:table-row>
    </table:table-header-rows>
  </xsl:template>

  <xsl:template name="attainmentPrelimdesc_rows">
    <xsl:for-each select=".">
      <table:table-row table:default-cell-value-type="string">
        <!-- 1 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../@gml:id"/>
          </text:p>
        </table:table-cell>
        <!-- 2 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../aqd:inspireId/base:Identifier/base:localId"/>
          </text:p>
        </table:table-cell>
        <!-- 3 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../aqd:inspireId/base:Identifier/base:namespace"/>
          </text:p>
        </table:table-cell>
        <!-- 4 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../aqd:zone/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 5 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:ExceedanceDescription/aqd:exceedance"/>
          </text:p>
        </table:table-cell>
        <!-- 6 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:ExceedanceDescription/aqd:exceedanceArea/aqd:ExceedanceArea/aqd:areaClassification/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 7 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:ExceedanceDescription/aqd:exceedanceArea/aqd:ExceedanceArea/aqd:surfaceArea"/>
          </text:p>
        </table:table-cell>
        <!-- 8 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:ExceedanceDescription/aqd:exceedanceArea/aqd:ExceedanceArea/aqd:roadLength"/>
          </text:p>
        </table:table-cell>
        <!-- 9 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:ExceedanceDescription/aqd:exceedanceArea/aqd:ExceedanceArea/aqd:stationUsed/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 10 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:ExceedanceDescription/aqd:exceedanceArea/aqd:ExceedanceArea/aqd:modelUsed/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 11 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:ExceedanceDescription/aqd:exceedanceExposure/aqd:ExceedanceExposure/aqd:populationExposed"/>
          </text:p>
        </table:table-cell>
        <!-- 12 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:ExceedanceDescription/aqd:exceedanceExposure/aqd:ExceedanceExposure/aqd:ecosystemAreaExposed"/>
          </text:p>
        </table:table-cell>
        <!-- 13 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:ExceedanceDescription/aqd:exceedanceExposure/aqd:ExceedanceExposure/aqd:sensitivePopulation"/>
          </text:p>
        </table:table-cell>
        <!-- 14 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:ExceedanceDescription/aqd:exceedanceExposure/aqd:ExceedanceExposure/aqd:infrastructureServices"/>
          </text:p>
        </table:table-cell>
        <!-- 15 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:ExceedanceDescription/aqd:exceedanceExposure/aqd:ExceedanceExposure/aqd:referenceYear/gml:TimeInstant/gml:timePosition"/>
          </text:p>
        </table:table-cell>
        <!-- 16 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:ExceedanceDescription/aqd:exceedanceDuration/gml:TimePeriod/gml:beginPosition"/>
          </text:p>
        </table:table-cell>
        <!-- 17 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:ExceedanceDescription/aqd:exceedanceDuration/gml:TimePeriod/gml:endPosition"/>
          </text:p>
        </table:table-cell>
        <!-- 18 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:ExceedanceDescription/aqd:comment"/>
          </text:p>
        </table:table-cell>
        <!-- 19 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../aqd:pollutant/@xlink:href"/>
          </text:p>
        </table:table-cell>
      </table:table-row>
    </xsl:for-each>
  </xsl:template>

  <xsl:template name="attainmentGeneral_headers">
    <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-columns>
    <table:table-header-rows>
      <table:table-row table:default-cell-value-type="string">
        <table:table-cell table:style-name="Heading2">
          <text:p>
            GMLID
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            LocalId
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Namespace
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Pollutant
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ObjectiveType
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ReportingMetric
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ProtectionTarget
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Zone
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Assessment
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Pollutant
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ReportingBegin
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ReportingEnd
          </text:p>
        </table:table-cell>
      </table:table-row>
    </table:table-header-rows>
  </xsl:template>

  <xsl:template name="attainmentGeneral_rows">
    <xsl:for-each select=".">
      <table:table-row table:default-cell-value-type="string">
        <!-- 1 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="@gml:id"/>
          </text:p>
        </table:table-cell>
        <!-- 2 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:inspireId/base:Identifier/base:localId"/>
          </text:p>
        </table:table-cell>
        <!-- 3 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:inspireId/base:Identifier/base:namespace"/>
          </text:p>
        </table:table-cell>
        <!-- 4 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:pollutant/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 5 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:environmentalObjective/aqd:EnvironmentalObjective/aqd:objectiveType/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 6 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:environmentalObjective/aqd:EnvironmentalObjective/aqd:reportingMetric/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 7 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:environmentalObjective/aqd:EnvironmentalObjective/aqd:protectionTarget/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 8 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:zone/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 9 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:assessment/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 10 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:pollutant/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 11 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../../aqd:reportingPeriod/gml:TimePeriod/gml:beginPosition"/>
          </text:p>
        </table:table-cell>
        <!-- 12 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../../aqd:reportingPeriod/gml:TimePeriod/gml:endPosition"/>
          </text:p>
        </table:table-cell>
      </table:table-row>
    </xsl:for-each>
  </xsl:template>

  <xsl:template name="attainmentFinalExceed_headers">
    <table:table-columns>
      <!-- 1 -->
      <table:table-column
              table:default-cell-value-type="string"
              table:default-cell-style-name="long-string-heading">
      </table:table-column>
      <!-- 2 -->
      <table:table-column
              table:default-cell-value-type="string"
              table:default-cell-style-name="long-string-heading">
      </table:table-column>
      <!-- 3 -->
      <table:table-column
              table:default-cell-value-type="string"
              table:default-cell-style-name="long-string-heading">
      </table:table-column>
      <!-- 4 -->
      <table:table-column
              table:default-cell-value-type="string"
              table:default-cell-style-name="long-string-heading">
      </table:table-column>
      <!-- 5 -->
      <table:table-column
              table:default-cell-value-type="string"
              table:default-cell-style-name="long-string-heading">
      </table:table-column>
      <!-- 6 -->
      <table:table-column
              table:default-cell-value-type="string"
              table:default-cell-style-name="long-string-heading">
      </table:table-column>
      <!-- 7 -->
      <table:table-column
              table:default-cell-value-type="string"
              table:default-cell-style-name="long-string-heading">
      </table:table-column>
      <!-- 8 -->
      <table:table-column
              table:default-cell-value-type="string"
              table:default-cell-style-name="long-string-heading">
      </table:table-column>
      <!-- 9 -->
      <table:table-column
              table:default-cell-value-type="string"
              table:default-cell-style-name="long-string-heading">
      </table:table-column>
      <!-- 10 -->
      <table:table-column
              table:default-cell-value-type="string"
              table:default-cell-style-name="long-string-heading">
      </table:table-column>
      <!-- 11 -->
      <table:table-column
              table:default-cell-value-type="string"
              table:default-cell-style-name="long-string-heading">
      </table:table-column>
      <!-- 12 -->
      <table:table-column
              table:default-cell-value-type="string"
              table:default-cell-style-name="long-string-heading">
      </table:table-column>
      <!-- 13 -->
      <table:table-column
              table:default-cell-value-type="string"
              table:default-cell-style-name="long-string-heading">
      </table:table-column>
      <!-- 14 -->
      <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-header-rows>
      <table:table-row table:default-cell-value-type="string">
        <!-- 1 -->
        <table:table-cell table:style-name="Heading2">
          <text:p>
            GMLID
          </text:p>
        </table:table-cell>
        <!-- 2 -->
        <table:table-cell table:style-name="Heading2">
          <text:p>
            LocalId
          </text:p>
        </table:table-cell>
        <!-- 3 -->
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Namespace
          </text:p>
        </table:table-cell>
        <!-- 4 -->
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Zone
          </text:p>
        </table:table-cell>
        <!-- 5 -->
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Exceedance
          </text:p>
        </table:table-cell>
        <!-- 6 -->
        <table:table-cell table:style-name="Heading2">
          <text:p>
            NumericalExceedance
          </text:p>
        </table:table-cell>
        <!-- 7 -->
        <table:table-cell table:style-name="Heading2">
          <text:p>
            NumberExceedances
          </text:p>
        </table:table-cell>
        <!-- 8 -->
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ObjectiveType
          </text:p>
        </table:table-cell>
        <!-- 9 -->
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ReportingMetric
          </text:p>
        </table:table-cell>
        <!-- 10 -->
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ProtectionTarget
          </text:p>
        </table:table-cell>
        <!-- 11 -->
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ValueAfterAdjustment
          </text:p>
        </table:table-cell>
        <!-- 12 -->
        <table:table-cell table:style-name="Heading2">
          <text:p>
            AdjustmentType
          </text:p>
        </table:table-cell>
        <!-- 13 -->
        <table:table-cell table:style-name="Heading2">
          <text:p>
            AdjustmentDescription
          </text:p>
        </table:table-cell>
        <!-- 14 -->
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Pollutant
          </text:p>
        </table:table-cell>
      </table:table-row>
    </table:table-header-rows>
  </xsl:template>

  <xsl:template name="attainmentFinalExceed_rows">
    <xsl:for-each select=".">
      <table:table-row table:default-cell-value-type="string">
        <!-- 1 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../@gml:id"/>
          </text:p>
        </table:table-cell>
        <!-- 2 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../aqd:inspireId/base:Identifier/base:localId"/>
          </text:p>
        </table:table-cell>
        <!-- 3 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../aqd:inspireId/base:Identifier/base:namespace"/>
          </text:p>
        </table:table-cell>
        <!-- 4 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../aqd:zone/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 5 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:ExceedanceDescription/aqd:exceedance"/>
          </text:p>
        </table:table-cell>
        <!-- 6 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:ExceedanceDescription/aqd:numericalExceedance"/>
          </text:p>
        </table:table-cell>
        <!-- 7 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:ExceedanceDescription/aqd:numberExceedances"/>
          </text:p>
        </table:table-cell>
        <!-- 8 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../aqd:environmentalObjective/aqd:EnvironmentalObjective/aqd:objectiveType/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 9 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../aqd:environmentalObjective/aqd:EnvironmentalObjective/aqd:reportingMetric/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 10 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../aqd:environmentalObjective/aqd:EnvironmentalObjective/aqd:protectionTarget/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 11 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../aqd:exceedanceDescriptionAdjustment/aqd:ExceedanceDescription/aqd:exceedance"/>
          </text:p>
        </table:table-cell>
        <!-- 12 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../aqd:exceedanceDescriptionAdjustment/aqd:ExceedanceDescription/aqd:deductionAssessmentMethod/aqd:AdjustmentMethod/aqd:adjustmentType/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 13 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../aqd:exceedanceDescriptionAdjustment/aqd:ExceedanceDescription/aqd:deductionAssessmentMethod/aqd:AdjustmentMethod/aqd:assessmentMethod/aqd:AssessmentMethods/aqd:assessmentTypeDescription"/>
          </text:p>
        </table:table-cell>
        <!-- 14 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../aqd:pollutant/@xlink:href"/>
          </text:p>
        </table:table-cell>
      </table:table-row>
    </xsl:for-each>
  </xsl:template>

  <xsl:template name="attainmentFinaldescAdm_headers">
    <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-columns>
    <table:table-header-rows>
      <table:table-row table:default-cell-value-type="string">
        <table:table-cell table:style-name="Heading2">
          <text:p>
            GMLID
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            LocalId
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Namespace
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Exceedance
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            AdministrativeUnit
          </text:p>
        </table:table-cell>
      </table:table-row>
    </table:table-header-rows>
  </xsl:template>

  <xsl:template name="attainmentFinaldescAdm_rows">
    <xsl:for-each select=".">
      <table:table-row table:default-cell-value-type="string">
        <!-- 1 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="@gml:id"/>
          </text:p>
        </table:table-cell>
        <!-- 2 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:exceedanceDescriptionFinal/aqd:ExceedanceDescription/aqd:inspireId/base:Identifier/base:localId"/>
          </text:p>
        </table:table-cell>
        <!-- 3 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:exceedanceDescriptionFinal/aqd:ExceedanceDescription/aqd:inspireId/base:Identifier/base:namespace"/>
          </text:p>
        </table:table-cell>
        <!-- 4 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:exceedanceDescriptionFinal/aqd:ExceedanceDescription/aqd:exceedance"/>
          </text:p>
        </table:table-cell>
        <!-- 5 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:exceedanceDescriptionFinal/aqd:ExceedanceDescription/aqd:exceedanceArea/aqd:ExceedanceArea/aqd:administrativeUnit/@xlink:href"/>
          </text:p>
        </table:table-cell>
      </table:table-row>
    </xsl:for-each>
  </xsl:template>

  <xsl:template name="attainmentFinaldesc_headers">
    <table:table-columns>
      <!-- 1 -->
      <table:table-column
              table:default-cell-value-type="string"
              table:default-cell-style-name="long-string-heading">
      </table:table-column>
      <!-- 2 -->
      <table:table-column
              table:default-cell-value-type="string"
              table:default-cell-style-name="long-string-heading">
      </table:table-column>
      <!-- 3 -->
      <table:table-column
              table:default-cell-value-type="string"
              table:default-cell-style-name="long-string-heading">
      </table:table-column>
      <!-- 4 -->
      <table:table-column
              table:default-cell-value-type="string"
              table:default-cell-style-name="long-string-heading">
      </table:table-column>
      <!-- 5 -->
      <table:table-column
              table:default-cell-value-type="string"
              table:default-cell-style-name="long-string-heading">
      </table:table-column>
      <!-- 6 -->
      <table:table-column
              table:default-cell-value-type="string"
              table:default-cell-style-name="long-string-heading">
      </table:table-column>
      <!-- 7 -->
      <table:table-column
              table:default-cell-value-type="string"
              table:default-cell-style-name="long-string-heading">
      </table:table-column>
      <!-- 8 -->
      <table:table-column
              table:default-cell-value-type="string"
              table:default-cell-style-name="long-string-heading">
      </table:table-column>
      <!-- 9 -->
      <table:table-column
              table:default-cell-value-type="string"
              table:default-cell-style-name="long-string-heading">
      </table:table-column>
      <!-- 10 -->
      <table:table-column
              table:default-cell-value-type="string"
              table:default-cell-style-name="long-string-heading">
      </table:table-column>
      <!-- 11 -->
      <table:table-column
              table:default-cell-value-type="string"
              table:default-cell-style-name="long-string-heading">
      </table:table-column>
      <!-- 12 -->
      <table:table-column
              table:default-cell-value-type="string"
              table:default-cell-style-name="long-string-heading">
      </table:table-column>
      <!-- 13 -->
      <table:table-column
              table:default-cell-value-type="string"
              table:default-cell-style-name="long-string-heading">
      </table:table-column>
      <!-- 14 -->
      <table:table-column
              table:default-cell-value-type="string"
              table:default-cell-style-name="long-string-heading">
      </table:table-column>
      <!-- 15 -->
      <table:table-column
              table:default-cell-value-type="string"
              table:default-cell-style-name="long-string-heading">
      </table:table-column>
      <!-- 16 -->
      <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-header-rows>
      <table:table-row table:default-cell-value-type="string">
        <table:table-cell table:style-name="Heading2">
          <text:p>
            GMLID
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            LocalId
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Namespace
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Zone
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Exceedance
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            AreaClassification
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            SurfaceArea
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            RoadLength
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            StationUsed
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ModelUsed
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            PopulationExposed
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            EcosystemAreaExposed
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            SensitivePopulation
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            InfrastructureServices
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ReferenceYear
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ExceedanceDurationBegin
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ExceedanceDurationEnd
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Comment
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Pollutant
          </text:p>
        </table:table-cell>
      </table:table-row>
    </table:table-header-rows>
  </xsl:template>

  <xsl:template name="attainmentFinaldesc_rows">
    <xsl:for-each select=".">
      <table:table-row table:default-cell-value-type="string">
        <!-- 1 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../@gml:id"/>
          </text:p>
        </table:table-cell>
        <!-- 2 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../aqd:inspireId/base:Identifier/base:localId"/>
          </text:p>
        </table:table-cell>
        <!-- 3 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../aqd:inspireId/base:Identifier/base:namespace"/>
          </text:p>
        </table:table-cell>
        <!-- 4 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../aqd:zone/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 5 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:ExceedanceDescription/aqd:exceedance"/>
          </text:p>
        </table:table-cell>
        <!-- 6 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:ExceedanceDescription/aqd:exceedanceArea/aqd:ExceedanceArea/aqd:areaClassification/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 7 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:ExceedanceDescription/aqd:exceedanceArea/aqd:ExceedanceArea/aqd:surfaceArea"/>
          </text:p>
        </table:table-cell>
        <!-- 8 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:ExceedanceDescription/aqd:exceedanceArea/aqd:ExceedanceArea/aqd:roadLength"/>
          </text:p>
        </table:table-cell>
        <!-- 9 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:ExceedanceDescription/aqd:exceedanceArea/aqd:ExceedanceArea/aqd:stationUsed/@xlink:href" separator="&sep;"/>
          </text:p>
        </table:table-cell>
        <!-- 10 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:ExceedanceDescription/aqd:exceedanceArea/aqd:ExceedanceArea/aqd:modelUsed/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 11 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:ExceedanceDescription/aqd:exceedanceExposure/aqd:ExceedanceExposure/aqd:populationExposed"/>
          </text:p>
        </table:table-cell>
        <!-- 12 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:ExceedanceDescription/aqd:exceedanceExposure/aqd:ExceedanceExposure/aqd:ecosystemAreaExposed"/>
          </text:p>
        </table:table-cell>
        <!-- 13 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:ExceedanceDescription/aqd:exceedanceExposure/aqd:ExceedanceExposure/aqd:sensitivePopulation"/>
          </text:p>
        </table:table-cell>
        <!-- 14 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:ExceedanceDescription/aqd:exceedanceExposure/aqd:ExceedanceExposure/aqd:infrastructureServices"/>
          </text:p>
        </table:table-cell>
        <!-- 15 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:ExceedanceDescription/aqd:exceedanceExposure/aqd:ExceedanceExposure/aqd:referenceYear/gml:TimeInstant/gml:timePosition"/>
          </text:p>
        </table:table-cell>
        <!-- 16 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:ExceedanceDescription/aqd:exceedanceDuration/gml:TimePeriod/gml:beginPosition"/>
          </text:p>
        </table:table-cell>
        <!-- 17 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:ExceedanceDescription/aqd:exceedanceDuration/gml:TimePeriod/gml:endPosition"/>
          </text:p>
        </table:table-cell>
        <!-- 18 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:ExceedanceDescription/aqd:comment"/>
          </text:p>
        </table:table-cell>
        <!-- 19 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../aqd:pollutant/@xlink:href"/>
          </text:p>
        </table:table-cell>
      </table:table-row>
    </xsl:for-each>
  </xsl:template>

  <xsl:template name="assessRegimeMethods_headers">
    <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-header-rows>
      <table:table-row table:default-cell-value-type="string">
        <table:table-cell table:style-name="Heading2">
          <text:p>
            GMLID
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            LocalId
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Namespace
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Pollutant
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Zone
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            AssessmentType
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Description
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            SamplingPointAssessment
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ModelAssessmentMetadata
          </text:p>
        </table:table-cell>
      </table:table-row>
    </table:table-header-rows>
  </xsl:template>

  <xsl:template name="assesRegimeMethods_rows">
    <xsl:for-each select=".">
      <table:table-row table:default-cell-value-type="string">
        <!-- 1 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../../@gml:id"/>
          </text:p>
        </table:table-cell>
        <!-- 2 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../../aqd:inspireId/base:Identifier/base:localId"/>
          </text:p>
        </table:table-cell>
        <!-- 3 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../../aqd:inspireId/base:Identifier/base:namespace"/>
          </text:p>
        </table:table-cell>
        <!-- 4 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../../aqd:pollutant/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 5 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../../aqd:zone/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 6 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:assessmentType/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 7 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:assessmentTypeDescription"/>
          </text:p>
        </table:table-cell>
        <!-- 8 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:samplingPointAssessmentMetadata/@xlink:href" separator="&sep;"/>
          </text:p>
        </table:table-cell>
        <!-- 9 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:modelAssessmentMetadata/@xlink:href"/>
          </text:p>
        </table:table-cell>
      </table:table-row>
    </xsl:for-each>
  </xsl:template>

  <!-- Zone Methods Relation -->
  <xsl:template name="zoneMethodsRelation_headers">
    <table:table-columns>
      <!-- 1 -->
      <table:table-column
              table:default-cell-value-type="string"
              table:default-cell-style-name="long-string-heading">
      </table:table-column>
      <!-- 2 -->
      <table:table-column
              table:default-cell-value-type="string"
              table:default-cell-style-name="long-string-heading">
      </table:table-column>
      <!-- 3 -->
      <table:table-column
              table:default-cell-value-type="string"
              table:default-cell-style-name="long-string-heading">
      </table:table-column>
      <!-- 4 -->
      <table:table-column
              table:default-cell-value-type="string"
              table:default-cell-style-name="long-string-heading">
      </table:table-column>
      <!-- 5 -->
      <table:table-column
              table:default-cell-value-type="string"
              table:default-cell-style-name="long-string-heading">
      </table:table-column>
      <!-- 6 -->
      <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-header-rows>
      <table:table-row table:default-cell-value-type="string">
        <table:table-cell table:style-name="Heading2">
          <text:p>
            GMLID
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            LocalId
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Namespace
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Zone
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            SamplingPointAssessment
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ModelAssessmentMetadata
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ReportingBegin
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ReportingEnd
          </text:p>
        </table:table-cell>
      </table:table-row>
    </table:table-header-rows>
  </xsl:template>

  <xsl:template name="zoneMethodsRelation_rows">
    <xsl:variable name="Parent" select="../."/>
    <xsl:variable name="currentPath" select="."/>
    <table:table-row table:default-cell-value-type="string">
      <!-- 1 -->
      <table:table-cell table:style-name="cell1">
        <text:p>
          <xsl:value-of select="$Parent/../../@gml:id"/>
        </text:p>
      </table:table-cell>
      <!-- 2 -->
      <table:table-cell table:style-name="cell1">
        <text:p>
          <xsl:value-of select="$Parent/../../aqd:inspireId/base:Identifier/base:localId"/>
        </text:p>
      </table:table-cell>
      <!-- 3 -->
      <table:table-cell table:style-name="cell1">
        <text:p>
          <xsl:value-of select="$Parent/../../aqd:inspireId/base:Identifier/base:namespace"/>
        </text:p>
      </table:table-cell>
      <!-- 4 -->
      <table:table-cell table:style-name="cell1">
        <text:p>
          <xsl:value-of select="$Parent/../../aqd:zone/@xlink:href"/>
        </text:p>
      </table:table-cell>
      <!-- 5 -->
      <table:table-cell table:style-name="cell1">
        <text:p>
          <xsl:if test="$currentPath/name() = 'aqd:samplingPointAssessmentMetadata'">
            <xsl:value-of select="$currentPath/@xlink:href"/>
          </xsl:if>
        </text:p>
      </table:table-cell>
      <!-- 6 -->
      <table:table-cell table:style-name="cell1">
        <text:p>
          <xsl:if test="$currentPath/name() = 'aqd:modelAssessmentMetadata'">
            <xsl:value-of select="$currentPath/@xlink:href"/>
          </xsl:if>
        </text:p>
      </table:table-cell>
      <!-- 7 -->
      <table:table-cell table:style-name="cell1">
        <text:p>
          <xsl:value-of select="$Parent/../../../../aqd:reportingPeriod/gml:TimePeriod/gml:beginPosition"/>
        </text:p>
      </table:table-cell>
      <!-- 8 -->
      <table:table-cell table:style-name="cell1">
        <text:p>
          <xsl:value-of select="$Parent/../../../../aqd:reportingPeriod/gml:TimePeriod/gml:endPosition"/>
        </text:p>
      </table:table-cell>
    </table:table-row>
  </xsl:template>

  <xsl:template name="assessRegimeGeneral_headers">
    <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-columns>
    <table:table-header-rows>
      <table:table-row table:default-cell-value-type="string">
        <table:table-cell table:style-name="Heading2">
          <text:p>
            GMLID
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            LocalId
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Namespace
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Pollutant
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Zone
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ObjectiveType
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ReportingMetric
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ProtectionTarget
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ExceedanceAttainment
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ClassificationDate
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ClassificationReport
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ReportingBegin
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ReportingEnd
          </text:p>
        </table:table-cell>
      </table:table-row>
    </table:table-header-rows>
  </xsl:template>

  <xsl:template name="assesRegimeGeneral_rows">
    <xsl:for-each select=".">
      <table:table-row table:default-cell-value-type="string">
        <!-- 1 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="@gml:id"/>
          </text:p>
        </table:table-cell>
        <!-- 2 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:inspireId/base:Identifier/base:localId"/>
          </text:p>
        </table:table-cell>
        <!-- 3 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:inspireId/base:Identifier/base:namespace"/>
          </text:p>
        </table:table-cell>
        <!-- 4 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:pollutant/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 5 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:zone/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 6 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:assessmentThreshold/aqd:AssessmentThreshold/aqd:environmentalObjective/aqd:EnvironmentalObjective/aqd:objectiveType/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 7 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:assessmentThreshold/aqd:AssessmentThreshold/aqd:environmentalObjective/aqd:EnvironmentalObjective/aqd:reportingMetric/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 8 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:assessmentThreshold/aqd:AssessmentThreshold/aqd:environmentalObjective/aqd:EnvironmentalObjective/aqd:protectionTarget/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 9 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:assessmentThreshold/aqd:AssessmentThreshold/aqd:exceedanceAttainment/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 10 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:assessmentThreshold/aqd:AssessmentThreshold/aqd:classificationDate/gml:TimeInstant/gml:timePosition"/>
          </text:p>
        </table:table-cell>
        <!-- 11 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:assessmentThreshold/aqd:AssessmentThreshold/aqd:classificationReport"/>
          </text:p>
        </table:table-cell>
        <!-- 12 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../../aqd:reportingPeriod/gml:TimePeriod/gml:beginPosition"/>
          </text:p>
        </table:table-cell>
        <!-- 13 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../../aqd:reportingPeriod/gml:TimePeriod/gml:endPosition"/>
          </text:p>
        </table:table-cell>
      </table:table-row>
    </xsl:for-each>
  </xsl:template>

  <xsl:template name="sampointModelprocess_headers">
    <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-columns>
    <table:table-header-rows>
      <table:table-row table:default-cell-value-type="string">
        <table:table-cell table:style-name="Heading2">
          <text:p>
            GMLID
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            LocalId
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Namespace
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Version
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Type
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Description
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            TemporalResolutionUnit
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            TemporalResolutionNum
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            SpatialResolution
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            DataQualityDescription
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            DataQualityReport
          </text:p>
        </table:table-cell>
      </table:table-row>
    </table:table-header-rows>
  </xsl:template>

  <xsl:template name="sampointModelprocess_rows">
    <xsl:for-each select=".">
      <table:table-row table:default-cell-value-type="string">
        <!-- 1 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="@gml:id"/>
          </text:p>
        </table:table-cell>
        <!-- 2 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="ompr:inspireId/base:Identifier/base:localId"/>
          </text:p>
        </table:table-cell>
        <!-- 3 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="ompr:inspireId/base:Identifier/base:namespace"/>
          </text:p>
        </table:table-cell>
        <!-- 4 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="ompr:inspireId/base:Identifier/base:versionId"/>
          </text:p>
        </table:table-cell>
        <!-- 5 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="ompr:type"/>
          </text:p>
        </table:table-cell>
        <!-- 6 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:description"/>
          </text:p>
        </table:table-cell>
        <!-- 7 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:temporalResolution/aqd:TimeReferences/aqd:unit/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 8 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:temporalResolution/aqd:TimeReferences/aqd:numUnits"/>
          </text:p>
        </table:table-cell>
        <!-- 9 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:spatialResolution"/>
          </text:p>
        </table:table-cell>
        <!-- 10 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:dataQualityDescription"/>
          </text:p>
        </table:table-cell>
        <!-- 11 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:dataQualityReport"/>
          </text:p>
        </table:table-cell>
      </table:table-row>
    </xsl:for-each>
  </xsl:template>

  <xsl:template name="sampointModelArea_headers">
    <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-columns>
    <table:table-header-rows>
      <table:table-row table:default-cell-value-type="string">
        <table:table-cell table:style-name="Heading2">
          <text:p>
            GMLID
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            LocalId
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Namespace
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Version
          </text:p>
        </table:table-cell>
      </table:table-row>
    </table:table-header-rows>
  </xsl:template>

  <xsl:template name="sampointModelArea_rows">
    <xsl:for-each select=".">
      <table:table-row table:default-cell-value-type="string">
        <!-- 1 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="@gml:id"/>
          </text:p>
        </table:table-cell>
        <!-- 2 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:inspireId/base:Identifier/base:localId"/>
          </text:p>
        </table:table-cell>
        <!-- 3 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:inspireId/base:Identifier/base:namespace"/>
          </text:p>
        </table:table-cell>
        <!-- 4 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:inspireId/base:Identifier/base:versionId"/>
          </text:p>
        </table:table-cell>
      </table:table-row>
    </xsl:for-each>
  </xsl:template>

  <xsl:template name="sampointGeneral_headers">
    <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-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-header-rows>
      <table:table-row table:default-cell-value-type="string">
        <table:table-cell table:style-name="Heading2">
          <text:p>
            GMLID
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            LocalId
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Namespace
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Version
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Name
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            AssessmentType
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Zone
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Broader
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            BelongsTo
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            OperationalActivityBegin
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            OperationalActivityEnd
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            RelevantEmissions
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Procedure
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            FeatureOfInterest
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ObservingBegin
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ObservingEnd
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ObservedProperty
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            UsedAQD
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ObjectiveType
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ReportingMetric
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ProtectionTarget
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ReportingDB
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ReportingDBOther
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            SRSName
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Latitude
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Longitude
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            InvolvedIn
          </text:p>
        </table:table-cell>
      </table:table-row>
    </table:table-header-rows>
  </xsl:template>


  <!-- In the next template we are using for-each-group. This has been used to help us with element grouping.
   We create a separate row for each observingCapability and for each EnvironmentalObjective that uses 3 different elements as a key. -->
  <xsl:template name="sampointGeneral_environment">
    <xsl:variable name="Parent" select="."/>
    <xsl:for-each select="ef:observingCapability">
      <xsl:variable name="observingCapability" select="."/>
      <xsl:for-each-group select="$Parent/aqd:environmentalObjective/aqd:EnvironmentalObjective" group-by="concat(aqd:objectiveType/@xlink:href,aqd:reportingMetric/@xlink:href,aqd:protectionTarget/@xlink:href)">
        <table:table-row table:default-cell-value-type="string">
          <!-- 1 -->
          <table:table-cell table:style-name="cell1">
            <text:p>
              <xsl:value-of select="$Parent/@gml:id"/>
            </text:p>
          </table:table-cell>
          <!-- 2 -->
          <table:table-cell table:style-name="cell1">
            <text:p>
              <xsl:value-of select="$Parent/ef:inspireId/base:Identifier/base:localId"/>
            </text:p>
          </table:table-cell>
          <!-- 3 -->
          <table:table-cell table:style-name="cell1">
            <text:p>
              <xsl:value-of select="$Parent/ef:inspireId/base:Identifier/base:namespace"/>
            </text:p>
          </table:table-cell>
          <!-- 4 -->
          <table:table-cell table:style-name="cell1">
            <text:p>
              <xsl:value-of select="$Parent/ef:inspireId/base:Identifier/base:versionId"/>
            </text:p>
          </table:table-cell>
          <!-- 5 -->
          <table:table-cell table:style-name="cell1">
            <text:p>
              <xsl:value-of select="$Parent/ef:name"/>
            </text:p>
          </table:table-cell>
          <!-- 6 -->
          <table:table-cell table:style-name="cell1">
            <text:p>
              <xsl:value-of select="$Parent/aqd:assessmentType/@xlink:href"/>
            </text:p>
          </table:table-cell>
          <!-- 7 -->
          <table:table-cell table:style-name="cell1">
            <text:p>
              <xsl:value-of select="$Parent/aqd:zone/@xlink:href"/>
            </text:p>
          </table:table-cell>
          <!-- 8 -->
          <table:table-cell table:style-name="cell1">
            <text:p>
              <xsl:value-of select="$Parent/ef:broader/@xlink:href"/>
            </text:p>
          </table:table-cell>
          <!-- 9 -->
          <table:table-cell table:style-name="cell1">
            <text:p>
              <xsl:value-of select="$Parent/ef:belongsTo/@xlink:href"/>
            </text:p>
          </table:table-cell>
          <!-- 10 -->
          <table:table-cell table:style-name="cell1">
            <text:p>
              <xsl:value-of select="$Parent/ef:operationalActivityPeriod/ef:OperationalActivityPeriod/ef:activityTime/gml:TimePeriod/gml:beginPosition"/>
            </text:p>
          </table:table-cell>
          <!-- 11 -->
          <table:table-cell table:style-name="cell1">
            <text:p>
              <xsl:value-of select="$Parent/ef:operationalActivityPeriod/ef:OperationalActivityPeriod/ef:activityTime/gml:TimePeriod/gml:endPosition"/>
            </text:p>
          </table:table-cell>
          <!-- 12 -->
          <table:table-cell table:style-name="cell1">
            <text:p>
              <xsl:value-of select="$Parent/aqd:relevantEmissions/aqd:RelevantEmissions/aqd:stationClassification/@xlink:href"/>
            </text:p>
          </table:table-cell>
          <!-- 13 -->
          <table:table-cell table:style-name="cell1">
            <text:p>
              <xsl:value-of select="$observingCapability/ef:ObservingCapability/ef:procedure/@xlink:href"/>
            </text:p>
          </table:table-cell>
          <!-- 14 -->
          <table:table-cell table:style-name="cell1">
            <text:p>
              <xsl:value-of select="$observingCapability/ef:ObservingCapability/ef:featureOfInterest/@xlink:href"/>
            </text:p>
          </table:table-cell>
          <!-- 15 -->
          <table:table-cell table:style-name="cell1">
            <text:p>
              <xsl:value-of select="$observingCapability/ef:ObservingCapability/ef:observingTime/gml:TimePeriod/gml:beginPosition"/>
            </text:p>
          </table:table-cell>
          <!-- 16 -->
          <table:table-cell table:style-name="cell1">
            <text:p>
              <xsl:value-of select="$observingCapability/ef:ObservingCapability/ef:observingTime/gml:TimePeriod/gml:endPosition"/>
            </text:p>
          </table:table-cell>
          <!-- 17 -->
          <table:table-cell table:style-name="cell1">
            <text:p>
              <xsl:value-of select="$observingCapability/ef:ObservingCapability/ef:observedProperty/@xlink:href"/>
            </text:p>
          </table:table-cell>
          <!-- 18 -->
          <table:table-cell table:style-name="cell1">
            <text:p>
              <xsl:value-of select="$Parent/aqd:usedAQD"/>
            </text:p>
          </table:table-cell>
          <!-- 19 -->
          <table:table-cell table:style-name="cell1">
            <text:p>
              <xsl:value-of select="aqd:objectiveType/@xlink:href"/>
            </text:p>
          </table:table-cell>
          <!-- 20 -->
          <table:table-cell table:style-name="cell1">
            <text:p>
              <xsl:value-of select="aqd:reportingMetric/@xlink:href"/>
            </text:p>
          </table:table-cell>
          <!-- 21 -->
          <table:table-cell table:style-name="cell1">
            <text:p>
              <xsl:value-of select="aqd:protectionTarget/@xlink:href"/>
            </text:p>
          </table:table-cell>
          <!-- 22 -->
          <table:table-cell table:style-name="cell1">
            <text:p>
              <xsl:value-of select="$Parent/aqd:reportingDB"/>
            </text:p>
          </table:table-cell>
          <!-- 23 -->
          <table:table-cell table:style-name="cell1">
            <text:p>
              <xsl:value-of select="$Parent/aqd:reportingDBOther"/>
            </text:p>
          </table:table-cell>
          <!-- 24 -->
          <table:table-cell table:style-name="cell1">
            <text:p>
              <xsl:value-of select="$Parent/ef:geometry/gml:Point/@srsName"/>
            </text:p>
          </table:table-cell>
          <!-- 25 -->
          <table:table-cell table:style-name="cell1">
            <text:p>
              <xsl:value-of select="normalize-space(tokenize($Parent/ef:geometry/gml:Point/gml:pos,' ')[1])" />
            </text:p>
          </table:table-cell>
          <!-- 26 -->
          <table:table-cell table:style-name="cell1">
            <text:p>
              <xsl:value-of select="normalize-space(tokenize($Parent/ef:geometry/gml:Point/gml:pos,' ')[2])" />
            </text:p>
          </table:table-cell>
          <!-- 27 -->
          <table:table-cell table:style-name="cell1">
            <text:p>
              <xsl:value-of select="$Parent/ef:involvedIn/@xlink:href"/>
            </text:p>
          </table:table-cell>
        </table:table-row>
      </xsl:for-each-group>
    </xsl:for-each>
  </xsl:template>

  <xsl:template name="sampointGeneral_observing">
    <xsl:variable name="Parent" select="."/>
    <xsl:for-each select="ef:observingCapability">
      <table:table-row table:default-cell-value-type="string">
        <!-- 1 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="$Parent/@gml:id"/>
          </text:p>
        </table:table-cell>
        <!-- 2 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="$Parent/ef:inspireId/base:Identifier/base:localId"/>
          </text:p>
        </table:table-cell>
        <!-- 3 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="$Parent/ef:inspireId/base:Identifier/base:namespace"/>
          </text:p>
        </table:table-cell>
        <!-- 4 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="$Parent/ef:inspireId/base:Identifier/base:versionId"/>
          </text:p>
        </table:table-cell>
        <!-- 5 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="$Parent/ef:name"/>
          </text:p>
        </table:table-cell>
        <!-- 6 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="$Parent/aqd:assessmentType/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 7 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="$Parent/aqd:zone/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 8 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="$Parent/ef:broader/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 9 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="$Parent/ef:belongsTo/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 10 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="$Parent/ef:operationalActivityPeriod/ef:OperationalActivityPeriod/ef:activityTime/gml:TimePeriod/gml:beginPosition"/>
          </text:p>
        </table:table-cell>
        <!-- 11 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="$Parent/ef:operationalActivityPeriod/ef:OperationalActivityPeriod/ef:activityTime/gml:TimePeriod/gml:endPosition"/>
          </text:p>
        </table:table-cell>
        <!-- 12 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="$Parent/aqd:relevantEmissions/aqd:RelevantEmissions/aqd:stationClassification/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 13 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="ef:ObservingCapability/ef:procedure/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 14 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="ef:ObservingCapability/ef:featureOfInterest/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 15 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="ef:ObservingCapability/ef:observingTime/gml:TimePeriod/gml:beginPosition"/>
          </text:p>
        </table:table-cell>
        <!-- 16 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="ef:ObservingCapability/ef:observingTime/gml:TimePeriod/gml:endPosition"/>
          </text:p>
        </table:table-cell>
        <!-- 17 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="ef:ObservingCapability/ef:observedProperty/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 18 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="$Parent/aqd:usedAQD"/>
          </text:p>
        </table:table-cell>
        <!-- 19 -->
        <table:table-cell table:style-name="cell1">
          <text:p>

          </text:p>
        </table:table-cell>
        <!-- 20 -->
        <table:table-cell table:style-name="cell1">
          <text:p>

          </text:p>
        </table:table-cell>
        <!-- 21 -->
        <table:table-cell table:style-name="cell1">
          <text:p>

          </text:p>
        </table:table-cell>
        <!-- 22 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="$Parent/aqd:reportingDB"/>
          </text:p>
        </table:table-cell>
        <!-- 23 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="$Parent/aqd:reportingDBOther"/>
          </text:p>
        </table:table-cell>
        <!-- 24 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="$Parent/ef:geometry/gml:Point/@srsName"/>
          </text:p>
        </table:table-cell>
        <!-- 25 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="normalize-space(tokenize(../ef:geometry/gml:Point/gml:pos,' ')[1])" />
          </text:p>
        </table:table-cell>
        <!-- 26 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="normalize-space(tokenize(../ef:geometry/gml:Point/gml:pos,' ')[2])" />
          </text:p>
        </table:table-cell>
        <!-- 27 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="$Parent/ef:involvedIn/@xlink:href"/>
          </text:p>
        </table:table-cell>
      </table:table-row>
    </xsl:for-each>
  </xsl:template>

  <xsl:template name="zoneGeneral_headers">
    <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-column
              table:default-cell-value-type="string"
              table:default-cell-style-name="long-string-heading">
      </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="Heading2">
          <text:p>
            GMLID
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            LocalId
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Namespace
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            GeographicalName
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ZoneCode
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ZoneType
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            BeginTime
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            EndTime
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            EnvironmentalDomain
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            AQDZoneType
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ResidentPopulation
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Area [km2]
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            TimeExtensionExemption
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ResidentPopulationYear
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            SRSName
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ReportingBegin
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ReportingEnd
          </text:p>
        </table:table-cell>
      </table:table-row>
    </table:table-header-rows>
  </xsl:template>

  <xsl:template name="zoneGeneral_rows">
    <xsl:for-each select=".">
      <table:table-row table:default-cell-value-type="string">
        <!-- 1 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="@gml:id"/>
          </text:p>
        </table:table-cell>
        <!-- 2 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="am:inspireId/base:Identifier/base:localId"/>
          </text:p>
        </table:table-cell>
        <!-- 3 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="am:inspireId/base:Identifier/base:namespace"/>
          </text:p>
        </table:table-cell>
        <!-- 4 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="am:name/descendant::gn:text"/>
          </text:p>
        </table:table-cell>
        <!-- 5 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:zoneCode"/>
          </text:p>
        </table:table-cell>
        <!-- 6 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="am:zoneType/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 7 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="am:designationPeriod/gml:TimePeriod/gml:beginPosition"/>
          </text:p>
        </table:table-cell>
        <!-- 8 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="am:designationPeriod/gml:TimePeriod/gml:endPosition"/>
          </text:p>
        </table:table-cell>
        <!-- 9 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="am:environmentalDomain/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 10 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:aqdZoneType/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 11 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:residentPopulation"/>
          </text:p>
        </table:table-cell>
        <!-- 12 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:area"/>
          </text:p>
        </table:table-cell>
        <!-- 13 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:timeExtensionExemption/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 14 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:residentPopulationYear/gml:TimeInstant/gml:timePosition"/>
          </text:p>
        </table:table-cell>
        <!-- 15 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="am:geometry/*/@srsName"/>
          </text:p>
        </table:table-cell>
        <!-- 16 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../../aqd:reportingPeriod/gml:TimePeriod/gml:beginPosition"/>
          </text:p>
        </table:table-cell>
        <!-- 17 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../../aqd:reportingPeriod/gml:TimePeriod/gml:endPosition"/>
          </text:p>
        </table:table-cell>
      </table:table-row>
    </xsl:for-each>
  </xsl:template>

  <xsl:template name="zonePollutants_headers">
    <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-columns>
    <table:table-header-rows>
      <table:table-row table:default-cell-value-type="string">
        <table:table-cell table:style-name="Heading2">
          <text:p>
            GMLID
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            LocalId
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            Namespace
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            GeographicalName
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ZoneCode
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            PollutantCode
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            ProtectionTarget
          </text:p>
        </table:table-cell>
      </table:table-row>
    </table:table-header-rows>
  </xsl:template>
  <xsl:template name="zonePollutants_rows">
    <xsl:for-each select=".">
      <table:table-row table:default-cell-value-type="string">
        <!-- 1 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../@gml:id"/>
          </text:p>
        </table:table-cell>
        <!-- 2 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../am:inspireId/base:Identifier/base:localId"/>
          </text:p>
        </table:table-cell>
        <!-- 3 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../am:inspireId/base:Identifier/base:namespace"/>
          </text:p>
        </table:table-cell>
        <!-- 4 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../am:name/descendant::gn:text"/>
          </text:p>
        </table:table-cell>
        <!-- 5 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="../aqd:zoneCode"/>
          </text:p>
        </table:table-cell>
        <!-- 6 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:Pollutant/aqd:pollutantCode/@xlink:href"/>
          </text:p>
        </table:table-cell>
        <!-- 7 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:Pollutant/aqd:protectionTarget/@xlink:href"/>
          </text:p>
        </table:table-cell>
      </table:table-row>
    </xsl:for-each>
  </xsl:template>

  <xsl:template name="omObservation_headers">
    <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-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-header-rows>
      <table:table-row table:default-cell-value-type="string">
        <table:table-cell table:style-name="Heading2">
          <text:p>
            gml_id
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            phenomenonTimeBegin
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            phenomenonTimeEnd
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            timeInstant
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            procedure
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            assessmentType
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            samplingPoint
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            station
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            observedProperty
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            featureOfInterest
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            swe:value
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            swe:field1
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            swe:field2
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            swe:field3
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            swe:field4
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            swe:field5
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            swe:field6
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            definition
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            uom
          </text:p>
        </table:table-cell>
      </table:table-row>
    </table:table-header-rows>
  </xsl:template>

  <xsl:template name="omObservation_rows">
    <xsl:for-each select=".">
      <table:table-row table:default-cell-value-type="string">

        <!-- 1 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="@gml:id"/>
          </text:p>
        </table:table-cell>

        <!-- 2 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="om:phenomenonTime/gml:TimePeriod/gml:beginPosition"/>
          </text:p>
        </table:table-cell>

        <!-- 3 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="om:phenomenonTime/gml:TimePeriod/gml:endPosition"/>
          </text:p>
        </table:table-cell>

        <!-- 4 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="om:resultTime/gml:TimeInstant"/>
          </text:p>
        </table:table-cell>

        <!-- 5 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="om:procedure/@xlink:href"/>
          </text:p>
        </table:table-cell>

        <!-- 6 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:choose>
              <xsl:when test="om:parameter/om:NamedValue/om:name[@xlink:href = 'http://dd.eionet.europa.eu/vocabulary/aq/processparameter/AssessmentType']/../om:value != ''">
                <xsl:value-of select="om:parameter/om:NamedValue/om:name[@xlink:href = 'http://dd.eionet.europa.eu/vocabulary/aq/processparameter/AssessmentType']/../om:value"/>
              </xsl:when>

              <xsl:when test="om:parameter/om:NamedValue/om:name[@xlink:href = 'http://dd.eionet.europa.eu/vocabulary/aq/processparameter/AssessmentType']/../om:value/@xlink:href != ''">
                <xsl:value-of select="om:parameter/om:NamedValue/om:name[@xlink:href = 'http://dd.eionet.europa.eu/vocabulary/aq/processparameter/AssessmentType']/../om:value/@xlink:href"/>
              </xsl:when>

              <xsl:when test="om:parameter/om:NamedValue/om:name[@xlink:href,'http://dd.eionet.europa.eu/vocabulary/aq/assessmenttype']/../om:value != ''">
                <xsl:value-of select="om:parameter/om:NamedValue/om:name[@xlink:href = 'http://dd.eionet.europa.eu/vocabulary/aq/assessmenttype']/../om:value"/>
              </xsl:when>

              <xsl:when test="om:parameter/om:NamedValue/om:name[@xlink:href = 'http://dd.eionet.europa.eu/vocabulary/aq/assessmenttype']/../om:value/@xlink:href != ''">
                <xsl:value-of select="om:parameter/om:NamedValue/om:name[@xlink:href = 'http://dd.eionet.europa.eu/vocabulary/aq/assessmenttype']/../om:value/@xlink:href"/>
              </xsl:when>

              <xsl:otherwise>
                <xsl:text></xsl:text>
              </xsl:otherwise>
            </xsl:choose>
          </text:p>
        </table:table-cell>

        <!-- 7 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:choose>
              <xsl:when test="om:parameter/om:NamedValue/om:name[@xlink:href = 'http://dd.eionet.europa.eu/vocabulary/aq/processparameter/SamplingPoint']/../om:value != ''">
                <xsl:value-of select="om:parameter/om:NamedValue/om:name[@xlink:href = 'http://dd.eionet.europa.eu/vocabulary/aq/processparameter/SamplingPoint']/../om:value"/>
              </xsl:when>
              <xsl:otherwise>
                <xsl:value-of select="om:parameter/om:NamedValue/om:name[@xlink:href = 'http://dd.eionet.europa.eu/vocabulary/aq/processparameter/SamplingPoint']/../om:value/@xlink:href"/>
              </xsl:otherwise>
            </xsl:choose>
          </text:p>
        </table:table-cell>

        <!-- 8 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:choose>
              <xsl:when test="om:parameter/om:NamedValue/om:name[@xlink:href = 'http://dd.eionet.europa.eu/vocabulary/aq/processparameter/Station']/../om:value != ''">
                <xsl:value-of select="om:parameter/om:NamedValue/om:name[@xlink:href = 'http://dd.eionet.europa.eu/vocabulary/aq/processparameter/Station']/../om:value"/>
              </xsl:when>
              <xsl:otherwise>
                <xsl:value-of select="om:parameter/om:NamedValue/om:name[@xlink:href = 'http://dd.eionet.europa.eu/vocabulary/aq/processparameter/Station']/../om:value/@xlink:href"/>
              </xsl:otherwise>
            </xsl:choose>
          </text:p>
        </table:table-cell>

        <!-- 9 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="om:observedProperty/@xlink:href"/>
          </text:p>
        </table:table-cell>

        <!-- 10 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="om:featureOfInterest/@xlink:href"/>
          </text:p>
        </table:table-cell>

        <!-- 11 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:choose>
              <xsl:when test="om:result/swe:elementCount">
                <xsl:value-of select="om:result/swe:elementCount/swe:Count/swe:value"/>
              </xsl:when>
              <xsl:otherwise>
                <xsl:value-of select="om:result/swe:DataArray/swe:elementCount/swe:Count/swe:value"/>
              </xsl:otherwise>
            </xsl:choose>
          </text:p>
        </table:table-cell>

        <!-- 12 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:choose>
              <xsl:when test="om:result/swe:elementType/swe:DataRecord/swe:field[1]">
                <xsl:value-of select="om:result/swe:elementType/swe:DataRecord/swe:field[1]/@name"/>
              </xsl:when>
              <xsl:otherwise>
                <xsl:value-of select="om:result/swe:DataArray/swe:elementType/swe:DataRecord/swe:field[1]/@name"/>
              </xsl:otherwise>
            </xsl:choose>
          </text:p>
        </table:table-cell>

        <!-- 13 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:choose>
              <xsl:when test="om:result/swe:elementType/swe:DataRecord/swe:field[2]">
                <xsl:value-of select="om:result/swe:elementType/swe:DataRecord/swe:field[2]/@name"/>
              </xsl:when>
              <xsl:otherwise>
                <xsl:value-of select="om:result/swe:DataArray/swe:elementType/swe:DataRecord/swe:field[2]/@name"/>
              </xsl:otherwise>
            </xsl:choose>
          </text:p>
        </table:table-cell>

        <!-- 14 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:choose>
              <xsl:when test="om:result/swe:elementType/swe:DataRecord/swe:field[3]">
                <xsl:value-of select="om:result/swe:elementType/swe:DataRecord/swe:field[3]/@name"/>
              </xsl:when>
              <xsl:otherwise>
                <xsl:value-of select="om:result/swe:DataArray/swe:elementType/swe:DataRecord/swe:field[3]/@name"/>
              </xsl:otherwise>
            </xsl:choose>
          </text:p>
        </table:table-cell>

        <!-- 15 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:choose>
              <xsl:when test="om:result/swe:elementType/swe:DataRecord/swe:field[4]">
                <xsl:value-of select="om:result/swe:elementType/swe:DataRecord/swe:field[4]/@name"/>
              </xsl:when>
              <xsl:otherwise>
                <xsl:value-of select="om:result/swe:DataArray/swe:elementType/swe:DataRecord/swe:field[4]/@name"/>
              </xsl:otherwise>
            </xsl:choose>
          </text:p>
        </table:table-cell>

        <!-- 16 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:choose>
              <xsl:when test="om:result/swe:elementType/swe:DataRecord/swe:field[5]">
                <xsl:value-of select="om:result/swe:elementType/swe:DataRecord/swe:field[5]/@name"/>
              </xsl:when>
              <xsl:otherwise>
                <xsl:value-of select="om:result/swe:DataArray/swe:elementType/swe:DataRecord/swe:field[5]/@name"/>
              </xsl:otherwise>
            </xsl:choose>
          </text:p>
        </table:table-cell>

        <!-- 17 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:choose>
              <xsl:when test="om:result/swe:elementType/swe:DataRecord/swe:field[6]">
                <xsl:value-of select="om:result/swe:elementType/swe:DataRecord/swe:field[6]/@name"/>
              </xsl:when>
              <xsl:otherwise>
                <xsl:value-of select="om:result/swe:DataArray/swe:elementType/swe:DataRecord/swe:field[6]/@name"/>
              </xsl:otherwise>
            </xsl:choose>
          </text:p>
        </table:table-cell>

        <!-- 18 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:choose>
              <xsl:when test="om:result/swe:elementType/swe:DataRecord/swe:field/swe:Quantity">
                <xsl:value-of select="om:result/swe:elementType/swe:DataRecord/swe:field/swe:Quantity/@definition"/>
              </xsl:when>
              <xsl:otherwise>
                <xsl:value-of select="om:result/swe:DataArray/swe:elementType/swe:DataRecord/swe:field/swe:Quantity/@definition"/>
              </xsl:otherwise>
            </xsl:choose>
          </text:p>
        </table:table-cell>

        <!-- 19 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:choose>
              <xsl:when test="om:result/swe:elementType/swe:DataRecord/swe:field/swe:Quantity/swe:uom">
                <xsl:value-of select="om:result/swe:elementType/swe:DataRecord/swe:field/swe:Quantity/swe:uom/@xlink:href"/>
              </xsl:when>
              <xsl:otherwise>
                <xsl:value-of select="om:result/swe:DataArray/swe:elementType/swe:DataRecord/swe:field/swe:Quantity/swe:uom/@xlink:href"/>
              </xsl:otherwise>
            </xsl:choose>
          </text:p>
        </table:table-cell>

      </table:table-row>
    </xsl:for-each>
  </xsl:template>

  <xsl:template name="AQPlan_allInfo_headers">
    <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-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-header-rows>
      <table:table-row table:default-cell-value-type="string">
        <table:table-cell table:style-name="Heading2">
          <text:p>
            gml:id
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            namespace
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            localId
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            versionId
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            code
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            name
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            organisationName
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            individualName
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            e-mail
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            phone
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            website
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            firstExceedance
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            status
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            pollutantTarget
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            adoptionDate
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            timetable
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            referenceAQPlan
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            referenceImplementation
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            publication
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            title
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            author
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            date
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            publisher
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            weblink
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            comment
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            exceedanceSituation
          </text:p>
        </table:table-cell>
      </table:table-row>
    </table:table-header-rows>
  </xsl:template>

  <xsl:template name="AQPlan_allInfo_rows">
    <xsl:for-each select=".">
      <table:table-row table:default-cell-value-type="string">

        <!-- 1.1 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="@gml:id"/>
          </text:p>
        </table:table-cell>

        <!-- 1.2 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:inspireId/base:Identifier/base:namespace"/>
          </text:p>
        </table:table-cell>

        <!-- 1.3 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:inspireId/base:Identifier/base:localId"/>
          </text:p>
        </table:table-cell>

        <!-- 1.4 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:inspireId/base:Identifier/base:versionId"/>
          </text:p>
        </table:table-cell>

        <!-- 1.5 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:code"/>
          </text:p>
        </table:table-cell>

        <!-- 1.6 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:name"/>
          </text:p>
        </table:table-cell>

        <!-- 1.7 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:competentAuthority/base2:RelatedParty/base2:organisationName/gco:CharacterString"/>
          </text:p>
        </table:table-cell>

        <!-- 1.8 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:competentAuthority/base2:RelatedParty/base2:individualName/gco:CharacterString"/>
          </text:p>
        </table:table-cell>

        <!-- 1.9 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:competentAuthority/base2:RelatedParty/base2:contact/base2:Contact/base2:electronicMailAddress"/>
          </text:p>
        </table:table-cell>

        <!-- 1.10 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:competentAuthority/base2:RelatedParty/base2:contact/base2:Contact/base2:telephoneVoice"/>
          </text:p>
        </table:table-cell>

        <!-- 1.11 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:competentAuthority/base2:RelatedParty/base2:contact/base2:Contact/base2:website"/>
          </text:p>
        </table:table-cell>

        <!-- 1.12 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:firstExceedanceYear/gml:TimeInstant/gml:timePosition"/>
          </text:p>
        </table:table-cell>

        <!-- 1.13 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:status/@xlink:href"/>
          </text:p>
        </table:table-cell>

        <!-- 1.14 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:for-each select="aqd:pollutants">
              <xsl:value-of select="concat(fn:substring-after(aqd:Pollutant/aqd:pollutantCode/@xlink:href, 'http://dd.eionet.europa.eu/vocabulary/aq/pollutant/'), fn:substring-after(aqd:Pollutant/aqd:protectionTarget/@xlink:href, 'http://dd.eionet.europa.eu/vocabulary/aq/protectiontarget/'))"/>
              <xsl:if test="following-sibling::aqd:pollutants">
                <xsl:text> || </xsl:text>
              </xsl:if>
            </xsl:for-each>
          </text:p>
        </table:table-cell>

        <!-- 1.15 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:adoptionDate/gml:TimeInstant/gml:timePosition"/>
          </text:p>
        </table:table-cell>

        <!-- 1.16 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:timeTable"/>
          </text:p>
        </table:table-cell>

        <!-- 1.17 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:referenceAQPlan"/>
          </text:p>
        </table:table-cell>

        <!-- 1.18 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:referenceImplementation"/>
          </text:p>
        </table:table-cell>

        <!-- 1.19 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:for-each select="aqd:publication">
              <xsl:value-of select="aqd:Publication/aqd:description"/>
              <xsl:if test="following-sibling::aqd:publication">
                <xsl:text> || </xsl:text>
              </xsl:if>
            </xsl:for-each>
          </text:p>
        </table:table-cell>

        <!-- 1.20 -->
        <table:table-cell table:style-name="cell1">
            <text:p>
              <xsl:for-each select="aqd:publication">
                <xsl:value-of select="aqd:Publication/aqd:title"/>
                <xsl:if test="following-sibling::aqd:publication">
                  <xsl:text> || </xsl:text>
                </xsl:if>
              </xsl:for-each>
            </text:p>
        </table:table-cell>

        <!-- 1.21 -->
        <table:table-cell table:style-name="cell1">
            <text:p>
              <xsl:for-each select="aqd:publication">
                <xsl:value-of select="aqd:Publication/aqd:author"/>
                <xsl:if test="following-sibling::aqd:publication">
                  <xsl:text> || </xsl:text>
                </xsl:if>
              </xsl:for-each>
            </text:p>
        </table:table-cell>

        <!-- 1.22 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:for-each select="aqd:publication">
              <xsl:value-of select="aqd:Publication/aqd:publicationDate/gml:TimeInstant/gml:timePosition"/>
              <xsl:if test="following-sibling::aqd:publication">
                <xsl:text> || </xsl:text>
              </xsl:if>
            </xsl:for-each>
          </text:p>
        </table:table-cell>

        <!-- 1.23 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:for-each select="aqd:publication">
              <xsl:value-of select="aqd:Publication/aqd:publisher"/>
              <xsl:if test="following-sibling::aqd:publication">
                <xsl:text> || </xsl:text>
              </xsl:if>
            </xsl:for-each>
          </text:p>
        </table:table-cell>

        <!-- 1.24 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:for-each select="aqd:publication">
              <xsl:value-of select="aqd:Publication/aqd:webLink"/>
              <xsl:if test="following-sibling::aqd:publication">
                <xsl:text> || </xsl:text>
              </xsl:if>
            </xsl:for-each>
          </text:p>
        </table:table-cell>

        <!-- 1.25 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:comment"/>
          </text:p>
        </table:table-cell>

        <!-- 1.26 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:for-each select="aqd:exceedanceSituation">
              <xsl:value-of select="@xlink:href"/>
              <xsl:if test="following-sibling::aqd:exceedanceSituation">
                <xsl:text> || </xsl:text>
              </xsl:if>
            </xsl:for-each>
          </text:p>
        </table:table-cell>

      </table:table-row>
    </xsl:for-each>
  </xsl:template>

  <xsl:template name="pollutant_headers">
    <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-columns>
    <table:table-header-rows>
      <table:table-row table:default-cell-value-type="string">
        <table:table-cell table:style-name="Heading2">
          <text:p>
            gml:id
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            namespace
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            localId
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            versionId
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            code
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            name
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            firstExceedance
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            status
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            pollutant
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            protectionTarget
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            adoptionDate
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            timetable
          </text:p>
        </table:table-cell>
      </table:table-row>
    </table:table-header-rows>
  </xsl:template>

  <xsl:template name="pollutant_rows">
    <xsl:variable name="parent" select="."/>
    <xsl:for-each select="aqd:pollutants">
      <table:table-row table:default-cell-value-type="string">

        <!-- 2.1 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="$parent/@gml:id"/>
          </text:p>
        </table:table-cell>

        <!-- 2.2 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="$parent/aqd:inspireId/base:Identifier/base:namespace"/>
          </text:p>
        </table:table-cell>

        <!-- 2.3 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="$parent/aqd:inspireId/base:Identifier/base:localId"/>
          </text:p>
        </table:table-cell>

        <!-- 2.4 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="$parent/aqd:inspireId/base:Identifier/base:versionId"/>
          </text:p>
        </table:table-cell>

        <!-- 2.5 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="$parent/aqd:code"/>
          </text:p>
        </table:table-cell>

        <!-- 2.6 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="$parent/aqd:name"/>
          </text:p>
        </table:table-cell>

        <!-- 2.7 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="$parent/aqd:firstExceedanceYear/gml:TimeInstant/gml:timePosition"/>
          </text:p>
        </table:table-cell>

        <!-- 2.8 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="$parent/aqd:status/@xlink:href"/>
          </text:p>
        </table:table-cell>

        <!-- 2.9 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:Pollutant/aqd:pollutantCode/@xlink:href"/>
          </text:p>
        </table:table-cell>

        <!-- 2.10 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:Pollutant/aqd:protectionTarget/@xlink:href"/>
          </text:p>
        </table:table-cell>

        <!-- 2.11 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="$parent/aqd:adoptionDate/gml:TimeInstant/gml:timePosition"/>
          </text:p>
        </table:table-cell>

        <!-- 2.12 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="$parent/aqd:timeTable"/>
          </text:p>
        </table:table-cell>

      </table:table-row>
    </xsl:for-each>
  </xsl:template>

  <xsl:template name="exceedanceSituation_headers">
    <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-columns>
    <table:table-header-rows>
      <table:table-row table:default-cell-value-type="string">
        <table:table-cell table:style-name="Heading2">
          <text:p>
            gml:id
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            namespace
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            localId
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            versionId
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            code
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            name
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            firstExceedance
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            status
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            adoptionDate
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            timetable
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            exceedanceSituation
          </text:p>
        </table:table-cell>
      </table:table-row>
    </table:table-header-rows>
  </xsl:template>

  <xsl:template name="exceedanceSituation_rows">
    <xsl:variable name="parent" select="."/>
    <xsl:for-each select="aqd:exceedanceSituation">
      <table:table-row table:default-cell-value-type="string">

        <!-- 3.1 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="$parent/@gml:id"/>
          </text:p>
        </table:table-cell>

        <!-- 3.2 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="$parent/aqd:inspireId/base:Identifier/base:namespace"/>
          </text:p>
        </table:table-cell>

        <!-- 3.3 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="$parent/aqd:inspireId/base:Identifier/base:localId"/>
          </text:p>
        </table:table-cell>

        <!-- 3.4 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="$parent/aqd:inspireId/base:Identifier/base:versionId"/>
          </text:p>
        </table:table-cell>

        <!-- 3.5 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="$parent/aqd:code"/>
          </text:p>
        </table:table-cell>

        <!-- 3.6 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="$parent/aqd:name"/>
          </text:p>
        </table:table-cell>

        <!-- 3.7 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="$parent/aqd:firstExceedanceYear/gml:TimeInstant/gml:timePosition"/>
          </text:p>
        </table:table-cell>

        <!-- 3.8 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="$parent/aqd:status/@xlink:href"/>
          </text:p>
        </table:table-cell>

        <!-- 3.9 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="$parent/aqd:adoptionDate/gml:TimeInstant/gml:timePosition"/>
          </text:p>
        </table:table-cell>

        <!-- 3.10 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="$parent/aqd:timeTable"/>
          </text:p>
        </table:table-cell>

        <!-- 3.11 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="@xlink:href"/>
          </text:p>
        </table:table-cell>

      </table:table-row>
    </xsl:for-each>
  </xsl:template>

  <!-- I workflow start -->

  <!-- SourceApp_allInfo_headers -->
  <xsl:variable name="sourceAppColumnNames"
                select='( 
                "gml:id", 
                "namespace", 
                "localId", 
                "versionId", 
                "referenceYear", 
                "RB_total_quantity", 
                "RB_total_quantityUOM", 
                "RB_total_comment", 
                "UB_total_quantity", 
                "UB_total_quantityUOM", 
                "UB_total_comment", 
                "LI_total_quantity", 
                "LI_total_quantityUOM", 
                "LI_total_comment", 
                "exceedance", 
                "numericalExceedance", 
                "numberExceedances",
                "reason", 
                "areaClassification", 
                "surfaceArea", 
                "roadLength",
                "stationUsed", 
                "modelUsed",
                "populationExposed", 
                "ecosystemAreaExposed", 
                "comment", 
                "parentExceedanceSituation", 
                "usedInPlan")' />

  <xsl:template name="SourceApp_allInfo_headers">
    <table:table-columns>
      <xsl:call-template name="CreateTemplateTableColumnHeader">
        <xsl:with-param name="numberOfColumns" select="count($sourceAppColumnNames)" />
      </xsl:call-template>
    </table:table-columns>

    <table:table-header-rows>
      <table:table-row table:default-cell-value-type="string">
        <xsl:call-template name="create-table-header-row">
          <xsl:with-param name="columnNames" select="$sourceAppColumnNames" />
        </xsl:call-template>
      </table:table-row>
    </table:table-header-rows>
  </xsl:template>
  <xsl:template name="SourceApp_allInfo_rows">
    <xsl:for-each select=".">
      <table:table-row table:default-cell-value-type="string">

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- gml:id -->
          <xsl:with-param name="elementValue" select="@gml:id" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- namespace -->
          <xsl:with-param name="elementValue" select="aqd:inspireId/base:Identifier/base:namespace" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- localId -->
          <xsl:with-param name="elementValue" select="aqd:inspireId/base:Identifier/base:localId" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- versionId -->
          <xsl:with-param name="elementValue" select="aqd:inspireId/base:Identifier/base:versionId" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- referenceYear -->
          <xsl:with-param name="elementValue" select="aqd:referenceYear/gml:TimeInstant/gml:timePosition" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- RB_total_quantity -->
          <xsl:with-param name="elementValue" select="aqd:regionalBackground/aqd:RegionalBackground/aqd:total/aqd:QuantityCommented/aqd:quantity" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- RB_total_quantityUOM -->
          <xsl:with-param name="elementValue" select="aqd:regionalBackground/aqd:RegionalBackground/aqd:total/aqd:QuantityCommented/aqd:quantity/@uom" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- RB_total_comment -->
          <xsl:with-param name="elementValue" select="aqd:regionalBackground/aqd:RegionalBackground/aqd:total/aqd:QuantityCommented/aqd:comment" />
        </xsl:call-template>


        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- UB_total_quantity -->
          <xsl:with-param name="elementValue" select="aqd:urbanBackground/aqd:UrbanBackground/aqd:total/aqd:QuantityCommented/aqd:quantity" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- UB_total_quantityUOM -->
          <xsl:with-param name="elementValue" select="aqd:urbanBackground/aqd:UrbanBackground/aqd:total/aqd:QuantityCommented/aqd:quantity/@uom" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- UB_total_comment -->
          <xsl:with-param name="elementValue" select="aqd:urbanBackground/aqd:UrbanBackground/aqd:total/aqd:QuantityCommented/aqd:comment" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- LI_total_quantity -->
          <xsl:with-param name="elementValue" select="aqd:localIncrement/aqd:LocalIncrement/aqd:total/aqd:QuantityCommented/aqd:quantity" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- LI_total_quantityUOM -->
          <xsl:with-param name="elementValue" select="aqd:localIncrement/aqd:LocalIncrement/aqd:total/aqd:QuantityCommented/aqd:quantity/@uom" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- LI_total_comment -->
          <xsl:with-param name="elementValue" select="aqd:localIncrement/aqd:LocalIncrement/aqd:total/aqd:QuantityCommented/aqd:comment" />
        </xsl:call-template>


        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- exceedance -->
          <xsl:with-param name="elementValue" select="aqd:macroExceedanceSituation/aqd:ExceedanceDescription/aqd:exceedance" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- numericalExceedance -->
          <xsl:with-param name="elementValue" select="aqd:macroExceedanceSituation/aqd:ExceedanceDescription/aqd:numericalExceedance" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- numberExceedances -->
          <xsl:with-param name="elementValue" select="aqd:macroExceedanceSituation/aqd:ExceedanceDescription/aqd:numberExceedances" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- reason -->
          <xsl:with-param name="elementValue" select="aqd:macroExceedanceSituation/aqd:ExceedanceDescription/aqd:reason/@xlink:href" />
        </xsl:call-template>

        <xsl:call-template name="CreateColumnHrefColumnMultipeValues"><!-- areaClassification -->
          <xsl:with-param name="elementValues" select="aqd:macroExceedanceSituation/aqd:ExceedanceDescription/aqd:exceedanceArea/aqd:ExceedanceArea/aqd:areaClassification" />
          <xsl:with-param name="sibling" select='"aqd:areaClassification"' />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- surfaceArea -->
          <xsl:with-param name="elementValue" select="aqd:macroExceedanceSituation/aqd:ExceedanceDescription/aqd:exceedanceArea/aqd:ExceedanceArea/aqd:surfaceArea" />
        </xsl:call-template>
        
        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- roadLength -->
          <xsl:with-param name="elementValue" select="aqd:macroExceedanceSituation/aqd:ExceedanceDescription/aqd:exceedanceArea/aqd:ExceedanceArea/aqd:roadLength" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- stationUsed -->
          <xsl:with-param name="elementValue" select="aqd:macroExceedanceSituation/aqd:ExceedanceDescription/aqd:exceedanceArea/aqd:ExceedanceArea/aqd:stationUsed/@xlink:href" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- modelUsed -->
          <xsl:with-param name="elementValue" select="aqd:macroExceedanceSituation/aqd:ExceedanceDescription/aqd:exceedanceArea/aqd:ExceedanceArea/aqd:modelUsed/@xlink:href" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- populationExposed -->
          <xsl:with-param name="elementValue" select="aqd:macroExceedanceSituation/aqd:ExceedanceDescription/aqd:exceedanceExposure/aqd:ExceedanceExposure/aqd:populationExposed" />
        </xsl:call-template>
        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- ecosystemAreaExposed -->
          <xsl:with-param name="elementValue" select="aqd:macroExceedanceSituation/aqd:ExceedanceDescription/aqd:exceedanceExposure/aqd:ExceedanceExposure/aqd:ecosystemAreaExposed" />
        </xsl:call-template>
        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- comment -->
        <xsl:with-param name="elementValue" select="aqd:comment" />
        </xsl:call-template>
        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- parentExceedanceSituation -->
        <xsl:with-param name="elementValue" select="aqd:parentExceedanceSituation/@xlink:href" />
        </xsl:call-template>
        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- usedInPlan -->
        <xsl:with-param name="elementValue" select="aqd:usedInPlan/@xlink:href" />
        </xsl:call-template>
      </table:table-row>
    </xsl:for-each>
  </xsl:template>

  <!-- I workflow 2nd tab regionalBackground -->
  <xsl:variable name="regionalBackgroundColumnNames"
                select='(
                "namespace", 
                "localId", 
                "RB_total_quantity", 
                "RB_total_quantityUOM", 
                "RB_total_comment", 
                "RB_fromWithinMS_quantity", 
                "RB_fromWithinMS_quantityUOM", 
                "RB_fromWithinMS_comment", 
                "RB_transboundary_quantity", 
                "RB_transboundary_quantityUOM", 
                "RB_transboundary_comment", 
                "RB_natural_quantity", 
                "RB_natural_quantityUOM", 
                "RB_natural_comment", 
                "RB_other_quantity", 
                "RB_other_quantityUOM" , 
                "RB_other_comment" )' />
  <xsl:template name="regionalBackground_allInfo_headers">
    <table:table-columns>
      <xsl:call-template name="CreateTemplateTableColumnHeader">
        <xsl:with-param name="numberOfColumns" select="count($regionalBackgroundColumnNames)" />
      </xsl:call-template>
    </table:table-columns>
    <table:table-header-rows>
      <table:table-row table:default-cell-value-type="string">
        <xsl:call-template name="create-table-header-row">
          <xsl:with-param name="columnNames" select="$regionalBackgroundColumnNames" />
        </xsl:call-template>
      </table:table-row>
    </table:table-header-rows>
  </xsl:template>
  <xsl:template name="regionalBackground_allInfo_rows">
    <xsl:for-each select=".">
      <table:table-row table:default-cell-value-type="string">

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- namespace -->
          <xsl:with-param name="elementValue" select="aqd:inspireId/base:Identifier/base:namespace" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- localId -->
          <xsl:with-param name="elementValue" select="aqd:inspireId/base:Identifier/base:localId" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- RB_total_quantity -->
          <xsl:with-param name="elementValue" select="aqd:regionalBackground/aqd:RegionalBackground/aqd:total/aqd:QuantityCommented/aqd:quantity" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- RB_total_quantityUOM -->
          <xsl:with-param name="elementValue" select="aqd:regionalBackground/aqd:RegionalBackground/aqd:total/aqd:QuantityCommented/aqd:quantity/@uom" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- RB_total_comment -->
          <xsl:with-param name="elementValue" select="aqd:regionalBackground/aqd:RegionalBackground/aqd:total/aqd:QuantityCommented/aqd:comment" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- RB_fromWithinMS_quantity -->
          <xsl:with-param name="elementValue" select="aqd:regionalBackground/aqd:RegionalBackground/aqd:fromWithinMS/aqd:QuantityCommented/aqd:quantity" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- RB_fromWithinMS_quantityUOM -->
          <xsl:with-param name="elementValue" select="aqd:regionalBackground/aqd:RegionalBackground/aqd:fromWithinMS/aqd:QuantityCommented/aqd:quantity/@uom" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- RB_fromWithinMS_comment -->
          <xsl:with-param name="elementValue" select="aqd:regionalBackground/aqd:RegionalBackground/aqd:fromWithinMS/aqd:QuantityCommented/aqd:comment" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- RB_transboundary_quantity -->
          <xsl:with-param name="elementValue" select="aqd:regionalBackground/aqd:RegionalBackground/aqd:transboundary/aqd:QuantityCommented/aqd:quantity" />
        </xsl:call-template>


        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- RB_transboundary_quantityUOM -->
          <xsl:with-param name="elementValue" select="aqd:regionalBackground/aqd:RegionalBackground/aqd:transboundary/aqd:QuantityCommented/aqd:quantity/@uom" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- RB_transboundary_comment -->
          <xsl:with-param name="elementValue" select="aqd:regionalBackground/aqd:RegionalBackground/aqd:transboundary/aqd:QuantityCommented/aqd:comment" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- RB_natural_quantity -->
          <xsl:with-param name="elementValue" select="aqd:regionalBackground/aqd:RegionalBackground/aqd:natural/aqd:QuantityCommented/aqd:quantity" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- RB_natural_quantityUOM -->
          <xsl:with-param name="elementValue" select="aqd:regionalBackground/aqd:RegionalBackground/aqd:natural/aqd:QuantityCommented/aqd:quantity/@uom" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- RB_natural_comment -->
          <xsl:with-param name="elementValue" select="aqd:regionalBackground/aqd:RegionalBackground/aqd:natural/aqd:QuantityCommented/aqd:comment" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- RB_other_quantity -->
          <xsl:with-param name="elementValue" select="aqd:regionalBackground/aqd:RegionalBackground/aqd:other/aqd:QuantityCommented/aqd:quantity" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- RB_other_quantityUOM -->
          <xsl:with-param name="elementValue" select="aqd:regionalBackground/aqd:RegionalBackground/aqd:other/aqd:QuantityCommented/aqd:quantity/@uom" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- RB_other_comment -->
          <xsl:with-param name="elementValue" select="aqd:regionalBackground/aqd:RegionalBackground/aqd:other/aqd:QuantityCommented/aqd:comment" />
        </xsl:call-template>
      </table:table-row>
    </xsl:for-each>
  </xsl:template>

  <!-- 3rd tab I report urbanBackground -->
  <xsl:variable name="urbanBackgroundColumnNames" select='(
        "namespace",
        "localId",
        "UB_total_quantity",
        "UB_total_quantityUOM",
        "UB_total_comment",
        "UB_traffic_quantity",
        "UB_traffic_quantityUOM",
        "UB_traffic_comment",
        "UB_headAndPower_quantity",
        "UB_headAndPower_quantityUOM",
        "UB_headAndPower_comment",
        "UB_agriculture_quantity",
        "UB_agriculture_quantityUOM",
        "UB_agriculture_comment",
        "UB_commercialAndResidential_quantity",
        "UB_commercialAndResidential_quantityUOM",
        "UB_commercialAndResidential_comment",
        "UB_shipping_quantity",
        "UB_shipping_quantityUOM",
        "UB_shipping_comment",
        "UB_offRoadMobileMachinery_quantity",
        "UB_offRoadMobileMachinery_quantityUOM",
        "UB_offRoadMobileMachinery_comment",
        "UB_natural_quantity",
        "UB_natural_quantityUOM",
        "UB_natural_comment",
        "UB_transboundary_quantity",
        "UB_transboundary_quantityUOM",
        "UB_transboundary_comment",
        "UB_other_quantity",
        "UB_other_quantityUOM",
        "UB_other_comment")' />
  <xsl:template name="urbanBackground_allInfo_headers">
    <table:table-columns>
      <xsl:call-template name="CreateTemplateTableColumnHeader">
        <xsl:with-param name="numberOfColumns" select="count($urbanBackgroundColumnNames)" />
      </xsl:call-template>
    </table:table-columns>
    <table:table-header-rows>
      <table:table-row table:default-cell-value-type="string">
        <xsl:call-template name="create-table-header-row">
          <xsl:with-param name="columnNames" select="$urbanBackgroundColumnNames" />
        </xsl:call-template>
      </table:table-row>
    </table:table-header-rows>
  </xsl:template>
  <xsl:template name="urbanBackground_allInfo_rows">
    <xsl:for-each select=".">
      <table:table-row table:default-cell-value-type="string">

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- namespace -->
          <xsl:with-param name="elementValue" select="aqd:inspireId/base:Identifier/base:namespace" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- localId -->
          <xsl:with-param name="elementValue" select="aqd:inspireId/base:Identifier/base:localId" />
        </xsl:call-template>

		<!--  fixed to QuantityCommented -->
        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- UB_total_quantity -->
          <xsl:with-param name="elementValue" select="aqd:urbanBackground/aqd:UrbanBackground/aqd:total/aqd:QuantityCommented/aqd:quantity" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- UB_total_quantityUOM -->
          <xsl:with-param name="elementValue" select="aqd:urbanBackground/aqd:UrbanBackground/aqd:total/aqd:QuantityCommented/aqd:quantity/@uom" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- UB_total_comment -->
          <xsl:with-param name="elementValue" select="aqd:urbanBackground/aqd:UrbanBackground/aqd:total/aqd:QuantityCommented/aqd:comment" />
        </xsl:call-template>

		<!--  fixed to QuantityCommented -->
        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- UB_traffic_quantity -->
          <xsl:with-param name="elementValue" select="aqd:urbanBackground/aqd:UrbanBackground/aqd:traffic/aqd:QuantityCommented/aqd:quantity" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- UB_traffic_quantityUOM -->
          <xsl:with-param name="elementValue" select="aqd:urbanBackground/aqd:UrbanBackground/aqd:traffic/aqd:QuantityCommented/aqd:quantity/@uom" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- UB_traffic_comment -->
          <xsl:with-param name="elementValue" select="aqd:urbanBackground/aqd:UrbanBackground/aqd:traffic/aqd:QuantityCommented/aqd:comment" />
        </xsl:call-template>

		<!--  fixed to QuantityCommented -->
        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- UB_headAndPower_quantity -->
          <xsl:with-param name="elementValue" select="aqd:urbanBackground/aqd:UrbanBackground/aqd:heatAndPowerProduction/aqd:QuantityCommented/aqd:quantity" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- UB_headAndPower_quantityUOM -->
          <xsl:with-param name="elementValue" select="aqd:urbanBackground/aqd:UrbanBackground/aqd:heatAndPowerProduction/aqd:QuantityCommented/aqd:quantity/@uom" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- UB_headAndPower_comment -->
          <xsl:with-param name="elementValue" select="aqd:urbanBackground/aqd:UrbanBackground/aqd:heatAndPowerProduction/aqd:QuantityCommented/aqd:comment" />
        </xsl:call-template>

		<!--  fixed to QuantityCommented -->
        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- UB_agriculture_quantity -->
          <xsl:with-param name="elementValue" select="aqd:urbanBackground/aqd:UrbanBackground/aqd:agriculture/aqd:QuantityCommented/aqd:quantity" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- UB_agriculture_quantityUOM -->
          <xsl:with-param name="elementValue" select="aqd:urbanBackground/aqd:UrbanBackground/aqd:agriculture/aqd:QuantityCommented/aqd:quantity/@uom" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- UB_agriculture_comment -->
          <xsl:with-param name="elementValue" select="aqd:urbanBackground/aqd:UrbanBackground/aqd:agriculture/aqd:QuantityCommented/aqd:comment" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- UB_commercialAndResidential_quantity -->
          <xsl:with-param name="elementValue" select="aqd:urbanBackground/aqd:UrbanBackground/aqd:commercialAndResidential/aqd:QuantityCommented/aqd:quantity" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- UB_commercialAndResidential_quantityUOM -->
          <xsl:with-param name="elementValue" select="aqd:urbanBackground/aqd:UrbanBackground/aqd:commercialAndResidential/aqd:QuantityCommented/aqd:quantity/@uom" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- UB_commercialAndResidential_comment -->
          <xsl:with-param name="elementValue" select="aqd:urbanBackground/aqd:UrbanBackground/aqd:commercialAndResidential/aqd:QuantityCommented/aqd:comment" />
        </xsl:call-template>

		<!--  fixed to QuantityCommented -->
        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- UB_shipping_quantity -->
          <xsl:with-param name="elementValue" select="aqd:urbanBackground/aqd:UrbanBackground/aqd:shipping/aqd:QuantityCommented/aqd:quantity" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- UB_shipping_quantityUOM -->
          <xsl:with-param name="elementValue" select="aqd:urbanBackground/aqd:UrbanBackground/aqd:shipping/aqd:QuantityCommented/aqd:quantity/@uom" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- UB_shipping_comment -->
          <xsl:with-param name="elementValue" select="aqd:urbanBackground/aqd:UrbanBackground/aqd:shipping/aqd:QuantityCommented/aqd:quantity/aqd:comment" />
        </xsl:call-template>

		<!--  fixed to QuantityCommented -->
        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- UB_offRoadMobileMachinery_quantity -->
          <xsl:with-param name="elementValue" select="aqd:urbanBackground/aqd:UrbanBackground/aqd:offRoadMobileMachinery/aqd:QuantityCommented/aqd:quantity" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- UB_offRoadMobileMachinery_quantityUOM -->
          <xsl:with-param name="elementValue" select="aqd:urbanBackground/aqd:UrbanBackground/aqd:offRoadMobileMachinery/aqd:QuantityCommented/aqd:quantity/@uom" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- UB_offRoadMobileMachinery_comment -->
          <xsl:with-param name="elementValue" select="aqd:urbanBackground/aqd:UrbanBackground/aqd:offRoadMobileMachinery/aqd:QuantityCommented/aqd:comment" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- UB_natural_quantity -->
          <xsl:with-param name="elementValue" select="aqd:urbanBackground/aqd:UrbanBackground/aqd:natural/aqd:QuantityCommented/aqd:quantity" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- UB_natural_quantityUOM -->
          <xsl:with-param name="elementValue" select="aqd:urbanBackground/aqd:UrbanBackground/aqd:natural/aqd:QuantityCommented/aqd:quantity/@uom" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- UB_natural_comment -->
          <xsl:with-param name="elementValue" select="aqd:urbanBackground/aqd:UrbanBackground/aqd:natural/aqd:QuantityCommented/aqd:comment" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- UB_transboundary_quantity -->
          <xsl:with-param name="elementValue" select="aqd:urbanBackground/aqd:UrbanBackground/aqd:transboundary/aqd:QuantityCommented/aqd:quantity" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- UB_transboundary_quantityUOM -->
          <xsl:with-param name="elementValue" select="aqd:urbanBackground/aqd:UrbanBackground/aqd:transboundary/aqd:QuantityCommented/aqd:quantity/@uom" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- UB_transboundary_comment -->
          <xsl:with-param name="elementValue" select="aqd:urbanBackground/aqd:UrbanBackground/aqd:transboundary/aqd:QuantityCommented/aqd:comment" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- UB_other_quantity -->
          <xsl:with-param name="elementValue" select="aqd:urbanBackground/aqd:UrbanBackground/aqd:other/aqd:QuantityCommented/aqd:quantity" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- UB_other_quantityUOM -->
          <xsl:with-param name="elementValue" select="aqd:urbanBackground/aqd:UrbanBackground/aqd:other/aqd:QuantityCommented/aqd:quantity/@uom" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- UB_other_comment -->
          <xsl:with-param name="elementValue" select="aqd:urbanBackground/aqd:UrbanBackground/aqd:other/aqd:QuantityCommented/aqd:comment" />
        </xsl:call-template>

      </table:table-row>
    </xsl:for-each>
  </xsl:template>

  <!-- 4th tab I flow - localIncrement -->
  
  <xsl:variable name="localIncrementColumnNames" select='(
        "namespace",
        "localId",
        "LI_total_quantity",
        "LI_total_quantityUOM",
        "LI_total_comment",
        "LI_traffic_quantity",
        "LI_traffic_quantityUOM",
        "LI_traffic_comment",
        "LI_headAndPower_quantity",
        "LI_headAndPower_quantityUOM",
        "I_headAndPowercomment",
        "LI_agriculture_quantity",
        "LI_agriculture_quantityUOM",
        "LI_agriculture_comment",
        "LI_commercialAndResidential_quantity",
        "LI_commercialAndResidential_quantityUOM",
        "LI_commercialAndResidential_comment",
        "LI_shipping_quantity",
        "LI_shipping_quantityUOM",
        "LI_shipping_comment",
        "LI_offRoadMobileMachinery_quantity",
        "LI_offRoadMobileMachinery_quantityUOM",
        "LI_offRoadMobileMachinery_comment",
        "LI_natural_quantity",
        "LI_natural_quantityUOM",
        "LI_natural_comment",
        "LI_transboundary_quantity",
        "LI_transboundary_quantityUOM",
        "LI_transboundary_comment",
        "LI_other_quantity",
        "LI_other_quantityUOM",
        "LI_other_comment")' />
  <xsl:template name="localIncrement_allInfo_headers">
    <table:table-columns>
      <xsl:call-template name="CreateTemplateTableColumnHeader">
        <xsl:with-param name="numberOfColumns" select="count($localIncrementColumnNames)" />
      </xsl:call-template>
    </table:table-columns>
    <table:table-header-rows>
      <table:table-row table:default-cell-value-type="string">
        <xsl:call-template name="create-table-header-row">
          <xsl:with-param name="columnNames" select="$localIncrementColumnNames" />
        </xsl:call-template>
      </table:table-row>
    </table:table-header-rows>
  </xsl:template>
  <xsl:template name="localIncrement_allInfo_rows">
    <xsl:for-each select=".">
      <table:table-row table:default-cell-value-type="string">

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- namespace -->
          <xsl:with-param name="elementValue" select="aqd:inspireId/base:Identifier/base:namespace" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- localId -->
          <xsl:with-param name="elementValue" select="aqd:inspireId/base:Identifier/base:localId" />
        </xsl:call-template>

		<!--  fixed to QuantityCommented -->
        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- LI_total_quantity -->
          <xsl:with-param name="elementValue" select="aqd:localIncrement/aqd:LocalIncrement/aqd:total/aqd:QuantityCommented/aqd:quantity" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- LI_total_quantityUOM -->
          <xsl:with-param name="elementValue" select="aqd:localIncrement/aqd:LocalIncrement/aqd:total/aqd:QuantityCommented/aqd:quantity/@uom" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- LI_total_comment -->
          <xsl:with-param name="elementValue" select="aqd:localIncrement/aqd:LocalIncrement/aqd:total/aqd:QuantityCommented/aqd:comment" />
        </xsl:call-template>

		<!--  fixed to QuantityCommented -->
        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- LI_traffic_quantity -->
          <xsl:with-param name="elementValue" select="aqd:localIncrement/aqd:LocalIncrement/aqd:traffic/aqd:QuantityCommented/aqd:quantity" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- LI_traffic_quantityUOM -->
          <xsl:with-param name="elementValue" select="aqd:localIncrement/aqd:LocalIncrement/aqd:traffic/aqd:QuantityCommented/aqd:quantity/@uom" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- LI_traffic_comment -->
          <xsl:with-param name="elementValue" select="aqd:localIncrement/aqd:LocalIncrement/aqd:traffic/aqd:QuantityCommented/aqd:comment" />
        </xsl:call-template>

		<!--  fixed to QuantityCommented -->
        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- LI_headAndPower_quantity -->
          <xsl:with-param name="elementValue" select="aqd:localIncrement/aqd:LocalIncrement/aqd:heatAndPowerProduction/aqd:QuantityCommented/aqd:quantity" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- LI_headAndPower_quantityUOM -->
          <xsl:with-param name="elementValue" select="aqd:localIncrement/aqd:LocalIncrement/aqd:heatAndPowerProduction/aqd:QuantityCommented/aqd:quantity/@uom" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- LI_headAndPower_comment -->
          <xsl:with-param name="elementValue" select="aqd:localIncrement/aqd:LocalIncrement/aqd:heatAndPowerProduction/aqd:QuantityCommented/aqd:comment" />
        </xsl:call-template>

		<!--  fixed to QuantityCommented -->
        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- LI_agriculture_quantity -->
          <xsl:with-param name="elementValue" select="aqd:localIncrement/aqd:LocalIncrement/aqd:agriculture/aqd:QuantityCommented/aqd:quantity" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- LI_agriculture_quantityUOM -->
          <xsl:with-param name="elementValue" select="aqd:localIncrement/aqd:LocalIncrement/aqd:agriculture/aqd:QuantityCommented/aqd:quantity/@uom" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- LI_agriculture_comment -->
          <xsl:with-param name="elementValue" select="aqd:localIncrement/aqd:LocalIncrement/aqd:agriculture/aqd:QuantityCommented/aqd:comment" />
        </xsl:call-template>

		<!--  fixed to QuantityCommented -->
        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- LI_commercialAndResidential_quantity -->
          <xsl:with-param name="elementValue" select="aqd:localIncrement/aqd:LocalIncrement/aqd:commercialAndResidential/aqd:QuantityCommented/aqd:quantity" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- LI_commercialAndResidential_quantityUOM -->
          <xsl:with-param name="elementValue" select="aqd:localIncrement/aqd:LocalIncrement/aqd:commercialAndResidential/aqd:QuantityCommented/aqd:quantity/@uom" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- LI_commercialAndResidential_comment -->
          <xsl:with-param name="elementValue" select="aqd:localIncrement/aqd:LocalIncrement/aqd:commercialAndResidential/aqd:QuantityCommented/aqd:comment" />
        </xsl:call-template>

		<!--  fixed to QuantityCommented -->
        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- LI_shipping_quantity -->
          <xsl:with-param name="elementValue" select="aqd:localIncrement/aqd:LocalIncrement/aqd:shipping/aqd:QuantityCommented/aqd:quantity" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- LI_shipping_quantityUOM -->
          <xsl:with-param name="elementValue" select="aqd:localIncrement/aqd:LocalIncrement/aqd:shipping/aqd:QuantityCommented/aqd:quantity/@uom" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- LI_shipping_comment -->
          <xsl:with-param name="elementValue" select="aqd:localIncrement/aqd:LocalIncrement/aqd:shipping/aqd:QuantityCommented/aqd:comment" />
        </xsl:call-template>

		<!--  fixed to QuantityCommented -->
        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- LI_offRoadMobileMachinery_quantity -->
          <xsl:with-param name="elementValue" select="aqd:localIncrement/aqd:LocalIncrement/aqd:offRoadMobileMachinery/aqd:QuantityCommented/aqd:quantity" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- LI_offRoadMobileMachinery_quantityUOM -->
          <xsl:with-param name="elementValue" select="aqd:localIncrement/aqd:LocalIncrement/aqd:offRoadMobileMachinery/aqd:QuantityCommented/aqd:quantity/@uom" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- LI_offRoadMobileMachinery_comment -->
          <xsl:with-param name="elementValue" select="aqd:localIncrement/aqd:LocalIncrement/aqd:offRoadMobileMachinery/aqd:QuantityCommented/aqd:comment" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- LI_natural_quantity -->
          <xsl:with-param name="elementValue" select="aqd:localIncrement/aqd:LocalIncrement/aqd:natural/aqd:QuantityCommented/aqd:quantity" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- LI_natural_quantityUOM -->
          <xsl:with-param name="elementValue" select="aqd:localIncrement/aqd:LocalIncrement/aqd:natural/aqd:QuantityCommented/aqd:quantity/@uom" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- LI_natural_comment -->
          <xsl:with-param name="elementValue" select="aqd:localIncrement/aqd:LocalIncrement/aqd:natural/aqd:QuantityCommented/aqd:comment" />
        </xsl:call-template>
        
		<!--  fixed to QuantityCommented -->
        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- LI_transboundary_quantity -->
          <xsl:with-param name="elementValue" select="aqd:localIncrement/aqd:LocalIncrement/aqd:transboundary/aqd:QuantityCommented/aqd:quantity" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- LI_transboundary_quantityUOM -->
          <xsl:with-param name="elementValue" select="aqd:localIncrement/aqd:LocalIncrement/aqd:transboundary/aqd:QuantityCommented/aqd:quantity/@uom" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- LI_transboundary_comment -->
          <xsl:with-param name="elementValue" select="aqd:localIncrement/aqd:LocalIncrement/aqd:transboundary/aqd:QuantityCommented/aqd:comment" />
        </xsl:call-template>

		<!--  fixed to QuantityCommented -->
        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- LI_other_quantity -->
          <xsl:with-param name="elementValue" select="aqd:localIncrement/aqd:LocalIncrement/aqd:other/aqd:QuantityCommented/aqd:quantity" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- LI_other_quantityUOM -->
          <xsl:with-param name="elementValue" select="aqd:localIncrement/aqd:LocalIncrement/aqd:other/aqd:QuantityCommented/aqd:quantity/@uom" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- LI_other_comment -->
          <xsl:with-param name="elementValue" select="aqd:localIncrement/aqd:LocalIncrement/aqd:other/aqd:QuantityCommented/aqd:comment" />
        </xsl:call-template>
      </table:table-row>
    </xsl:for-each>
  </xsl:template>

  <!-- 5th tab I workflow Exceedance -->
  <xsl:variable name="exceedanceColumnNames" select='(
        "namespace",
        "localId",
        "Exceedance",
        "numericalExc",
        "numberExc",
        "areaClass",
        "spatialExtent",
        "surfaceArea",
        "surfaceAreaUOM",
        "roadLength",
        "roadLengthUOM",
        "adminUnit",
        "stationUsed",
        "modelUsed",
        "populationExposed",
        "ecosystemExposed",
        "ecosystemExposedUOM",
        "sensitivePopulation",
        "infrastructure",
        "referenceYear",
        "reason",
        "reasonOther",
        "comment"
        )' />
  <xsl:template name="Exceedance_allInfo_headers">
    <table:table-columns>
      <xsl:call-template name="CreateTemplateTableColumnHeader">
        <xsl:with-param name="numberOfColumns" select="count($exceedanceColumnNames)" />
      </xsl:call-template>
    </table:table-columns>
    <table:table-header-rows>
      <table:table-row table:default-cell-value-type="string">
        <xsl:call-template name="create-table-header-row">
          <xsl:with-param name="columnNames" select="$exceedanceColumnNames" />
        </xsl:call-template>
      </table:table-row>
    </table:table-header-rows>
  </xsl:template>
  <xsl:template name="Exceedance_allInfo_rows">
    <xsl:for-each select=".">
      <table:table-row table:default-cell-value-type="string">

        <xsl:call-template name="CreateTemplateTableColumnCell"> <!--  namespace  -->
          <xsl:with-param name="elementValue" select="aqd:inspireId/base:Identifier/base:namespace" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"> <!--  localId -->
          <xsl:with-param name="elementValue" select="aqd:inspireId/base:Identifier/base:localId" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"> <!--  Exceedance -->
          <xsl:with-param name="elementValue" select="aqd:macroExceedanceSituation/aqd:ExceedanceDescription/aqd:exceedance" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- numericalExc -->
          <xsl:with-param name="elementValue" select="aqd:macroExceedanceSituation/aqd:ExceedanceDescription/aqd:numericalExceedance" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- numberExc -->
          <xsl:with-param name="elementValue" select="aqd:macroExceedanceSituation/aqd:ExceedanceDescription/aqd:numberExceedances" />
        </xsl:call-template>

        <xsl:call-template name="CreateColumnHrefColumnMultipeValues"><!-- areaClass -->
          <xsl:with-param name="elementValues" select="aqd:macroExceedanceSituation/aqd:ExceedanceDescription/aqd:ExceedanceArea/aqd:ExceedanceArea/aqd:areaClassification" />
          <xsl:with-param name="sibling" select='"aqd:areaClassification"' />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- spatialExtent -->
          <xsl:with-param name="elementValue" select="aqd:macroExceedanceSituation/aqd:ExceedanceDescription/aqd:ExceedanceArea/aqd:ExceedanceArea/aqd:spatialExtent" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- surfaceArea -->
          <xsl:with-param name="elementValue" select="aqd:macroExceedanceSituation/aqd:ExceedanceDescription/aqd:exceedanceArea/aqd:ExceedanceArea/aqd:surfaceArea" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- surfaceAreaUOM -->
          <xsl:with-param name="elementValue" select="aqd:macroExceedanceSituation/aqd:ExceedanceDescription/aqd:exceedanceArea/aqd:ExceedanceArea/aqd:surfaceArea/@uom" />
        </xsl:call-template>
		
		<xsl:call-template name="CreateTemplateTableColumnCell"><!-- roadLength -->
          <xsl:with-param name="elementValue" select="aqd:macroExceedanceSituation/aqd:ExceedanceDescription/aqd:exceedanceArea/aqd:ExceedanceArea/aqd:roadLength" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- roadLengthUOM -->
          <xsl:with-param name="elementValue" select="aqd:macroExceedanceSituation/aqd:ExceedanceDescription/aqd:exceedanceArea/aqd:ExceedanceArea/aqd:roadLength/@uom" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- adminUnit -->
          <xsl:with-param name="elementValue" select="aqd:macroExceedanceSituation/aqd:ExceedanceDescription/aqd:exceedanceArea/aqd:ExceedanceArea/aqd:administrativeUnit/@xlink:href" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- stationUsed -->
          <xsl:with-param name="elementValue" select="aqd:macroExceedanceSituation/aqd:ExceedanceDescription/aqd:exceedanceArea/aqd:ExceedanceArea/aqd:stationUsed/@xlink:href" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- modelUsed -->
          <xsl:with-param name="elementValue" select="aqd:macroExceedanceSituation/aqd:ExceedanceDescription/aqd:exceedanceArea/aqd:ExceedanceArea/aqd:modelUsed/@xlink:href" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- populationExposed -->
          <xsl:with-param name="elementValue" select="aqd:macroExceedanceSituation/aqd:ExceedanceDescription/aqd:exceedanceExposure/aqd:ExceedanceExposure/aqd:populationExposed" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- ecosystemExposed -->
          <xsl:with-param name="elementValue" select="aqd:macroExceedanceSituation/aqd:ExceedanceDescription/aqd:exceedanceExposure/aqd:ExceedanceExposure/aqd:ecosystemAreaExposed" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- ecosystemExposedUOM -->
          <xsl:with-param name="elementValue" select="aqd:macroExceedanceSituation/aqd:ExceedanceDescription/aqd:exceedanceExposure/aqd:ExceedanceExposure/aqd:ecosystemAreaExposed/@uom" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- sensitivePopulation -->
          <xsl:with-param name="elementValue" select="aqd:macroExceedanceSituation/aqd:ExceedanceDescription/aqd:exceedanceExposure/aqd:ExceedanceExposure/aqd:sensitivePopulation" />
        </xsl:call-template>
        
        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- infrastructure -->
          <xsl:with-param name="elementValue" select="aqd:macroExceedanceSituation/aqd:ExceedanceDescription/aqd:exceedanceExposure/aqd:ExceedanceExposure/aqd:infrastructureServices" />
        </xsl:call-template>
        
        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- referenceYear -->
          <xsl:with-param name="elementValue" select="aqd:macroExceedanceSituation/aqd:ExceedanceDescription/aqd:exceedanceExposure/aqd:ExceedanceExposure/aqd:referenceYear" />
        </xsl:call-template>
        
        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- reason -->
          <xsl:with-param name="elementValue" select="aqd:macroExceedanceSituation/aqd:ExceedanceDescription/aqd:reason" />
        </xsl:call-template>
        
        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- reasonOther -->
          <xsl:with-param name="elementValue" select="aqd:macroExceedanceSituation/aqd:ExceedanceDescription/aqd:reasonOther" />
        </xsl:call-template>
        
        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- comment -->
          <xsl:with-param name="elementValue" select="aqd:macroExceedanceSituation/aqd:ExceedanceDescription/aqd:comment" />
        </xsl:call-template>



      </table:table-row>
    </xsl:for-each>
  </xsl:template>
  <!-- I workflow end -->


  <!-- J workflow start -->

  <!-- J workflow 1st tab: EvaluationScenarios_all_info -->
  <xsl:variable name="evaluationScenariosColumnNames" select="(
  		'@gml:id', 
  		'namespace', 
  		'localId', 
  		'versionId', 
  		'codeOfScenario', 
  		'publicationDescript', 
  		'publicationTitle', 
  		'publicationAuthor', 
  		'publicationDate', 
  		'publisher', 
  		'weblink', 
  		'AttainmentYear', 
  		'StarYear', 
  		'baseDescription', 
  		'baseTotal', 
  		'baseConcentration', 
  		'baseComments', 
  		'usedInPlan', 
  		'sourceApportionment')" />
  <xsl:template name="EvaluationScenarios_allInfo_headers">
    <table:table-columns>
      <xsl:call-template name="CreateTemplateTableColumnHeader">
        <xsl:with-param name="numberOfColumns" select="count($evaluationScenariosColumnNames)" />
      </xsl:call-template>
    </table:table-columns>
    <table:table-header-rows>
      <table:table-row table:default-cell-value-type="string">
        <xsl:call-template name="create-table-header-row">
          <xsl:with-param name="columnNames" select="$evaluationScenariosColumnNames" />
        </xsl:call-template>
      </table:table-row>
    </table:table-header-rows>
  </xsl:template>
  <xsl:template name="EvaluationScenarios_allInfo_rows">
    <xsl:for-each select=".">
      <table:table-row table:default-cell-value-type="string">

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- @gml:id -->
          <xsl:with-param name="elementValue" select="@gml:id" />
        </xsl:call-template>


        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- namespace -->
          <xsl:with-param name="elementValue" select="aqd:inspireId/base:Identifier/base:namespace" />
        </xsl:call-template>


        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- localId -->
          <xsl:with-param name="elementValue" select="aqd:inspireId/base:Identifier/base:localId" />
        </xsl:call-template>


        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- versionId -->
          <xsl:with-param name="elementValue" select="aqd:inspireId/base:Identifier/base:versionId" />
        </xsl:call-template>


        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- codeOfScenario -->
          <xsl:with-param name="elementValue" select="aqd:codeOfScenario" />
        </xsl:call-template>


        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- publicationDescript -->
          <xsl:with-param name="elementValue" select="aqd:publication/aqd:Publication/aqd:description" />
        </xsl:call-template>


        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- publicationTitle -->
          <xsl:with-param name="elementValue" select="aqd:publication/aqd:Publication/aqd:title" />
        </xsl:call-template>


        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- publicationAuthor -->
          <xsl:with-param name="elementValue" select="aqd:publication/aqd:Publication/aqd:author" />
        </xsl:call-template>


        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- publicationDate -->
          <xsl:with-param name="elementValue" select="aqd:publication/aqd:Publication/aqd:publicationDate/gml:TimeInstant/gml:timePosition" />
        </xsl:call-template>


        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- publisher -->
          <xsl:with-param name="elementValue" select="aqd:publication/aqd:Publication/aqd:publisher" />
        </xsl:call-template>


        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- weblink -->
          <xsl:with-param name="elementValue" select="aqd:publication/aqd:Publication/aqd:webLink" />
        </xsl:call-template>


        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- AttainmentYear -->
          <xsl:with-param name="elementValue" select="aqd:attainmentYear/gml:TimeInstant/gml:timePosition" />
        </xsl:call-template>


        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- StarYear -->
          <xsl:with-param name="elementValue" select="aqd:startYear/gml:TimeInstant/gml:timePosition" />
        </xsl:call-template>


        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- baseDescription -->
          <xsl:with-param name="elementValue" select="aqd:baselineScenario/aqd:Scenario/aqd:description" />
        </xsl:call-template>


        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- baseTotal -->
          <xsl:with-param name="elementValue" select="aqd:baselineScenario/aqd:Scenario/aqd:totalEmissions" />
        </xsl:call-template>


        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- baseConcentration -->
          <xsl:with-param name="elementValue" select="aqd:baselineScenario/aqd:Scenario/aqd:expectedConcentration" />
        </xsl:call-template>


        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- baseComments -->
          <xsl:with-param name="elementValue" select="aqd:baselineScenario/aqd:Scenario/aqd:comment" />
        </xsl:call-template>


        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- usedInPlan -->
          <xsl:with-param name="elementValue" select="aqd:usedInPlan/@xlink:href" />
        </xsl:call-template>


        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- sourceApportionment -->
          <xsl:with-param name="elementValue" select="aqd:sourceApportionment/@xlink:href" />
        </xsl:call-template>

      </table:table-row>
    </xsl:for-each>
  </xsl:template>

  <!-- J workflow 2nd Tab: BaselineScenario -->
  <xsl:variable name="BaselineScenarioColumnNames" select="(
  		'namespace', 
  		'localId',  
  		'codeOfScenario',  
  		'description',  
  		'totalEmissions',  
  		'totalEmissionsUOM',  
  		'expectedConc',  
  		'expectedConcUOM',  
  		'expectedExceedances',  
  		'comment',  
  		'measuredApplied')" />
  <xsl:template name="BaselineScenario_allInfo_headers">
    <table:table-columns>
      <xsl:call-template name="CreateTemplateTableColumnHeader">
        <xsl:with-param name="numberOfColumns" select="count($BaselineScenarioColumnNames)" />
      </xsl:call-template>
    </table:table-columns>
    <table:table-header-rows>
      <table:table-row table:default-cell-value-type="string">
        <xsl:call-template name="create-table-header-row">
          <xsl:with-param name="columnNames" select="$BaselineScenarioColumnNames" />
        </xsl:call-template>
      </table:table-row>
    </table:table-header-rows>
  </xsl:template>
  <xsl:template name="BaselineScenario_allInfo_rows">
    <xsl:for-each select=".">
      <table:table-row table:default-cell-value-type="string">


        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- namespace -->
          <xsl:with-param name="elementValue" select="aqd:inspireId/base:Identifier/base:namespace" />
        </xsl:call-template>


        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- localId -->
          <xsl:with-param name="elementValue" select="aqd:inspireId/base:Identifier/base:localId" />
        </xsl:call-template>


        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- codeOfScenario -->
          <xsl:with-param name="elementValue" select="aqd:codeOfScenario" />
        </xsl:call-template>


        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- description -->
          <xsl:with-param name="elementValue" select="aqd:baselineScenario/aqd:Scenario/aqd:description" />
        </xsl:call-template>


        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- totalEmissions -->
          <xsl:with-param name="elementValue" select="aqd:baselineScenario/aqd:Scenario/aqd:totalEmissions" />
        </xsl:call-template>


        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- totalEmissionsUOM -->
          <xsl:with-param name="elementValue" select="aqd:baselineScenario/aqd:Scenario/aqd:totalEmissions/@uom" />
        </xsl:call-template>


        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- expectedConc -->
          <xsl:with-param name="elementValue" select="aqd:baselineScenario/aqd:Scenario/aqd:expectedConcentration" />
        </xsl:call-template>


        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- expectedConcUOM -->
          <xsl:with-param name="elementValue" select="aqd:baselineScenario/aqd:Scenario/aqd:expectedConcentration/@uom" />
        </xsl:call-template>


        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- expectedExceedances -->
          <xsl:with-param name="elementValue" select="aqd:baselineScenario/aqd:Scenario/aqd:expectedExceedances" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- comment -->
          <xsl:with-param name="elementValue" select="aqd:baselineScenario/aqd:Scenario/aqd:comment" />
        </xsl:call-template>


        <xsl:call-template name="CreateColumnHrefColumnMultipeValues"><!-- measuredApplied -->
          <xsl:with-param name="elementValues" select="aqd:baselineScenario/aqd:Scenario/aqd:measuresApplied" />
          <xsl:with-param name="sibling" select="'aqd:measuresApplied'" />
        </xsl:call-template>

      </table:table-row>
    </xsl:for-each>
  </xsl:template>
  <!-- J workflow 3rd Tab: BaselineMeasures -->
  <xsl:variable name="BaselineMeasuresColumnNames" select="('namespace', 'localId', 'codeOfScenario', 'measuredApplied')" />
  <xsl:template name="BaselineMeasures_allInfo_headers">
    <table:table-columns>
      <xsl:call-template name="CreateTemplateTableColumnHeader">
        <xsl:with-param name="numberOfColumns" select="count($BaselineMeasuresColumnNames)" />
      </xsl:call-template>
    </table:table-columns>
    <table:table-header-rows>
      <table:table-row table:default-cell-value-type="string">
        <xsl:call-template name="create-table-header-row">
          <xsl:with-param name="columnNames" select="$BaselineMeasuresColumnNames" />
        </xsl:call-template>
      </table:table-row>
    </table:table-header-rows>
  </xsl:template>
  <xsl:template name="BaselineMeasures_allInfo_rows">
    <xsl:for-each select=".">
      <table:table-row table:default-cell-value-type="string">

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- namespace -->
          <xsl:with-param name="elementValue" select="aqd:inspireId/base:Identifier/base:namespace" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- localId -->
          <xsl:with-param name="elementValue" select="aqd:inspireId/base:Identifier/base:localId" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- codeOfScenario -->
          <xsl:with-param name="elementValue" select="aqd:codeOfScenario" />
        </xsl:call-template>

        <xsl:call-template name="CreateColumnHrefColumnMultipeValues"><!-- measuredApplied -->
          <xsl:with-param name="elementValues" select="aqd:baselineScenario/aqd:Scenario/aqd:measuresApplied" />
          <xsl:with-param name="sibling" select="'aqd:measuresApplied'" />
        </xsl:call-template>

      </table:table-row>
    </xsl:for-each>
  </xsl:template>
  <!-- J workflow 4th tab: projectionScenario -->
  <xsl:variable name="projectionScenarioColumnNames" select="(
  		'namespace', 
  		'localId', 
  		'codeOfScenario', 
  		'description', 
  		'totalEmissions', 
  		'totalEmissionsUOM', 
  		'expectedConc', 
  		'expectedConcUOM', 
  		'expectedExceedances', 
  		'comment', 
  		'measuredApplied' )" />
  <xsl:template name="projectionScenario_allInfo_headers">
    <table:table-columns>
      <xsl:call-template name="CreateTemplateTableColumnHeader">
        <xsl:with-param name="numberOfColumns" select="count($projectionScenarioColumnNames)" />
      </xsl:call-template>
    </table:table-columns>
    <table:table-header-rows>
      <table:table-row table:default-cell-value-type="string">
        <xsl:call-template name="create-table-header-row">
          <xsl:with-param name="columnNames" select="$projectionScenarioColumnNames" />
        </xsl:call-template>
      </table:table-row>
    </table:table-header-rows>
  </xsl:template>
  <xsl:template name="projectionScenario_allInfo_rows">
    <xsl:for-each select=".">
      <table:table-row table:default-cell-value-type="string">

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- namespace -->
          <xsl:with-param name="elementValue" select="aqd:inspireId/base:Identifier/base:namespace" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- localId -->
          <xsl:with-param name="elementValue" select="aqd:inspireId/base:Identifier/base:localId" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- codeOfScenario -->
          <xsl:with-param name="elementValue" select="aqd:codeOfScenario" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- description -->
          <xsl:with-param name="elementValue" select="aqd:projectionScenario/aqd:Scenario/aqd:description" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- totalEmissions -->
          <xsl:with-param name="elementValue" select="aqd:projectionScenario/aqd:Scenario/aqd:totalEmissions" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- totalEmissionsUOM -->
          <xsl:with-param name="elementValue" select="aqd:projectionScenario/aqd:Scenario/aqd:totalEmissions/@uom" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- expectedConc -->
          <xsl:with-param name="elementValue" select="aqd:projectionScenario/aqd:Scenario/aqd:expectedConcentration" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- expectedConcUOM -->
          <xsl:with-param name="elementValue" select="aqd:projectionScenario/aqd:Scenario/aqd:expectedConcentration/@uom" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- expectedExceedances -->
          <xsl:with-param name="elementValue" select="aqd:projectionScenario/aqd:Scenario/aqd:expectedExceedances" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- comment -->
          <xsl:with-param name="elementValue" select="aqd:projectionScenario/aqd:Scenario/aqd:comment" />
        </xsl:call-template>

        <xsl:call-template name="CreateColumnHrefColumnMultipeValues"><!-- measuredApplied -->
          <xsl:with-param name="elementValues" select="aqd:projectionScenario/aqd:Scenario/aqd:measuresApplied" />
          <xsl:with-param name="sibling" select="'aqd:measuresApplied'" />
        </xsl:call-template>

      </table:table-row>
    </xsl:for-each>
  </xsl:template>
  <!-- J workflow 5th tab: ProjectionMeasures -->
  <xsl:variable name="ProjectionMeasuresColumnNames" select="(
  		'namespace', 
  		'localId', 
  		'codeOfScenario', 
  		'measuredApplied')" />
  <xsl:template name="ProjectionMeasures_allInfo_headers">
    <table:table-columns>
      <xsl:call-template name="CreateTemplateTableColumnHeader">
        <xsl:with-param name="numberOfColumns" select="count($ProjectionMeasuresColumnNames)" />
      </xsl:call-template>
    </table:table-columns>
    <table:table-header-rows>
      <table:table-row table:default-cell-value-type="string">
        <xsl:call-template name="create-table-header-row">
          <xsl:with-param name="columnNames" select="$ProjectionMeasuresColumnNames" />
        </xsl:call-template>
      </table:table-row>
    </table:table-header-rows>
  </xsl:template>
  <xsl:template name="ProjectionMeasures_allInfo_rows">
    <xsl:for-each select=".">
      <table:table-row table:default-cell-value-type="string">

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- namespace -->
          <xsl:with-param name="elementValue" select="aqd:inspireId/base:Identifier/base:namespace" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- localId -->
          <xsl:with-param name="elementValue" select="aqd:inspireId/base:Identifier/base:localId" />
        </xsl:call-template>

        <xsl:call-template name="CreateTemplateTableColumnCell"><!-- codeOfScenario -->
          <xsl:with-param name="elementValue" select="aqd:codeOfScenario" />
        </xsl:call-template>

        <xsl:call-template name="CreateColumnHrefColumnMultipeValues"><!-- measuredApplied -->
          <xsl:with-param name="elementValues" select="aqd:projectionScenario/aqd:Scenario/aqd:measuresApplied" />
          <xsl:with-param name="sibling" select="'aqd:measuresApplied'" />
        </xsl:call-template>

      </table:table-row>
    </xsl:for-each>
  </xsl:template>
  <!-- J workflow end -->


  <!-- K (measures)-->
  <!-- K (Measures_allInfo) -->
  <xsl:template name="Measures_allInfo_headers">
    <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-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-header-rows>
      <table:table-row table:default-cell-value-type="string">
        <table:table-cell table:style-name="Heading2">
          <text:p>
            gml:id
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            namespace
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            localId
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            versionId
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            code
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            name
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            description
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            measureclassification
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            measureType
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            administrativeLevel
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            timeScale
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            costs
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            currency
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            sourceSectors
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            spatialScale
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            status
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            beginPosition
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            endPosition
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            plannedFullEffectDate
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            monitoringProgressIndicators
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            comment
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            reductionEmissionsQuant
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            reductionEmissionsUom
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            reductionEmissionsComment
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            expectImpactConc
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            expectImpactConcUOM
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            expectImpactExceed
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            expectImpactSpecHours
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            expectImpactComment
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            comment
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            exceedanceAffected
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            usedForScenario
          </text:p>
        </table:table-cell>
      </table:table-row>
    </table:table-header-rows>
  </xsl:template>
  <xsl:template name="Measures_allInfo_rows">
    <xsl:for-each select=".">
      <table:table-row table:default-cell-value-type="string">

        <!-- 1.1 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="@gml:id"/>
          </text:p>
        </table:table-cell>

        <!-- 1.2 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:inspireId/base:Identifier/base:namespace"/>
          </text:p>
        </table:table-cell>

        <!-- 1.3 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:inspireId/base:Identifier/base:localId"/>
          </text:p>
        </table:table-cell>

        <!-- 1.4 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:inspireId/base:Identifier/base:versionId"/>
          </text:p>
        </table:table-cell>

        <!-- 1.5 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:code"/>
          </text:p>
        </table:table-cell>

        <!-- 1.6 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:name"/>
          </text:p>
        </table:table-cell>

        <!-- 1.7 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:description"/>
          </text:p>
        </table:table-cell>

        <!-- 1.8 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:for-each select="aqd:classification">
              <xsl:value-of select="@xlink:href" />
              <xsl:if test="following-sibling::aqd:classification">
                <xsl:text> || </xsl:text>
              </xsl:if>
            </xsl:for-each>
          </text:p>
        </table:table-cell>

        <!-- 1.9 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:measureType/@xlink:href"/>
          </text:p>
        </table:table-cell>

        <!-- 1.10 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:for-each select="aqd:administrativeLevel">
              <xsl:value-of select="@xlink:href"/>
              <xsl:if test="following-sibling::aqd:administrativeLevel">
                <xsl:text> || </xsl:text>
              </xsl:if>
            </xsl:for-each>
          </text:p>
        </table:table-cell>

        <!-- 1.11 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:timeScale/@xlink:href"/>
          </text:p>
        </table:table-cell>

        <!-- 1.12 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:costs/aqd:Costs/aqd:estimatedImplementationCosts"/>
          </text:p>
        </table:table-cell>

        <!-- 1.13 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:costs/aqd:Costs/aqd:currency/@xlink:href"/>
          </text:p>
        </table:table-cell>

        <!-- 1.14 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:for-each select="aqd:sourceSectors">
              <xsl:value-of select="@xlink:href"/>
              <xsl:if test="following-sibling::aqd:sourceSectors">
                <xsl:text> || </xsl:text>
              </xsl:if>
            </xsl:for-each>
          </text:p>
        </table:table-cell>


        <!-- 1.15 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:for-each select="aqd:spatialScale">
              <xsl:value-of select="@xlink:href"/>
              <xsl:if test="following-sibling::aqd:spatialScale">
                <xsl:text> || </xsl:text>
              </xsl:if>
            </xsl:for-each>
          </text:p>
        </table:table-cell>

        <!-- 1.16 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:plannedImplementation/aqd:PlannedImplementation/aqd:status/@xlink:href"/>
          </text:p>
        </table:table-cell>

        <!-- 1.17 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:plannedImplementation/aqd:PlannedImplementation/aqd:implementationPlannedTimePeriod/gml:TimePeriod/gml:beginPosition"/>
          </text:p>
        </table:table-cell>

        <!-- 1.18 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:plannedImplementation/aqd:PlannedImplementation/aqd:implementationPlannedTimePeriod/gml:TimePeriod/gml:endPosition"/>
          </text:p>
        </table:table-cell>

        <!-- 1.19 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:plannedImplementation/aqd:PlannedImplementation/aqd:plannedFullEffectDate/gml:TimeInstant/gml:timePosition"/>
          </text:p>
        </table:table-cell>

        <!-- 1.20 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:plannedImplementation/aqd:PlannedImplementation/aqd:monitoringProgressIndicators"/>
          </text:p>
        </table:table-cell>

        <!-- 1.21 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:plannedImplementation/aqd:PlannedImplementation/aqd:comment"/>
          </text:p>
        </table:table-cell>

        <!-- 1.22 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:reductionOfEmissions/aqd:QuantityCommented/aqd:quantity"/>
          </text:p>
        </table:table-cell>

        <!-- 1.23 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:reductionOfEmissions/aqd:QuantityCommented/aqd:quantity/@uom"/>
          </text:p>
        </table:table-cell>

        <!-- 1.24 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:reductionOfEmissions/aqd:QuantityCommented/aqd:comment"/>
          </text:p>
        </table:table-cell>

        <!-- 1.25 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:expectedImpact/aqd:ExpectedImpact/aqd:levelOfConcentration"/>
          </text:p>
        </table:table-cell>

        <!-- 1.26 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:expectedImpact/aqd:ExpectedImpact/aqd:levelOfConcentration/@uom" />
          </text:p>
        </table:table-cell>

        <!-- 1.27 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:expectedImpact/aqd:ExpectedImpact/aqd:numberOfExceedances"/>
          </text:p>
        </table:table-cell>

        <!-- 1.28 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:expectedImpact/aqd:ExpectedImpact/aqd:specificationOfHours/@xlink:href"/>
          </text:p>
        </table:table-cell>

        <!-- 1.29 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:expectedImpact/aqd:ExpectedImpact/aqd:comment"/>
          </text:p>
        </table:table-cell>

        <!-- 1.30 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:comment"/>
          </text:p>
        </table:table-cell>

        <!-- 1.31 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:for-each select="aqd:exceedanceAffected">
              <xsl:value-of select="@xlink:href"/>
              <xsl:if test="following-sibling::aqd:exceedanceAffected">
                <xsl:text> || </xsl:text>
              </xsl:if>
            </xsl:for-each>
          </text:p>
        </table:table-cell>

        <!-- 1.32 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:for-each select="aqd:usedForScenario">
              <xsl:value-of select="@xlink:href"/>
              <xsl:if test="following-sibling::aqd:usedForScenario">
                <xsl:text> || </xsl:text>
              </xsl:if>
            </xsl:for-each>
          </text:p>
        </table:table-cell>
      </table:table-row>
    </xsl:for-each>
  </xsl:template>


  <!-- K (description) -->

  <xsl:template name="Measures_description_headers">
    <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-header-rows>
      <table:table-row table:default-cell-value-type="string">
        <table:table-cell table:style-name="Heading2">
          <text:p>
            gml:id
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            namespace
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            localId
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            versionId
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            code
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            name
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            description
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            measureclassification
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            measureType
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            administrativeLevel
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            timeScale
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            costs
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            currency
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            sourceSectors
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            spatialScale
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            comment
          </text:p>
        </table:table-cell>
      </table:table-row>
    </table:table-header-rows>
  </xsl:template>
  <xsl:template name="Measures_description_rows">
    <xsl:for-each select=".">
      <table:table-row table:default-cell-value-type="string">

        <!-- 2.1 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="@gml:id"/>
          </text:p>
        </table:table-cell>

        <!-- 2.2 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:inspireId/base:Identifier/base:namespace"/>
          </text:p>
        </table:table-cell>

        <!-- 2.3 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:inspireId/base:Identifier/base:localId"/>
          </text:p>
        </table:table-cell>

        <!-- 2.4 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:inspireId/base:Identifier/base:versionId"/>
          </text:p>
        </table:table-cell>

        <!-- 2.5 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:code"/>
          </text:p>
        </table:table-cell>

        <!-- 2.6 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:name"/>
          </text:p>
        </table:table-cell>

        <!-- 2.7 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:description"/>
          </text:p>
        </table:table-cell>

        <!-- 2.8 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:for-each select="aqd:classification">
              <xsl:value-of select="@xlink:href"/>
              <xsl:if test="following-sibling::aqd:classification">
                <xsl:text> || </xsl:text>
              </xsl:if>
            </xsl:for-each>
          </text:p>
        </table:table-cell>

        <!-- 2.9 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:measureType/@xlink:href"/>
          </text:p>
        </table:table-cell>

        <!-- 2.10 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:for-each select="aqd:administrativeLevel">
              <xsl:value-of select="@xlink:href"/>
              <xsl:if test="following-sibling::aqd:administrativeLevel">
                <xsl:text> || </xsl:text>
              </xsl:if>
            </xsl:for-each>
          </text:p>
        </table:table-cell>

        <!-- 2.11 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:timeScale/@xlink:href"/>
          </text:p>
        </table:table-cell>

        <!-- 2.12 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:costs/aqd:Costs/aqd:estimatedImplementationCosts"/>
          </text:p>
        </table:table-cell>

        <!-- 2.13 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:costs/aqd:Costs/aqd:currency/@xlink:href"/>
          </text:p>
        </table:table-cell>

        <!-- 2.14 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:for-each select="aqd:sourceSectors">
              <xsl:value-of select="@xlink:href"/>
              <xsl:if test="following-sibling::aqd:sourceSectors">
                <xsl:text> || </xsl:text>
              </xsl:if>
            </xsl:for-each>
          </text:p>
        </table:table-cell>


        <!-- 2.15 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:for-each select="aqd:spatialScale">
              <xsl:value-of select="@xlink:href"/>
              <xsl:if test="following-sibling::aqd:spatialScale">
                <xsl:text> || </xsl:text>
              </xsl:if>
            </xsl:for-each>
          </text:p>
        </table:table-cell>


        <!-- 2.16 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:expectedImpact/aqd:ExpectedImpact/aqd:comment"/>
          </text:p>
        </table:table-cell>
      </table:table-row>
    </xsl:for-each>
  </xsl:template>

  <!-- K (plannedImplementation) -->

  <xsl:template name="Measures_plannedImplementation_headers">
    <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-columns>
    <table:table-header-rows>
      <table:table-row table:default-cell-value-type="string">
        <table:table-cell table:style-name="Heading2">
          <text:p>
            gml:id
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            namespace
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            localId
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            versionId
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            code
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            name
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            status
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            beginPosition
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            endPosition
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            plannedFullEffectDate
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            monitoringProgressIndicators
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            comment
          </text:p>
        </table:table-cell>
      </table:table-row>
    </table:table-header-rows>
  </xsl:template>
  <xsl:template name="Measures_plannedImplementation_rows">
    <xsl:for-each select=".">
      <table:table-row table:default-cell-value-type="string">

        <!-- 1.1 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="@gml:id"/>
          </text:p>
        </table:table-cell>

        <!-- 1.2 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:inspireId/base:Identifier/base:namespace"/>
          </text:p>
        </table:table-cell>

        <!-- 1.3 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:inspireId/base:Identifier/base:localId"/>
          </text:p>
        </table:table-cell>

        <!-- 1.4 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:inspireId/base:Identifier/base:versionId"/>
          </text:p>
        </table:table-cell>

        <!-- 1.5 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:code"/>
          </text:p>
        </table:table-cell>

        <!-- 1.6 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:name"/>
          </text:p>
        </table:table-cell>

        <!-- 1.7 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:plannedImplementation/aqd:PlannedImplementation/aqd:status/@xlink:href"/>
          </text:p>
        </table:table-cell>

        <!-- 1.8 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:plannedImplementation/aqd:PlannedImplementation/aqd:implementationPlannedTimePeriod/gml:TimePeriod/gml:beginPosition"/>
          </text:p>
        </table:table-cell>

        <!-- 1.9 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:plannedImplementation/aqd:PlannedImplementation/aqd:implementationPlannedTimePeriod/gml:TimePeriod/gml:endPosition"/>
          </text:p>
        </table:table-cell>

        <!-- 1.10 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:plannedImplementation/aqd:PlannedImplementation/aqd:plannedFullEffectDate/gml:TimeInstant/gml:timePosition"/>
          </text:p>
        </table:table-cell>

        <!-- 1.11 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:plannedImplementation/aqd:PlannedImplementation/aqd:monitoringProgressIndicators"/>
          </text:p>
        </table:table-cell>

        <!-- 1.12 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:plannedImplementation/aqd:PlannedImplementation/aqd:comment"/>
          </text:p>
        </table:table-cell>

      </table:table-row>
    </xsl:for-each>
  </xsl:template>

  <!-- K (reductionEmissions) -->
  <xsl:template name="Measures_reductionEmissions_headers">
    <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-header-rows>
      <table:table-row table:default-cell-value-type="string">
        <table:table-cell table:style-name="Heading2">
          <text:p>
            gml:id
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            namespace
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            localId
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            versionId
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            code
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            reductionEmissionsQuant
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            reductionEmissionsUom
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            reductionEmissionsComment
          </text:p>
        </table:table-cell>
      </table:table-row>
    </table:table-header-rows>
  </xsl:template>
  <xsl:template name="Measures_reductionEmissions_rows">
    <xsl:for-each select=".">
      <table:table-row table:default-cell-value-type="string">

        <!-- 4.1 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="@gml:id"/>
          </text:p>
        </table:table-cell>

        <!-- 4.2 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:inspireId/base:Identifier/base:namespace"/>
          </text:p>
        </table:table-cell>

        <!-- 4.3 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:inspireId/base:Identifier/base:localId"/>
          </text:p>
        </table:table-cell>

        <!-- 4.4 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:inspireId/base:Identifier/base:versionId"/>
          </text:p>
        </table:table-cell>

        <!-- 4.5 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:code"/>
          </text:p>
        </table:table-cell>

        <!-- 4.6 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:reductionOfEmissions/aqd:QuantityCommented/aqd:quantity"/>
          </text:p>
        </table:table-cell>

        <!-- 4.7 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:reductionOfEmissions/aqd:QuantityCommented/aqd:quantity/@uom"/>
          </text:p>
        </table:table-cell>

        <!-- 4.8 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:reductionOfEmissions/aqd:QuantityCommented/aqd:comment"/>
          </text:p>
        </table:table-cell>

      </table:table-row>
    </xsl:for-each>
  </xsl:template>

  <!-- K (expectedImpact) -->

  <xsl:template name="Measures_expectedImpact_headers">
    <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-header-rows>
      <table:table-row table:default-cell-value-type="string">
        <table:table-cell table:style-name="Heading2">
          <text:p>
            gml:id
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            namespace
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            localId
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            versionId
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            code
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            expectImpactConc
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            expectImpactConcUOM
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            expectImpactExceed
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            expectImpactSpecHours
          </text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Heading2">
          <text:p>
            expectImpactComment
          </text:p>
        </table:table-cell>
      </table:table-row>
    </table:table-header-rows>
  </xsl:template>
  <xsl:template name="Measures_expectedImpact_rows">
    <xsl:for-each select=".">
      <table:table-row table:default-cell-value-type="string">

        <!-- 1.1 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="@gml:id"/>
          </text:p>
        </table:table-cell>

        <!-- 1.2 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:inspireId/base:Identifier/base:namespace"/>
          </text:p>
        </table:table-cell>

        <!-- 1.3 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:inspireId/base:Identifier/base:localId"/>
          </text:p>
        </table:table-cell>

        <!-- 1.4 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:inspireId/base:Identifier/base:versionId"/>
          </text:p>
        </table:table-cell>

        <!-- 1.5 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:code"/>
          </text:p>
        </table:table-cell>

        <!-- 1.6 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:expectedImpact/aqd:ExpectedImpact/aqd:levelOfConcentration/@uom"/>
          </text:p>
        </table:table-cell>

        <!-- 1.7 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:expectedImpact/aqd:ExpectedImpact/aqd:levelOfConcentration/@uom"/>
          </text:p>
        </table:table-cell>

        <!-- 1.8 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:expectedImpact/aqd:ExpectedImpact/aqd:numberOfExceedances"/>
          </text:p>
        </table:table-cell>

        <!-- 1.9 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:expectedImpact/aqd:ExpectedImpact/aqd:specificationOfHours/@xlink:href"/>
          </text:p>
        </table:table-cell>

        <!-- 1.10 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:expectedImpact/aqd:ExpectedImpact/aqd:comment"/>
          </text:p>
        </table:table-cell>

      </table:table-row>
    </xsl:for-each>
  </xsl:template>

  <!-- K (exceedanceAffected) -->

  <xsl:template name="Measures_exceedanceAffected_headers">
    <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-header-rows>
      <table:table-row table:default-cell-value-type="string">
        <!-- K - tab6.1 -->
        <table:table-cell table:style-name="Heading2">
          <text:p>
            gml:id
          </text:p>
        </table:table-cell>
        <!-- K - tab6.2 -->
        <table:table-cell table:style-name="Heading2">
          <text:p>
            namespace
          </text:p>
        </table:table-cell>
        <!-- K - tab6.3 -->
        <table:table-cell table:style-name="Heading2">
          <text:p>
            localId
          </text:p>
        </table:table-cell>
        <!-- K - tab6.4 -->
        <table:table-cell table:style-name="Heading2">
          <text:p>
            versionId
          </text:p>
        </table:table-cell>
        <!-- K - tab6.5 -->
        <table:table-cell table:style-name="Heading2">
          <text:p>
            code
          </text:p>
        </table:table-cell>
        <!-- K - tab6.6 -->
        <table:table-cell table:style-name="Heading2">
          <text:p>
            name
          </text:p>
        </table:table-cell>
        <!-- K - tab6.7 -->
        <table:table-cell table:style-name="Heading2">
          <text:p>
            expectImpactExceed
          </text:p>
        </table:table-cell>
      </table:table-row>
    </table:table-header-rows>
  </xsl:template>
  <xsl:template name="Measures_exceedanceAffected_rows">
    <xsl:for-each select=".">
      <table:table-row table:default-cell-value-type="string">

        <!-- K - tab6.1 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="@gml:id"/>
          </text:p>
        </table:table-cell>

        <!-- K - tab6.2 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:inspireId/base:Identifier/base:namespace"/>
          </text:p>
        </table:table-cell>

        <!-- K - tab6.3 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:inspireId/base:Identifier/base:localId"/>
          </text:p>
        </table:table-cell>

        <!-- K - tab6.4 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:inspireId/base:Identifier/base:versionId"/>
          </text:p>
        </table:table-cell>

        <!-- K - tab6.5 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:code"/>
          </text:p>
        </table:table-cell>

        <!-- K - tab6.6 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:name"/>
          </text:p>
        </table:table-cell>
        <!-- K - tab6.7 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:for-each select="aqd:exceedanceAffected">
              <xsl:value-of select="@xlink:href"/>
              <xsl:if test="following-sibling::aqd:exceedanceAffected">
                <xsl:text> || </xsl:text>
              </xsl:if>
            </xsl:for-each>
          </text:p>
        </table:table-cell>

      </table:table-row>
    </xsl:for-each>
  </xsl:template>

  <!-- K (usedForScenario) -->

  <xsl:template name="Measures_usedForScenario_headers">
    <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-header-rows>
      <table:table-row table:default-cell-value-type="string">
        <!-- K - tab7.1 -->
        <table:table-cell table:style-name="Heading2">
          <text:p>
            gml:id
          </text:p>
        </table:table-cell>
        <!-- K - tab7.2 -->
        <table:table-cell table:style-name="Heading2">
          <text:p>
            namespace
          </text:p>
        </table:table-cell>
        <!-- K - tab7.3 -->
        <table:table-cell table:style-name="Heading2">
          <text:p>
            localId
          </text:p>
        </table:table-cell>
        <!-- K - tab7.4 -->
        <table:table-cell table:style-name="Heading2">
          <text:p>
            versionId
          </text:p>
        </table:table-cell>
        <!-- K - tab7.5 -->
        <table:table-cell table:style-name="Heading2">
          <text:p>
            code
          </text:p>
        </table:table-cell>
        <!-- K - tab7.6 -->
        <table:table-cell table:style-name="Heading2">
          <text:p>
            name
          </text:p>
        </table:table-cell>
        <!-- K - tab7.7 -->
        <table:table-cell table:style-name="Heading2">
          <text:p>
            usedForScenario
          </text:p>
        </table:table-cell>
      </table:table-row>
    </table:table-header-rows>
  </xsl:template>
  <xsl:template name="Measures_usedForScenario_rows">
    <xsl:for-each select=".">
      <table:table-row table:default-cell-value-type="string">

        <!-- K - tab7.1 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="@gml:id"/>
          </text:p>
        </table:table-cell>

        <!-- K - tab7.2 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:inspireId/base:Identifier/base:namespace"/>
          </text:p>
        </table:table-cell>

        <!-- K - tab7.3 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:inspireId/base:Identifier/base:localId"/>
          </text:p>
        </table:table-cell>

        <!-- K - tab7.4 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:inspireId/base:Identifier/base:versionId"/>
          </text:p>
        </table:table-cell>

        <!-- K - tab7.5 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:code"/>
          </text:p>
        </table:table-cell>

        <!-- K - tab7.6 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:value-of select="aqd:name"/>
          </text:p>
        </table:table-cell>
        <!-- K - tab7.7 -->
        <table:table-cell table:style-name="cell1">
          <text:p>
            <xsl:for-each select="aqd:exceedanceAffected">
              <xsl:value-of select="@xlink:href"/>
              <xsl:if test="following-sibling::aqd:exceedanceAffected">
                <xsl:text> || </xsl:text>
              </xsl:if>
            </xsl:for-each>
          </text:p>
        </table:table-cell>

      </table:table-row>
    </xsl:for-each>
  </xsl:template>

  <xsl:template name="CreateTemplateTableColumnHeader">
    <xsl:param name="numberOfColumns" />
    <xsl:for-each select="$numberOfColumns">
      <table:table-column
              table:default-cell-value-type="string"
              table:default-cell-style-name="long-string-heading">
      </table:table-column>
    </xsl:for-each>
  </xsl:template>

  <xsl:template name="CreateTemplateTableColumnCell">
      <xsl:param name="elementValue" />
      
          <table:table-cell table:style-name="cell1">
          <text:p>
                  <xsl:value-of select="$elementValue" />
              </text:p>
          </table:table-cell>
      
  </xsl:template>

  <xsl:template name="create-table-header-row">
    <xsl:param name="columnNames" />
      <xsl:for-each select="$columnNames">
        <table:table-cell table:style-name="Heading2">
          <text:p>
            <xsl:value-of select="." />
          </text:p>
        </table:table-cell>
      </xsl:for-each>
  </xsl:template>
  
  <xsl:template name="CreateColumnHrefColumnMultipeValues">
    <xsl:param name="elementValues" />
    <xsl:param name="sibling" />
        <table:table-cell table:style-name="cell1">
            <text:p>
            <xsl:for-each select="$elementValues">
              <xsl:value-of select="./@xlink:href" />
              <xsl:if test="./following-sibling::*[name()=$sibling]">
                <xsl:text> || </xsl:text>
              </xsl:if>
            </xsl:for-each>
            </text:p>
        </table:table-cell>
  </xsl:template>

  <!-- -->

<!-- REFERENCE
    B: Zones
    C: AssessmentRegime
    D: Model
    G: Attainment
    K: Measures
    I: SourceApportionment
    J: EvaluationScenario
  -->
</xsl:stylesheet>