View stylesheet

XML schema http://dd.eionet.europa.eu/schemas/MSFD11Mon/MSFD11Mon_1p1.xsd
Output type HTML
Description Web display of MSFD Article 11 Monitoring Programmes
XSL file msfd11Mon_1p1.xslt (Last modified: 04 May 2016 10:43 )
<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:altova="http://www.altova.com" xmlns:altovaext="http://www.altova.com/xslt-extensions" xmlns:clitype="clitype" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:iso4217="http://www.xbrl.org/2003/iso4217" xmlns:ix="http://www.xbrl.org/2008/inlineXBRL" xmlns:java="java" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:ms="http://water.eionet.europa.eu/schemas/dir200856ec/mscommon" xmlns:n1="http://water.eionet.europa.eu/schemas/dir200856ec" xmlns:sps="http://www.altova.com/StyleVision/user-xpath-functions" xmlns:xbrldi="http://xbrl.org/2006/xbrldi" xmlns:xbrli="http://www.xbrl.org/2003/instance" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0" exclude-result-prefixes="altova altovaext clitype dc fn iso4217 ix java link ms n1 sps xbrldi xbrli xlink xs xsi">
<xsl:output version="4.0" method="html" indent="no" encoding="UTF-8" doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" doctype-system="http://www.w3.org/TR/html4/loose.dtd"/>
<xsl:variable name="lov" select="document('http://webq.eionet.europa.eu/xml/msfdart11_labels.xml')/labels/itemset"/>
<xsl:variable name="targ" select="document('http://webq.eionet.europa.eu/xml/msfdart11_targets.xml')/labels/itemset"/>
<xsl:variable name="mems" select="$XML/MON/MemberState"/>
<xsl:variable name="regio" select="$XML/MON/Region"/>

<xsl:param name="SV_OutputFormat" select="'HTML'"/>
	<!--
	<xsl:for-each select="labels">
		<xsl:variable name="vlov" select="itemset" />
	</xsl:for-each> -->
	<xsl:variable name="XML" select="/"/>
	<!--<xsl:import-schema schema-location="http://dd.eionet.europa.eu/schemas/MSFD11Mon/MSFD11Mon_1p1.xsd"/> -->
	<xsl:template match="/">
		<xsl:call-template name="Root"/>
	</xsl:template>
	
	<xsl:template name="Root">
	<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Reporting requirement on monitoring programmes under MSFD Article 11</title>
