View stylesheet

XML schema http://dd.eionet.europa.eu/schemas/MSFD2018/ART10_Targets.xsd
Output type HTML
Description HTML view
XSL file ART10_Targets-HTML.xslt (Last modified: 22 Aug 2018 07:52 )
<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
                xmlns:dc="http://purl.org/dc/elements/1.1/" 
                xmlns:fn="http://www.w3.org/2005/xpath-functions" 
                xmlns:xs="http://www.w3.org/2001/XMLSchema" 
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
                version="1.0" 
                >
	<xsl:output version="4.0" 
              method="html" 
              indent="yes" 
              encoding="UTF-8" 
              doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" 
              doctype-system="http://www.w3.org/TR/html4/loose.dtd"/>

	<xsl:template match="/">
		<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
			<head>
				<title>Reporting on MSFD Article 10 Targets</title>
				<meta content="text/html; charset=utf-8"/>
				<style type="text/css">
                    body {
						font-family: Verdana, Arial, Helvetica,sans-serif, "MS sans serif";
						background: #fff;
						color: #000;
						font-size: 8pt;
					}

					fieldset {
						margin-bottom: 1em;
					}

						fieldset legend {
							font-weight: bold;
						}
					/* IE - Fix some weirdness with group labels/legends */
					legend span {
						display: block !important;
						white-space: normal !important;
						width: 100%;
					}
					/* Fix for odd br in label in IE only for other langs */
					label br {
						display: none;
					}

					.label {
						width: auto !important;
						white-space: normal !important;
					}

					.info {
						padding: 0.5em;
						display: block;
					}

					.ta {
						display: block;
						border: 1px solid #bcd884;
						padding: 0.5em;
						color: rgb(85, 96, 63);
						font-size: 8pt;
						font-weight: bold;
					}

					.qa {
						display: block;
						width: 98%;
						border: 1px solid #fff;
					}

					.qa-table {
						width: 100%;
					}

						.qa-table td, .qa-table th {
							padding-left: 0.5em;
							padding-right: 0.5em;
							width: 45%;
						}

					.q-cell .a-cell {
					}

					.notPresent {
						color: blue;
					}

					.oneCol {
						width: 100%;
						overflow: hidden;
					}

					.twoCol {
						width: 100%;
						overflow: hidden;
					}

					.leftCol {
						float: left;
						width: 49.8%;
						overflow: hidden;
					}

					.rightCol {
						float: right;
						width: 49.8%;
						overflow: hidden;
					}
					/*.rightCol { float: left; margin-left: 50%; width: 100%; overflow:hidden;}*/
					#container {
						width: 100%;
						min-width: 600px;
						position: relative;
						margin: 0px auto;
						/*  max-width: 80em;*/
						background-color: #fff;
						color: #333;
					}
				</style>

			</head>
			<body class="fullscreen">
				<div id="container">
					<form name="chibaform" >
						<h1>
							<label class="label heading" id="C1" for="C1">Reporting on MSFD Article 10 Targets</label>
						</h1>
						<div class="oneCol">
							<xsl:call-template name="Index"></xsl:call-template>
						</div>
						<h2>
							<a id="info">Reporter Info</a>
						</h2>
						<div class="oneCol">
							<xsl:call-template name="Reporter"></xsl:call-template>
						</div>
						<xsl:call-template name="ReportingUnits"></xsl:call-template>
					</form>
				</div>
			</body>
		</html>
	</xsl:template>
	<xsl:template name="Index">
		<fieldset class="group" >
			<legend class="label">Index</legend>
			<span>
				<dl>
					<dt>
						<a href="#info">Reporter Info</a>
					</dt>
					<xsl:if test="ART10_Targets/MarineUnit">
						<dt>Marine Reporting Units</dt>
						<xsl:for-each select="ART10_Targets/MarineUnit">
							<dd>
								<xsl:variable name="mru" select="MarineReportingUnit"/>
								<a href="#{generate-id($mru)}">
									<xsl:value-of select="MarineReportingUnit" />
								</a>
							</dd>
						</xsl:for-each>
					</xsl:if>
				</dl>
			</span>
		</fieldset>
	</xsl:template>
	<xsl:template name="Reporter">
		<fieldset class="group" >
			<legend class="label">Reporter</legend>
			<table class="qa-table">
				<tr>
					<th class="q-cell"></th>
					<th class="a-cell"></th>
				</tr>
				<tr>
					<td>
						<label class="label" >Country</label>
					</td>
					<td>
						<span class="ta" >
							<xsl:call-template name="CountriesCode"></xsl:call-template>
						</span>
					</td>
				</tr>
				<tr>
					<td>
						<label class="label" >Name of the reporter</label>
					</td>
					<td>
						<span class="ta" >
							<xsl:value-of select="ART10_Targets/@ContactName" />
						</span>
					</td>
				</tr>
				<tr>
					<td>
						<label class="label" >Email of Reporter</label>
					</td>
					<td>
						<span class="ta" >
							<xsl:value-of select="ART10_Targets/@ContactMail" />
						</span>
					</td>
				</tr>
				<tr>
					<td>
						<label class="label" >Reporter organisation</label>
					</td>
					<td>
						<span class="ta" >
							<xsl:value-of select="ART10_Targets/@ContactOrganisation" />
						</span>
					</td>
				</tr>
				<tr>
					<td>
						<label class="label" >Reporting date</label>
					</td>
					<td>
						<span class="ta" >
							<xsl:value-of select="ART10_Targets/@ReportingDate" />
						</span>
					</td>
				</tr>
			</table>
		</fieldset>
	</xsl:template>
	<xsl:template name="ReportingUnits">
		<xsl:if test="ART10_Targets/MarineUnit">
			<xsl:for-each select="ART10_Targets/MarineUnit">
				<div class="oneCol">
					<xsl:variable name="mru" select="MarineReportingUnit"/>
					<h2>
						<a id="{generate-id($mru)}"><xsl:value-of select="MarineReportingUnit" /></a>
					</h2>
					<xsl:if test="Target">
						<xsl:for-each select="Target">
							<fieldset class="group" >
								<legend class="label">Target</legend>
								<table class="qa-table">
									<tr>
										<th class="q-cell"></th>
										<th class="a-cell"></th>
									</tr>
									<tr>
										<td>
											<label class="label" >Feature(s)</label>
										</td>
										<td>
											<span class="ta" >
												<xsl:for-each select="Feature">
													<xsl:call-template name="FeatureCode"></xsl:call-template>
													<xsl:if test="position() != last()">
														<br/>
													</xsl:if>
												</xsl:for-each>
											</span>
										</td>
									</tr>
									<tr>
										<td>
											<label class="label" >Target Code</label>
										</td>
										<td>
											<span class="ta" >
												<xsl:value-of select="TargetCode" />
											</span>
										</td>
									</tr>
									<tr>
										<td>
											<label class="label" >Description</label>
										</td>
										<td>
											<span class="ta" >
												<xsl:value-of select="Description" />
											</span>
										</td>
									</tr>
									<tr>
										<td>
											<label class="label" >GES Component(s)</label>
										</td>
										<td>
											<span class="ta" >
												<xsl:for-each select="GEScomponent">
													<xsl:call-template name="GEScomponentCode"></xsl:call-template>
													<xsl:if test="position() != last()">
														<br/>
													</xsl:if>
												</xsl:for-each>
											</span>
										</td>
									</tr>
									<tr>
										<td>
											<label class="label" >Timescale</label>
										</td>
										<td>
											<span class="ta" >
												<xsl:value-of select="Timescale" />
											</span>
										</td>
									</tr>
									<tr>
										<td>
											<label class="label" >Update Date</label>
										</td>
										<td>
											<span class="ta" >
												<xsl:value-of select="UpdateDate" />
											</span>
										</td>
									</tr>
									<tr>
										<td>
											<label class="label" >Update Type</label>
										</td>
										<td>
											<span class="ta" >
												<xsl:value-of select="UpdateType" />
											</span>
										</td>
									</tr>
									<tr>
										<td>
											<label class="label" >Related Measure(s)</label>
										</td>
										<td>
											<span class="ta" >
												<xsl:for-each select="RelatedMeasures">
													<xsl:value-of select="string(.)" />
													<xsl:if test="position() != last()">
														<br/>
													</xsl:if>
												</xsl:for-each>
											</span>
										</td>
									</tr>
									<xsl:if test="ProgressAssessment">
										<xsl:for-each select="ProgressAssessment">
											<tr>
												<td colspan="2">
													<fieldset class="group" >
														<legend class="label">Progress Assessment</legend>
														<table class="qa-table">
															<tr>
																<th class="q-cell"></th>
																<th class="a-cell"></th>
															</tr>
															<tr>
																<td>
																	<label class="label" >Parameter</label>
																</td>
																<td>
																	<span class="ta" >
																		<xsl:call-template name="ParameterCode"></xsl:call-template>
																	</span>
																</td>
															</tr>
															<tr>
																<td>
																	<label class="label" >Parameter Other</label>
																</td>
																<td>
																	<span class="ta" >
																		<xsl:value-of select="ParameterOther" />
																	</span>
																</td>
															</tr>
															<tr>
																<td>
																	<label class="label" >Element</label>
																</td>
																<td>
																	<span class="ta" >
																		<xsl:value-of select="Element" />
																	</span>
																</td>
															</tr>
															<tr>
																<td>
																	<label class="label" >Second Element</label>
																</td>
																<td>
																	<span class="ta" >
																		<xsl:value-of select="Element2" />
																	</span>
																</td>
															</tr>
															<tr>
																<td>
																	<label class="label" >Target Value</label>
																</td>
																<td>
																	<span class="ta" >
																		<xsl:value-of select="TargetValue" />
																	</span>
																</td>
															</tr>
															<tr>
																<td>
																	<label class="label" >Value Achieved Upper</label>
																</td>
																<td>
																	<span class="ta" >
																		<xsl:value-of select="ValueAchievedUpper" />
																	</span>
																</td>
															</tr>
															<tr>
																<td>
																	<label class="label" >Value Achieved Lower</label>
																</td>
																<td>
																	<span class="ta" >
																		<xsl:value-of select="ValueAchievedLower" />
																	</span>
																</td>
															</tr>
															<tr>
																<td>
																	<label class="label" >Value Unit</label>
																</td>
																<td>
																	<span class="ta" >
																		<xsl:call-template name="UnitCode"></xsl:call-template>
																	</span>
																</td>
															</tr>
															<tr>
																<td>
																	<label class="label" >Value Unit Other</label>
																</td>
																<td>
																	<span class="ta" >
																		<xsl:value-of select="ValueUnitOther" />
																	</span>
																</td>
															</tr>
															<tr>
																<td>
																	<label class="label" >Target Status</label>
																</td>
																<td>
																	<span class="ta" >
																		<xsl:value-of select="TargetStatus" />
																	</span>
																</td>
															</tr>
															<tr>
																<td>
																	<label class="label" >Assessment Period</label>
																</td>
																<td>
																	<span class="ta" >
																		<xsl:value-of select="AssessmentPeriod" />
																	</span>
																</td>
															</tr>
															<tr>
																<td>
																	<label class="label" >Description</label>
																</td>
																<td>
																	<span class="ta" >
																		<xsl:value-of select="Description" />
																	</span>
																</td>
															</tr>
															<tr>
																<td>
																	<label class="label" >Related Indicator(s)</label>
																</td>
																<td>
																	<span class="ta" >
																		<xsl:for-each select="RelatedIndicator">
																		<xsl:value-of select="string(.)" />
																		<xsl:if test="position() != last()">
																			<br/>
																		</xsl:if>
																	</xsl:for-each>
																	</span>
																</td>
															</tr>
														</table>
													</fieldset>
												</td>
											</tr>
										</xsl:for-each>
									</xsl:if>
								</table>
							</fieldset>
						</xsl:for-each>
					</xsl:if>
				</div>
			</xsl:for-each>
		</xsl:if>
	</xsl:template>
	<xsl:template name="CountriesCode">
		<xsl:choose>
			<xsl:when test="ART10_Targets/CountryCode = 'BE'">Belgium</xsl:when>
			<xsl:when test="ART10_Targets/CountryCode = 'BG'">Bulgaria</xsl:when>
			<xsl:when test="ART10_Targets/CountryCode = 'CY'">Cyprus</xsl:when>
			<xsl:when test="ART10_Targets/CountryCode = 'DE'">Germany</xsl:when>
			<xsl:when test="ART10_Targets/CountryCode = 'DK'">Denmark</xsl:when>
			<xsl:when test="ART10_Targets/CountryCode = 'EE'">Estonia</xsl:when>
			<xsl:when test="ART10_Targets/CountryCode = 'EL'">Greece</xsl:when>
			<xsl:when test="ART10_Targets/CountryCode = 'ES'">Spain</xsl:when>
			<xsl:when test="ART10_Targets/CountryCode = 'FI'">Finland</xsl:when>
			<xsl:when test="ART10_Targets/CountryCode = 'FR'">France</xsl:when>
			<xsl:when test="ART10_Targets/CountryCode = 'HR'">Croatia</xsl:when>
			<xsl:when test="ART10_Targets/CountryCode = 'IE'">Ireland</xsl:when>
			<xsl:when test="ART10_Targets/CountryCode = 'IT'">Italy</xsl:when>
			<xsl:when test="ART10_Targets/CountryCode = 'LT'">Lithuania</xsl:when>
			<xsl:when test="ART10_Targets/CountryCode = 'LV'">Latvia</xsl:when>
			<xsl:when test="ART10_Targets/CountryCode = 'MT'">Malta</xsl:when>
			<xsl:when test="ART10_Targets/CountryCode = 'NL'">Netherlands</xsl:when>
			<xsl:when test="ART10_Targets/CountryCode = 'PL'">Poland</xsl:when>
			<xsl:when test="ART10_Targets/CountryCode = 'PT'">Portugal</xsl:when>
			<xsl:when test="ART10_Targets/CountryCode = 'RO'">Romania</xsl:when>
			<xsl:when test="ART10_Targets/CountryCode = 'SE'">Sweden</xsl:when>
			<xsl:when test="ART10_Targets/CountryCode = 'SI'">Slovenia</xsl:when>
			<xsl:when test="ART10_Targets/CountryCode = 'UK'">United Kingdom</xsl:when>
		</xsl:choose>  
	</xsl:template>
	<xsl:template name="GEScomponentCode">
		<xsl:choose>
			<xsl:when test="string(.) = '1.1.3'">(Indicator(old)) Area covered by the species (for sessile/benthic species)</xsl:when>
			<xsl:when test="string(.) = '1.3.2'">(Indicator(old)) Population genetic structure</xsl:when>
			<xsl:when test="string(.) = '1.4'">(Criteria(old)) Habitat distribution</xsl:when>
			<xsl:when test="string(.) = '1.4.1'">(Indicator(old)) Distributional range</xsl:when>
			<xsl:when test="string(.) = '1.4.2'">(Indicator(old)) Distributional pattern</xsl:when>
			<xsl:when test="string(.) = '1.5.2'">(Indicator(old)) Habitat volume</xsl:when>
			<xsl:when test="string(.) = '3.3.2'">(Indicator(old)) Mean maximum length across all species found in research vessel surveys</xsl:when>
			<xsl:when test="string(.) = '5.1.2'">(Indicator(old)) Nutrient ratios (silica, nitrogen and phosphorus)</xsl:when>
			<xsl:when test="string(.) = '5.2'">(Criteria(old)) Direct effects of nutrient enrichment</xsl:when>
			<xsl:when test="string(.) = '5.3'">(Criteria(old)) Indirect effects of nutrient enrichment</xsl:when>
			<xsl:when test="string(.) = '9.1.2'">(Indicator(old)) Frequency of regulatory levels being exceeded</xsl:when>
			<xsl:when test="string(.) = 'D1'">(Descriptor) D1 - Biodiversity</xsl:when>
			<xsl:when test="string(.) = 'D1.1'">(Descriptor) D1 - Biodiversity - birds</xsl:when>
			<xsl:when test="string(.) = 'D1.2'">(Descriptor) D1 - Biodiversity - mammals</xsl:when>
			<xsl:when test="string(.) = 'D1.3'">(Descriptor) D1 - Biodiversity - reptiles</xsl:when>
			<xsl:when test="string(.) = 'D1.4'">(Descriptor) D1 - Biodiversity - fish</xsl:when>
			<xsl:when test="string(.) = 'D1.5'">(Descriptor) D1 - Biodiversity - cephalopods</xsl:when>
			<xsl:when test="string(.) = 'D1.6'">(Descriptor) D1 - Biodiversity - pelagic habitats</xsl:when>
			<xsl:when test="string(.) = 'D10'">(Descriptor) D10 - Marine litter</xsl:when>
			<xsl:when test="string(.) = 'D10C1'">(Criteria) D10C1 - Litter (excluding micro-litter)</xsl:when>
			<xsl:when test="string(.) = 'D10C2'">(Criteria) D10C2 - Micro-litter</xsl:when>
			<xsl:when test="string(.) = 'D10C3'">(Criteria) D10C3 - Litter ingested</xsl:when>
			<xsl:when test="string(.) = 'D10C4'">(Criteria) D10C4 – Adverse effects of litter</xsl:when>
			<xsl:when test="string(.) = 'D11'">(Descriptor) D11 - Underwater noise</xsl:when>
			<xsl:when test="string(.) = 'D11C1'">(Criteria) D11C1 – Anthropogenic impulsive sound</xsl:when>
			<xsl:when test="string(.) = 'D11C2'">(Criteria) D11C2 – Anthropogenic continuous low-frequency sound</xsl:when>
			<xsl:when test="string(.) = 'D1C1'">(Criteria) D1C1 – Mortality rate from incidental by-catch</xsl:when>
			<xsl:when test="string(.) = 'D1C2'">(Criteria) D1C2 – Population abundance</xsl:when>
			<xsl:when test="string(.) = 'D1C3'">(Criteria) D1C3 - Population demographic characteristics</xsl:when>
			<xsl:when test="string(.) = 'D1C4'">(Criteria) D1C4 - Population distributional range and pattern</xsl:when>
			<xsl:when test="string(.) = 'D1C5'">(Criteria) D1C5 - Habitat for the species</xsl:when>
			<xsl:when test="string(.) = 'D1C6'">(Criteria) D1C6 – Pelagic habitat condition</xsl:when>
			<xsl:when test="string(.) = 'D2'">(Descriptor) D2 – Non-indigenous species</xsl:when>
			<xsl:when test="string(.) = 'D2C1'">(Criteria) D2C1 – Newly-introduced NIS</xsl:when>
			<xsl:when test="string(.) = 'D2C2'">(Criteria) D2C2 - Established NIS</xsl:when>
			<xsl:when test="string(.) = 'D2C3'">(Criteria) D2C3 - Adverse effects of NIS</xsl:when>
			<xsl:when test="string(.) = 'D3'">(Descriptor) D3 – Commercial fish and shellfish</xsl:when>
			<xsl:when test="string(.) = 'D3C1'">(Criteria) D3C1 - Fishing mortality rate (F)</xsl:when>
			<xsl:when test="string(.) = 'D3C2'">(Criteria) D3C2 - Spawning stock biomass (SSB)</xsl:when>
			<xsl:when test="string(.) = 'D3C3'">(Criteria) D3C3 – Population age/size distribution</xsl:when>
      <xsl:when test="string(.) = 'D4/D1'">(Descriptor) D4 – Food webs/D1 - Biodiversity - ecosystems</xsl:when>
			<xsl:when test="string(.) = 'D4C1'">(Criteria) D4C1 – Trophic guild species diversity</xsl:when>
			<xsl:when test="string(.) = 'D4C2'">(Criteria) D4C2 - Abundance across trophic guilds</xsl:when>
			<xsl:when test="string(.) = 'D4C3'">(Criteria) D4C3 – Trophic guild size distribution</xsl:when>
			<xsl:when test="string(.) = 'D4C4'">(Criteria) D4C4 – Trophic guild productivity</xsl:when>
			<xsl:when test="string(.) = 'D5'">(Descriptor) D5 – Eutrophication</xsl:when>
			<xsl:when test="string(.) = 'D5C1'">(Criteria) D5C1 - Nutrient concentrations</xsl:when>
			<xsl:when test="string(.) = 'D5C2'">(Criteria) D5C2 - Chlorophyll a concentration</xsl:when>
			<xsl:when test="string(.) = 'D5C3'">(Criteria) D5C3 - Harmful algal blooms</xsl:when>
			<xsl:when test="string(.) = 'D5C4'">(Criteria) D5C4 - Photic limit</xsl:when>
			<xsl:when test="string(.) = 'D5C5'">(Criteria) D5C5 - Dissolved oxygen concentration</xsl:when>
			<xsl:when test="string(.) = 'D5C6'">(Criteria) D5C6 - Opportunistic macroalgae of benthic habitats</xsl:when>
			<xsl:when test="string(.) = 'D5C7'">(Criteria) D5C7 - Macrophyte communities of benthic habitats</xsl:when>
			<xsl:when test="string(.) = 'D5C8'">(Criteria) D5C8 - Macrofaunal communities of benthic habitats</xsl:when>
      <xsl:when test="string(.) = 'D6/D1'">(Descriptor) D6 - Seafloor integrity/D1 - Biodiversity - benthic habitats</xsl:when>
			<xsl:when test="string(.) = 'D6C1'">(Criteria) D6C1 - Physical loss of the seabed</xsl:when>
			<xsl:when test="string(.) = 'D6C2'">(Criteria) D6C2 - Physical disturbance to the seabed</xsl:when>
			<xsl:when test="string(.) = 'D6C3'">(Criteria) D6C3 – Adverse effects from physical disturbance</xsl:when>
			<xsl:when test="string(.) = 'D6C4'">(Criteria) D6C4 – Benthic habitat extent</xsl:when>
			<xsl:when test="string(.) = 'D6C5'">(Criteria) D6C5 – Benthic habitat condition</xsl:when>
			<xsl:when test="string(.) = 'D7'">(Descriptor) D7 - Hydrographic changes</xsl:when>
			<xsl:when test="string(.) = 'D7C1'">(Criteria) D7C1 – Permanent alteration of hydrographical conditions</xsl:when>
			<xsl:when test="string(.) = 'D7C2'">(Criteria) D7C2 – Adverse effects from permanent alterations of hydrographical conditions </xsl:when>
			<xsl:when test="string(.) = 'D8'">(Descriptor) D8 - Contaminants</xsl:when>
			<xsl:when test="string(.) = 'D8C1'">(Criteria) D8C1 - Contaminant in environment</xsl:when>
			<xsl:when test="string(.) = 'D8C2'">(Criteria) D8C2 – Adverse effects of contaminants</xsl:when>
			<xsl:when test="string(.) = 'D8C3'">(Criteria) D8C3 – Significant acute pollution events</xsl:when>
			<xsl:when test="string(.) = 'D8C4'">(Criteria) D8C4 – Adverse effect of significant acute pollution events</xsl:when>
			<xsl:when test="string(.) = 'D9'">(Descriptor) D9 - Contaminants in seafood</xsl:when>
			<xsl:when test="string(.) = 'D9C1'">(Criteria) D9C1 - Contaminants in seafood</xsl:when>
			<xsl:when test="string(.) = 'NotRelevant'">Non related GES component</xsl:when>
		</xsl:choose>  
	</xsl:template>
	<xsl:template name="FeatureCode">
		<xsl:choose>
      <xsl:when test="string(.) = 'EcosysElemAll'">All marine ecosystem elements</xsl:when>
      <xsl:when test="string(.) = 'SppAll'">All marine species</xsl:when>
      <xsl:when test="string(.) = 'BirdsAll'">All birds</xsl:when>
      <xsl:when test="string(.) = 'BirdsGrazing'">Grazing birds</xsl:when>
      <xsl:when test="string(.) = 'BirdsWading'">Wading birds</xsl:when>
      <xsl:when test="string(.) = 'BirdsSurfaceFeeding'">Surface-feeding birds</xsl:when>
      <xsl:when test="string(.) = 'BirdsPelagicFeeding'">Pelagic-feeding birds</xsl:when>
      <xsl:when test="string(.) = 'BirdsBenthicFeeding'">Benthic-feeding birds</xsl:when>
      <xsl:when test="string(.) = 'MamAll'">All mammals</xsl:when>
      <xsl:when test="string(.) = 'MamCetacSmall'">Small toothed cetaceans</xsl:when>
      <xsl:when test="string(.) = 'MamCetacDeepDiving'">Deep-diving toothed cetaceans</xsl:when>
      <xsl:when test="string(.) = 'MamCetacBaleenWhales'">Baleen whales</xsl:when>
      <xsl:when test="string(.) = 'MamSeals'">Seals</xsl:when>
      <xsl:when test="string(.) = 'RepTurtles'">Turtles</xsl:when>
      <xsl:when test="string(.) = 'FishAll'">All fish</xsl:when>
      <xsl:when test="string(.) = 'FishCoastal'">Coastal fish</xsl:when>
      <xsl:when test="string(.) = 'FishPelagicShelf'">Pelagic shelf fish</xsl:when>
      <xsl:when test="string(.) = 'FishDemersalShelf'">Demersal shelf fish</xsl:when>
      <xsl:when test="string(.) = 'FishDeepSea'">Deep-sea fish</xsl:when>
      <xsl:when test="string(.) = 'FishCommercial'">Commercially exploited fish and shellfish</xsl:when>
      <xsl:when test="string(.) = 'CephaAll'">All cephalopods</xsl:when>
      <xsl:when test="string(.) = 'CephaCoastShelf'">Coastal/shelf cephalopods</xsl:when>
      <xsl:when test="string(.) = 'CephaDeepSea'">Deep-sea cephalopods</xsl:when>
      <xsl:when test="string(.) = 'HabAll'">All habitats</xsl:when>
      <xsl:when test="string(.) = 'HabBenAll'">Benthic habitats</xsl:when>
      <xsl:when test="string(.) = 'HabBenBHT'">Benthich broad habitats</xsl:when>
      <xsl:when test="string(.) = 'HabBenLitRock'">Littoral rock and biogenic reef</xsl:when>
      <xsl:when test="string(.) = 'HabBenLitSed'">Littoral sediment</xsl:when>
      <xsl:when test="string(.) = 'HabBenInfralitRock'">Infralittoral rock and biogenic reef</xsl:when>
      <xsl:when test="string(.) = 'HabBenInfralitCoarSed'">Infralittoral coarse sediment</xsl:when>
      <xsl:when test="string(.) = 'HabBenInfralitMxdSed'">Infralittoral mixed sediment</xsl:when>
      <xsl:when test="string(.) = 'HabBenInfralitSand'">Infralittoral sand</xsl:when>
      <xsl:when test="string(.) = 'HabBenInfralitMud'">Infralittoral mud</xsl:when>
      <xsl:when test="string(.) = 'HabBenCircalitRock'">Circalittoral rock and biogenic reef</xsl:when>
      <xsl:when test="string(.) = 'HabBenCircalitCoarSed'">Circalittoral coarse sediment</xsl:when>
      <xsl:when test="string(.) = 'HabBenCircalitMxdSed'">Circalittoral mixed sediment</xsl:when>
      <xsl:when test="string(.) = 'HabBenCircalitSand'">Circalittoral sand</xsl:when>
      <xsl:when test="string(.) = 'HabBenCircalitMud'">Circalittoral mud</xsl:when>
      <xsl:when test="string(.) = 'HabBenOffshRock'">Offshore circalittoral rock and biogenic reef</xsl:when>
      <xsl:when test="string(.) = 'HabBenOffshCoarSed'">Offshore circalittoral coarse sediment</xsl:when>
      <xsl:when test="string(.) = 'HabBenOffshMxdSed'">Offshore circalittoral mixed sediment</xsl:when>
      <xsl:when test="string(.) = 'HabBenOffshSand'">Offshore circalittoral sand</xsl:when>
      <xsl:when test="string(.) = 'HabBenOffshMud'">Offshore circalittoral mud</xsl:when>
      <xsl:when test="string(.) = 'HabBenBathyalUpRock'">Upper bathyal rock and biogenic reef</xsl:when>
      <xsl:when test="string(.) = 'HabBenBathyalUpSed'">Upper bathyal sediment</xsl:when>
      <xsl:when test="string(.) = 'HabBenBathyalLowRock'">Lower bathyal rock and biogenic reef</xsl:when>
      <xsl:when test="string(.) = 'HabBenBathyalLowSed'">Lower bathyal sediment</xsl:when>
      <xsl:when test="string(.) = 'HabBenAbyssal'">Abyssal</xsl:when>
      <xsl:when test="string(.) = 'HabBenOther'">Other benthic habitats</xsl:when>
      <xsl:when test="string(.) = 'HabPelagAll'">Pelagic habitats</xsl:when>
      <xsl:when test="string(.) = 'HabPelBHT'">Pelagic broad habitats</xsl:when>
      <xsl:when test="string(.) = 'HabPelagVarSalinity'">Variable salinity</xsl:when>
      <xsl:when test="string(.) = 'HabPelagCoastal'">Coastal</xsl:when>
      <xsl:when test="string(.) = 'HabPelagShelf'">Shelf</xsl:when>
      <xsl:when test="string(.) = 'HabPelagOcean'">Oceanic/beyond shelf</xsl:when>
      <xsl:when test="string(.) = 'HabPelagOther'">Other pelagic habitats</xsl:when>
      <xsl:when test="string(.) = 'HabOther'">Other habitat types</xsl:when>
      <xsl:when test="string(.) = 'PhyHydroCharacAll'">All physical and hydrological characteristics</xsl:when>
      <xsl:when test="string(.) = 'Temperature'">Temperature</xsl:when>
      <xsl:when test="string(.) = 'Ice'">Ice</xsl:when>
      <xsl:when test="string(.) = 'Waves'">Wave regime</xsl:when>
      <xsl:when test="string(.) = 'Currents'">Current regime</xsl:when>
      <xsl:when test="string(.) = 'Upwelling'">Upwelling</xsl:when>
      <xsl:when test="string(.) = 'Mixing'">Mixing</xsl:when>
      <xsl:when test="string(.) = 'ResidenceTime'">Residence time</xsl:when>
      <xsl:when test="string(.) = 'FreshwaterInput'">Freshwater input</xsl:when>
      <xsl:when test="string(.) = 'SeaLevel'">Sea level</xsl:when>
      <xsl:when test="string(.) = 'Bathymetry'">Bathymetry</xsl:when>
      <xsl:when test="string(.) = 'Turbidity'">Turbidity (silt/sediment loads)</xsl:when>
      <xsl:when test="string(.) = 'Transparency'">Transparency</xsl:when>
      <xsl:when test="string(.) = 'Sound'">Sound</xsl:when>
      <xsl:when test="string(.) = 'SubstrateMorphology'">Seabed substrate and morphology</xsl:when>
      <xsl:when test="string(.) = 'ChemCharacAll'">All chemical characteristics</xsl:when>
      <xsl:when test="string(.) = 'Salinity'">Salinity</xsl:when>
      <xsl:when test="string(.) = 'Nutrients'">Nutrients (N, P)</xsl:when>
      <xsl:when test="string(.) = 'OrganicCarbon'">Organic carbon</xsl:when>
      <xsl:when test="string(.) = 'pCO2'">Dissolved carbon dioxide (pCO2)</xsl:when>
      <xsl:when test="string(.) = 'Oxygen'">Dissolved oxygen</xsl:when>
      <xsl:when test="string(.) = 'pH'">pH</xsl:when>
      <xsl:when test="string(.) = 'TrophicGuildsAll'">All trophic guilds</xsl:when>
      <xsl:when test="string(.) = 'TrophicGuildsPrimProd'">Primary producers</xsl:when>
      <xsl:when test="string(.) = 'TrophicGuildsSecProd'">Secondary producers</xsl:when>
      <xsl:when test="string(.) = 'TrophicGuildsFilFeed'">Filter-feeders</xsl:when>
      <xsl:when test="string(.) = 'TrophicGuildsDepFeed'">Deposit-feeders</xsl:when>
      <xsl:when test="string(.) = 'TrophicGuildsPlankt'">Planktivores</xsl:when>
      <xsl:when test="string(.) = 'TrophicGuildsPredSApexPel'">Sub-apex pelagic predators</xsl:when>
      <xsl:when test="string(.) = 'TrophicGuildsPredSApexDem'">Sub-apex demersal predators</xsl:when>
      <xsl:when test="string(.) = 'TrophicGuildsPredApex'">Apex predators</xsl:when>
      <xsl:when test="string(.) = 'EcosystemFoodWeb'">Ecosystems, including food webs</xsl:when>
      <xsl:when test="string(.) = 'EcosysCoastal'">Coastal ecosystem</xsl:when>
      <xsl:when test="string(.) = 'EcosysShelf'">Shelf ecosystem</xsl:when>
      <xsl:when test="string(.) = 'EcosysOceanic'">Oceanic/deep-sea ecosystem</xsl:when>
      <xsl:when test="string(.) = 'PresAll'">All pressures</xsl:when>
      <xsl:when test="string(.) = 'PresBioAll'">All biological pressures</xsl:when>
      <xsl:when test="string(.) = 'PresBioIntroNIS'">Input or spread of non-indigenous species</xsl:when>
      <xsl:when test="string(.) = 'PresBioIntroMicroPath'">Input of microbial pathogens</xsl:when>
      <xsl:when test="string(.) = 'PresBioIntroGenModSpp'">Input of genetically modified species and translocation of native species</xsl:when>
      <xsl:when test="string(.) = 'PresBioCultHab'">Loss of, or change to, natural biological communities due to cultivation of animal or plant species</xsl:when>
      <xsl:when test="string(.) = 'PresBioDisturbSpp'">Disturbance of species (e.g. where they breed, rest and feed) due to human presence</xsl:when>
      <xsl:when test="string(.) = 'PresBioExtractSpp'">Extraction of, or mortality/injury to, wild species (by commercial and recreational fishing and other activities)</xsl:when>
      <xsl:when test="string(.) = 'PresPhyAll'">All physical pressures</xsl:when>
      <xsl:when test="string(.) = 'PresPhyDisturbSeabed'">Physical disturbance to seabed</xsl:when>
      <xsl:when test="string(.) = 'PresPhyLoss'">Physical loss of the seabed</xsl:when>
      <xsl:when test="string(.) = 'PresPhyHydroCond'">Changes to hydrological conditions</xsl:when>
      <xsl:when test="string(.) = 'PresInputAll'">All pressures related to inputs of substances, litter and energy</xsl:when>
      <xsl:when test="string(.) = 'PresInputNut'">Input of nutrients – diffuse sources, point sources, atmospheric deposition</xsl:when>
      <xsl:when test="string(.) = 'PresInputOrg'">Input of organic matter – diffuse sources and point sources</xsl:when>
      <xsl:when test="string(.) = 'PresInputCont'">Input of other substances (e.g. synthetic substances, non-synthetic substances, radionuclides) – diffuse sources, point sources, atmospheric deposition, acute events</xsl:when>
      <xsl:when test="string(.) = 'PresInputLitter'">Input of litter (solid waste matter, including micro-sized litter)</xsl:when>
      <xsl:when test="string(.) = 'PresInputSound'">Input of anthropogenic sound (impulsive, continuous)</xsl:when>
      <xsl:when test="string(.) = 'PresInputOthEnergy'">Input of other forms of energy (including electromagnetic fields, light and heat)</xsl:when>
      <xsl:when test="string(.) = 'PresInputWater'">Input of water – point sources (e.g. brine)</xsl:when>
      <xsl:when test="string(.) = 'PresEnvNISnew'">Newly-introduced non-indigenous species</xsl:when>
      <xsl:when test="string(.) = 'PresEnvNISestablished'">Established non-indigenous species</xsl:when>
      <xsl:when test="string(.) = 'PresEnvHydroChanges'">Hydrographical changes</xsl:when>
      <xsl:when test="string(.) = 'PresEnvSoundContinuous'">Continuous low frequency sound</xsl:when>
      <xsl:when test="string(.) = 'PresEnvSoundImpulsive'">Impulsive sound in water</xsl:when>
      <xsl:when test="string(.) = 'PresEnvEutrophi'">Eutrophication</xsl:when>
      <xsl:when test="string(.) = 'PresEnvContNonUPBTs'">Contaminants - non UPBT substances</xsl:when>
      <xsl:when test="string(.) = 'PresEnvContUPBTs'">Contaminants - UPBT substances</xsl:when>
      <xsl:when test="string(.) = 'PresEnvContSeafood'">Contaminants – in seafood</xsl:when>
      <xsl:when test="string(.) = 'PresEnvAcuPolluEvents'">Acute pollution events</xsl:when>
      <xsl:when test="string(.) = 'PresEnvLitter'">Litter in the environment</xsl:when>
      <xsl:when test="string(.) = 'PresEnvLitterMicro'">Micro-litter in the environment</xsl:when>
      <xsl:when test="string(.) = 'PresEnvLitterSpp'">Litter and micro-litter in species</xsl:when>
      <xsl:when test="string(.) = 'ActivAll'">All activities</xsl:when>
      <xsl:when test="string(.) = 'ActivRestrucAll'">All activities related to physical restructuring of rivers, coastline or seabed</xsl:when>
      <xsl:when test="string(.) = 'ActivRestrucLandClaim'">Land claim</xsl:when>
      <xsl:when test="string(.) = 'ActivRestrucCanalisation'">Canalisation and other watercourse modifications</xsl:when>
      <xsl:when test="string(.) = 'ActivRestrucCoastDef'">Coastal defence and flood protection</xsl:when>
      <xsl:when test="string(.) = 'ActivRestrucOffshStruc'">Offshore structures (other than for oil/gas/renewables)</xsl:when>
      <xsl:when test="string(.) = 'ActivRestrucSeabedMorph'">Restructuring of seabed morphology, including dredging and depositing of materials</xsl:when>
      <xsl:when test="string(.) = 'ActivExtrNonLivingAll'">All activities related to extraction of non-living resources</xsl:when>
      <xsl:when test="string(.) = 'ActivExtrNonLivingMinerals'">Extraction of minerals (rock, metal ores, gravel, sand, shell)</xsl:when>
      <xsl:when test="string(.) = 'ActivExtrNonLivingOilGas'">Extraction of oil and gas, including infrastructure</xsl:when>
      <xsl:when test="string(.) = 'ActivExtrNonLivingSalt'">Extraction of salt</xsl:when>
      <xsl:when test="string(.) = 'ActivExtrNonLivingWater'">Extraction of water</xsl:when>
      <xsl:when test="string(.) = 'ActivProdEnerAll'">All activities related to production of energy</xsl:when>
      <xsl:when test="string(.) = 'ActivProdEnerRenew'">Renewable energy generation (wind, wave and tidal power), including infrastructure</xsl:when>
      <xsl:when test="string(.) = 'ActivProdEnerNonRenew'">Non-renewable energy generation</xsl:when>
      <xsl:when test="string(.) = 'ActivProdEnerCables'">Transmission of electricity and communications (cables)</xsl:when>
      <xsl:when test="string(.) = 'ActivExtrLivingAll'">All activities related to extraction of living resources</xsl:when>
      <xsl:when test="string(.) = 'ActivExtrLivingFishHarv'">Fish and shellfish harvesting (professional, recreational)</xsl:when>
      <xsl:when test="string(.) = 'ActivExtrLivingFishProcess'">Fish and shellfish processing</xsl:when>
      <xsl:when test="string(.) = 'ActivExtrLivingPlantHarv'">Marine plant harvesting</xsl:when>
      <xsl:when test="string(.) = 'ActivExtrLivingHunt'">Hunting and collecting for other purposes</xsl:when>
      <xsl:when test="string(.) = 'ActivCultivAll'">All activities related to cultivation of living resources</xsl:when>
      <xsl:when test="string(.) = 'ActivCultivAquaculMarine'">Aquaculture – marine, including infrastructure</xsl:when>
      <xsl:when test="string(.) = 'ActivCultivAquaculFreshwa'">Aquaculture – freshwater</xsl:when>
      <xsl:when test="string(.) = 'ActivCultivAgri'">Agriculture</xsl:when>
      <xsl:when test="string(.) = 'ActivCultivFores'">Forestry</xsl:when>
      <xsl:when test="string(.) = 'ActivTranspAll'">All activities related to transport</xsl:when>
      <xsl:when test="string(.) = 'ActivTranspInfras'">Transport infrastructure</xsl:when>
      <xsl:when test="string(.) = 'ActivTranspShip'">Transport – shipping</xsl:when>
      <xsl:when test="string(.) = 'ActivTranspAir'">Transport – air</xsl:when>
      <xsl:when test="string(.) = 'ActivTranspLand'">Transport – land</xsl:when>
      <xsl:when test="string(.) = 'ActivUrbIndAll'">All urban and industrial uses</xsl:when>
      <xsl:when test="string(.) = 'ActivUrbIndUrban'">Urban uses</xsl:when>
      <xsl:when test="string(.) = 'ActivUrbIndIndustrial'">Industrial uses</xsl:when>
      <xsl:when test="string(.) = 'ActivUrbIndWaste'">Waste treatment and disposal</xsl:when>
      <xsl:when test="string(.) = 'ActivTourismAll'">All activities related to tourism and leisure</xsl:when>
      <xsl:when test="string(.) = 'ActivTourismInfras'">Tourism and leisure infrastructure</xsl:when>
      <xsl:when test="string(.) = 'ActivTourismActiv'">Tourism and leisure activities</xsl:when>
      <xsl:when test="string(.) = 'ActivMilitary'">Military operations (subject to Article 2(2))</xsl:when>
      <xsl:when test="string(.) = 'ActivResearch'">Research, survey and educational activities</xsl:when>
      <xsl:when test="string(.) = 'EcosysServAll'">All ecosystem services</xsl:when>
      <xsl:when test="string(.) = 'EcosysServNutrAll'">All ecosystem services related to nutrition</xsl:when>
      <xsl:when test="string(.) = 'EcosysServNutrSeafoodAlgae'">Wild plants, algae and their outputs</xsl:when>
      <xsl:when test="string(.) = 'EcosysServNutrSeafoodAnimals'">Wild animals and their outputs</xsl:when>
      <xsl:when test="string(.) = 'EcosysServNutrAquacAlgae'">Algal seafood from aquaculture</xsl:when>
      <xsl:when test="string(.) = 'EcosysServNutrAquacAnimals'">Animals from in-situ aquaculture</xsl:when>
      <xsl:when test="string(.) = 'EcosysServMatAll'">All ecosystem services related to provision of materials</xsl:when>
      <xsl:when test="string(.) = 'EcosysServMatRaw'">Fibres and other materials from plants, algae and animals for direct use or processing</xsl:when>
      <xsl:when test="string(.) = 'EcosysServMatAlgaeAnimalsForAquac'">Materials from plants, algae and animals for agricultural use</xsl:when>
      <xsl:when test="string(.) = 'EcosysServMatGenetic'">Genetic materials from all biota</xsl:when>
      <xsl:when test="string(.) = 'EcosysServEnerAll'">All ecosystem services related to provision of energy</xsl:when>
      <xsl:when test="string(.) = 'EcosysServEnerPlants'">Plant-based resources</xsl:when>
      <xsl:when test="string(.) = 'EcosysServEnerAnimals'">Animal-based resources</xsl:when>
      <xsl:when test="string(.) = 'EcosysServWasteAll'">All ecosystem services related to mediation of waste, toxics and other nuisances</xsl:when>
      <xsl:when test="string(.) = 'EcosysServWasteTreatment'">Bio-remediation by micro-organisms, algae, plants, and animals</xsl:when>
      <xsl:when test="string(.) = 'EcosysServWasteRemovalByOrgan'">Filtration/sequestration/storage/accumulation by micro-organisms, algae, plants, and animals</xsl:when>
      <xsl:when test="string(.) = 'EcosysServWasteRemovalByEcosys'">Filtration/sequestration/storage/accumulation by ecosystems</xsl:when>
      <xsl:when test="string(.) = 'EcosysServWasteSmellVisImpacts'">Mediation of smell/visual impacts</xsl:when>
      <xsl:when test="string(.) = 'EcosysServFlowsAll'">All ecosystem services related to mediation of flows</xsl:when>
      <xsl:when test="string(.) = 'EcosysServFlowsErosionPrev1'">Mass stabilisation and control of erosion rates</xsl:when>
      <xsl:when test="string(.) = 'EcosysServFlowsErosionPrev2'">Buffering and attenuation of mass flows</xsl:when>
      <xsl:when test="string(.) = 'EcosysServFlowsFloodProt'">Flood protection</xsl:when>
      <xsl:when test="string(.) = 'EcosysServFlowsOxygenProd'">Ventilation and transpiration</xsl:when>
      <xsl:when test="string(.) = 'EcosysServMainCondAll'">All ecosystem services related to maintenance of physical, chemical and biological conditions</xsl:when>
      <xsl:when test="string(.) = 'EcosysServMainCondPolli'">Pollination and seed dispersal</xsl:when>
      <xsl:when test="string(.) = 'EcosysServMainCondNurs'">Maintaining Nursery Populations and Habitats </xsl:when>
      <xsl:when test="string(.) = 'EcosysServMainCondGene'">Gene pool protection</xsl:when>
      <xsl:when test="string(.) = 'EcosysServMainCondPest'">Pest control</xsl:when>
      <xsl:when test="string(.) = 'EcosysServMainCondDis'">Disease control</xsl:when>
      <xsl:when test="string(.) = 'EcosysServMainCondDeco'">Decomposition and fixing processes</xsl:when>
      <xsl:when test="string(.) = 'EcosysServMainCondChem'">Chemical condition of salt waters</xsl:when>
      <xsl:when test="string(.) = 'EcosysServMainCondClim'">Global climate regulation by reduction of greenhouse gas concentrations</xsl:when>
      <xsl:when test="string(.) = 'EcosysServInteracPhyAll'">All ecosystem services underpinning physical and intellectual interactions</xsl:when>
      <xsl:when test="string(.) = 'EcosysServInteracPhyRecreat1'">Experiential use of plants, animals and land-/seascapes in different environmental settings</xsl:when>
      <xsl:when test="string(.) = 'EcosysServInteracPhyRecreat2'">Physical use of land-/seascapes in different environmental settings</xsl:when>
      <xsl:when test="string(.) = 'EcosysServInteracPhyScientif'">Scientific</xsl:when>
      <xsl:when test="string(.) = 'EcosysServInteracPhyEducat'">Educational</xsl:when>
      <xsl:when test="string(.) = 'EcosysServInteracPhyCultur'">Heritage, cultural</xsl:when>
      <xsl:when test="string(.) = 'EcosysServInteracPhyEntert'">Entertainment</xsl:when>
      <xsl:when test="string(.) = 'EcosysServInteracPhyAesthe'">Aesthetic</xsl:when>
      <xsl:when test="string(.) = 'EcosysServInteracSpiAll'">All ecosystem services underpinning spiritual, symbolic and other interactions</xsl:when>
      <xsl:when test="string(.) = 'EcosysServInteracSpiSymb'">Symbolic</xsl:when>
      <xsl:when test="string(.) = 'EcosysServInteracSpiRelig'">Sacred and/or religious</xsl:when>
      <xsl:when test="string(.) = 'EcosysServInteracSpiExis'">Existence</xsl:when>
      <xsl:when test="string(.) = 'EcosysServInteracSpiBequ'">Bequest</xsl:when>
		</xsl:choose>  
	</xsl:template>
	<xsl:template name="ParameterCode">
		<xsl:choose>
      <xsl:when test="Parameter = 'ABU'">Abundance</xsl:when>
      <xsl:when test="Parameter = 'AGE-D'">Age distribution</xsl:when>
      <xsl:when test="Parameter = 'AMO-C'">Amount on coastline</xsl:when>
      <xsl:when test="Parameter = 'AMO-I'">Amount in biota (ingested)</xsl:when>
      <xsl:when test="Parameter = 'AMO-SB'">Amount on seabed</xsl:when>
      <xsl:when test="Parameter = 'AMO-WS'">Amount on water surface</xsl:when>
      <xsl:when test="Parameter = 'BIOM'">Biomass</xsl:when>
      <xsl:when test="Parameter = 'BREED'">Breeding success</xsl:when>
      <xsl:when test="Parameter = 'CONC-B'">Concentration in biota</xsl:when>
      <xsl:when test="Parameter = 'CONC-FMM'">Concentration in muscle meat of fish or fishery products</xsl:when>
      <xsl:when test="Parameter = 'CONC-CRUS'">Concentration in crustaceans</xsl:when>
      <xsl:when test="Parameter = 'CONC-CEPH'">Concentration in cephalopods</xsl:when>
      <xsl:when test="Parameter = 'CONC-MOL'">Concentration in bivalve molluscs</xsl:when>
      <xsl:when test="Parameter = 'CONC-S'">Concentration in sediment</xsl:when>
      <xsl:when test="Parameter = 'CONC-W'">Concentration in water</xsl:when>
      <xsl:when test="Parameter = 'DIST-P'">Distribution (pattern)</xsl:when>
      <xsl:when test="Parameter = 'DIST-S'">Distribution (spatial)</xsl:when>
      <xsl:when test="Parameter = 'DIST-R'">Distribution (range)</xsl:when>
      <xsl:when test="Parameter = 'DUR'">Duration</xsl:when>
      <xsl:when test="Parameter = 'EXT'">Extent</xsl:when>
      <xsl:when test="Parameter = 'FEC'">Fecundity rate</xsl:when>
      <xsl:when test="Parameter = 'FRE'">Frequency</xsl:when>
      <xsl:when test="Parameter = 'HAB-CON'">Habitat condition</xsl:when>
      <xsl:when test="Parameter = 'INC'">Incidence</xsl:when>
      <xsl:when test="Parameter = 'LEN'">Length</xsl:when>
      <xsl:when test="Parameter = 'LEV-N'">Level of noise</xsl:when>
      <xsl:when test="Parameter = 'MASS'">Mass</xsl:when>
      <xsl:when test="Parameter = 'MAX-D'">Maximum depth</xsl:when>
      <xsl:when test="Parameter = 'MOR/F'">Mortality rate / Mortality rate from fishing (F)</xsl:when>
      <xsl:when test="Parameter = 'NUTRI'">Nutritional status (blubber thickness)</xsl:when>
      <xsl:when test="Parameter = 'PRE'">Presence</xsl:when>
      <xsl:when test="Parameter = 'PROD'">Productivity</xsl:when>
      <xsl:when test="Parameter = 'R-ABU'">Relative abundance</xsl:when>
      <xsl:when test="Parameter = 'SEX-D'">Sex distribution</xsl:when>
      <xsl:when test="Parameter = 'SIZE-D'">Size distribution</xsl:when>
      <xsl:when test="Parameter = 'SPL'">Underwater sound level</xsl:when>
      <xsl:when test="Parameter = 'SPS-C'">Species composition</xsl:when>
      <xsl:when test="Parameter = 'SSB'">Spawing Stock Biomass</xsl:when>
      <xsl:when test="Parameter = 'SUR'">Survival rate</xsl:when>
      <xsl:when test="Parameter = 'TRA'">Transparency in water</xsl:when>
      <xsl:when test="Parameter = 'OTH'">Other</xsl:when>
		</xsl:choose>  
	</xsl:template>
	<xsl:template name="UnitCode">
		<xsl:choose>
      <xsl:when test="ValueUnit = '%'">percentage</xsl:when>
      <xsl:when test="ValueUnit = 'Bq/kg ww'">Becquerels per kilogram of wet weight</xsl:when>
      <xsl:when test="ValueUnit = 'cm'">centimetre</xsl:when>
      <xsl:when test="ValueUnit = 'CPUE'">Catch-Per-Unit-Effort</xsl:when>
      <xsl:when test="ValueUnit = 'd'">days</xsl:when>
      <xsl:when test="ValueUnit = 'dB'">decibel</xsl:when>
      <xsl:when test="ValueUnit = 'dB re 1 µPa2'">Decibels reference 1 microPascal squared second</xsl:when>
      <xsl:when test="ValueUnit = '{events}/y'">(number of) events per year</xsl:when>
      <xsl:when test="ValueUnit = 'g/cm'">gram per centimetre</xsl:when>
      <xsl:when test="ValueUnit = 'g/kg'">gram per kilogram</xsl:when>
      <xsl:when test="ValueUnit = 'g/kg dw'">gram per kilogram of dry weight</xsl:when>
      <xsl:when test="ValueUnit = 'g/m2'">gram per square metre</xsl:when>
      <xsl:when test="ValueUnit = 'g/m2d'">gram per square metre per day</xsl:when>
      <xsl:when test="ValueUnit = '{individuals}'">(number of) individuals</xsl:when>
      <xsl:when test="ValueUnit = 'items/cm'">number of items per centimetre</xsl:when>
      <xsl:when test="ValueUnit = 'items/kg'">number of items per kilogram</xsl:when>
      <xsl:when test="ValueUnit = 'items/kg dw'">number of items per kilogram of dry weight</xsl:when>
      <xsl:when test="ValueUnit = 'items/km2'">number of items per square kilometre</xsl:when>
      <xsl:when test="ValueUnit = 'items/m'">number of items per meter</xsl:when>
      <xsl:when test="ValueUnit = 'items/m2'">number of items per square metre</xsl:when>
      <xsl:when test="ValueUnit = 'km2'">square kilometre</xsl:when>
      <xsl:when test="ValueUnit = 'm'">metre</xsl:when>
      <xsl:when test="ValueUnit = 'mm'">millimetre</xsl:when>
      <xsl:when test="ValueUnit = 'mg/kg'">milligram per kilogram</xsl:when>
      <xsl:when test="ValueUnit = 'mg/kg ww'">milligram per kilogram of wet weight</xsl:when>
      <xsl:when test="ValueUnit = 'mg/L'">milligram per litre</xsl:when>
      <xsl:when test="ValueUnit = 'pg/g ww'">picogram per gram of wet weight</xsl:when>
      <xsl:when test="ValueUnit = '{ratio}'">ratio</xsl:when>
      <xsl:when test="ValueUnit = '{species}'">(number of) species</xsl:when>
      <xsl:when test="ValueUnit = 't'">tonne</xsl:when>
      <xsl:when test="ValueUnit = 'ug/kg dw'">microgram per kilogram of dry weight</xsl:when>
      <xsl:when test="ValueUnit = 'ug/kg ww'">microgram per kilogram of wet weight</xsl:when>
      <xsl:when test="ValueUnit = 'ug/L'">microgram per litre</xsl:when>
      <xsl:when test="ValueUnit = 'umol/L'">micromole per litre</xsl:when>
      <xsl:when test="ValueUnit = 'Other'">Other</xsl:when>
		</xsl:choose>
	</xsl:template>
</xsl:stylesheet>