View stylesheet

XML schemas http://dd.eionet.europa.eu/schemas/MSFD11Mon/MSFD11MonSub_1p0.xsd
Output type HTML
Description HTML display of MSFD Article 11 Monitoring Subprogrammes
XSL file MSFD11MonSub_1p0.xslt (Last modified: 04 May 2016 10:40 )
<?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="mems" select="$XML/MONsub/MemberState"/>
<xsl:variable name="regio" select="$XML/MONsub/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/MSFD11Monsub_1p0.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;} 
	.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;}
    .ta { display: block; border:1px solid #bcd884; padding: 0.5em; color: rgb(85, 96, 63); font-size: 8pt; font-weight: bold;} 
    .tan { display: block; border:1px solid #bcd884; padding: 0.5em; color: rgb(85, 96, 63); font-size: 8pt; } 
    .head {font-weight: bold;}
	ul { text-align:left;}
	.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='SubMON']" /></label></h1>
  <xsl:apply-templates select="MONSub"/>
  <xsl:call-template name="indx"/>
  <xsl:for-each select="MONSub">
	  <div class="case selected-case" id="page1">
		  <xsl:apply-templates select="SubProgrammes" />
	   </div>
  </xsl:for-each>
</xsl:for-each>
</form></div></body></html>
</xsl:template>

<!-- Reporter -->
<xsl:template match="MONSub">
<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>


<!-- MonitoringProgrammes -->
<xsl:template match="SubProgrammes">
	<h2><a id="Q4_2"><xsl:value-of select="$lov/item[@id='Q4_2_title']" /></a></h2>
	<xsl:apply-templates select="SubProgramme/Q4g_SubProgrammeID" />
	<xsl:apply-templates select="SubProgramme/Q4h_TemporalScope" />
	<xsl:apply-templates select="SubProgramme/Q4i_SpatialScope" />
	<xsl:apply-templates select="SubProgramme/Q4j_DescriptionSpatialScope" />
	<xsl:apply-templates select="SubProgramme/Q4k_Purpose" />
	<xsl:apply-templates select="SubProgramme/Q4l_LinksProgrammesDirectivesConventions" />
	<h2><a id="Q9"><xsl:value-of select="$lov/item[@id='Q9_title']" /></a></h2>
	<xsl:apply-templates select="SubProgramme/Q9a_ElementsMonitored" />
	<xsl:apply-templates select="SubProgramme/Q9b_ParametersMeasured" />
	<xsl:apply-templates select="SubProgramme/Q9c_MonitoringMethod" />
	<xsl:apply-templates select="SubProgramme/Q9d_DescriptionMethod" />
	<xsl:apply-templates select="SubProgramme/Q9e_QualityAssurance" />
	<xsl:apply-templates select="SubProgramme/Q9f_QualityControl" />
	<xsl:apply-templates select="SubProgramme/Q9g_SpatialResolutionSampling" />
	<xsl:apply-templates select="SubProgramme/Q9h_TemporalResolutionSampling" />
	<xsl:apply-templates select="SubProgramme/Q9i_DescriptionSampleRepresentivity" />
	<h2><a id="Q10"><xsl:value-of select="$lov/item[@id='Q10_title']" /></a></h2>
	<xsl:apply-templates select="SubProgramme/Q10a_AggregationData" />
	<xsl:apply-templates select="SubProgramme/Q10b_DescriptionDataAggregation" />
	<xsl:apply-templates select="SubProgramme/Q10c_AccessData" />
	<xsl:apply-templates select="SubProgramme/Q10d_DescriptionDataAccess" />

</xsl:template>

<xsl:template match="Q4g_SubProgrammeID">
<fieldset class="group" >
<legend class="output" id="Q4g"><xsl:value-of select="$lov/item[@id='Q4g_title']" /></legend>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q4g_SubProgrammeID']" /></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>

<!--			<Q4h_TemporalScope>
				<Q4h_StartDate/>
				<Q4h_EndDate/> -->
<xsl:template match="Q4h_TemporalScope">
<fieldset class="group" >
<legend class="label"  id="Q4h"><xsl:value-of select="$lov/item[@id='Q4h_title']" /></legend><span class="output" >
<label class="label"><xsl:value-of select="$lov/item[@id='Q4h_TemporalScope']" /></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></tr>			
<!-- repeat to table-->
 <tr ><td ><div class="inputval" ><label class="inputval"><xsl:value-of select="Q4h_StartDate"/></label></div> </td>
 <td > <div class="inputval" ><label class="inputval"><xsl:value-of select="Q4h_EndDate"/></label></div> </td></tr>
 </table>
</fieldset>
</xsl:template>

<!-- <Q4i_SpatialScope/> -->
<xsl:template match="Q4i_SpatialScope">
<fieldset class="group" >
<legend class="label"  id="Q4i"><xsl:value-of select="$lov/item[@id='Q4i_title']" /></legend>
<span class="select1 string" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q4i_SpatialScope']" /></label></span>
<div class="repet2 ta" >
<span >
<xsl:apply-templates select="$lov/item[@group='list-MonitoringZones']" >
	<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>
</fieldset>
</xsl:template>

<xsl:template match="Q4j_DescriptionSpatialScope">
<fieldset class="group" >
<legend class="output" id="Q4j"><xsl:value-of select="$lov/item[@id='Q4j_title']" /></legend>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q4j_DescriptionSpatialScope']" /></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="Q4k_Purpose">
<fieldset class="group" >
<legend class="label"  id="Q4k"><xsl:value-of select="$lov/item[@id='Q4k_title']" /></legend>
<span class="select1 string" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q4k_Purpose']" /></label></span>
<div class="repet2 ta" >
<span>
<xsl:apply-templates select="$lov/item[@group='list-MonitoringPurpose']" >
	<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>
</fieldset>
</xsl:template>

<xsl:template match="Q4l_LinksProgrammesDirectivesConventions">
<fieldset class="group" >
<legend class="output" id="Q4l"><xsl:value-of select="$lov/item[@id='Q4l_title']" /></legend>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q4l_LinksProgrammesDirectivesConventions']" /></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="Q9a_ElementsMonitored">
<fieldset class="group" >
<legend class="output" id="Q9a">
<xsl:value-of select="$lov/item[@id='Q9a_title']" /></legend>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q9a_ElementsMonitored']" /></label></span>
<span  class="output" ><p> </p></span>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q9a_ElementMonitored']" /></label></span>
<span  class="output" ><p> </p></span>
<label class="ta"><xsl:for-each select="Q9a_ElementMonitored"><xsl:apply-templates/></xsl:for-each>
</label>
</fieldset>
</xsl:template>


<xsl:template match="Q9b_ParametersMeasured">
<fieldset class="group" >
<legend class="output" id="Q9b"><xsl:value-of select="$lov/item[@id='Q9b_title']" /></legend>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q9b_ParametersMeasured']" /></label></span>
<span  class="output" ><p> </p></span>
<span class="output" ><b><label class="label" ><xsl:value-of select="$lov/item[@id='Q9b_PM_1']" /></label></b></span>
<span class="tan" >			
			<table class="sectionTbl">
				<tr>
					<td width="31%" >
						<span class="output" ><label class="head" ><xsl:value-of select="$lov/item[@id='Q9b_PM_1_1']" /></label></span>
<xsl:apply-templates select="$lov/item[@group=&apos;list-MP&apos;and @mpgroup='State-impact' and @mpsubgroup='Species_distribution']" >
	<xsl:with-param name="arr"><xsl:value-of select="State_impact/Species_distribution/MeasurementParameter"/></xsl:with-param><xsl:with-param name="type">checkbox</xsl:with-param>
	</xsl:apply-templates>
							</td>
					<td width="31%" >
						<span class="output" ><label class="head" ><xsl:value-of select="$lov/item[@id='Q9b_PM_1_2']" /></label></span>
<xsl:apply-templates select="$lov/item[@group=&apos;list-MP&apos;and @mpgroup='State-impact' and @mpsubgroup='Species_population_size']" >
	<xsl:with-param name="arr"><xsl:value-of select="State_impact/Species_population_size/MeasurementParameter"/></xsl:with-param><xsl:with-param name="type">checkbox</xsl:with-param>
	</xsl:apply-templates>
							</td>
					<td >
						<span class="output" ><label class="head" ><xsl:value-of select="$lov/item[@id='Q9b_PM_1_6']" /></label></span>
<xsl:apply-templates select="$lov/item[@group=&apos;list-MP&apos;and @mpgroup='State-impact' and @mpsubgroup='Habitat_extent']" >
	<xsl:with-param name="arr"><xsl:value-of select="State_impact/Habitat_extent/MeasurementParameter"/></xsl:with-param><xsl:with-param name="type">checkbox</xsl:with-param>
	</xsl:apply-templates>
							</td>
</tr>
				<tr>
					<td  >
						<span class="output" ><label class="head" ><xsl:value-of select="$lov/item[@id='Q9b_PM_1_5']" /></label></span>
<xsl:apply-templates select="$lov/item[@group=&apos;list-MP&apos;and @mpgroup='State-impact' and @mpsubgroup='Habitat_distribution']" >
	<xsl:with-param name="arr"><xsl:value-of select="State_impact/Habitat_distribution/MeasurementParameter"/></xsl:with-param><xsl:with-param name="type">checkbox</xsl:with-param>
	</xsl:apply-templates>

<span  class="output" ><p> </p></span>
						<span class="output" ><label class="head" ><xsl:value-of select="$lov/item[@id='Q9b_PM_1_9']" /></label></span>
<xsl:apply-templates select="$lov/item[@group=&apos;list-MP&apos;and @mpgroup='State-impact' and @mpsubgroup='Habitat_impacts']" >
	<xsl:with-param name="arr"><xsl:value-of select="State_impact/Habitat_impacts/MeasurementParameter"/></xsl:with-param><xsl:with-param name="type">checkbox</xsl:with-param>
	</xsl:apply-templates>

<span  class="output" ><p> </p></span>
						<span class="output" ><label class="head" ><xsl:value-of select="$lov/item[@id='Q9b_PM_1_3']" /></label></span>
<xsl:apply-templates select="$lov/item[@group=&apos;list-MP&apos;and @mpgroup='State-impact' and @mpsubgroup='Species_population_characteristics']" >
	<xsl:with-param name="arr"><xsl:value-of select="State_impact/Species_population_characteristics/MeasurementParameter"/></xsl:with-param><xsl:with-param name="type">checkbox</xsl:with-param>
	</xsl:apply-templates>

							</td>

<td>
						<span class="output" ><label class="head" ><xsl:value-of select="$lov/item[@id='Q9b_PM_1_8']" /></label></span>
<xsl:apply-templates select="$lov/item[@group=&apos;list-MP&apos;and @mpgroup='State-impact' and @mpsubgroup='Habitat_condition-biological']" >
	<xsl:with-param name="arr"><xsl:value-of select="State_impact/Habitat_condition_biological/MeasurementParameter"/></xsl:with-param><xsl:with-param name="type">checkbox</xsl:with-param>
	</xsl:apply-templates>

<span  class="output" ><p> </p></span>
						<span class="output" ><label class="head" ><xsl:value-of select="$lov/item[@id='Q9b_PM_1_4']" /></label></span>
<xsl:apply-templates select="$lov/item[@group=&apos;list-MP&apos;and @mpgroup='State-impact' and @mpsubgroup='Species_impacts']" >
	<xsl:with-param name="arr"><xsl:value-of select="State_impact/Species_impacts/MeasurementParameter"/></xsl:with-param><xsl:with-param name="type">checkbox</xsl:with-param>
	</xsl:apply-templates>

</td>
<td>
						<span class="output" ><label class="head" ><xsl:value-of select="$lov/item[@id='Q9b_PM_1_7']" /></label></span>
<xsl:apply-templates select="$lov/item[@group=&apos;list-MP&apos;and @mpgroup='State-impact' and @mpsubgroup='Habitat_condition-physical-chemical']" >
	<xsl:with-param name="arr"><xsl:value-of select="State_impact/Habitat_condition_physical-chemical/MeasurementParameter"/></xsl:with-param><xsl:with-param name="type">checkbox</xsl:with-param>
	</xsl:apply-templates>
</td>
</tr>
</table>
</span>
<span  class="output" ><p> </p></span>
<span class="output" ><b><label class="label" ><xsl:value-of select="$lov/item[@id='Q9b_PM_2']" /></label></b></span>
<span class="tan" >
			<table class="sectionTbl">
				<tr>
					<td width="31%" >
						<span class="output" ><label class="head" ><xsl:value-of select="$lov/item[@id='Q9b_PM_2_1']" /></label></span>
<xsl:apply-templates select="$lov/item[@group=&apos;list-MP&apos;and @mpgroup='Pressures' and @mpsubgroup='Pressure_input']" >
	<xsl:with-param name="arr"><xsl:value-of select="Pressures/Pressure_input/MeasurementParameter"/></xsl:with-param><xsl:with-param name="type">checkbox</xsl:with-param>
	</xsl:apply-templates>
							</td>
					<td width="31%" >
						<span class="output" ><label class="head" ><xsl:value-of select="$lov/item[@id='Q9b_PM_2_2']" /></label></span>
<xsl:apply-templates select="$lov/item[@group=&apos;list-MP&apos;and @mpgroup='Pressures' and @mpsubgroup='Pressure_output']" >
	<xsl:with-param name="arr"><xsl:value-of select="Pressures/Pressure_output/MeasurementParameter"/></xsl:with-param><xsl:with-param name="type">checkbox</xsl:with-param>
	</xsl:apply-templates>
							</td>
					<td >
						<span class="output" ><label class="head" ></label></span>
							</td>
</tr>
</table>
</span>
<span  class="output" ><p> </p></span>
<span class="tan" >
<table class="sectionTbl">
<tr>
					<td width="31%" >
						<span class="output" ><b><label class="head" ><xsl:value-of select="$lov/item[@id='Q9b_PM_3']" /></label></b></span>
<xsl:apply-templates select="$lov/item[@group=&apos;list-MP&apos;and @mpgroup='Activity' and @mpsubgroup='Activity']" >
	<xsl:with-param name="arr"><xsl:value-of select="Activity/Activity/MeasurementParameter"/></xsl:with-param><xsl:with-param name="type">checkbox</xsl:with-param>
	</xsl:apply-templates>
							</td>
					<td width="31%" >
						<span class="output" ><b><label class="head" ><xsl:value-of select="$lov/item[@id='Q9b_PM_4']" /></label></b></span>
<xsl:apply-templates select="$lov/item[@group=&apos;list-MP&apos;and @mpgroup='Other' and @mpsubgroup='Other']" >
	<xsl:with-param name="arr"><xsl:value-of select="Other/Other/MeasurementParameter"/></xsl:with-param><xsl:with-param name="type">checkbox</xsl:with-param>
	</xsl:apply-templates>
							</td>
					<td >
						<span class="output" ><label class="head" ></label></span>
							</td>
</tr>
</table>
</span>
</fieldset>
</xsl:template>

<xsl:template match="Q9c_MonitoringMethod">
<fieldset class="group" >
<legend class="output" id="Q9c"><xsl:value-of select="$lov/item[@id='Q9c_title']" /></legend>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q9c_MonitoringMethod']" /></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="Q9d_DescriptionMethod">
<fieldset class="group" >
<legend class="output" id="Q9d"><xsl:value-of select="$lov/item[@id='Q9d_title']" /></legend>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q9d_DescriptionMethod']" /></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="Q9e_QualityAssurance">
<fieldset class="group" >
<legend class="label"  id="Q9e"><xsl:value-of select="$lov/item[@id='Q9e_title']" /></legend>
<span class="select1 string" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q9e_QualityAssurance']" /></label></span>
<div class="input string" >
<span  class="ta">
<xsl:apply-templates select="$lov/item[@group='list-QA']" >
	<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="Q9e_Other"><xsl:apply-templates/></xsl:for-each></label>
</div>
</fieldset>
</xsl:template>

<xsl:template match="Q9f_QualityControl">
<fieldset class="group" >
<legend class="label"  id="Q9f"><xsl:value-of select="$lov/item[@id='Q9f_title']" /></legend>
<span class="select1 string" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q9f_QualityControl']" /></label></span>
<div class="repet2 ta" >
<span  >
<xsl:apply-templates select="$lov/item[@group='list-QC']" >
	<xsl:with-param name="arr"><xsl:value-of select="text()"/></xsl:with-param><xsl:with-param name="type">radio</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="Q9f_Other"><xsl:apply-templates/></xsl:for-each></label>
</div>
</fieldset>
</xsl:template>

<xsl:template match="Q9g_SpatialResolutionSampling">
<fieldset class="group" >
<legend class="output" id="Q9g"><xsl:value-of select="$lov/item[@id='Q9g_title']" /></legend>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q9g_SpatialResolutionSampling']" /></label></span>
<span  class="output" ><p> </p></span>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q9g_Proportion']" /></label></span>

<div class="inputval"><label class="label" ><xsl:value-of select="./Q9g_Proportion" /> %</label></div>
<span  class="output" ><p> </p></span>
						
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q9g_NoSamples']" /></label></span>
<div class="input string" ><label class="ta"><xsl:value-of select="./Q9g_NoSamples" /></label>
</div>
</fieldset>
</xsl:template>

<xsl:template match="Q9h_TemporalResolutionSampling">
<fieldset class="group" >
<legend class="label"  id="Q9h"><xsl:value-of select="$lov/item[@id='Q9h_title']" /></legend>
<span class="select1 string" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q9h_TemporalResolutionSampling']" /></label></span>
<div class="repet4 ta" >
<span  >
<xsl:apply-templates select="$lov/item[@group='list-MonitoringFrequency']" >
	<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="Q9h_Other"><xsl:apply-templates/></xsl:for-each></label>
</div>
</fieldset>
</xsl:template>

<xsl:template match="Q9i_DescriptionSampleRepresentivity">
<fieldset class="group" >
<legend class="output" id="Q9i"><xsl:value-of select="$lov/item[@id='Q9i_title']" /></legend>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q9i_DescriptionSampleRepresentivity']" /></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="Q10a_AggregationData">
<fieldset class="group" >
<legend class="label"  id="Q10a"><xsl:value-of select="$lov/item[@id='Q10a_title']" /></legend>
<span class="select1 string" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q10a_AggregationData']" /></label></span>
<div class="repet5 ta" >
<span  >
<xsl:apply-templates select="$lov/item[@group='list-MonitoringAggregationScale']" >
	<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="Q10a_Other"><xsl:apply-templates/></xsl:for-each></label>
</div>
</fieldset>
</xsl:template>

<xsl:template match="Q10b_DescriptionDataAggregation">
<fieldset class="group" >
<legend class="output" id="Q10b"><xsl:value-of select="$lov/item[@id='Q10b_title']" /></legend>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q10b_DescriptionDataAggregation']" /></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="Q10c_AccessData">
<fieldset class="group" >
<legend class="output" id="Q10c"><xsl:value-of select="$lov/item[@id='Q10c_title']" /></legend>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q10c_AccessData']" /></label></span>
<span  class="output" ><p> </p></span>
<span class="select1 string" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q10c_DataType']" /></label></span>
<div class="repet2 ta" >
<span  >
<xsl:apply-templates select="$lov/item[@group='list-MonitoringDataType']" >
	<xsl:with-param name="arr"><xsl:value-of select="./Q10c_DataType/text()"/></xsl:with-param><xsl:with-param name="type">checkbox</xsl:with-param>
	</xsl:apply-templates>
</span>
</div>

<span  class="output" ><p> </p></span>
<span class="select1 string" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q10c_DataAccessMechanism']" /></label></span>
<div class="repet2 ta" >
<span >
<xsl:apply-templates select="$lov/item[@group='list-DataAccessMechanism']" >
	<xsl:with-param name="arr"><xsl:value-of select="./Q10c_DataAccessMechanism/text()"/></xsl:with-param><xsl:with-param name="type">radio</xsl:with-param>
	</xsl:apply-templates>
</span>
</div>

<span  class="output" ><p> </p></span>
<span class="select1 string" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q10c_DataAccessRights']" /></label></span>
<div class="repet2 ta" >
<span  >
<xsl:apply-templates select="$lov/item[@group='list-DataAccessRights']" >
	<xsl:with-param name="arr"><xsl:value-of select="./Q10c_DataAccessRights/text()"/></xsl:with-param><xsl:with-param name="type">radio</xsl:with-param>
	</xsl:apply-templates>
</span>
</div>

<span  class="output" ><p> </p></span>
<span class="select1 string" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q10c_INSPIREStandard']" /></label></span>
<div class="repet2 ta" >
<span  >
<xsl:apply-templates select="$lov/item[@group='list-INSPIRESpecification']" >
	<xsl:with-param name="arr"><xsl:value-of select="./Q10c_INSPIREStandard/text()"/></xsl:with-param><xsl:with-param name="type">checkbox</xsl:with-param>
	</xsl:apply-templates>
</span>
</div>

<span  class="output" ><p> </p></span>
<span class="select1 string" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q10c_DataAvailable']" /></label></span>
<div class="inputval"><label class="label" ><xsl:value-of select="./Q10c_DataAvailable" /></label></div>

<span  class="output" ><p> </p></span>
<span class="select1 string" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q10c_DataAFrequency']" /></label></span>
<div class="repet4 ta" >
<span >
<xsl:apply-templates select="$lov/item[@group='list-MonitoringFrequency']" >
	<xsl:with-param name="arr"><xsl:value-of select="./Q10c_DataAFrequency/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='Q9e_OtherDescription']" /></label>
<label class="ta"><xsl:for-each select="./Q10c_DataAFrequency/Q10c_Other"><xsl:apply-templates/></xsl:for-each></label>
</div>

			
</fieldset>
</xsl:template>

<xsl:template match="Q10d_DescriptionDataAccess">
<fieldset class="group" >
<legend class="output" id="Q10d"><xsl:value-of select="$lov/item[@id='Q10d_title']" /></legend>
<span class="output" ><label class="label" ><xsl:value-of select="$lov/item[@id='Q10d_DescriptionDataAccess']" /></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="item" >
	<xsl:param name="arr" />
	<xsl:param name="oth" />
	<xsl:param name="nonwln" />
	<xsl:param name="type" />
	<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>
		
	<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(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: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="#Q4_2"><xsl:value-of select="$lov/item[@id='Q4_2_title']" /></a></dt>
	<dd><a href="#Q4g"><xsl:value-of select="$lov/item[@id='Q4g_title']" /></a></dd>
	<dd><a href="#Q4h"><xsl:value-of select="$lov/item[@id='Q4h_title']" /></a></dd>
	<dd><a href="#Q4i"><xsl:value-of select="$lov/item[@id='Q4i_title']" /></a></dd>
	<dd><a href="#Q4j"><xsl:value-of select="$lov/item[@id='Q4j_title']" /></a></dd>
	<dd><a href="#Q4k"><xsl:value-of select="$lov/item[@id='Q4k_title']" /></a></dd>
	<dd><a href="#Q4l"><xsl:value-of select="$lov/item[@id='Q4l_title']" /></a></dd>
	<dt><a href="#Q9"><xsl:value-of select="$lov/item[@id='Q9_title']" /></a></dt>
	<dd><a href="#Q9a"><xsl:value-of select="$lov/item[@id='Q9a_title']" /></a></dd>
	<dd><a href="#Q9b"><xsl:value-of select="$lov/item[@id='Q9b_title']" /></a></dd>
	<dd><a href="#Q9c"><xsl:value-of select="$lov/item[@id='Q9c_title']" /></a></dd>
	<dd><a href="#Q9d"><xsl:value-of select="$lov/item[@id='Q9d_title']" /></a></dd>
	<dd><a href="#Q9e"><xsl:value-of select="$lov/item[@id='Q9e_title']" /></a></dd>
	<dd><a href="#Q9f"><xsl:value-of select="$lov/item[@id='Q9f_title']" /></a></dd>
	<dd><a href="#Q9g"><xsl:value-of select="$lov/item[@id='Q9g_title']" /></a></dd>
	<dd><a href="#Q9h"><xsl:value-of select="$lov/item[@id='Q9h_title']" /></a></dd>
	<dd><a href="#Q9i"><xsl:value-of select="$lov/item[@id='Q9i_title']" /></a></dd>
	<dt><a href="#Q10"><xsl:value-of select="$lov/item[@id='Q10_title']" /></a></dt>
	<dd><a href="#Q10a"><xsl:value-of select="$lov/item[@id='Q10a_title']" /></a></dd>
	<dd><a href="#Q10b"><xsl:value-of select="$lov/item[@id='Q10b_title']" /></a></dd>
	<dd><a href="#Q10c"><xsl:value-of select="$lov/item[@id='Q10c_title']" /></a></dd>
	<dd><a href="#Q10d"><xsl:value-of select="$lov/item[@id='Q10d_title']" /></a></dd>
</dl>
</span>
</fieldset>
</xsl:template>

</xsl:stylesheet>