<style type="text/css">	body {font-family: Verdana, Arial, Helvetica,sans-serif, "MS sans serif";background: #fff; color: #000; font-size: 8pt;}

	/* CSS3 doesn't work */ 
	@namespace f url(http://www.w3.org/2002/xforms); f|textarea { color: blue; } 
	/* CSS3 end */ 

	/*.textarea > .value,*/ 
	textarea { height:100px !important; width:95% !important; } 
	label { /*display: block;*/ padding: 0.5em; color: rgb(85, 96, 63); font-size: 8pt;} 
    .ta { display: block; border:1px solid #bcd884; padding: 0.5em; color: rgb(85, 96, 63); font-size: 8pt; font-weight: bold;} 
	ul { text-align:left;}
	.repet2 { -webkit-column-count: 2; /* Chrome, Safari, Opera */  -moz-column-count: 2; /* Firefox */  column-count: 2;}
	.repet3 { -webkit-column-count: 3; /* Chrome, Safari, Opera */  -moz-column-count: 3; /* Firefox */  column-count: 3;}
	.repet4 { -webkit-column-count: 4; /* Chrome, Safari, Opera */  -moz-column-count: 4; /* Firefox */  column-count: 4;}
	.repet5 { -webkit-column-count: 5; /* Chrome, Safari, Opera */  -moz-column-count: 5; /* Firefox */  column-count: 5;}
	.newline { display:block; } 
	.nonewline { display: inline;}
	
	/*.selector-item label { display: inline; padding:0; } 
	.selector-item { padding-left: 2em; } */
	/*.right_buttons { text-align: right; display: inline; float:right; } .left_buttons { text-align: left; display: inline; float:left; } .buttons_label{ display: inline; } */
	.heading { padding: 0.2em 0em; margin: 0; font-size: 135%; background-color: transparent; color: #315076; } 
	.tbl{ width:100%; padding: 0.3em 0em; border-collapse:collapse; margin-top:0.4em; } 
	.tbl th{ text-align:left; border:1px solid #bcd884; color: #55603f; font-weight:bold; } 
	.tbl td{ align:left; border:1px solid #bcd884; } .tbl2{ padding: 0.3em 0em; border-collapse:collapse; margin-top:0.4em; } 
	.tbl2 th{ text-align:left; border:none; color: #55603f; font-weight:normal; } 
	.tbl2 td{ align:left; border:none; } 
	.tbl2 tr{ border-bottom:1px solid #bcd884; } 
	.tbl2 tr:last-child{ border:none; } 
	.repeat-index .tbl th{ border:1px solid #eaf1dc; /*#f0f4ea;*/ } 
	.repeat-index .tbl td{ border:1px solid #eaf1dc; } 
	.inpComments input{ width:500px; } 
	.labelHidden{ display:none; } 
	fieldset legend { font-weight: bold; } 
	.checkbox .value { float:left; margin-top: -24px; } 
	.checkbox .label { display:list-item; list-style: none; margin-left: 20px; } 
	/* .checkbox-first { margin-left: 20px; } */ 
	td .selector-item { margin:0; padding:0; display:block; } 
	.label { width: auto !important; white-space: normal !important; } 
	/* IE - Fix some weirdness with group labels/legends */ 
	legend span { display: block !important; white-space:normal !important; width: 100%; } 
	.top-level-question { font-weight: bold; } 
	.readonly textarea { background-color: #4e4c4c; color:#ffffff; text-decoration: line-through; } 
	.readonly textarea, .readonly input[type='text'], .readonly input[type='checkbox'], .readonly input[type='radio'] {background-color:#4e4c4c !important; color:#ffffff !important; text-decoration:line-through; cursor:default; } 
	.checkbox .value, .invalid input[type='checkbox'], .invalid input[type='radio'] {background: none; /*color: #000000;*/ } 
	.readonly .alert { display: none; } 
	.full-group label { width: auto; display: block; float: none; } 
	.input-no-small input { width: 35px; } 
	.tbl-small {width:100%; padding: 0; border-collapse:collapse; margin-top:0.4em; } 
	.tbl-small th { text-align:left; padding: 0.3em; border:1px solid #bcd884; color: #55603f; font-weight:bold; } 
	.tbl-small td { align:left; border:1px solid #bcd884; } 
	.tbl-small .output .label { padding: 0; } 
	th, label { padding: 0.5em 0.5em 0.5em 0.2em; } 
	/* Fix for required star */ 
	/*.required-symbol { display:none; }*/
    /*.required label { background:transparent url(mandatory.gif) no-repeat scroll right center; padding-right:12px; }*/ 
    .inputval {font-weight:bold; pading-left:5px;}
    fieldset {margin-bottom: 1em; }

    /* Fix for odd br in label in IE only for other langs */ 
    label br { display: none; } 

    /* Makes the single line input fill their container */ 
    .textbox input { width:95%; } 
    /* Page buttons */ 
   
   /* select {max-width:350px;} #Q1b-DescriptorCriteria-select{width:500px;}#Q1b-AddressedByProgramme-select{width:500px;} */
    .uniquecodeinput{width:450px;}
  /*  .selector-item {display: block;} */
    .subtitle{font-weight:bold;}
    .section{display: block !important;padding:5px; padding-left: 20px;font-weight: bolder;}
    .inline_block{display:inline-block}
    .tallList select{max-width: 1000px; height: 190px;} 
    #loading{position: fixed;top: 170px;right: 80px;}  
    .page_container {display:inline-block !important} 
    .section > .page_container {display:inline-block !important} 
    .section > .section > .section {padding-left:0px} 
    .sectionTbl{width:100%; background-color:#F0F4EA !important }
    .sectionTbl td{  text-align::left;vertical-align: baseline; } 
    .sectionTbl .caption{width: 165px; font-weight:bold;}
    td .selector-item {display: inline-block;}
#container {
	width: 511pt;
	position: relative;
	margin: 0px auto;
	max-width: 80em;
	background-color: #fff;
	color: #333;
}    
    
</style>
</head>
<body class="fullscreen"><div id="container"><form name="chibaform" >
<xsl:for-each select="$XML">
  <h1><label class="label heading" id="C1" for="C1"><xsl:value-of select="$lov/item[@id='MON']" /></label></h1>
  <xsl:apply-templates select="MON"/>
  <xsl:call-template name="indx"/>
  <xsl:for-each select="MON">
	  <div class="case selected-case" id="page1">
		  <xsl:apply-templates select="GeneralDescription"/>
		  <br/>
		  <xsl:apply-templates select="MonitoringProgrammes" />
	   </div>
  </xsl:for-each>
</xsl:for-each>
</form></div></body></html>
</xsl:template>

<!-- Reporter -->
<xsl:template match="MON">
<fieldset class="group" ><legend id="C14" class="label">Reporter</legend>
<div class="input string" ><label class="label" ><xsl:value-of select="$lov/item[@id='ReporterName']" /></label><label class="inputval" ><xsl:for-each select="@ReporterName"><xsl:value-of select="string(.)"/></xsl:for-each></label></div>
<div class="input string"><label class="label" ><xsl:value-of select="$lov/item[@id='ContactEmail']" /></label><label class="inputval"><xsl:for-each select="@ContactEmail"><xsl:value-of select="string(.)"/></xsl:for-each></label></div>
<div class="input string" ><label class="label"><xsl:value-of select="$lov/item[@id='Organisation']" /></label><label class="inputval"><xsl:for-each select="@Organisation"><xsl:value-of select="string(.)"/></xsl:for-each></label></div>
<div class="input string" ><label class="label" ><xsl:value-of select="$lov/item[@id='ReportingDate']" /></label><label class="inputval"><xsl:for-each select="@ReportingDate"><xsl:value-of select="string(.)"/></xsl:for-each></label></div>
</fieldset>
<fieldset class="group" ><legend class="label"><xsl:value-of select="$lov/item[@id='MemberState']" /></legend>
<div class="select1 string"><label class="label" ><xsl:value-of select="$lov/item[@id='MemberStateList']" /></label><label class="inputval"><xsl:for-each select="MemberState"><xsl:apply-templates/></xsl:for-each></label></div>
</fieldset>
<fieldset class="group" ><legend class="label"><xsl:value-of select="$lov/item[@id='Region']" /></legend><div class="select1 string" ><label class="label" ><xsl:value-of select="$lov/item[@id='RegionList']" /></label><label class="inputval"><xsl:for-each select="Region"><xsl:apply-templates/></xsl:for-each></label></div>
</fieldset>
</xsl:template>

<!-- General Description template-->
<xsl:template match="GeneralDescription">
<h2><a id="C1"><xsl:value-of select="$lov/item[@id='GeneralDescription']" /></a></h2>
<!-- start of General Description -->
<fieldset class="group" >
<legend class="label" id="C1_1a"><xsl:value-of select="$lov/item[@id='Q1a_title']" /></legend>
<div class="select1 string" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q1a_Overall_adequacy']" /></label>
<label class="inputval"><xsl:choose><xsl:when test="Q1a_Overall_adequacy = 'Y'">Yes</xsl:when><xsl:otherwise>No</xsl:otherwise></xsl:choose></label>
</div>
</fieldset>

<!-- start of Q1b_GapsGES -->
<xsl:for-each select="Q1b_GapsGES">
<xsl:variable name="chlds" select="./*" />
<fieldset class="group" >
<legend  class="label" id="C1_1b"><xsl:value-of select="$lov/item[@id='Q1b_title']" /></legend>
<span class="select1 string" ><label class="label"  ><xsl:value-of select="$lov/item[@id='Q1b_GapsGES']" /></label></span>
<table class="tbl">

<tr><td></td><td align="center"><b><span class="select1 string" ><label class="label"  ><xsl:value-of select="$lov/item[@id='DescriptorCriteria']" /></label></span></b></td>
<td align="center" width="240px"><b><span class="select1 string" ><label class="label"  ><xsl:value-of select="$lov/item[@id='Q1b_AddressedByProgramme']" /></label></span></b>
<br/><span class="select1 string" ><label class="label"  ><xsl:value-of select="$lov/item[@id='MonitoringCriterionNR']" /></label></span></td></tr>			

<!-- <xsl:apply-templates select="$lov/item[@group='list-DescriptorCriteria']" > -->
<xsl:for-each select="$lov/item[@group='list-DescriptorCriteria']">
	<xsl:variable name="itm" select="." />
	<xsl:variable name="tag" select="concat('GESDescriptorCriteria_',translate(./@value,'\.','\_'))" /> 
	<xsl:variable name="ges" select="$chlds[local-name() = $tag]/*[local-name() = 'AddressedByProgramme']" />
	<xsl:variable name="oth" select="$chlds[local-name() = $tag]/*[local-name() = 'DescriptionOther']" /> 
	<xsl:apply-templates  select="$itm">
	<xsl:with-param name="arr"><xsl:value-of select="$ges"/></xsl:with-param><xsl:with-param name="type">row</xsl:with-param><xsl:with-param name="nonwln">y</xsl:with-param></xsl:apply-templates>
</xsl:for-each>
</table>
</fieldset>
</xsl:for-each>

<fieldset class="group" >
<legend class="label"  id="C1_1c"><xsl:value-of select="$lov/item[@id='Q1c_title']" /></legend>
<xsl:for-each select="Q1c_GapsTargets" >
<legend class="label"  id="C1_1c">#<xsl:value-of select="position()" /></legend>

<fieldset class="group" >
<span class="select1 string" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q1c_GapsTargets']" /></label></span>
<span  class="output" ><p> </p></span>
<table class="tbl" >
	<tr ><td width="50%" ><b ><label class="label" ><xsl:value-of select="$lov/item[@id='Q1c_EnvironmentalTarget']" /></label></b></td>
	<td ><b ><label class="label" ><xsl:value-of select="$lov/item[@id='Q1c_AssociatedIndicator']" /></label></b></td></tr>
<tr>
	<td width="50%"><xsl:apply-templates select="$targ/item[@group='list-EnvironmentalTarget' and ((@country=$mems and @region=$regio) or not(@country) ) ]" > 
	 <xsl:with-param name="arr"><xsl:value-of select="./Q1c_EnvironmentalTarget"/></xsl:with-param><xsl:with-param name="type">checkbox</xsl:with-param><xsl:with-param name="nonwln">y</xsl:with-param>
	 <xsl:with-param name="selected">1</xsl:with-param></xsl:apply-templates></td>
	<td> <xsl:apply-templates select="$targ/item[@group='list-AssociatedIndicator' and ((@country=$mems and @region=$regio) or not(@country) ) ]" > 
	 <xsl:with-param name="arr"><xsl:value-of select="./Q1c_AssociatedIndicator"/></xsl:with-param><xsl:with-param name="type">checkbox</xsl:with-param><xsl:with-param name="nonwln">y</xsl:with-param>
<xsl:with-param name="selected">1</xsl:with-param>	 
	 </xsl:apply-templates></td>
</tr>
</table>

<span class="label" ></span>
<div class="input string" id="Q1c_GapsTargets-repeat">
<table class="tbl" >
	<tr ><td width="50%" ><b ><span class="select1 string" ><label class="label" ><xsl:value-of select="$lov/item[@id='TargetsIndicator']" /></label></span></b></td>
		  <td width="50%"><b ><span class="select1 string" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q1c_AddressedByProgramme']" /></label></span></b>
							    <br />  <span class="select1 string" ><label class="label" ><xsl:value-of select="$lov/item[@id='MonitoringCriterionNR']" /></label></span> </td> </tr>
 <!-- <xsl:for-each select="TargetsIndicator"> -->
   <tr ><td ><div class="input string uniquecodeinput" >
   <label class="inputval" ><xsl:for-each select="TargetsIndicator"><xsl:apply-templates/></xsl:for-each></label></div> </td> <td >
   <div class="select1 string" ><xsl:apply-templates select="AddressedByProgramme"/></div></td> </tr>
<!-- </xsl:for-each> -->
 </table>
</div>
</fieldset>
</xsl:for-each>
</fieldset>

<!-- start of Q1d_CoverageTargets -->
<xsl:apply-templates select="Q1d_CoverageTargets" />
<!-- start of Q1e_ -->
<fieldset class="group" >
<legend class="label"  id="C1_1e"><xsl:value-of select="$lov/item[@id='Q1e_title']" /></legend><div class="textarea string" >
<label class="label"><xsl:value-of select="$lov/item[@id='Q1e_Gaps_Plans']" /></label>
<label class="ta"><xsl:for-each select="Q1e_Gaps_Plans"><xsl:apply-templates/></xsl:for-each></label>
<!-- <textarea rows="5" cols="30" class="value"></textarea> -->
</div>
</fieldset>

<!-- 2a -->
<fieldset class="group" >
<legend class="label"  id="C1_2a"><xsl:value-of select="$lov/item[@id='Q2a_title']" /></legend><span class="output" >
<label class="label"><xsl:value-of select="$lov/item[@id='Q2a_PublicConsultationDates']" /></label></span>
<table class="tbl" ><tr>
 <td ><b><span class="select1 string" ><label class="label"  ><xsl:value-of select="$lov/item[@id='StartDate']" /></label></span></b></td>
 <td ><b><span class="select1 string" ><label class="label"  ><xsl:value-of select="$lov/item[@id='EndDate']" /></label></span></b></td>
 <td ><b><span class="select1 string" ><label class="label"  ><xsl:value-of select="$lov/item[@id='Q2b_PublicConsultationDescription']" /></label></span></b></td></tr>			
<!-- repeat to table-->
 <xsl:for-each select="Q2a_PublicConsultationDates">
 <tr ><td ><div class="inputval" ><label class="inputval"><xsl:for-each select="StartDate"><xsl:value-of select="string(.)"/></xsl:for-each></label></div> </td>
 <td > <div class="inputval" ><label class="inputval"><xsl:for-each select="EndDate"><xsl:value-of select="string(.)"/></xsl:for-each></label></div> </td>
 <td > <div class="textarea" ><label class="inputval"><xsl:for-each select="Q2b_PublicConsultationDescription"><xsl:apply-templates/></xsl:for-each></label></div> </td> </tr>
 </xsl:for-each>
 </table>
</fieldset>

<!--	<Q3a_RegionalCooperation>a</Q3a_RegionalCooperation>
		<Q3b_TransboundaryImpactsFeatures>a</Q3b_TransboundaryImpactsFeatures>
		<Q3c_EnvironmentalChanges>a</Q3c_EnvironmentalChanges>
		<Q3d_SourceContaminantsSeafood>a</Q3d_SourceContaminantsSeafood>
		<Q3e_AccessAndUseRights>a</Q3e_AccessAndUseRights> -->

<!-- start of Q 3a_ -->
<fieldset class="group" >
<legend class="label"  id="C1_3a"><xsl:value-of select="$lov/item[@id='Q3a_title']" /></legend><div class="textarea string" >
<label class="label"><xsl:value-of select="$lov/item[@id='Q3a_RegionalCooperation']" /></label>
<label class="ta"><xsl:for-each select="Q3a_RegionalCooperation"><xsl:apply-templates/></xsl:for-each></label>
</div>
</fieldset>

<!-- start of Q3b_ -->
<fieldset class="group" >
<legend class="label"  id="C1_3b"><xsl:value-of select="$lov/item[@id='Q3b_title']" /></legend><div class="textarea string" >
<label class="label"><xsl:value-of select="$lov/item[@id='Q3b_TransboundaryImpactsFeatures']" /></label>
<label class="ta"><xsl:for-each select="Q3b_TransboundaryImpactsFeatures"><xsl:apply-templates/></xsl:for-each></label>
</div>
</fieldset>

<!-- start of Q3c_ -->
<fieldset class="group" >
<legend class="label"  id="C1_3c"><xsl:value-of select="$lov/item[@id='Q3c_title']" /></legend><div class="textarea string" >
<label class="label"><xsl:value-of select="$lov/item[@id='Q3c_EnvironmentalChanges']" /></label>
<label class="ta"><xsl:for-each select="Q3c_EnvironmentalChanges"><xsl:apply-templates/></xsl:for-each></label>
</div>
</fieldset>

<!-- start of Q3d_ -->
<fieldset class="group" >
<legend class="label"  id="C1_3d"><xsl:value-of select="$lov/item[@id='Q3d_title']" /></legend><div class="textarea string" >
<label class="label"><xsl:value-of select="$lov/item[@id='Q3d_SourceContaminantsSeafood']" /></label>
<label class="ta"><xsl:for-each select="Q3d_SourceContaminantsSeafood"><xsl:apply-templates/></xsl:for-each></label>
</div>
</fieldset>

<!-- start of Q3e_ -->
<fieldset class="group" >
<legend class="label"  id="C1_3e"><xsl:value-of select="$lov/item[@id='Q3e_title']" /></legend><div class="textarea string" >
<label class="label"><xsl:value-of select="$lov/item[@id='Q3e_AccessAndUseRights']" /></label>
<label class="ta"><xsl:for-each select="Q3e_AccessAndUseRights"><xsl:apply-templates/></xsl:for-each></label>
</div>
</fieldset>

<!-- 4 -->
<!-- start of Q4a_ -->
<fieldset class="group" >
<legend class="label"  id="C1_4a"><xsl:value-of select="$lov/item[@id='Q4a_title']" /></legend><div class="textarea string" >
<label class="label"><xsl:value-of select="$lov/item[@id='Q4a_ResponsibleCompetentAuthority']" /></label>
<label class="ta"><xsl:for-each select="Q4a_ResponsibleCompetentAuthority"><xsl:apply-templates/></xsl:for-each></label>
</div>
</fieldset>

<!-- start of Q4b_ -->
<fieldset class="group" >
<legend class="label"  id="C1_4b"><xsl:value-of select="$lov/item[@id='Q4b_title']" /></legend><span class="output" >
<label class="label"><xsl:value-of select="$lov/item[@id='Q4b_ResponsibleOrganisations']" /></label></span>
<table class="tbl" ><tr>
 <td ><b><span class="select1 string" ><label class="label"  ><xsl:value-of select="$lov/item[@id='Q4b_ResponsibleOrganisation']" /></label></span></b></td></tr>			
<!-- repeat to table-->
 <xsl:for-each select="Q4b_ResponsibleOrganisations/Q4b_ResponsibleOrganisation">
 <tr ><td ><div class="inputval" ><label class="inputval"><xsl:apply-templates/></label></div> </td></tr>
 </xsl:for-each>
 </table>
</fieldset>
<!-- start of Q4c_ -->
<fieldset class="group" >
<legend class="label"  id="C1_4c"><xsl:value-of select="$lov/item[@id='Q4c_title']" /></legend><div class="textarea string" >
<label class="label"><xsl:value-of select="$lov/item[@id='Q4c_RelationshipToCA']" /></label>
<label class="ta"><xsl:for-each select="Q4c_RelationshipToCA"><xsl:apply-templates/></xsl:for-each></label>
</div>
</fieldset>

	<!-- End of General Description -->
</xsl:template>

<xsl:template match="Q1d_CoverageTargets">
	<xsl:apply-templates select="Habitats" />
	<xsl:apply-templates select="Species_FunctionalGroup" />
	<xsl:apply-templates select="PhysicalChemicalFeatures" />
	<xsl:apply-templates select="Pressures" />
	<xsl:apply-templates select="Activities" />
</xsl:template>

<xsl:template match="Habitats">
<xsl:variable name="chlds" select="./*" />
<fieldset class="group" >
<legend class="label"  id="C1_1d_1"><xsl:value-of select="$lov/item[@id='Q1d_1_title']" /></legend><span class="output" >
<label class="label"><xsl:value-of select="$lov/item[@id='Q1d_CoverageTargets']" /></label></span>
<table class="tbl">
 <tr><td></td><td align="center"> <b>
 <span class="output" ><label class="label"><xsl:value-of select="$lov/item[@id='Habitats']" /></label></span>
 </b></td><td align="center" width="240px"><b>
 <span class="output" ><label class="label"><xsl:value-of select="$lov/item[@id='Q1d_AddressedByProgramme']" /></label></span></b><br/>
 <span class="output" ><label class="label"><xsl:value-of select="$lov/item[@id='MonitoringCriterionNR']" /></label></span>
 </td></tr>
<xsl:for-each select="$lov/item[@group='list-Habitats_1d']">
	<!--		<item id="list-Habitats-SeabedHabitatsAll" group="list-Habitats" value="SeabedHabitatsAll">Seabed habitats - all</item> -->
	<xsl:variable name="itm" select="." />
	
	<xsl:variable name="tag" select="concat('Habitats_',(./@value))" /> 
	<xsl:variable name="ges" select="$chlds[local-name() = $tag]/*[local-name() = 'AddressedByProgramme']" />
	<xsl:variable name="oth" select="$chlds[local-name() = $tag]/*[local-name() = 'DescriptionOther']" /> 
	<xsl:apply-templates  select="$itm">
	<xsl:with-param name="arr"><xsl:value-of select="$ges"/></xsl:with-param><xsl:with-param name="nonwln">y</xsl:with-param><xsl:with-param name="oth"><xsl:value-of select="$oth"/></xsl:with-param>
	 <xsl:with-param name="type">row</xsl:with-param></xsl:apply-templates>
</xsl:for-each>
  </table>
</fieldset>
</xsl:template>



<xsl:template match="Species_FunctionalGroup">
<xsl:variable name="chlds" select="./*" />
<fieldset class="group" >
<legend class="label"  id="C1_1d_2"><xsl:value-of select="$lov/item[@id='Q1d_2_title']" /></legend><span class="output" >
<label class="label"><xsl:value-of select="$lov/item[@id='Q1d_CoverageTargets']" /></label></span>

<table class="tbl">
 <tr><td></td><td align="center" > <b>
 <span class="output" ><label class="label"><xsl:value-of select="$lov/item[@id='Species']" /></label></span>
 </b></td><td align="center" width="240px" ><b>
 <span class="output" ><label class="label"><xsl:value-of select="$lov/item[@id='Q1d_AddressedByProgramme']" /></label></span></b><br/>
 <span class="output" ><label class="label"><xsl:value-of select="$lov/item[@id='MonitoringCriterionNR']" /></label></span>
 </td></tr>

<xsl:for-each select="$lov/item[@group='list-Species' and not(@country) ]">
	<!--	 and ((@country=instance('default')/MemberState and @region=instance('default')/Region) or not(@country) )]">
	<item id="list-Habitats-SeabedHabitatsAll" group="list-Habitats" value="SeabedHabitatsAll">Seabed habitats - all</item> -->
	<xsl:variable name="itm" select="." />
	<xsl:variable name="tag" select="concat('SpeciesFG_',(./@value))" /> 
	<xsl:variable name="ges" select="$chlds[local-name() = $tag]/*[local-name() = 'AddressedByProgramme']" />
	<xsl:variable name="oth" select="$chlds[local-name() = $tag]/*[local-name() = 'DescriptionOther']" /> 
	<xsl:apply-templates  select="$itm">
	<xsl:with-param name="nonwln">y</xsl:with-param> 
	<xsl:with-param name="arr"><xsl:value-of select="$ges"/></xsl:with-param>
	<xsl:with-param name="oth"><xsl:value-of select="$oth"/></xsl:with-param>
	<xsl:with-param name="type">row</xsl:with-param></xsl:apply-templates>
</xsl:for-each>
</table>
</fieldset>


</xsl:template>

<xsl:template match="PhysicalChemicalFeatures">
<xsl:variable name="chlds" select="./*" />
<fieldset class="group" >
<legend class="label"  id="C1_1d_4"><xsl:value-of select="$lov/item[@id='Q1d_4_title']" /></legend><span class="output" >
<label class="label"><xsl:value-of select="$lov/item[@id='Q1d_CoverageTargets']" /></label></span>
<table class="tbl">
 <tr><td></td><td align="center"  > <b>
 <span class="output" ><label class="label"><xsl:value-of select="$lov/item[@id='PhysicalChemicalFeatures']" /></label></span>
 </b></td><td align="center" width="240px"><b>
 <span class="output" ><label class="label"><xsl:value-of select="$lov/item[@id='Q1d_AddressedByProgramme']" /></label></span></b><br/>
 <span class="output" ><label class="label"><xsl:value-of select="$lov/item[@id='MonitoringCriterionNR']" /></label></span>
 </td></tr>

<xsl:for-each select="$lov/item[@group='list-PhysicalChemicalFeatures' and not(@country) ]">
	<!--	 and ((@country=instance('default')/MemberState and @region=instance('default')/Region) or not(@country) )]">
	<item id="list-Habitats-SeabedHabitatsAll" group="list-Habitats" value="SeabedHabitatsAll">Seabed habitats - all</item> -->
	<xsl:variable name="itm" select="." />
	<xsl:variable name="tag" select="concat('PhysChem_',(./@value))" /> 
	<xsl:variable name="ges" select="$chlds[local-name() = $tag]/*[local-name() = 'AddressedByProgramme']" />
	<xsl:variable name="oth" select="$chlds[local-name() = $tag]/*[local-name() = 'DescriptionOther']" /> 
	<xsl:apply-templates  select="$itm">
	<xsl:with-param name="nonwln">y</xsl:with-param> 
	<xsl:with-param name="arr"><xsl:value-of select="$ges"/></xsl:with-param>
	<xsl:with-param name="oth"><xsl:value-of select="$oth"/></xsl:with-param>
	<xsl:with-param name="type">row</xsl:with-param></xsl:apply-templates>
</xsl:for-each>

</table>
</fieldset>
</xsl:template>

<xsl:template match="Pressures">
<xsl:variable name="chlds" select="./*" />
<fieldset class="group" >
<legend class="label"  id="C1_1d_5"><xsl:value-of select="$lov/item[@id='Q1d_5_title']" /></legend><span class="output" >
<label class="label"><xsl:value-of select="$lov/item[@id='Q1d_CoverageTargets']" /></label></span>
<table class="tbl">
 <tr><td></td><td align="center"> <b>
 <span class="output" ><label class="label"><xsl:value-of select="$lov/item[@id='Pressures']" /></label></span>
 </b></td><td align="center" width="240px"><b>
 <span class="output" ><label class="label"><xsl:value-of select="$lov/item[@id='Q1d_AddressedByProgramme']" /></label></span></b><br/>
 <span class="output" ><label class="label"><xsl:value-of select="$lov/item[@id='MonitoringCriterionNR']" /></label></span>
 </td></tr>

<xsl:for-each select="$lov/item[@group='list-Pressures' and not(@country) ]">
	<!--	 and ((@country=instance('default')/MemberState and @region=instance('default')/Region) or not(@country) )]">
	<item id="list-Habitats-SeabedHabitatsAll" group="list-Habitats" value="SeabedHabitatsAll">Seabed habitats - all</item> -->
	<xsl:variable name="itm" select="." />
	<xsl:variable name="tag" select="concat('Pressures_',(./@value))" /> 
	<xsl:variable name="ges" select="$chlds[local-name() = $tag]/*[local-name() = 'AddressedByProgramme']" />
	<xsl:variable name="oth" select="$chlds[local-name() = $tag]/*[local-name() = 'DescriptionOther']" /> 
	<xsl:apply-templates  select="$itm">
	<xsl:with-param name="nonwln">y</xsl:with-param> 
	<xsl:with-param name="arr"><xsl:value-of select="$ges"/></xsl:with-param>
	<xsl:with-param name="oth"><xsl:value-of select="$oth"/></xsl:with-param>
	<xsl:with-param name="type">row</xsl:with-param></xsl:apply-templates>
</xsl:for-each>

</table>
</fieldset>
</xsl:template>

<xsl:template match="Activities">
<xsl:variable name="chlds" select="./*" />
<fieldset class="group" >
<legend class="label"  id="C1_1d_6"><xsl:value-of select="$lov/item[@id='Q1d_6_title']" /></legend><span class="output" >
<label class="label"><xsl:value-of select="$lov/item[@id='Q1d_CoverageTargets']" /></label></span>
<table class="tbl">
 <tr><td></td><td align="center"> <b>
 <span class="output" ><label class="label"><xsl:value-of select="$lov/item[@id='Activities']" /></label></span>
 </b></td><td align="center" width="240px"><b>
 <span class="output" ><label class="label"><xsl:value-of select="$lov/item[@id='Q1d_AddressedByProgramme']" /></label></span></b><br/>
 <span class="output" ><label class="label"><xsl:value-of select="$lov/item[@id='MonitoringCriterionNR']" /></label></span>
 </td></tr>

<xsl:for-each select="$lov/item[@group='list-Activities' and not(@country) ]">
	<!--	 and ((@country=instance('default')/MemberState and @region=instance('default')/Region) or not(@country) )]">
	<item id="list-Habitats-SeabedHabitatsAll" group="list-Habitats" value="SeabedHabitatsAll">Seabed habitats - all</item> -->
	<xsl:variable name="itm" select="." />
	<xsl:variable name="tag" select="concat('Activities_',(./@value))" /> 
	<xsl:variable name="ges" select="$chlds[local-name() = $tag]/*[local-name() = 'AddressedByProgramme']" />
	<xsl:variable name="oth" select="$chlds[local-name() = $tag]/*[local-name() = 'DescriptionOther']" /> 
	<xsl:apply-templates  select="$itm">
	<xsl:with-param name="nonwln">y</xsl:with-param> 
	<xsl:with-param name="arr"><xsl:value-of select="$ges"/></xsl:with-param>
	<xsl:with-param name="oth"><xsl:value-of select="$oth"/></xsl:with-param>
	<xsl:with-param name="type">row</xsl:with-param></xsl:apply-templates>
</xsl:for-each>

</table>
</fieldset>
</xsl:template>

<!-- MonitoringProgrammes -->
<xsl:template match="MonitoringProgrammes">
	<xsl:apply-templates select="MP_D2" />
	<xsl:apply-templates select="MP_D3" />
	<xsl:apply-templates select="MP_D5" />
	<xsl:apply-templates select="MP_D7" />
	<xsl:apply-templates select="MP_D8" />
	<xsl:apply-templates select="MP_D9" />
	<xsl:apply-templates select="MP_D10" />
	<xsl:apply-templates select="MP_D11" />
	<xsl:apply-templates select="MP_D1_4_6_Birds" />
	<xsl:apply-templates select="MP_D1_4_6_Mammals" />
	<xsl:apply-templates select="MP_D1_4_6_Fish" />
	<xsl:apply-templates select="MP_D1_4_6_SeabedHabitats" />
	<xsl:apply-templates select="MP_D1_4_6_WaterColumnHabitats" />
</xsl:template>
<!-- D2 -->
<xsl:template match="MP_D2" >
	<h2><a id="D2"><xsl:value-of select="$lov/item[@id='list-MonitoringProgramme-D2']" /></a></h2>
	<xsl:apply-templates select="ReferenceExistingProgramme" ><xsl:with-param name="mp" >D2</xsl:with-param></xsl:apply-templates>
<!-- Sub -->
<fieldset class="group" >
<legend  id="D2_refsub" class="label"><xsl:value-of select="$lov/item[@id='ReferenceSubProgramme']" /></legend>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='ReferenceSubProgrammeText']" /></label></span>
<table  class="tbl" >
	<tbody>
		<tr>
			<th><xsl:value-of select="$lov/item[@id='SubProgrammeID']" /></th>
			<th><xsl:value-of select="$lov/item[@id='SubProgrammeName']" /></th>
		</tr>
		<xsl:for-each select="ReferenceSubProgramme">
		   <tr ><td >
   <label class="inputval" ><xsl:for-each select="SubMonitoringProgrammeID"><xsl:apply-templates/></xsl:for-each></label> </td> <td >
   <label class="inputval" ><xsl:for-each select="SubMonitoringProgrammeName"><xsl:apply-templates/></xsl:for-each></label> </td> </tr>
		</xsl:for-each>
	</tbody>
</table>
</fieldset>
	<xsl:apply-templates select="MonitoringProgramme" ><xsl:with-param name="mp" >D2</xsl:with-param></xsl:apply-templates>
</xsl:template>
<xsl:template match="MP_D3" >
	<h2><a id="D3"><xsl:value-of select="$lov/item[@id='list-MonitoringProgramme-D3']" /></a></h2>
	<xsl:apply-templates select="ReferenceExistingProgramme" ><xsl:with-param name="mp" >D3</xsl:with-param></xsl:apply-templates>

<!-- Sub -->
<fieldset class="group" >
<legend  id="D3_refsub" class="label"><xsl:value-of select="$lov/item[@id='ReferenceSubProgramme']" /></legend>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='ReferenceSubProgrammeText']" /></label></span>
<table  class="tbl" >
	<tbody>
		<tr>
			<th><xsl:value-of select="$lov/item[@id='SubProgrammeID']" /></th>
			<th><xsl:value-of select="$lov/item[@id='SubProgrammeName']" /></th>
		</tr>
		<xsl:for-each select="ReferenceSubProgramme">
		   <tr ><td >
   <label class="inputval" ><xsl:for-each select="SubMonitoringProgrammeID"><xsl:apply-templates/></xsl:for-each></label> </td> <td >
   <label class="inputval" ><xsl:for-each select="SubMonitoringProgrammeName"><xsl:apply-templates/></xsl:for-each></label> </td> </tr>
		</xsl:for-each>
	</tbody>
</table>
</fieldset>
	<xsl:apply-templates select="MonitoringProgramme" ><xsl:with-param name="mp" >D3</xsl:with-param></xsl:apply-templates>
</xsl:template>

<xsl:template match="MP_D5" >
	<h2><a id="D5"><xsl:value-of select="$lov/item[@id='list-MonitoringProgramme-D5']" /></a></h2>
	<xsl:apply-templates select="ReferenceExistingProgramme" ><xsl:with-param name="mp" >D5</xsl:with-param></xsl:apply-templates>

<!-- Sub -->
<fieldset class="group" >
<legend  id="D5_refsub" class="label"><xsl:value-of select="$lov/item[@id='ReferenceSubProgramme']" /></legend>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='ReferenceSubProgrammeText']" /></label></span>
<table  class="tbl" >
	<tbody>
		<tr>
			<th><xsl:value-of select="$lov/item[@id='SubProgrammeID']" /></th>
			<th><xsl:value-of select="$lov/item[@id='SubProgrammeName']" /></th>
		</tr>
		<xsl:for-each select="ReferenceSubProgramme">
		   <tr ><td >
   <label class="inputval" ><xsl:for-each select="SubMonitoringProgrammeID"><xsl:apply-templates/></xsl:for-each></label> </td> <td >
   <label class="inputval" ><xsl:for-each select="SubMonitoringProgrammeName"><xsl:apply-templates/></xsl:for-each></label> </td> </tr>
		</xsl:for-each>
	</tbody>
</table>
</fieldset>
	<xsl:apply-templates select="MonitoringProgramme" ><xsl:with-param name="mp" >D5</xsl:with-param></xsl:apply-templates>
</xsl:template>

<xsl:template match="MP_D7" >
	<h2><a id="D7"><xsl:value-of select="$lov/item[@id='list-MonitoringProgramme-D7']" /></a></h2>
	<xsl:apply-templates select="ReferenceExistingProgramme" ><xsl:with-param name="mp" >D7</xsl:with-param></xsl:apply-templates>

<!-- Sub -->
<fieldset class="group" >
<legend  id="D7_refsub" class="label"><xsl:value-of select="$lov/item[@id='ReferenceSubProgramme']" /></legend>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='ReferenceSubProgrammeText']" /></label></span>
<table  class="tbl" >
	<tbody>
		<tr>
			<th><xsl:value-of select="$lov/item[@id='SubProgrammeID']" /></th>
			<th><xsl:value-of select="$lov/item[@id='SubProgrammeName']" /></th>
		</tr>
		<xsl:for-each select="ReferenceSubProgramme">
		   <tr ><td >
   <label class="inputval" ><xsl:for-each select="SubMonitoringProgrammeID"><xsl:apply-templates/></xsl:for-each></label> </td> <td >
   <label class="inputval" ><xsl:for-each select="SubMonitoringProgrammeName"><xsl:apply-templates/></xsl:for-each></label> </td> </tr>
		</xsl:for-each>
	</tbody>
</table>
</fieldset>
	<xsl:apply-templates select="MonitoringProgramme" ><xsl:with-param name="mp" >D7</xsl:with-param></xsl:apply-templates>
</xsl:template>

<xsl:template match="MP_D8" >
	<h2><a id="D8"><xsl:value-of select="$lov/item[@id='list-MonitoringProgramme-D8']" /></a></h2>
	<xsl:apply-templates select="ReferenceExistingProgramme" ><xsl:with-param name="mp" >D8</xsl:with-param></xsl:apply-templates>

<!-- Sub -->
<fieldset class="group" >
<legend  id="D8_refsub" class="label"><xsl:value-of select="$lov/item[@id='ReferenceSubProgramme']" /></legend>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='ReferenceSubProgrammeText']" /></label></span>
<table  class="tbl" >
	<tbody>
		<tr>
			<th><xsl:value-of select="$lov/item[@id='SubProgrammeID']" /></th>
			<th><xsl:value-of select="$lov/item[@id='SubProgrammeName']" /></th>
		</tr>
		<xsl:for-each select="ReferenceSubProgramme">
		   <tr ><td >
   <label class="inputval" ><xsl:for-each select="SubMonitoringProgrammeID"><xsl:apply-templates/></xsl:for-each></label> </td> <td >
   <label class="inputval" ><xsl:for-each select="SubMonitoringProgrammeName"><xsl:apply-templates/></xsl:for-each></label> </td> </tr>
		</xsl:for-each>
	</tbody>
</table>
</fieldset>
	<xsl:apply-templates select="MonitoringProgramme" ><xsl:with-param name="mp" >D8</xsl:with-param></xsl:apply-templates>
</xsl:template>

<xsl:template match="MP_D9" >
	<h2><a id="D9"><xsl:value-of select="$lov/item[@id='list-MonitoringProgramme-D9']" /></a></h2>
	<xsl:apply-templates select="ReferenceExistingProgramme" ><xsl:with-param name="mp" >D9</xsl:with-param></xsl:apply-templates>

<!-- Sub -->
<fieldset class="group" >
<legend  id="D9_refsub" class="label"><xsl:value-of select="$lov/item[@id='ReferenceSubProgramme']" /></legend>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='ReferenceSubProgrammeText']" /></label></span>
<table  class="tbl" >
	<tbody>
		<tr>
			<th><xsl:value-of select="$lov/item[@id='SubProgrammeID']" /></th>
			<th><xsl:value-of select="$lov/item[@id='SubProgrammeName']" /></th>
		</tr>
		<xsl:for-each select="ReferenceSubProgramme">
		   <tr ><td >
   <label class="inputval" ><xsl:for-each select="SubMonitoringProgrammeID"><xsl:apply-templates/></xsl:for-each></label> </td> <td >
   <label class="inputval" ><xsl:for-each select="SubMonitoringProgrammeName"><xsl:apply-templates/></xsl:for-each></label> </td> </tr>
		</xsl:for-each>
	</tbody>
</table>
</fieldset>
	<xsl:apply-templates select="MonitoringProgramme" ><xsl:with-param name="mp" >D9</xsl:with-param></xsl:apply-templates>
</xsl:template>

<xsl:template match="MP_D10" >
	<h2><a id="D10"><xsl:value-of select="$lov/item[@id='list-MonitoringProgramme-D10']" /></a></h2>
	<xsl:apply-templates select="ReferenceExistingProgramme" ><xsl:with-param name="mp" >D10</xsl:with-param></xsl:apply-templates>

<!-- Sub -->
<fieldset class="group" >
<legend  id="D10_refsub" class="label"><xsl:value-of select="$lov/item[@id='ReferenceSubProgramme']" /></legend>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='ReferenceSubProgrammeText']" /></label></span>
<table  class="tbl" >
	<tbody>
		<tr>
			<th><xsl:value-of select="$lov/item[@id='SubProgrammeID']" /></th>
			<th><xsl:value-of select="$lov/item[@id='SubProgrammeName']" /></th>
		</tr>
		<xsl:for-each select="ReferenceSubProgramme">
		   <tr ><td >
   <label class="inputval" ><xsl:for-each select="SubMonitoringProgrammeID"><xsl:apply-templates/></xsl:for-each></label> </td> <td >
   <label class="inputval" ><xsl:for-each select="SubMonitoringProgrammeName"><xsl:apply-templates/></xsl:for-each></label> </td> </tr>
		</xsl:for-each>
	</tbody>
</table>
</fieldset>
	<xsl:apply-templates select="MonitoringProgramme" ><xsl:with-param name="mp" >D10</xsl:with-param></xsl:apply-templates>
</xsl:template>

<xsl:template match="MP_D11" >
	<h2><a id="D11"><xsl:value-of select="$lov/item[@id='list-MonitoringProgramme-D11']" /></a></h2>
	<xsl:apply-templates select="ReferenceExistingProgramme" ><xsl:with-param name="mp" >D11</xsl:with-param></xsl:apply-templates>

<!-- Sub -->
<fieldset class="group" >
<legend  id="D11_refsub" class="label"><xsl:value-of select="$lov/item[@id='ReferenceSubProgramme']" /></legend>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='ReferenceSubProgrammeText']" /></label></span>
<table  class="tbl" >
	<tbody>
		<tr>
			<th><xsl:value-of select="$lov/item[@id='SubProgrammeID']" /></th>
			<th><xsl:value-of select="$lov/item[@id='SubProgrammeName']" /></th>
		</tr>
		<xsl:for-each select="ReferenceSubProgramme">
		   <tr ><td >
   <label class="inputval" ><xsl:for-each select="SubMonitoringProgrammeID"><xsl:apply-templates/></xsl:for-each></label> </td> <td >
   <label class="inputval" ><xsl:for-each select="SubMonitoringProgrammeName"><xsl:apply-templates/></xsl:for-each></label> </td> </tr>
		</xsl:for-each>
	</tbody>
</table>
</fieldset>
	<xsl:apply-templates select="MonitoringProgramme" ><xsl:with-param name="mp" >D11</xsl:with-param></xsl:apply-templates>
</xsl:template>

<!--	<xsl:apply-templates select="D1_4_6_Birds" />
	<xsl:apply-templates select="D1_4_6_Mammals" />
	<xsl:apply-templates select="D1_4_6_Fish" />
	<xsl:apply-templates select="D1_4_6_SeabedHabitats" />
	<xsl:apply-templates select="D1_4_6_WaterColumnHabitats" /> -->

<xsl:template match="MP_D1_4_6_Birds" >
	<h2><a id="D1_4_6_Birds"><xsl:value-of select="$lov/item[@id='list-MonitoringProgramme-D1_4_6_Birds']" /></a></h2>
	<xsl:apply-templates select="ReferenceExistingProgramme" ><xsl:with-param name="mp" >D1_4_6_Birds</xsl:with-param></xsl:apply-templates>

<!-- Sub -->
<fieldset class="group" >
<legend  id="D1_4_6_Birds_refsub" class="label"><xsl:value-of select="$lov/item[@id='ReferenceSubProgramme']" /></legend>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='ReferenceSubProgrammeText']" /></label></span>
<table  class="tbl" >
	<tbody>
		<tr>
			<th><xsl:value-of select="$lov/item[@id='SubProgrammeID']" /></th>
			<th><xsl:value-of select="$lov/item[@id='SubProgrammeName']" /></th>
		</tr>
		<xsl:for-each select="ReferenceSubProgramme">
		   <tr ><td >
   <label class="inputval" ><xsl:for-each select="SubMonitoringProgrammeID"><xsl:apply-templates/></xsl:for-each></label> </td> <td >
   <label class="inputval" ><xsl:for-each select="SubMonitoringProgrammeName"><xsl:apply-templates/></xsl:for-each></label> </td> </tr>
		</xsl:for-each>
	</tbody>
</table>
</fieldset>
	<xsl:apply-templates select="MonitoringProgramme" ><xsl:with-param name="mp" >D1_4_6_Birds</xsl:with-param></xsl:apply-templates>
</xsl:template>

<xsl:template match="MP_D1_4_6_Mammals" >
	<h2><a id="D1_4_6_Mammals"><xsl:value-of select="$lov/item[@id='list-MonitoringProgramme-D1_4_6_Mammals']" /></a></h2>
	<xsl:apply-templates select="ReferenceExistingProgramme" ><xsl:with-param name="mp" >D1_4_6_Mammals</xsl:with-param></xsl:apply-templates>

<!-- Sub -->
<fieldset class="group" >
<legend  id="D1_4_6_Mammals_refsub" class="label"><xsl:value-of select="$lov/item[@id='ReferenceSubProgramme']" /></legend>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='ReferenceSubProgrammeText']" /></label></span>
<table  class="tbl" >
	<tbody>
		<tr>
			<th><xsl:value-of select="$lov/item[@id='SubProgrammeID']" /></th>
			<th><xsl:value-of select="$lov/item[@id='SubProgrammeName']" /></th>
		</tr>
		<xsl:for-each select="ReferenceSubProgramme">
		   <tr ><td >
   <label class="inputval" ><xsl:for-each select="SubMonitoringProgrammeID"><xsl:apply-templates/></xsl:for-each></label> </td> <td >
   <label class="inputval" ><xsl:for-each select="SubMonitoringProgrammeName"><xsl:apply-templates/></xsl:for-each></label> </td> </tr>
		</xsl:for-each>
	</tbody>
</table>
</fieldset>
	<xsl:apply-templates select="MonitoringProgramme" ><xsl:with-param name="mp" >D1_4_6_Mammals</xsl:with-param></xsl:apply-templates>
</xsl:template>

<xsl:template match="MP_D1_4_6_Fish" >
	<h2><a id="D1_4_6_Fish"><xsl:value-of select="$lov/item[@id='list-MonitoringProgramme-D1_4_6_Fish']" /></a></h2>
	<xsl:apply-templates select="ReferenceExistingProgramme" ><xsl:with-param name="mp" >D1_4_6_Fish</xsl:with-param></xsl:apply-templates>

<!-- Sub -->
<fieldset class="group" >
<legend  id="D1_4_6_Fish_refsub" class="label"><xsl:value-of select="$lov/item[@id='ReferenceSubProgramme']" /></legend>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='ReferenceSubProgrammeText']" /></label></span>
<table  class="tbl" >
	<tbody>
		<tr>
			<th><xsl:value-of select="$lov/item[@id='SubProgrammeID']" /></th>
			<th><xsl:value-of select="$lov/item[@id='SubProgrammeName']" /></th>
		</tr>
		<xsl:for-each select="ReferenceSubProgramme">
		   <tr ><td >
   <label class="inputval" ><xsl:for-each select="SubMonitoringProgrammeID"><xsl:apply-templates/></xsl:for-each></label> </td> <td >
   <label class="inputval" ><xsl:for-each select="SubMonitoringProgrammeName"><xsl:apply-templates/></xsl:for-each></label> </td> </tr>
		</xsl:for-each>
	</tbody>
</table>
</fieldset>
	<xsl:apply-templates select="MonitoringProgramme" ><xsl:with-param name="mp" >D1_4_6_Fish</xsl:with-param></xsl:apply-templates>
</xsl:template>

<xsl:template match="MP_D1_4_6_SeabedHabitats" >
	<h2><a id="D1_4_6_SeabedHabitats"><xsl:value-of select="$lov/item[@id='list-MonitoringProgramme-D1_4_6_SeabedHabitats']" /></a></h2>
	<xsl:apply-templates select="ReferenceExistingProgramme" ><xsl:with-param name="mp" >D1_4_6_SeabedHabitats</xsl:with-param></xsl:apply-templates>

<!-- Sub -->
<fieldset class="group" >
<legend  id="D1_4_6_SeabedHabitats_refsub" class="label"><xsl:value-of select="$lov/item[@id='ReferenceSubProgramme']" /></legend>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='ReferenceSubProgrammeText']" /></label></span>
<table  class="tbl" >
	<tbody>
		<tr>
			<th><xsl:value-of select="$lov/item[@id='SubProgrammeID']" /></th>
			<th><xsl:value-of select="$lov/item[@id='SubProgrammeName']" /></th>
		</tr>
		<xsl:for-each select="ReferenceSubProgramme">
		   <tr ><td >
   <label class="inputval" ><xsl:for-each select="SubMonitoringProgrammeID"><xsl:apply-templates/></xsl:for-each></label> </td> <td >
   <label class="inputval" ><xsl:for-each select="SubMonitoringProgrammeName"><xsl:apply-templates/></xsl:for-each></label> </td> </tr>
		</xsl:for-each>
	</tbody>
</table>
</fieldset>
	<xsl:apply-templates select="MonitoringProgramme" ><xsl:with-param name="mp" >D1_4_6_SeabedHabitats</xsl:with-param></xsl:apply-templates>
</xsl:template>

<xsl:template match="MP_D1_4_6_WaterColumnHabitats" >
	<h2><a id="D1_4_6_WaterColumnHabitats"><xsl:value-of select="$lov/item[@id='list-MonitoringProgramme-D1_4_6_WaterColumnHabitats']" /></a></h2>
	<xsl:apply-templates select="ReferenceExistingProgramme" ><xsl:with-param name="mp" >D1_4_6_WaterColumnHabitats</xsl:with-param></xsl:apply-templates>

<!-- Sub -->
<fieldset class="group" >
<legend  id="D1_4_6_WaterColumnHabitats_refsub" class="label"><xsl:value-of select="$lov/item[@id='ReferenceSubProgramme']" /></legend>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='ReferenceSubProgrammeText']" /></label></span>
<table  class="tbl" >
	<tbody>
		<tr>
			<th><xsl:value-of select="$lov/item[@id='SubProgrammeID']" /></th>
			<th><xsl:value-of select="$lov/item[@id='SubProgrammeName']" /></th>
		</tr>
		<xsl:for-each select="ReferenceSubProgramme">
		   <tr ><td >
   <label class="inputval" ><xsl:for-each select="SubMonitoringProgrammeID"><xsl:apply-templates/></xsl:for-each></label> </td> <td >
   <label class="inputval" ><xsl:for-each select="SubMonitoringProgrammeName"><xsl:apply-templates/></xsl:for-each></label> </td> </tr>
		</xsl:for-each>
	</tbody>
</table>
</fieldset>
	<xsl:apply-templates select="MonitoringProgramme" ><xsl:with-param name="mp" >D1_4_6_WaterColumnHabitats</xsl:with-param></xsl:apply-templates>
</xsl:template>

<!-- ******************************************* 
************************************************
**** Referencese - Monitoring Programes ****************
**********************************************
*********************************************** -->

<xsl:template match="ReferenceExistingProgramme">
<xsl:param name="mp" />
<fieldset class="group" >
<legend  class="label"><xsl:attribute  name="id" ><xsl:value-of select="concat($mp,'_ref')" /></xsl:attribute><xsl:value-of select="$lov/item[@id='REF_title']" /></legend>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='ReferenceExistingProgramme']" /></label></span>
<div class="input string" ><label class="label" ><xsl:value-of select="$lov/item[@id='ProgrammeID']" /></label></div>
<label class="inputval"><xsl:for-each select="ProgrammeID"><xsl:apply-templates/></xsl:for-each>
</label>
<span  class="output" ><p> </p></span>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='MarineUnitIDs']" /></label></span>
<label class="ta"><xsl:for-each select="MarineUnitIDs/MarineUnitID"><xsl:apply-templates/>, </xsl:for-each>
</label>
<span  class="output" ><p> </p></span>
<span class="output" ><b><label class="label" ><xsl:value-of select="$lov/item[@id='ExistingSubProgrammes_title']" /></label></b></span>
<div class="input string" ><label class="label" ><xsl:value-of select="$lov/item[@id='ExistingSubProgrammes']" /></label></div>
<label class="inputval"><xsl:choose><xsl:when test="ExistingSubProgrammes = 'Y'">Yes</xsl:when><xsl:when test="ExistingSubProgrammes = 'N'">No</xsl:when>
<xsl:otherwise><xsl:for-each select="ExistingSubProgrammes"><xsl:apply-templates/></xsl:for-each></xsl:otherwise></xsl:choose></label>
</fieldset>
</xsl:template>

<xsl:template match="MonitoringProgramme" >
<xsl:param name="mp" />
<fieldset class="group" >
<legend class="label"><xsl:attribute name="id"><xsl:value-of select="concat($mp,'_4e')" /></xsl:attribute>
<xsl:value-of select="$lov/item[@id='Q4e_title']" /></legend>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q4e_ProgrammeID']" /></label></span>
<div class="input string" >
<label class="inputval"><xsl:for-each select="Q4e_ProgrammeID"><xsl:apply-templates/></xsl:for-each>
</label></div>
<span  class="output" ><p> </p></span>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q4_MarineUnitIDs']" /></label></span>
<label class="ta"><xsl:for-each select="MarineUnitIDs/MarineUnitID"><xsl:apply-templates/>, </xsl:for-each>
</label>
</fieldset>

<fieldset class="group" >
<legend  class="label"><xsl:attribute name="id"><xsl:value-of select="concat($mp,'_4f')" /></xsl:attribute><xsl:value-of select="$lov/item[@id='Q4f_title']" /></legend>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q4f_ProgrammeDescription']" /></label></span>
<div class="input string" ><label class="ta">
<xsl:for-each select="Q4f_ProgrammeDescription"><xsl:apply-templates/></xsl:for-each></label>
</div>
</fieldset>

<xsl:apply-templates select="Q5a_RelevantGESCriteria" ><xsl:with-param name="mp"><xsl:value-of select="$mp" /></xsl:with-param></xsl:apply-templates>
<xsl:apply-templates select="Q5b_RelevantGESIndicators" ><xsl:with-param name="mp"><xsl:value-of select="$mp" /></xsl:with-param></xsl:apply-templates>

<fieldset class="group" >
<legend  class="label"><xsl:attribute name="id"><xsl:value-of select="concat($mp,'_5c')" /></xsl:attribute><xsl:value-of select="$lov/item[@id='Q5c_title']" /></legend>
<span class="output" >
<!-- Q5c_RelevantFeaturesPressuresImpacts>
					<Habitats>
						<Q5c_HabitatsOther/>
					</Habitats>
					<SpeciesList>
						<Q5c_SpeciesOther/>
					</SpeciesList>
					<PhysicalChemicalFeatures>
						<Q5c_PhysicalChemicalOther/>
					</PhysicalChemicalFeatures>
					<Pressures>
						<Q5c_PressureOther/>
					</Pressures> -->
 <xsl:apply-templates select="Q5c_RelevantFeaturesPressuresImpacts/Habitats" ><xsl:with-param name="mp"><xsl:value-of select="$mp" /></xsl:with-param></xsl:apply-templates>
 <xsl:apply-templates select="Q5c_RelevantFeaturesPressuresImpacts/SpeciesList" ><xsl:with-param name="mp"><xsl:value-of select="$mp" /></xsl:with-param></xsl:apply-templates> 
 <xsl:apply-templates select="Q5c_RelevantFeaturesPressuresImpacts/PhysicalChemicalFeatures" ><xsl:with-param name="mp"><xsl:value-of select="$mp" /></xsl:with-param></xsl:apply-templates> 
 <xsl:apply-templates select="Q5c_RelevantFeaturesPressuresImpacts/Pressures" ><xsl:with-param name="mp"><xsl:value-of select="$mp" /></xsl:with-param></xsl:apply-templates> 
</span>
</fieldset>

<xsl:apply-templates select="Q5d_AdequacyForAssessmentGES" ><xsl:with-param name="mp"><xsl:value-of select="$mp" /></xsl:with-param></xsl:apply-templates>
<xsl:apply-templates select="Q5e_NaturalVariablity" ><xsl:with-param name="mp"><xsl:value-of select="$mp" /></xsl:with-param></xsl:apply-templates>
<xsl:apply-templates select="Q5f_DescriptionGES" ><xsl:with-param name="mp"><xsl:value-of select="$mp" /></xsl:with-param></xsl:apply-templates>
<xsl:apply-templates select="Q5g_GapFillingDateGES" ><xsl:with-param name="mp"><xsl:value-of select="$mp" /></xsl:with-param></xsl:apply-templates>
<xsl:apply-templates select="Q5h_PlansGES" ><xsl:with-param name="mp"><xsl:value-of select="$mp" /></xsl:with-param></xsl:apply-templates>
<!-- 6 -->
<xsl:apply-templates select="Q6a_RelevantTargets" ><xsl:with-param name="mp"><xsl:value-of select="$mp" /></xsl:with-param></xsl:apply-templates>
<xsl:apply-templates select="Q6b_AdequacyForAssessmentTargets" ><xsl:with-param name="mp"><xsl:value-of select="$mp" /></xsl:with-param></xsl:apply-templates>
<xsl:apply-templates select="Q6c_Target" ><xsl:with-param name="mp"><xsl:value-of select="$mp" /></xsl:with-param></xsl:apply-templates>
<xsl:apply-templates select="Q6d_DescriptionTargets" ><xsl:with-param name="mp"><xsl:value-of select="$mp" /></xsl:with-param></xsl:apply-templates>
<xsl:apply-templates select="Q6e_GapFillingDateTargets" ><xsl:with-param name="mp"><xsl:value-of select="$mp" /></xsl:with-param></xsl:apply-templates>
<xsl:apply-templates select="Q6f_PlansTargets" ><xsl:with-param name="mp"><xsl:value-of select="$mp" /></xsl:with-param></xsl:apply-templates>
<!-- 7 -->	
<xsl:apply-templates select="Q7a_RelevantActivities" ><xsl:with-param name="mp"><xsl:value-of select="$mp" /></xsl:with-param></xsl:apply-templates>
<xsl:apply-templates select="Q7b_DescriptionActivities" ><xsl:with-param name="mp"><xsl:value-of select="$mp" /></xsl:with-param></xsl:apply-templates>
<xsl:apply-templates select="Q7c_RelevantMeasures" ><xsl:with-param name="mp"><xsl:value-of select="$mp" /></xsl:with-param></xsl:apply-templates>
<xsl:apply-templates select="Q7d_DescriptionMeasures" ><xsl:with-param name="mp"><xsl:value-of select="$mp" /></xsl:with-param></xsl:apply-templates>
<xsl:apply-templates select="Q7e_AdequacyForAssessmentMeasures" ><xsl:with-param name="mp"><xsl:value-of select="$mp" /></xsl:with-param></xsl:apply-templates>
<xsl:apply-templates select="Q7f_GapFillingDateActivitiesMeasures" ><xsl:with-param name="mp"><xsl:value-of select="$mp" /></xsl:with-param></xsl:apply-templates>
<!-- 8 -->
<xsl:apply-templates select="Q8a_LinksExistingMonitoringProgrammes" ><xsl:with-param name="mp"><xsl:value-of select="$mp" /></xsl:with-param></xsl:apply-templates>
</xsl:template>

<!-- 
**************************************************
 *********** 5 TEMPLATES *******************
--> 

<xsl:template match="Q5a_RelevantGESCriteria">
<xsl:param name="mp" />
<fieldset class="group" >
<legend class="output"><xsl:attribute name="id"><xsl:value-of select="concat($mp,'_5a')" /></xsl:attribute>
<xsl:value-of select="$lov/item[@id='Q5a_title']" /></legend>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q5a_RelevantGESCriteria']" /></label></span>
<span  class="output" ><p> </p></span>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q5a_RelevantGESCriterion']" /></label></span>
<div class="input string" >
<span  class="ta">
<xsl:apply-templates select="$lov/item[@group='list-GESCriteria']" >
	<xsl:with-param name="arr"><xsl:value-of select="text()"/></xsl:with-param><xsl:with-param name="type">checkbox</xsl:with-param><xsl:with-param name="selected">1</xsl:with-param>
	</xsl:apply-templates>
</span>
</div>
<span  class="output" ><p> </p></span>
<div class="input string" >
<label class="label required" ><xsl:value-of select="$lov/item[@id='Other']" /></label>
<label class="ta"><xsl:for-each select="Q5a_DescriptionOther"><xsl:apply-templates/></xsl:for-each></label>
</div>
</fieldset>
</xsl:template>

<xsl:template match="Q5b_RelevantGESIndicators">
<xsl:param name="mp" />
<fieldset class="group" >
<legend class="output"><xsl:attribute name="id"><xsl:value-of select="concat($mp,'_5b')" /></xsl:attribute>
<xsl:value-of select="$lov/item[@id='Q5b_title']" /></legend>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q5b_RelevantGESIndicators']" /></label></span>
<span  class="output" ><p> </p></span>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q5b_RelevantGESIndicator']" /></label></span>
<div class="repet2 ta" >
<span  >
<xsl:apply-templates select="$lov/item[@group='list-GESIndicator']" >
	<xsl:with-param name="arr"><xsl:value-of select="text()"/></xsl:with-param><xsl:with-param name="type">checkbox</xsl:with-param><xsl:with-param name="selected">1</xsl:with-param></xsl:apply-templates>
</span>
</div>
<span  class="output" ><p> </p></span>
<div class="input string" >
<label class="label required" ><xsl:value-of select="$lov/item[@id='Other']" /></label>
<label class="ta"><xsl:for-each select="Q5b_DescriptionOther"><xsl:apply-templates/></xsl:for-each></label>
</div>
</fieldset>
</xsl:template>

<xsl:template match="Q5c_RelevantFeaturesPressuresImpacts/Habitats">
<xsl:param name="mp" />
<fieldset class="group" >
<legend class="output"><xsl:attribute name="id"><xsl:value-of select="concat($mp,'_5c1')" /></xsl:attribute>
<xsl:value-of select="$lov/item[@id='Q5c1_title']" /></legend>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q5c_RelevantFeaturesPressuresImpacts']" /></label></span>
<span  class="output" ><p> </p></span>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Habitats']" /></label></span>
<div class="input string" >
<span  class="ta">
<xsl:apply-templates select="$lov/item[@group='list-Habitats' and ((@country=$mems and @region=$regio) or not(@country) ) ]" >
	<xsl:with-param name="arr"><xsl:value-of select="text()"/></xsl:with-param><xsl:with-param name="type">checkbox</xsl:with-param><xsl:with-param name="selected">1</xsl:with-param></xsl:apply-templates>
</span>
</div>
<span  class="output" ><p> </p></span>
<div class="input string" >
<label class="label required" ><xsl:value-of select="$lov/item[@id='Other']" /></label>
<label class="ta"><xsl:for-each select="Q5c_HabitatsOther"><xsl:apply-templates/></xsl:for-each></label>
</div>
</fieldset>
</xsl:template>

<xsl:template match="Q5c_RelevantFeaturesPressuresImpacts/SpeciesList">
<xsl:param name="mp" />
<fieldset class="group" >
<legend class="output"><xsl:attribute name="id"><xsl:value-of select="concat($mp,'_5c2')" /></xsl:attribute>
<xsl:value-of select="$lov/item[@id='Q5c2_title']" /></legend>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q5c_RelevantFeaturesPressuresImpacts']" /></label></span>
<span  class="output" ><p> </p></span>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Species']" /></label></span>
<div class="input string" >
<span  class="ta">
<xsl:apply-templates select="$lov/item[@group='list-Species' and ((@country=$mems and @region=$regio) or not(@country) ) ]" > 
	<xsl:with-param name="arr"><xsl:value-of select="text()"/></xsl:with-param><xsl:with-param name="type">checkbox</xsl:with-param><xsl:with-param name="selected">1</xsl:with-param></xsl:apply-templates>
</span>
</div>
<span  class="output" ><p> </p></span>
<div class="input string" >
<label class="label required" ><xsl:value-of select="$lov/item[@id='Other']" /></label>
<label class="ta"><xsl:for-each select="Q5c_SpeciesOther"><xsl:apply-templates/></xsl:for-each></label>
</div>
</fieldset>
</xsl:template>

<xsl:template match="Q5c_RelevantFeaturesPressuresImpacts/PhysicalChemicalFeatures">
<xsl:param name="mp" />
<fieldset class="group" >
<legend class="output"><xsl:attribute name="id"><xsl:value-of select="concat($mp,'_5c6')" /></xsl:attribute>
<xsl:value-of select="$lov/item[@id='Q5c6_title']" /></legend>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q5c_RelevantFeaturesPressuresImpacts']" /></label></span>
<span  class="output" ><p> </p></span>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='PhysicalChemicalFeatures']" /></label></span>
<div class="input string" >
<span  class="ta">
<xsl:apply-templates select="$lov/item[@group='list-PhysicalChemicalFeatures' and ((@country=$mems and @region=$regio) or not(@country) ) ]" > 
	<xsl:with-param name="arr"><xsl:value-of select="text()"/></xsl:with-param><xsl:with-param name="type">checkbox</xsl:with-param><xsl:with-param name="selected">1</xsl:with-param></xsl:apply-templates>
</span>
</div>
<span  class="output" ><p> </p></span>
<div class="input string" >
<label class="label required" ><xsl:value-of select="$lov/item[@id='Other']" /></label>
<label class="ta"><xsl:for-each select="Q5c_PhysicalChemicalOther"><xsl:apply-templates/></xsl:for-each></label>
</div>
</fieldset>
</xsl:template>

<xsl:template match="Q5c_RelevantFeaturesPressuresImpacts/Pressures">
<xsl:param name="mp" />
<fieldset class="group" >
<legend class="output"><xsl:attribute name="id"><xsl:value-of select="concat($mp,'_5c7')" /></xsl:attribute>
<xsl:value-of select="$lov/item[@id='Q5c7_title']" /></legend>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q5c_RelevantFeaturesPressuresImpacts']" /></label></span>
<span  class="output" ><p> </p></span>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Pressures']" /></label></span>
<div class="input string" >
<span  class="ta">
<xsl:apply-templates select="$lov/item[@group='list-Pressures' and ((@country=$mems and @region=$regio) or not(@country) ) ]" > 
	<xsl:with-param name="arr"><xsl:value-of select="text()"/></xsl:with-param><xsl:with-param name="type">checkbox</xsl:with-param><xsl:with-param name="selected">1</xsl:with-param></xsl:apply-templates>
</span>
</div>
<span  class="output" ><p> </p></span>
<div class="input string" >
<label class="label required" ><xsl:value-of select="$lov/item[@id='Other']" /></label>
<label class="ta"><xsl:for-each select="Q5c_Pressures"><xsl:apply-templates/></xsl:for-each></label>
</div>
</fieldset>
</xsl:template>

<xsl:template match="Q5d_AdequacyForAssessmentGES" >
<xsl:param name="mp" />
<fieldset class="group" >
<legend class="output"><xsl:attribute name="id"><xsl:value-of select="concat($mp,'_5d')" /></xsl:attribute>
<xsl:value-of select="$lov/item[@id='Q5d_title']" /></legend>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q5d_AdequacyForAssessmentGES']" /></label></span>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q5d_AdequateData']" /></label></span>
<label class="inputval"><xsl:choose><xsl:when test="Q5d_AdequateData = 'Y'">Yes</xsl:when><xsl:when test="Q5d_AdequateData = 'N'">No</xsl:when>
<xsl:otherwise><xsl:for-each select="Q5d_AdequateData"><xsl:apply-templates/></xsl:for-each></xsl:otherwise></xsl:choose></label>
<span  class="output" ><p> </p></span>

<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q5d_EstablishedMethods']" /></label></span>
<label class="inputval"><xsl:choose><xsl:when test="Q5d_EstablishedMethods = 'Y'">Yes</xsl:when><xsl:when test="Q5d_EstablishedMethods = 'N'">No</xsl:when>
<xsl:otherwise><xsl:for-each select="Q5d_EstablishedMethods"><xsl:apply-templates/></xsl:for-each></xsl:otherwise></xsl:choose></label>
<span  class="output" ><p> </p></span>

<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q5d_AdequateUnderstandingGES']" /></label></span>
<label class="inputval"><xsl:choose><xsl:when test="Q5d_AdequateUnderstandingGES = 'Y'">Yes</xsl:when><xsl:when test="Q5d_AdequateUnderstandingGES = 'N'">No</xsl:when>
<xsl:otherwise><xsl:for-each select="Q5d_AdequateUnderstandingGES"><xsl:apply-templates/></xsl:for-each></xsl:otherwise></xsl:choose></label>
<span  class="output" ><p> </p></span>

<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q5d_AdequateCapacity']" /></label></span>
<label class="inputval"><xsl:choose><xsl:when test="Q5d_AdequateCapacity = 'Y'">Yes</xsl:when><xsl:when test="Q5d_AdequateCapacity = 'N'">No</xsl:when>
<xsl:otherwise><xsl:for-each select="Q5d_AdequateCapacity"><xsl:apply-templates/></xsl:for-each></xsl:otherwise></xsl:choose></label>
<span  class="output" ><p> </p></span>

</fieldset>

</xsl:template>

<xsl:template match="Q5e_NaturalVariablity">
<xsl:param name="mp" />
<fieldset class="group" >
<legend class="output"><xsl:attribute name="id"><xsl:value-of select="concat($mp,'_5e')" /></xsl:attribute>
<xsl:value-of select="$lov/item[@id='Q5e_title']" /></legend>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q5e_NaturalVariablity']" /></label></span>
<div class="repet2 ta" >
<span  >
<xsl:apply-templates select="$lov/item[@group='list-MonitoringNaturalVariability']" >
	<xsl:with-param name="arr"><xsl:value-of select="text()"/></xsl:with-param><xsl:with-param name="type">checkbox</xsl:with-param></xsl:apply-templates>
</span>
</div>
<span  class="output" ><p> </p></span>
<div class="input string" >
<label class="label required" ><xsl:value-of select="$lov/item[@id='Other']" /></label>
<label class="ta"><xsl:for-each select="Q5e_Other"><xsl:apply-templates/></xsl:for-each></label>
</div>
</fieldset>
</xsl:template>

<xsl:template match="Q5f_DescriptionGES">
<xsl:param name="mp" />
<fieldset class="group" >
<legend  class="label"><xsl:attribute name="id"><xsl:value-of select="concat($mp,'_5f')" /></xsl:attribute><xsl:value-of select="$lov/item[@id='Q5f_title']" /></legend>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q5f_DescriptionGES']" /></label></span>
<div class="input string" ><label class="ta"><xsl:value-of select="string(.)" /></label>
</div>
</fieldset>
</xsl:template>

<xsl:template match="Q5g_GapFillingDateGES">
<xsl:param name="mp" />
<fieldset class="group" >
<legend  class="label"><xsl:attribute name="id"><xsl:value-of select="concat($mp,'_5g')" /></xsl:attribute><xsl:value-of select="$lov/item[@id='Q5g_title']" /></legend>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q5g_GapFillingDateGES']" /></label></span>
<div class="input string" >
<span  class="ta">
<xsl:apply-templates select="$lov/item[@group='list-MonitoringCriterion']" > 
	<xsl:with-param name="arr"><xsl:value-of select="string(.)"/></xsl:with-param><xsl:with-param name="type">radio</xsl:with-param><xsl:with-param name="nonwln">y</xsl:with-param></xsl:apply-templates>
</span>
</div>
</fieldset>
</xsl:template>

<xsl:template match="Q5h_PlansGES">
<xsl:param name="mp" />
<fieldset class="group" >
<legend  class="label"><xsl:attribute name="id"><xsl:value-of select="concat($mp,'_5h')" /></xsl:attribute><xsl:value-of select="$lov/item[@id='Q5h_title']" /></legend>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q5h_PlansGES']" /></label></span>
<div class="input string" ><label class="ta"><xsl:value-of select="string(.)" /></label>
</div>
</fieldset>
</xsl:template>

<!-- 
**************************************************
 *********** 6 TEMPLATES *******************
--> 
<xsl:template match="Q6a_RelevantTargets">
<xsl:param name="mp" />
<fieldset class="group" >
<legend class="output"><xsl:attribute name="id"><xsl:value-of select="concat($mp,'_6a')" /></xsl:attribute><xsl:value-of select="$lov/item[@id='Q6a_title']" /></legend>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q6a_RelevantTargets']" /></label></span>
<span  class="output" ><p> </p></span>
<div class="input string" > <span  class="ta">
     <xsl:apply-templates select="$targ/item[@group='list-EnvironmentalTarget' and ((@country=$mems and @region=$regio) or not(@country) ) ]" > 
	 <xsl:with-param name="arr"><xsl:value-of select="Q6a_EnvironmentalTarget"/></xsl:with-param><xsl:with-param name="type">checkbox</xsl:with-param><xsl:with-param name="selected">1</xsl:with-param></xsl:apply-templates>
  </span>
</div>
<span  class="output" ><p> </p></span>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q6a_AssociatedIndicator']" /></label></span>
<div class="input string" >
 <span  class="ta">
     <xsl:apply-templates select="$targ/item[@group='list-AssociatedIndicator' and ((@country=$mems and @region=$regio) or not(@country) ) ]" > 
	 <xsl:with-param name="arr"><xsl:value-of select="Q6a_AssociatedIndicator"/></xsl:with-param><xsl:with-param name="type">checkbox</xsl:with-param><xsl:with-param name="selected">1</xsl:with-param></xsl:apply-templates>
  </span>
</div>
<span  class="output" ><p> </p></span>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q6a_RelevantTarget']" /></label></span>
<label class="ta"><xsl:for-each select="Q6a_RelevantTarget"><xsl:apply-templates/>, </xsl:for-each>
</label>
</fieldset>
</xsl:template>

<xsl:template match="Q6b_AdequacyForAssessmentTargets">
<xsl:param name="mp" />
<fieldset class="group" >
<legend class="output"><xsl:attribute name="id"><xsl:value-of select="concat($mp,'_6b')" /></xsl:attribute>
<xsl:value-of select="$lov/item[@id='Q6b_title']" /></legend>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q6b_AdequacyForAssessmentTargets']" /></label></span>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q6b_SuitableData']" /></label></span>
<label class="inputval"><xsl:choose><xsl:when test="Q6b_SuitableData = 'Y'">Yes</xsl:when><xsl:when test="Q6b_SuitableData = 'N'">No</xsl:when>
<xsl:otherwise><xsl:for-each select="Q6b_SuitableData"><xsl:apply-templates/></xsl:for-each></xsl:otherwise></xsl:choose></label>
<span  class="output" ><p> </p></span>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q6b_EstablishedMethods']" /></label></span>
<label class="inputval"><xsl:choose><xsl:when test="Q6b_EstablishedMethods = 'Y'">Yes</xsl:when><xsl:when test="Q6b_EstablishedMethods = 'N'">No</xsl:when>
<xsl:otherwise><xsl:for-each select="Q6b_EstablishedMethods"><xsl:apply-templates/></xsl:for-each></xsl:otherwise></xsl:choose></label>
<span  class="output" ><p> </p></span>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q6b_AdequateCapacity']" /></label></span>
<label class="inputval"><xsl:choose><xsl:when test="Q6b_AdequateCapacity = 'Y'">Yes</xsl:when><xsl:when test="Q6b_AdequateCapacity = 'N'">No</xsl:when>
<xsl:otherwise><xsl:for-each select="Q6b_AdequateCapacity"><xsl:apply-templates/></xsl:for-each></xsl:otherwise></xsl:choose></label>
<span  class="output" ><p> </p></span>
</fieldset>
</xsl:template>

<xsl:template match="Q6c_Target">
<xsl:param name="mp" />
<fieldset class="group" >
<legend class="output"><xsl:attribute name="id"><xsl:value-of select="concat($mp,'_6c')" /></xsl:attribute>
<xsl:value-of select="$lov/item[@id='Q6c_title']" /></legend>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q6c_Target']" /></label></span>
<label class="inputval"><xsl:choose><xsl:when test=". = 'Y'">Yes</xsl:when><xsl:when test=". = 'N'">No</xsl:when>
<xsl:otherwise><xsl:for-each select="."><xsl:apply-templates/></xsl:for-each></xsl:otherwise></xsl:choose></label>
</fieldset>
</xsl:template>

<xsl:template match="Q6d_DescriptionTargets">
<xsl:param name="mp" />
<fieldset class="group" >
<legend class="output"><xsl:attribute name="id"><xsl:value-of select="concat($mp,'_6d')" /></xsl:attribute>
<xsl:value-of select="$lov/item[@id='Q6d_title']" /></legend>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q6d_DescriptionTargets']" /></label></span>
<span  class="output" ><p> </p></span>
<div class="input string" ><label class="ta"><xsl:value-of select="string(.)" /></label></div>
</fieldset>
</xsl:template>

<xsl:template match="Q6e_GapFillingDateTargets">
<xsl:param name="mp" />
<fieldset class="group" >
<legend class="output"><xsl:attribute name="id"><xsl:value-of select="concat($mp,'_6e')" /></xsl:attribute>
<xsl:value-of select="$lov/item[@id='Q6e_title']" /></legend>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q6e_GapFillingDateTargets']" /></label></span>
<div class="input string" >
<span  class="ta">
<xsl:apply-templates select="$lov/item[@group='list-MonitoringCriterion']" > 
	<xsl:with-param name="arr"><xsl:value-of select="string(.)"/></xsl:with-param><xsl:with-param name="type">radio</xsl:with-param><xsl:with-param name="nonwln">y</xsl:with-param></xsl:apply-templates>
</span>
</div>
</fieldset>
</xsl:template>

<xsl:template match="Q6f_PlansTargets">
<xsl:param name="mp" />
<fieldset class="group" >
<legend class="output"><xsl:attribute name="id"><xsl:value-of select="concat($mp,'_6f')" /></xsl:attribute>
<xsl:value-of select="$lov/item[@id='Q6f_title']" /></legend>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q6f_PlansTargets']" /></label></span>
<span  class="output" ><p> </p></span>
<div class="input string" ><label class="ta"><xsl:value-of select="string(.)" /></label></div>
</fieldset>
</xsl:template>

<!-- 
**************************************************
 *********** 7 TEMPLATES *******************
--> 

<xsl:template match="Q7a_RelevantActivities">
<xsl:param name="mp" />
<fieldset class="group" >
<legend class="output"><xsl:attribute name="id"><xsl:value-of select="concat($mp,'_7a')" /></xsl:attribute>
<xsl:value-of select="$lov/item[@id='Q7a_title']" /></legend>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q7a_RelevantActivities']" /></label></span>
<span  class="output" ><p> </p></span>
<div class="input string" >
<span  class="ta">
<xsl:apply-templates select="$lov/item[@group='list-Activities']" >
	<xsl:with-param name="arr"><xsl:value-of select="text()"/></xsl:with-param><xsl:with-param name="type">checkbox</xsl:with-param><xsl:with-param name="selected">1</xsl:with-param></xsl:apply-templates>
</span>
</div>
<span  class="output" ><p> </p></span>
<div class="input string" >
<label class="label required" ><xsl:value-of select="$lov/item[@id='Other']" /></label>
<label class="ta"><xsl:for-each select="Q7a_UsesActivitiesOther"><xsl:apply-templates/></xsl:for-each></label>
</div>
</fieldset>
</xsl:template>

<xsl:template match="Q7b_DescriptionActivities">
<xsl:param name="mp" />
<fieldset class="group" >
<legend class="output"><xsl:attribute name="id"><xsl:value-of select="concat($mp,'_7b')" /></xsl:attribute>
<xsl:value-of select="$lov/item[@id='Q7b_title']" /></legend>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q7b_DescriptionActivities']" /></label></span>
<span  class="output" ><p> </p></span>
<div class="input string" ><label class="ta"><xsl:value-of select="string(.)" /></label></div>
</fieldset>
</xsl:template>

<xsl:template match="Q7c_RelevantMeasures">
<xsl:param name="mp" />
<fieldset class="group" >
<legend class="output"><xsl:attribute name="id"><xsl:value-of select="concat($mp,'_7c')" /></xsl:attribute>
<xsl:value-of select="$lov/item[@id='Q7c_title']" /></legend>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q7c_RelevantMeasures']" /></label></span>
<span  class="output" ><p> </p></span>
<label class="ta"><xsl:for-each select="Q7c_RelevantMeasure"><xsl:apply-templates/>, </xsl:for-each>
</label>
</fieldset>
</xsl:template>

<xsl:template match="Q7d_DescriptionMeasures">
<xsl:param name="mp" />
<fieldset class="group" >
<legend class="output"><xsl:attribute name="id"><xsl:value-of select="concat($mp,'_7d')" /></xsl:attribute>
<xsl:value-of select="$lov/item[@id='Q7d_title']" /></legend>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q7d_DescriptionMeasures']" /></label></span>
<span  class="output" ><p> </p></span>
<div class="input string" ><label class="ta"><xsl:value-of select="string(.)" /></label></div>
</fieldset>
</xsl:template>

<xsl:template match="Q7e_AdequacyForAssessmentMeasures">
<xsl:param name="mp" />
<fieldset class="group" >
<legend class="output"><xsl:attribute name="id"><xsl:value-of select="concat($mp,'_7e')" /></xsl:attribute>
<xsl:value-of select="$lov/item[@id='Q7e_title']" /></legend>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q7e_AdequacyForAssessmentMeasures']" /></label></span>
<span  class="output" ><p> </p></span>

<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q7e_AdequateData']" /></label></span>
<label class="inputval"><xsl:choose><xsl:when test="Q7e_AdequateData = 'Y'">Yes</xsl:when><xsl:when test="Q7e_AdequateData = 'N'">No</xsl:when>
<xsl:otherwise><xsl:for-each select="Q7e_AdequateData"><xsl:apply-templates/></xsl:for-each></xsl:otherwise></xsl:choose></label>
<span  class="output" ><p> </p></span>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q7e_EstablishedMethods']" /></label></span>
<label class="inputval"><xsl:choose><xsl:when test="Q7e_EstablishedMethods = 'Y'">Yes</xsl:when><xsl:when test="Q7e_EstablishedMethods = 'N'">No</xsl:when>
<xsl:otherwise><xsl:for-each select="Q7e_EstablishedMethods"><xsl:apply-templates/></xsl:for-each></xsl:otherwise></xsl:choose></label>
<span  class="output" ><p> </p></span>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q7e_AdequateUnderstandingGES']" /></label></span>
<label class="inputval"><xsl:choose><xsl:when test="Q7e_AdequateUnderstandingGES = 'Y'">Yes</xsl:when><xsl:when test="Q7e_AdequateUnderstandingGES = 'N'">No</xsl:when>
<xsl:otherwise><xsl:for-each select="Q7e_AdequateUnderstandingGES"><xsl:apply-templates/></xsl:for-each></xsl:otherwise></xsl:choose></label>
<span  class="output" ><p> </p></span>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q7e_AdequateCapacity']" /></label></span>
<label class="inputval"><xsl:choose><xsl:when test="Q7e_AdequateCapacity = 'Y'">Yes</xsl:when><xsl:when test="Q7e_AdequateCapacity = 'N'">No</xsl:when>
<xsl:otherwise><xsl:for-each select="Q7e_AdequateCapacity"><xsl:apply-templates/></xsl:for-each></xsl:otherwise></xsl:choose></label>
<span  class="output" ><p> </p></span>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q7e_AddressesActivitiesPressures']" /></label></span>
<label class="inputval"><xsl:choose><xsl:when test="Q7e_AddressesActivitiesPressures = 'Y'">Yes</xsl:when><xsl:when test="Q7e_AddressesActivitiesPressures = 'N'">No</xsl:when>
<xsl:otherwise><xsl:for-each select="Q7e_AddressesActivitiesPressures"><xsl:apply-templates/></xsl:for-each></xsl:otherwise></xsl:choose></label>
<span  class="output" ><p> </p></span>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q7e_AddressesEffectiveness']" /></label></span>
<label class="inputval"><xsl:choose><xsl:when test="Q7e_AddressesEffectiveness = 'Y'">Yes</xsl:when><xsl:when test="Q7e_AddressesEffectiveness = 'N'">No</xsl:when>
<xsl:otherwise><xsl:for-each select="Q7e_AddressesEffectiveness"><xsl:apply-templates/></xsl:for-each></xsl:otherwise></xsl:choose></label>
<span  class="output" ><p> </p></span>
</fieldset>
</xsl:template>

<xsl:template match="Q7f_GapFillingDateActivitiesMeasures">
<xsl:param name="mp" />
<fieldset class="group" >
<legend class="output"><xsl:attribute name="id"><xsl:value-of select="concat($mp,'_7f')" /></xsl:attribute>
<xsl:value-of select="$lov/item[@id='Q7f_title']" /></legend>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q7f_GapFillingDateActivitiesMeasures']" /></label></span>
<span  class="output" ><p> </p></span>
<div class="input string" >
<span  class="ta">
<xsl:apply-templates select="$lov/item[@group='list-MonitoringCriterion']" > 
	<xsl:with-param name="arr"><xsl:value-of select="string(.)"/></xsl:with-param><xsl:with-param name="type">radio</xsl:with-param><xsl:with-param name="nonwln">y</xsl:with-param></xsl:apply-templates>
</span>
</div>
</fieldset>
</xsl:template>

<!-- 
**************************************************
 *********** 8 TEMPLATES *******************
--> 

<xsl:template match="Q8a_LinksExistingMonitoringProgrammes">
<xsl:param name="mp" />
<fieldset class="group" >
<legend class="output"><xsl:attribute name="id"><xsl:value-of select="concat($mp,'_8a')" /></xsl:attribute>
<xsl:value-of select="$lov/item[@id='Q8a_title']" /></legend>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q8a_LinksExistingMonitoringProgrammes']" /></label></span>
<span  class="output" ><p> </p></span>
<div class="repet2 ta" >
<span >
<xsl:apply-templates select="$lov/item[@group='list-MonitoringOtherDirectivesConventions']" >
	<xsl:with-param name="arr"><xsl:value-of select="text()"/></xsl:with-param><xsl:with-param name="type">checkbox</xsl:with-param></xsl:apply-templates>
</span>
</div>
<span  class="output" ><p> </p></span>
<div class="input string" >
<label class="label required" ><xsl:value-of select="$lov/item[@id='Other']" /></label>
<label class="ta"><xsl:for-each select="Q8a_Other"><xsl:apply-templates/></xsl:for-each></label>
</div>
</fieldset>
</xsl:template>


<xsl:template match="item" >
	<xsl:param name="arr" />
	<xsl:param name="oth" />
	<xsl:param name="nonwln" />
	<xsl:param name="selected" />
	<xsl:param name="type" />
<!--	<item id="list-GESCriteria-1_1" group="list-GESCriteria" value="1.1">1.1: Species distribution</item> -->
	<xsl:variable name="val" select="./@value" />
	<xsl:variable name="txt" select="." />
	<xsl:variable name="vnonwln" >
		<xsl:choose><xsl:when test="$nonwln = 'y'">nonewline</xsl:when>
		<xsl:otherwise >newline</xsl:otherwise>
	</xsl:choose></xsl:variable>

	<xsl:choose>
		<xsl:when test="$type='row'">
			<tr>
				<td align="left"><b><span class="string" ><xsl:value-of select="$val" /></span></b></td>
				<td align="left">
					<span class="select1 string" ><label class="label"  ><xsl:value-of select="$txt" /></label></span>
					<xsl:if test="string($oth) != '' "><br/><span class="ta" ><label class="inputval"  ><xsl:value-of select="$oth" /></label></span></xsl:if>
				</td>
				<td>
						<xsl:apply-templates select="$lov/item[@group='list-MonitoringCriterionNR']" > 
							<xsl:with-param name="arr"><xsl:value-of select="$arr" /></xsl:with-param>
							<xsl:with-param name="nonwln"><xsl:value-of select="$nonwln" /></xsl:with-param>
							<xsl:with-param name="type">radio</xsl:with-param></xsl:apply-templates> 
				</td></tr>
		</xsl:when>
		<xsl:otherwise>
		<!--xsl:if test="string($nonwln) != '' " </xsl:if> -->
		<xsl:if test="($selected = 1 and contains(concat(',',translate($arr,' ',','),','),concat(',',$val,','))) or ($selected != 1)" >
	<span ><xsl:attribute name="class"><xsl:value-of select="$vnonwln" /></xsl:attribute>
	<input  class="value" ><xsl:attribute name="type"><xsl:value-of select="$type" /></xsl:attribute>
	<xsl:attribute name="value"><xsl:value-of select="$val" /></xsl:attribute>
	<!--<xsl:if test="contains($arr,$val)" ><xsl:attribute name="checked">checked</xsl:attribute></xsl:if></input>-->
  <xsl:if test="contains(concat(',',translate($arr,' ',','),','),concat(',',$val,','))" ><xsl:attribute name="checked">checked</xsl:attribute></xsl:if></input>
    <span class="label" ><xsl:value-of select="$txt" /></span></span>
	</xsl:if>
		</xsl:otherwise>
	</xsl:choose> 
</xsl:template> 

<!-- Radio template-->
<xsl:template match="AddressedByProgramme">
<div class="select1 string">
  <span >
	<span class="selector-item">
		<input value="By2014" type="radio" class="value">
			<xsl:if test=". ='By2014'">
			<xsl:attribute name="checked">checked</xsl:attribute></xsl:if>
		</input><span class="label" >By 2014</span>
	</span>

	<span class="selector-item">
		<input value="By2018" type="radio" class="value">
			<xsl:if test=". ='By2018'">
			<xsl:attribute name="checked">checked</xsl:attribute></xsl:if>
		</input><span class="label" >By 2018</span>
	</span>

		<span class="selector-item">
		<input value="By2020" type="radio" class="value">
			<xsl:if test=". ='By2020'">
			<xsl:attribute name="checked">checked</xsl:attribute></xsl:if>
		</input><span class="label" >By 2020</span>
	</span>

		<span class="selector-item">
		<input value="After2020" type="radio" class="value">
			<xsl:if test=". ='After2020'">
			<xsl:attribute name="checked">checked</xsl:attribute></xsl:if>
		</input><span class="label" >After 2020</span>
	</span>

		<span class="selector-item">
		<input value="NotRelevant" type="radio" class="value">
			<xsl:if test=". ='NotRelevant'">
			<xsl:attribute name="checked">checked</xsl:attribute></xsl:if>
		</input><span class="label" >Not Relevant</span>
	</span>
  </span>
</div>
</xsl:template>

<xsl:template name="indx">
<fieldset class="group" >
<legend class="label">Index</legend><span class="output" >
<dl>
	<dt><a href="#C1"><xsl:value-of select="$lov/item[@id='GeneralDescription']" /></a></dt>
	<dd><a href="#C1_1a"><xsl:value-of select="$lov/item[@id='Q1a_title']" /></a></dd>
	<dd><a href="#C1_1b"><xsl:value-of select="$lov/item[@id='Q1b_title']" /></a></dd>
	<dd><a href="#C1_1c"><xsl:value-of select="$lov/item[@id='Q1c_title']" /></a></dd>
	<dd><a href="#C1_1d_1"><xsl:value-of select="$lov/item[@id='Q1d_1_title']" /></a></dd>
	<dd><a href="#C1_1d_2"><xsl:value-of select="$lov/item[@id='Q1d_2_title']" /></a></dd>
	<dd><a href="#C1_1d_4"><xsl:value-of select="$lov/item[@id='Q1d_4_title']" /></a></dd>
	<dd><a href="#C1_1d_5"><xsl:value-of select="$lov/item[@id='Q1d_5_title']" /></a></dd>
	<dd><a href="#C1_1d_6"><xsl:value-of select="$lov/item[@id='Q1d_6_title']" /></a></dd>
	<dd><a href="#C1_1e"><xsl:value-of select="$lov/item[@id='Q1e_title']" /></a></dd>
	<dd><a href="#C1_2a"><xsl:value-of select="$lov/item[@id='Q2a_title']" /></a></dd>
	<dd><a href="#C1_3a"><xsl:value-of select="$lov/item[@id='Q3a_title']" /></a></dd>
	<dd><a href="#C1_3b"><xsl:value-of select="$lov/item[@id='Q3b_title']" /></a></dd>
	<dd><a href="#C1_3c"><xsl:value-of select="$lov/item[@id='Q3c_title']" /></a></dd>
	<dd><a href="#C1_3d"><xsl:value-of select="$lov/item[@id='Q3d_title']" /></a></dd>
	<dd><a href="#C1_3e"><xsl:value-of select="$lov/item[@id='Q3e_title']" /></a></dd>
	<dd><a href="#C1_4a"><xsl:value-of select="$lov/item[@id='Q4a_title']" /></a></dd>
	<dd><a href="#C1_4b"><xsl:value-of select="$lov/item[@id='Q4b_title']" /></a></dd>
	<dd><a href="#C1_4c"><xsl:value-of select="$lov/item[@id='Q4c_title']" /></a></dd>
	<dt><a href="#D2"><xsl:value-of select="$lov/item[@id='list-MonitoringProgramme-D2']" /></a></dt>
	<dd><a href="#D2_ref"><xsl:value-of select="$lov/item[@id='REF_title']" /></a></dd>
	<dd><a href="#D2_refsub"><xsl:value-of select="$lov/item[@id='ReferenceSubProgramme']" /></a></dd>
	<dd><a href="#D2_4e"><xsl:value-of select="$lov/item[@id='Q4e_title']" /></a></dd>
	<dd><a href="#D2_5a"><xsl:value-of select="$lov/item[@id='Q5a_title']" /></a></dd>
	<dd><a href="#D2_5b"><xsl:value-of select="$lov/item[@id='Q5b_title']" /></a></dd>
	<dd><a href="#D2_5c"><xsl:value-of select="$lov/item[@id='Q5c_title']" /></a></dd>
	<dd><a href="#D2_5d"><xsl:value-of select="$lov/item[@id='Q5d_title']" /></a></dd>
	<dd><a href="#D2_5e"><xsl:value-of select="$lov/item[@id='Q5e_title']" /></a></dd>
	<dd><a href="#D2_5f"><xsl:value-of select="$lov/item[@id='Q5f_title']" /></a></dd>
	<dd><a href="#D2_5g"><xsl:value-of select="$lov/item[@id='Q5g_title']" /></a></dd>
	<dd><a href="#D2_6a"><xsl:value-of select="$lov/item[@id='Q6a_title']" /></a></dd>
	<dd><a href="#D2_6b"><xsl:value-of select="$lov/item[@id='Q6b_title']" /></a></dd>
	<dd><a href="#D2_6c"><xsl:value-of select="$lov/item[@id='Q6c_title']" /></a></dd>
	<dd><a href="#D2_6d"><xsl:value-of select="$lov/item[@id='Q6d_title']" /></a></dd>
	<dd><a href="#D2_6e"><xsl:value-of select="$lov/item[@id='Q6e_title']" /></a></dd>
	<dd><a href="#D2_6f"><xsl:value-of select="$lov/item[@id='Q6f_title']" /></a></dd>
	<dd><a href="#D2_7a"><xsl:value-of select="$lov/item[@id='Q7a_title']" /></a></dd>
	<dd><a href="#D2_7b"><xsl:value-of select="$lov/item[@id='Q7b_title']" /></a></dd>
	<dd><a href="#D2_7c"><xsl:value-of select="$lov/item[@id='Q7c_title']" /></a></dd>
	<dd><a href="#D2_7d"><xsl:value-of select="$lov/item[@id='Q7d_title']" /></a></dd>
	<dd><a href="#D2_7e"><xsl:value-of select="$lov/item[@id='Q7e_title']" /></a></dd>
	<dd><a href="#D2_7f"><xsl:value-of select="$lov/item[@id='Q7f_title']" /></a></dd>
	<dd><a href="#D2_8a"><xsl:value-of select="$lov/item[@id='Q8a_title']" /></a></dd>
	<dt><a href="#D3"><xsl:value-of select="$lov/item[@id='list-MonitoringProgramme-D3']" /></a></dt>
	<dd><a href="#D3_ref"><xsl:value-of select="$lov/item[@id='REF_title']" /></a></dd>
	<dd><a href="#D3_refsub"><xsl:value-of select="$lov/item[@id='ReferenceSubProgramme']" /></a></dd>
	<dd><a href="#D3_4e"><xsl:value-of select="$lov/item[@id='Q4e_title']" /></a></dd>
	<dd><a href="#D3_5a"><xsl:value-of select="$lov/item[@id='Q5a_title']" /></a></dd>
	<dd><a href="#D3_5b"><xsl:value-of select="$lov/item[@id='Q5b_title']" /></a></dd>
	<dd><a href="#D3_5c"><xsl:value-of select="$lov/item[@id='Q5c_title']" /></a></dd>
	<dd><a href="#D3_5d"><xsl:value-of select="$lov/item[@id='Q5d_title']" /></a></dd>
	<dd><a href="#D3_5e"><xsl:value-of select="$lov/item[@id='Q5e_title']" /></a></dd>
	<dd><a href="#D3_5f"><xsl:value-of select="$lov/item[@id='Q5f_title']" /></a></dd>
	<dd><a href="#D3_5g"><xsl:value-of select="$lov/item[@id='Q5g_title']" /></a></dd>
	<dd><a href="#D3_6a"><xsl:value-of select="$lov/item[@id='Q6a_title']" /></a></dd>
	<dd><a href="#D3_6b"><xsl:value-of select="$lov/item[@id='Q6b_title']" /></a></dd>
	<dd><a href="#D3_6c"><xsl:value-of select="$lov/item[@id='Q6c_title']" /></a></dd>
	<dd><a href="#D3_6d"><xsl:value-of select="$lov/item[@id='Q6d_title']" /></a></dd>
	<dd><a href="#D3_6e"><xsl:value-of select="$lov/item[@id='Q6e_title']" /></a></dd>
	<dd><a href="#D3_6f"><xsl:value-of select="$lov/item[@id='Q6f_title']" /></a></dd>
	<dd><a href="#D3_7a"><xsl:value-of select="$lov/item[@id='Q7a_title']" /></a></dd>
	<dd><a href="#D3_7b"><xsl:value-of select="$lov/item[@id='Q7b_title']" /></a></dd>
	<dd><a href="#D3_7c"><xsl:value-of select="$lov/item[@id='Q7c_title']" /></a></dd>
	<dd><a href="#D3_7d"><xsl:value-of select="$lov/item[@id='Q7d_title']" /></a></dd>
	<dd><a href="#D3_7e"><xsl:value-of select="$lov/item[@id='Q7e_title']" /></a></dd>
	<dd><a href="#D3_7f"><xsl:value-of select="$lov/item[@id='Q7f_title']" /></a></dd>
	<dd><a href="#D3_8a"><xsl:value-of select="$lov/item[@id='Q8a_title']" /></a></dd>
	<dt><a href="#D5"><xsl:value-of select="$lov/item[@id='list-MonitoringProgramme-D5']" /></a></dt>
	<dd><a href="#D5_ref"><xsl:value-of select="$lov/item[@id='REF_title']" /></a></dd>
	<dd><a href="#D5_refsub"><xsl:value-of select="$lov/item[@id='ReferenceSubProgramme']" /></a></dd>
	<dd><a href="#D5_4e"><xsl:value-of select="$lov/item[@id='Q4e_title']" /></a></dd>
	<dd><a href="#D5_5a"><xsl:value-of select="$lov/item[@id='Q5a_title']" /></a></dd>
	<dd><a href="#D5_5b"><xsl:value-of select="$lov/item[@id='Q5b_title']" /></a></dd>
	<dd><a href="#D5_5c"><xsl:value-of select="$lov/item[@id='Q5c_title']" /></a></dd>
	<dd><a href="#D5_5d"><xsl:value-of select="$lov/item[@id='Q5d_title']" /></a></dd>
	<dd><a href="#D5_5e"><xsl:value-of select="$lov/item[@id='Q5e_title']" /></a></dd>
	<dd><a href="#D5_5f"><xsl:value-of select="$lov/item[@id='Q5f_title']" /></a></dd>
	<dd><a href="#D5_5g"><xsl:value-of select="$lov/item[@id='Q5g_title']" /></a></dd>
	<dd><a href="#D5_6a"><xsl:value-of select="$lov/item[@id='Q6a_title']" /></a></dd>
	<dd><a href="#D5_6b"><xsl:value-of select="$lov/item[@id='Q6b_title']" /></a></dd>
	<dd><a href="#D5_6c"><xsl:value-of select="$lov/item[@id='Q6c_title']" /></a></dd>
	<dd><a href="#D5_6d"><xsl:value-of select="$lov/item[@id='Q6d_title']" /></a></dd>
	<dd><a href="#D5_6e"><xsl:value-of select="$lov/item[@id='Q6e_title']" /></a></dd>
	<dd><a href="#D5_6f"><xsl:value-of select="$lov/item[@id='Q6f_title']" /></a></dd>
	<dd><a href="#D5_7a"><xsl:value-of select="$lov/item[@id='Q7a_title']" /></a></dd>
	<dd><a href="#D5_7b"><xsl:value-of select="$lov/item[@id='Q7b_title']" /></a></dd>
	<dd><a href="#D5_7c"><xsl:value-of select="$lov/item[@id='Q7c_title']" /></a></dd>
	<dd><a href="#D5_7d"><xsl:value-of select="$lov/item[@id='Q7d_title']" /></a></dd>
	<dd><a href="#D5_7e"><xsl:value-of select="$lov/item[@id='Q7e_title']" /></a></dd>
	<dd><a href="#D5_7f"><xsl:value-of select="$lov/item[@id='Q7f_title']" /></a></dd>
	<dd><a href="#D5_8a"><xsl:value-of select="$lov/item[@id='Q8a_title']" /></a></dd>
	<dt><a href="#D7"><xsl:value-of select="$lov/item[@id='list-MonitoringProgramme-D7']" /></a></dt>
	<dd><a href="#D7_ref"><xsl:value-of select="$lov/item[@id='REF_title']" /></a></dd>
	<dd><a href="#D7_refsub"><xsl:value-of select="$lov/item[@id='ReferenceSubProgramme']" /></a></dd>
	<dd><a href="#D7_4e"><xsl:value-of select="$lov/item[@id='Q4e_title']" /></a></dd>
	<dd><a href="#D7_5a"><xsl:value-of select="$lov/item[@id='Q5a_title']" /></a></dd>
	<dd><a href="#D7_5b"><xsl:value-of select="$lov/item[@id='Q5b_title']" /></a></dd>
	<dd><a href="#D7_5c"><xsl:value-of select="$lov/item[@id='Q5c_title']" /></a></dd>
	<dd><a href="#D7_5d"><xsl:value-of select="$lov/item[@id='Q5d_title']" /></a></dd>
	<dd><a href="#D7_5e"><xsl:value-of select="$lov/item[@id='Q5e_title']" /></a></dd>
	<dd><a href="#D7_5f"><xsl:value-of select="$lov/item[@id='Q5f_title']" /></a></dd>
	<dd><a href="#D7_5g"><xsl:value-of select="$lov/item[@id='Q5g_title']" /></a></dd>
	<dd><a href="#D7_6a"><xsl:value-of select="$lov/item[@id='Q6a_title']" /></a></dd>
	<dd><a href="#D7_6b"><xsl:value-of select="$lov/item[@id='Q6b_title']" /></a></dd>
	<dd><a href="#D7_6c"><xsl:value-of select="$lov/item[@id='Q6c_title']" /></a></dd>
	<dd><a href="#D7_6d"><xsl:value-of select="$lov/item[@id='Q6d_title']" /></a></dd>
	<dd><a href="#D7_6e"><xsl:value-of select="$lov/item[@id='Q6e_title']" /></a></dd>
	<dd><a href="#D7_6f"><xsl:value-of select="$lov/item[@id='Q6f_title']" /></a></dd>
	<dd><a href="#D7_7a"><xsl:value-of select="$lov/item[@id='Q7a_title']" /></a></dd>
	<dd><a href="#D7_7b"><xsl:value-of select="$lov/item[@id='Q7b_title']" /></a></dd>
	<dd><a href="#D7_7c"><xsl:value-of select="$lov/item[@id='Q7c_title']" /></a></dd>
	<dd><a href="#D7_7d"><xsl:value-of select="$lov/item[@id='Q7d_title']" /></a></dd>
	<dd><a href="#D7_7e"><xsl:value-of select="$lov/item[@id='Q7e_title']" /></a></dd>
	<dd><a href="#D7_7f"><xsl:value-of select="$lov/item[@id='Q7f_title']" /></a></dd>
	<dd><a href="#D7_8a"><xsl:value-of select="$lov/item[@id='Q8a_title']" /></a></dd>
	<dt><a href="#D8"><xsl:value-of select="$lov/item[@id='list-MonitoringProgramme-D8']" /></a></dt>
	<dd><a href="#D8_ref"><xsl:value-of select="$lov/item[@id='REF_title']" /></a></dd>
	<dd><a href="#D8_refsub"><xsl:value-of select="$lov/item[@id='ReferenceSubProgramme']" /></a></dd>
	<dd><a href="#D8_4e"><xsl:value-of select="$lov/item[@id='Q4e_title']" /></a></dd>
	<dd><a href="#D8_5a"><xsl:value-of select="$lov/item[@id='Q5a_title']" /></a></dd>
	<dd><a href="#D8_5b"><xsl:value-of select="$lov/item[@id='Q5b_title']" /></a></dd>
	<dd><a href="#D8_5c"><xsl:value-of select="$lov/item[@id='Q5c_title']" /></a></dd>
	<dd><a href="#D8_5d"><xsl:value-of select="$lov/item[@id='Q5d_title']" /></a></dd>
	<dd><a href="#D8_5e"><xsl:value-of select="$lov/item[@id='Q5e_title']" /></a></dd>
	<dd><a href="#D8_5f"><xsl:value-of select="$lov/item[@id='Q5f_title']" /></a></dd>
	<dd><a href="#D8_5g"><xsl:value-of select="$lov/item[@id='Q5g_title']" /></a></dd>
	<dd><a href="#D8_6a"><xsl:value-of select="$lov/item[@id='Q6a_title']" /></a></dd>
	<dd><a href="#D8_6b"><xsl:value-of select="$lov/item[@id='Q6b_title']" /></a></dd>
	<dd><a href="#D8_6c"><xsl:value-of select="$lov/item[@id='Q6c_title']" /></a></dd>
	<dd><a href="#D8_6d"><xsl:value-of select="$lov/item[@id='Q6d_title']" /></a></dd>
	<dd><a href="#D8_6e"><xsl:value-of select="$lov/item[@id='Q6e_title']" /></a></dd>
	<dd><a href="#D8_6f"><xsl:value-of select="$lov/item[@id='Q6f_title']" /></a></dd>
	<dd><a href="#D8_7a"><xsl:value-of select="$lov/item[@id='Q7a_title']" /></a></dd>
	<dd><a href="#D8_7b"><xsl:value-of select="$lov/item[@id='Q7b_title']" /></a></dd>
	<dd><a href="#D8_7c"><xsl:value-of select="$lov/item[@id='Q7c_title']" /></a></dd>
	<dd><a href="#D8_7d"><xsl:value-of select="$lov/item[@id='Q7d_title']" /></a></dd>
	<dd><a href="#D8_7e"><xsl:value-of select="$lov/item[@id='Q7e_title']" /></a></dd>
	<dd><a href="#D8_7f"><xsl:value-of select="$lov/item[@id='Q7f_title']" /></a></dd>
	<dd><a href="#D8_8a"><xsl:value-of select="$lov/item[@id='Q8a_title']" /></a></dd>
	<dt><a href="#D9"><xsl:value-of select="$lov/item[@id='list-MonitoringProgramme-D9']" /></a></dt>
	<dd><a href="#D9_ref"><xsl:value-of select="$lov/item[@id='REF_title']" /></a></dd>
	<dd><a href="#D9_refsub"><xsl:value-of select="$lov/item[@id='ReferenceSubProgramme']" /></a></dd>
	<dd><a href="#D9_4e"><xsl:value-of select="$lov/item[@id='Q4e_title']" /></a></dd>
	<dd><a href="#D9_5a"><xsl:value-of select="$lov/item[@id='Q5a_title']" /></a></dd>
	<dd><a href="#D9_5b"><xsl:value-of select="$lov/item[@id='Q5b_title']" /></a></dd>
	<dd><a href="#D9_5c"><xsl:value-of select="$lov/item[@id='Q5c_title']" /></a></dd>
	<dd><a href="#D9_5d"><xsl:value-of select="$lov/item[@id='Q5d_title']" /></a></dd>
	<dd><a href="#D9_5e"><xsl:value-of select="$lov/item[@id='Q5e_title']" /></a></dd>
	<dd><a href="#D9_5f"><xsl:value-of select="$lov/item[@id='Q5f_title']" /></a></dd>
	<dd><a href="#D9_5g"><xsl:value-of select="$lov/item[@id='Q5g_title']" /></a></dd>
	<dd><a href="#D9_6a"><xsl:value-of select="$lov/item[@id='Q6a_title']" /></a></dd>
	<dd><a href="#D9_6b"><xsl:value-of select="$lov/item[@id='Q6b_title']" /></a></dd>
	<dd><a href="#D9_6c"><xsl:value-of select="$lov/item[@id='Q6c_title']" /></a></dd>
	<dd><a href="#D9_6d"><xsl:value-of select="$lov/item[@id='Q6d_title']" /></a></dd>
	<dd><a href="#D9_6e"><xsl:value-of select="$lov/item[@id='Q6e_title']" /></a></dd>
	<dd><a href="#D9_6f"><xsl:value-of select="$lov/item[@id='Q6f_title']" /></a></dd>
	<dd><a href="#D9_7a"><xsl:value-of select="$lov/item[@id='Q7a_title']" /></a></dd>
	<dd><a href="#D9_7b"><xsl:value-of select="$lov/item[@id='Q7b_title']" /></a></dd>
	<dd><a href="#D9_7c"><xsl:value-of select="$lov/item[@id='Q7c_title']" /></a></dd>
	<dd><a href="#D9_7d"><xsl:value-of select="$lov/item[@id='Q7d_title']" /></a></dd>
	<dd><a href="#D9_7e"><xsl:value-of select="$lov/item[@id='Q7e_title']" /></a></dd>
	<dd><a href="#D9_7f"><xsl:value-of select="$lov/item[@id='Q7f_title']" /></a></dd>
	<dd><a href="#D9_8a"><xsl:value-of select="$lov/item[@id='Q8a_title']" /></a></dd>
	<dt><a href="#D10"><xsl:value-of select="$lov/item[@id='list-MonitoringProgramme-D10']" /></a></dt>
	<dd><a href="#D10_ref"><xsl:value-of select="$lov/item[@id='REF_title']" /></a></dd>
	<dd><a href="#D10_refsub"><xsl:value-of select="$lov/item[@id='ReferenceSubProgramme']" /></a></dd>
	<dd><a href="#D10_4e"><xsl:value-of select="$lov/item[@id='Q4e_title']" /></a></dd>
	<dd><a href="#D10_5a"><xsl:value-of select="$lov/item[@id='Q5a_title']" /></a></dd>
	<dd><a href="#D10_5b"><xsl:value-of select="$lov/item[@id='Q5b_title']" /></a></dd>
	<dd><a href="#D10_5c"><xsl:value-of select="$lov/item[@id='Q5c_title']" /></a></dd>
	<dd><a href="#D10_5d"><xsl:value-of select="$lov/item[@id='Q5d_title']" /></a></dd>
	<dd><a href="#D10_5e"><xsl:value-of select="$lov/item[@id='Q5e_title']" /></a></dd>
	<dd><a href="#D10_5f"><xsl:value-of select="$lov/item[@id='Q5f_title']" /></a></dd>
	<dd><a href="#D10_5g"><xsl:value-of select="$lov/item[@id='Q5g_title']" /></a></dd>
	<dd><a href="#D10_6a"><xsl:value-of select="$lov/item[@id='Q6a_title']" /></a></dd>
	<dd><a href="#D10_6b"><xsl:value-of select="$lov/item[@id='Q6b_title']" /></a></dd>
	<dd><a href="#D10_6c"><xsl:value-of select="$lov/item[@id='Q6c_title']" /></a></dd>
	<dd><a href="#D10_6d"><xsl:value-of select="$lov/item[@id='Q6d_title']" /></a></dd>
	<dd><a href="#D10_6e"><xsl:value-of select="$lov/item[@id='Q6e_title']" /></a></dd>
	<dd><a href="#D10_6f"><xsl:value-of select="$lov/item[@id='Q6f_title']" /></a></dd>
	<dd><a href="#D10_7a"><xsl:value-of select="$lov/item[@id='Q7a_title']" /></a></dd>
	<dd><a href="#D10_7b"><xsl:value-of select="$lov/item[@id='Q7b_title']" /></a></dd>
	<dd><a href="#D10_7c"><xsl:value-of select="$lov/item[@id='Q7c_title']" /></a></dd>
	<dd><a href="#D10_7d"><xsl:value-of select="$lov/item[@id='Q7d_title']" /></a></dd>
	<dd><a href="#D10_7e"><xsl:value-of select="$lov/item[@id='Q7e_title']" /></a></dd>
	<dd><a href="#D10_7f"><xsl:value-of select="$lov/item[@id='Q7f_title']" /></a></dd>
	<dd><a href="#D10_8a"><xsl:value-of select="$lov/item[@id='Q8a_title']" /></a></dd>
	<dt><a href="#D11"><xsl:value-of select="$lov/item[@id='list-MonitoringProgramme-D11']" /></a></dt>
	<dd><a href="#D11_ref"><xsl:value-of select="$lov/item[@id='REF_title']" /></a></dd>
	<dd><a href="#D11_refsub"><xsl:value-of select="$lov/item[@id='ReferenceSubProgramme']" /></a></dd>
	<dd><a href="#D11_4e"><xsl:value-of select="$lov/item[@id='Q4e_title']" /></a></dd>
	<dd><a href="#D11_5a"><xsl:value-of select="$lov/item[@id='Q5a_title']" /></a></dd>
	<dd><a href="#D11_5b"><xsl:value-of select="$lov/item[@id='Q5b_title']" /></a></dd>
	<dd><a href="#D11_5c"><xsl:value-of select="$lov/item[@id='Q5c_title']" /></a></dd>
	<dd><a href="#D11_5d"><xsl:value-of select="$lov/item[@id='Q5d_title']" /></a></dd>
	<dd><a href="#D11_5e"><xsl:value-of select="$lov/item[@id='Q5e_title']" /></a></dd>
	<dd><a href="#D11_5f"><xsl:value-of select="$lov/item[@id='Q5f_title']" /></a></dd>
	<dd><a href="#D11_5g"><xsl:value-of select="$lov/item[@id='Q5g_title']" /></a></dd>
	<dd><a href="#D11_6a"><xsl:value-of select="$lov/item[@id='Q6a_title']" /></a></dd>
	<dd><a href="#D11_6b"><xsl:value-of select="$lov/item[@id='Q6b_title']" /></a></dd>
	<dd><a href="#D11_6c"><xsl:value-of select="$lov/item[@id='Q6c_title']" /></a></dd>
	<dd><a href="#D11_6d"><xsl:value-of select="$lov/item[@id='Q6d_title']" /></a></dd>
	<dd><a href="#D11_6e"><xsl:value-of select="$lov/item[@id='Q6e_title']" /></a></dd>
	<dd><a href="#D11_6f"><xsl:value-of select="$lov/item[@id='Q6f_title']" /></a></dd>
	<dd><a href="#D11_7a"><xsl:value-of select="$lov/item[@id='Q7a_title']" /></a></dd>
	<dd><a href="#D11_7b"><xsl:value-of select="$lov/item[@id='Q7b_title']" /></a></dd>
	<dd><a href="#D11_7c"><xsl:value-of select="$lov/item[@id='Q7c_title']" /></a></dd>
	<dd><a href="#D11_7d"><xsl:value-of select="$lov/item[@id='Q7d_title']" /></a></dd>
	<dd><a href="#D11_7e"><xsl:value-of select="$lov/item[@id='Q7e_title']" /></a></dd>
	<dd><a href="#D11_7f"><xsl:value-of select="$lov/item[@id='Q7f_title']" /></a></dd>
	<dd><a href="#D11_8a"><xsl:value-of select="$lov/item[@id='Q8a_title']" /></a></dd>
	<dt><a href="#D1_4_6_Birds"><xsl:value-of select="$lov/item[@id='list-MonitoringProgramme-D1_4_6_Birds']" /></a></dt>
	<dd><a href="#D1_4_6_Birds_ref"><xsl:value-of select="$lov/item[@id='REF_title']" /></a></dd>
	<dd><a href="#D1_4_6_Birds_refsub"><xsl:value-of select="$lov/item[@id='ReferenceSubProgramme']" /></a></dd>
	<dd><a href="#D1_4_6_Birds_4e"><xsl:value-of select="$lov/item[@id='Q4e_title']" /></a></dd>
	<dd><a href="#D1_4_6_Birds_5a"><xsl:value-of select="$lov/item[@id='Q5a_title']" /></a></dd>
	<dd><a href="#D1_4_6_Birds_5b"><xsl:value-of select="$lov/item[@id='Q5b_title']" /></a></dd>
	<dd><a href="#D1_4_6_Birds_5c"><xsl:value-of select="$lov/item[@id='Q5c_title']" /></a></dd>
	<dd><a href="#D1_4_6_Birds_5d"><xsl:value-of select="$lov/item[@id='Q5d_title']" /></a></dd>
	<dd><a href="#D1_4_6_Birds_5e"><xsl:value-of select="$lov/item[@id='Q5e_title']" /></a></dd>
	<dd><a href="#D1_4_6_Birds_5f"><xsl:value-of select="$lov/item[@id='Q5f_title']" /></a></dd>
	<dd><a href="#D1_4_6_Birds_5g"><xsl:value-of select="$lov/item[@id='Q5g_title']" /></a></dd>
	<dd><a href="#D1_4_6_Birds_6a"><xsl:value-of select="$lov/item[@id='Q6a_title']" /></a></dd>
	<dd><a href="#D1_4_6_Birds_6b"><xsl:value-of select="$lov/item[@id='Q6b_title']" /></a></dd>
	<dd><a href="#D1_4_6_Birds_6c"><xsl:value-of select="$lov/item[@id='Q6c_title']" /></a></dd>
	<dd><a href="#D1_4_6_Birds_6d"><xsl:value-of select="$lov/item[@id='Q6d_title']" /></a></dd>
	<dd><a href="#D1_4_6_Birds_6e"><xsl:value-of select="$lov/item[@id='Q6e_title']" /></a></dd>
	<dd><a href="#D1_4_6_Birds_6f"><xsl:value-of select="$lov/item[@id='Q6f_title']" /></a></dd>
	<dd><a href="#D1_4_6_Birds_7a"><xsl:value-of select="$lov/item[@id='Q7a_title']" /></a></dd>
	<dd><a href="#D1_4_6_Birds_7b"><xsl:value-of select="$lov/item[@id='Q7b_title']" /></a></dd>
	<dd><a href="#D1_4_6_Birds_7c"><xsl:value-of select="$lov/item[@id='Q7c_title']" /></a></dd>
	<dd><a href="#D1_4_6_Birds_7d"><xsl:value-of select="$lov/item[@id='Q7d_title']" /></a></dd>
	<dd><a href="#D1_4_6_Birds_7e"><xsl:value-of select="$lov/item[@id='Q7e_title']" /></a></dd>
	<dd><a href="#D1_4_6_Birds_7f"><xsl:value-of select="$lov/item[@id='Q7f_title']" /></a></dd>
	<dd><a href="#D1_4_6_Birds_8a"><xsl:value-of select="$lov/item[@id='Q8a_title']" /></a></dd>
	<dt><a href="#D1_4_6_Mammals"><xsl:value-of select="$lov/item[@id='list-MonitoringProgramme-D1_4_6_Mammals']" /></a></dt>
	<dd><a href="#D1_4_6_Mammals_ref"><xsl:value-of select="$lov/item[@id='REF_title']" /></a></dd>
	<dd><a href="#D1_4_6_Mammals_refsub"><xsl:value-of select="$lov/item[@id='ReferenceSubProgramme']" /></a></dd>
	<dd><a href="#D1_4_6_Mammals_4e"><xsl:value-of select="$lov/item[@id='Q4e_title']" /></a></dd>
	<dd><a href="#D1_4_6_Mammals_5a"><xsl:value-of select="$lov/item[@id='Q5a_title']" /></a></dd>
	<dd><a href="#D1_4_6_Mammals_5b"><xsl:value-of select="$lov/item[@id='Q5b_title']" /></a></dd>
	<dd><a href="#D1_4_6_Mammals_5c"><xsl:value-of select="$lov/item[@id='Q5c_title']" /></a></dd>
	<dd><a href="#D1_4_6_Mammals_5d"><xsl:value-of select="$lov/item[@id='Q5d_title']" /></a></dd>
	<dd><a href="#D1_4_6_Mammals_5e"><xsl:value-of select="$lov/item[@id='Q5e_title']" /></a></dd>
	<dd><a href="#D1_4_6_Mammals_5f"><xsl:value-of select="$lov/item[@id='Q5f_title']" /></a></dd>
	<dd><a href="#D1_4_6_Mammals_5g"><xsl:value-of select="$lov/item[@id='Q5g_title']" /></a></dd>
	<dd><a href="#D1_4_6_Mammals_6a"><xsl:value-of select="$lov/item[@id='Q6a_title']" /></a></dd>
	<dd><a href="#D1_4_6_Mammals_6b"><xsl:value-of select="$lov/item[@id='Q6b_title']" /></a></dd>
	<dd><a href="#D1_4_6_Mammals_6c"><xsl:value-of select="$lov/item[@id='Q6c_title']" /></a></dd>
	<dd><a href="#D1_4_6_Mammals_6d"><xsl:value-of select="$lov/item[@id='Q6d_title']" /></a></dd>
	<dd><a href="#D1_4_6_Mammals_6e"><xsl:value-of select="$lov/item[@id='Q6e_title']" /></a></dd>
	<dd><a href="#D1_4_6_Mammals_6f"><xsl:value-of select="$lov/item[@id='Q6f_title']" /></a></dd>
	<dd><a href="#D1_4_6_Mammals_7a"><xsl:value-of select="$lov/item[@id='Q7a_title']" /></a></dd>
	<dd><a href="#D1_4_6_Mammals_7b"><xsl:value-of select="$lov/item[@id='Q7b_title']" /></a></dd>
	<dd><a href="#D1_4_6_Mammals_7c"><xsl:value-of select="$lov/item[@id='Q7c_title']" /></a></dd>
	<dd><a href="#D1_4_6_Mammals_7d"><xsl:value-of select="$lov/item[@id='Q7d_title']" /></a></dd>
	<dd><a href="#D1_4_6_Mammals_7e"><xsl:value-of select="$lov/item[@id='Q7e_title']" /></a></dd>
	<dd><a href="#D1_4_6_Mammals_7f"><xsl:value-of select="$lov/item[@id='Q7f_title']" /></a></dd>
	<dd><a href="#D1_4_6_Mammals_8a"><xsl:value-of select="$lov/item[@id='Q8a_title']" /></a></dd>
	<dt><a href="#D1_4_6_Fish"><xsl:value-of select="$lov/item[@id='list-MonitoringProgramme-D1_4_6_Fish']" /></a></dt>
	<dd><a href="#D1_4_6_Fish_ref"><xsl:value-of select="$lov/item[@id='REF_title']" /></a></dd>
	<dd><a href="#D1_4_6_Fish_refsub"><xsl:value-of select="$lov/item[@id='ReferenceSubProgramme']" /></a></dd>
	<dd><a href="#D1_4_6_Fish_4e"><xsl:value-of select="$lov/item[@id='Q4e_title']" /></a></dd>
	<dd><a href="#D1_4_6_Fish_5a"><xsl:value-of select="$lov/item[@id='Q5a_title']" /></a></dd>
	<dd><a href="#D1_4_6_Fish_5b"><xsl:value-of select="$lov/item[@id='Q5b_title']" /></a></dd>
	<dd><a href="#D1_4_6_Fish_5c"><xsl:value-of select="$lov/item[@id='Q5c_title']" /></a></dd>
	<dd><a href="#D1_4_6_Fish_5d"><xsl:value-of select="$lov/item[@id='Q5d_title']" /></a></dd>
	<dd><a href="#D1_4_6_Fish_5e"><xsl:value-of select="$lov/item[@id='Q5e_title']" /></a></dd>
	<dd><a href="#D1_4_6_Fish_5f"><xsl:value-of select="$lov/item[@id='Q5f_title']" /></a></dd>
	<dd><a href="#D1_4_6_Fish_5g"><xsl:value-of select="$lov/item[@id='Q5g_title']" /></a></dd>
	<dd><a href="#D1_4_6_Fish_6a"><xsl:value-of select="$lov/item[@id='Q6a_title']" /></a></dd>
	<dd><a href="#D1_4_6_Fish_6b"><xsl:value-of select="$lov/item[@id='Q6b_title']" /></a></dd>
	<dd><a href="#D1_4_6_Fish_6c"><xsl:value-of select="$lov/item[@id='Q6c_title']" /></a></dd>
	<dd><a href="#D1_4_6_Fish_6d"><xsl:value-of select="$lov/item[@id='Q6d_title']" /></a></dd>
	<dd><a href="#D1_4_6_Fish_6e"><xsl:value-of select="$lov/item[@id='Q6e_title']" /></a></dd>
	<dd><a href="#D1_4_6_Fish_6f"><xsl:value-of select="$lov/item[@id='Q6f_title']" /></a></dd>
	<dd><a href="#D1_4_6_Fish_7a"><xsl:value-of select="$lov/item[@id='Q7a_title']" /></a></dd>
	<dd><a href="#D1_4_6_Fish_7b"><xsl:value-of select="$lov/item[@id='Q7b_title']" /></a></dd>
	<dd><a href="#D1_4_6_Fish_7c"><xsl:value-of select="$lov/item[@id='Q7c_title']" /></a></dd>
	<dd><a href="#D1_4_6_Fish_7d"><xsl:value-of select="$lov/item[@id='Q7d_title']" /></a></dd>
	<dd><a href="#D1_4_6_Fish_7e"><xsl:value-of select="$lov/item[@id='Q7e_title']" /></a></dd>
	<dd><a href="#D1_4_6_Fish_7f"><xsl:value-of select="$lov/item[@id='Q7f_title']" /></a></dd>
	<dd><a href="#D1_4_6_Fish_8a"><xsl:value-of select="$lov/item[@id='Q8a_title']" /></a></dd><dt><a href="#D1_4_6_SeabedHabitats"><xsl:value-of select="$lov/item[@id='list-MonitoringProgramme-D1_4_6_SeabedHabitats']" /></a></dt>
	<dd><a href="#D1_4_6_SeabedHabitats_ref"><xsl:value-of select="$lov/item[@id='REF_title']" /></a></dd>
	<dd><a href="#D1_4_6_SeabedHabitats_refsub"><xsl:value-of select="$lov/item[@id='ReferenceSubProgramme']" /></a></dd>
	<dd><a href="#D1_4_6_SeabedHabitats_4e"><xsl:value-of select="$lov/item[@id='Q4e_title']" /></a></dd>
	<dd><a href="#D1_4_6_SeabedHabitats_5a"><xsl:value-of select="$lov/item[@id='Q5a_title']" /></a></dd>
	<dd><a href="#D1_4_6_SeabedHabitats_5b"><xsl:value-of select="$lov/item[@id='Q5b_title']" /></a></dd>
	<dd><a href="#D1_4_6_SeabedHabitats_5c"><xsl:value-of select="$lov/item[@id='Q5c_title']" /></a></dd>
	<dd><a href="#D1_4_6_SeabedHabitats_5d"><xsl:value-of select="$lov/item[@id='Q5d_title']" /></a></dd>
	<dd><a href="#D1_4_6_SeabedHabitats_5e"><xsl:value-of select="$lov/item[@id='Q5e_title']" /></a></dd>
	<dd><a href="#D1_4_6_SeabedHabitats_5f"><xsl:value-of select="$lov/item[@id='Q5f_title']" /></a></dd>
	<dd><a href="#D1_4_6_SeabedHabitats_5g"><xsl:value-of select="$lov/item[@id='Q5g_title']" /></a></dd>
	<dd><a href="#D1_4_6_SeabedHabitats_6a"><xsl:value-of select="$lov/item[@id='Q6a_title']" /></a></dd>
	<dd><a href="#D1_4_6_SeabedHabitats_6b"><xsl:value-of select="$lov/item[@id='Q6b_title']" /></a></dd>
	<dd><a href="#D1_4_6_SeabedHabitats_6c"><xsl:value-of select="$lov/item[@id='Q6c_title']" /></a></dd>
	<dd><a href="#D1_4_6_SeabedHabitats_6d"><xsl:value-of select="$lov/item[@id='Q6d_title']" /></a></dd>
	<dd><a href="#D1_4_6_SeabedHabitats_6e"><xsl:value-of select="$lov/item[@id='Q6e_title']" /></a></dd>
	<dd><a href="#D1_4_6_SeabedHabitats_6f"><xsl:value-of select="$lov/item[@id='Q6f_title']" /></a></dd>
	<dd><a href="#D1_4_6_SeabedHabitats_7a"><xsl:value-of select="$lov/item[@id='Q7a_title']" /></a></dd>
	<dd><a href="#D1_4_6_SeabedHabitats_7b"><xsl:value-of select="$lov/item[@id='Q7b_title']" /></a></dd>
	<dd><a href="#D1_4_6_SeabedHabitats_7c"><xsl:value-of select="$lov/item[@id='Q7c_title']" /></a></dd>
	<dd><a href="#D1_4_6_SeabedHabitats_7d"><xsl:value-of select="$lov/item[@id='Q7d_title']" /></a></dd>
	<dd><a href="#D1_4_6_SeabedHabitats_7e"><xsl:value-of select="$lov/item[@id='Q7e_title']" /></a></dd>
	<dd><a href="#D1_4_6_SeabedHabitats_7f"><xsl:value-of select="$lov/item[@id='Q7f_title']" /></a></dd>
	<dd><a href="#D1_4_6_SeabedHabitats_8a"><xsl:value-of select="$lov/item[@id='Q8a_title']" /></a></dd>
	<dt><a href="#D1_4_6_WaterColumnHabitats"><xsl:value-of select="$lov/item[@id='list-MonitoringProgramme-D1_4_6_WaterColumnHabitats']" /></a></dt>
	<dd><a href="#D1_4_6_WaterColumnHabitats_ref"><xsl:value-of select="$lov/item[@id='REF_title']" /></a></dd>
	<dd><a href="#D1_4_6_WaterColumnHabitats_refsub"><xsl:value-of select="$lov/item[@id='ReferenceSubProgramme']" /></a></dd>
	<dd><a href="#D1_4_6_WaterColumnHabitats_4e"><xsl:value-of select="$lov/item[@id='Q4e_title']" /></a></dd>
	<dd><a href="#D1_4_6_WaterColumnHabitats_5a"><xsl:value-of select="$lov/item[@id='Q5a_title']" /></a></dd>
	<dd><a href="#D1_4_6_WaterColumnHabitats_5b"><xsl:value-of select="$lov/item[@id='Q5b_title']" /></a></dd>
	<dd><a href="#D1_4_6_WaterColumnHabitats_5c"><xsl:value-of select="$lov/item[@id='Q5c_title']" /></a></dd>
	<dd><a href="#D1_4_6_WaterColumnHabitats_5d"><xsl:value-of select="$lov/item[@id='Q5d_title']" /></a></dd>
	<dd><a href="#D1_4_6_WaterColumnHabitats_5e"><xsl:value-of select="$lov/item[@id='Q5e_title']" /></a></dd>
	<dd><a href="#D1_4_6_WaterColumnHabitats_5f"><xsl:value-of select="$lov/item[@id='Q5f_title']" /></a></dd>
	<dd><a href="#D1_4_6_WaterColumnHabitats_5g"><xsl:value-of select="$lov/item[@id='Q5g_title']" /></a></dd>
	<dd><a href="#D1_4_6_WaterColumnHabitats_6a"><xsl:value-of select="$lov/item[@id='Q6a_title']" /></a></dd>
	<dd><a href="#D1_4_6_WaterColumnHabitats_6b"><xsl:value-of select="$lov/item[@id='Q6b_title']" /></a></dd>
	<dd><a href="#D1_4_6_WaterColumnHabitats_6c"><xsl:value-of select="$lov/item[@id='Q6c_title']" /></a></dd>
	<dd><a href="#D1_4_6_WaterColumnHabitats_6d"><xsl:value-of select="$lov/item[@id='Q6d_title']" /></a></dd>
	<dd><a href="#D1_4_6_WaterColumnHabitats_6e"><xsl:value-of select="$lov/item[@id='Q6e_title']" /></a></dd>
	<dd><a href="#D1_4_6_WaterColumnHabitats_6f"><xsl:value-of select="$lov/item[@id='Q6f_title']" /></a></dd>
	<dd><a href="#D1_4_6_WaterColumnHabitats_7a"><xsl:value-of select="$lov/item[@id='Q7a_title']" /></a></dd>
	<dd><a href="#D1_4_6_WaterColumnHabitats_7b"><xsl:value-of select="$lov/item[@id='Q7b_title']" /></a></dd>
	<dd><a href="#D1_4_6_WaterColumnHabitats_7c"><xsl:value-of select="$lov/item[@id='Q7c_title']" /></a></dd>
	<dd><a href="#D1_4_6_WaterColumnHabitats_7d"><xsl:value-of select="$lov/item[@id='Q7d_title']" /></a></dd>
	<dd><a href="#D1_4_6_WaterColumnHabitats_7e"><xsl:value-of select="$lov/item[@id='Q7e_title']" /></a></dd>
	<dd><a href="#D1_4_6_WaterColumnHabitats_7f"><xsl:value-of select="$lov/item[@id='Q7f_title']" /></a></dd>
	<dd><a href="#D1_4_6_WaterColumnHabitats_8a"><xsl:value-of select="$lov/item[@id='Q8a_title']" /></a></dd>
</dl>
</span>
</fieldset>
</xsl:template>
</xsl:stylesheet>