View stylesheet

XML schema http://dd.eionet.europa.eu/schemas/MSFD2018/ART8_GES.xsd
Output type HTML
Description HTML view
XSL file ART8_GES-HTML.xslt (Last modified: 13 Nov 2018 22:28 )
<?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 8 GES</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 8 GES</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="ART8_GES/MarineUnit">
						<dt>Marine Reporting Units</dt>
						<xsl:for-each select="ART8_GES/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="ART8_GES/@ContactName" />
						</span>
					</td>
				</tr>
				<tr>
					<td>
						<label class="label" >Email of Reporter</label>
					</td>
					<td>
						<span class="ta" >
							<xsl:value-of select="ART8_GES/@ContactMail" />
						</span>
					</td>
				</tr>
				<tr>
					<td>
						<label class="label" >Reporter organisation</label>
					</td>
					<td>
						<span class="ta" >
							<xsl:value-of select="ART8_GES/@ContactOrganisation" />
						</span>
					</td>
				</tr>
				<tr>
					<td>
						<label class="label" >Reporting date</label>
					</td>
					<td>
						<span class="ta" >
							<xsl:value-of select="ART8_GES/@ReportingDate" />
						</span>
					</td>
				</tr>
			</table>
		</fieldset>
	</xsl:template>
	<xsl:template name="ReportingUnits">
		<xsl:if test="ART8_GES/MarineUnit">
			<xsl:for-each select="ART8_GES/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="OverallStatus">
						<xsl:for-each select="OverallStatus">
							<fieldset class="group" >
								<legend class="label">Overall Status</legend>
								<table class="qa-table">
									<tr>
										<th class="q-cell"></th>
										<th class="a-cell"></th>
									</tr>
									<tr>
										<td>
											<label class="label" >GES Component</label>
										</td>
										<td>
											<span class="ta" >
												<xsl:call-template name="GEScomponentCode"></xsl:call-template>
											</span>
										</td>
									</tr>
									<tr>
										<td>
											<label class="label" >Feature</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" >GES Extent Achieved</label>
										</td>
										<td>
											<span class="ta" >
												<xsl:value-of select="GESextentAchieved" />
											</span>
										</td>
									</tr>
									<tr>
										<td>
											<label class="label" >GES Extent Unit</label>
										</td>
										<td>
											<span class="ta" >
												<xsl:value-of select="GESextentUnit" />
											</span>
										</td>
									</tr>
									<tr>
										<td>
											<label class="label" >GES Extent Threshold</label>
										</td>
										<td>
											<span class="ta" >
												<xsl:value-of select="GESextentThreshold" />
											</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" >GES Achieved</label>
										</td>
										<td>
											<span class="ta" >
												<xsl:value-of select="GESachieved" />
											</span>
										</td>
									</tr>
									<tr>
										<td>
											<label class="label" >Related Targets</label>
										</td>
										<td>
											<span class="ta" >
												<xsl:for-each select="RelatedTargets">
													<xsl:value-of select="string(.)" />
													<xsl:if test="position() != last()">
														<br/>
													</xsl:if>
												</xsl:for-each>
											</span>
										</td>
									</tr>
									<tr>
										<td>
											<label class="label" >Related Pressures</label>
										</td>
										<td>
											<span class="ta" >
												<xsl:for-each select="RelatedPressures">
													<xsl:call-template name="PressureCode"></xsl:call-template>
													<xsl:if test="position() != last()">
														<br/>
													</xsl:if>
												</xsl:for-each>
											</span>
										</td>
									</tr>
									<tr>
										<td>
											<label class="label" >Description</label>
										</td>
										<td>
											<span class="ta" >
												<xsl:value-of select="DescriptionOverallStatus" />
											</span>
										</td>
									</tr>
                  <tr>
                    <td>
                      <label class="label" >Criteria Integration Rule Type</label>
                    </td>
                    <td>
                      <span class="ta" >
                        <xsl:call-template name="IntegrationRuleCriteriaCode"></xsl:call-template>
                      </span>
                    </td>
                  </tr>
                  <tr>
                    <td>
                      <label class="label" >Criteria Integration Rule Reference</label>
                    </td>
                    <td>
                      <span class="ta" >
                        <xsl:value-of select="IntegrationRuleDescriptionCriteria/Reference" />
                      </span>
                    </td>
                  </tr>
                  <tr>
                    <td>
                      <label class="label" >Criteria Integration Rule Description</label>
                    </td>
                    <td>
                      <span class="ta" >
                        <xsl:value-of select="IntegrationRuleDescriptionCriteria/Description" />
                      </span>
                    </td>
                  </tr>
                  <tr>
                    <td>
                      <label class="label" >Parameter Integration Rule Type</label>
                    </td>
                    <td>
                      <span class="ta" >
                        <xsl:call-template name="IntegrationRuleParameterCode"></xsl:call-template>
                      </span>
                    </td>
                  </tr>
                  <tr>
                    <td>
                      <label class="label" >Parameter Integration Rule Reference</label>
                    </td>
                    <td>
                      <span class="ta" >
                        <xsl:value-of select="IntegrationRuleDescriptionParameter/Reference" />
                      </span>
                    </td>
                  </tr>
                  <tr>
                    <td>
                      <label class="label" >Parameter Integration Rule Description</label>
                    </td>
                    <td>
                      <span class="ta" >
                        <xsl:value-of select="IntegrationRuleDescriptionParameter/Description" />
                      </span>
                    </td>
                  </tr>
									<xsl:if test="ElementStatus">
										<xsl:for-each select="ElementStatus">
											<tr>
												<td colspan="2">
													<fieldset class="group" >
														<legend class="label">Element Status</legend>
														<table class="qa-table">
															<tr>
																<th class="q-cell"></th>
																<th class="a-cell"></th>
															</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" >Element Source</label>
																</td>
																<td>
																	<span class="ta" >
																		<xsl:value-of select="ElementSource" />
																	</span>
																</td>
															</tr>
															<tr>
																<td>
																	<label class="label" >Element Code</label>
																</td>
																<td>
																	<span class="ta" >
																		<xsl:value-of select="ElementCode" />
																	</span>
																</td>
															</tr>
															<tr>
																<td>
																	<label class="label" >Element Code Source</label>
																</td>
																<td>
																	<span class="ta" >
                                    <xsl:value-of select="ElementCodeSource" />
																	</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" >Second Element Code</label>
																</td>
																<td>
																	<span class="ta" >
																		<xsl:value-of select="Element2Code" />
																	</span>
																</td>
															</tr>
															<tr>
																<td>
																	<label class="label" >Second Element Code Source</label>
																</td>
																<td>
																	<span class="ta" >
                                    <xsl:value-of select="Element2CodeSource" />
																	</span>
																</td>
															</tr>
															<tr>
																<td>
																	<label class="label" >Description</label>
																</td>
																<td>
																	<span class="ta" >
																		<xsl:value-of select="DescriptionElement" />
																	</span>
																</td>
															</tr>
															<tr>
																<td>
																	<label class="label" >Element Status</label>
																</td>
																<td>
																	<span class="ta" >
																		<xsl:value-of select="ElementStatus" />
																	</span>
																</td>
															</tr>
															<xsl:if test="CriteriaStatus">
																<xsl:for-each select="CriteriaStatus">
																	<tr>
																		<td colspan="2">
																			<fieldset class="group" >
																				<legend class="label">Criteria Status</legend>
																				<table class="qa-table">
																					<tr>
																						<th class="q-cell"></th>
																						<th class="a-cell"></th>
																					</tr>
																					<tr>
																						<td>
																							<label class="label" >Criteria</label>
																						</td>
																						<td>
																							<span class="ta" >
																								<xsl:call-template name="GEScriteriaCode"></xsl:call-template>
																							</span>
																						</td>
																					</tr>
																					<tr>
																						<td>
																							<label class="label" >Description</label>
																						</td>
																						<td>
																							<span class="ta" >
																								<xsl:value-of select="DescriptionCriteria" />
																							</span>
																						</td>
																					</tr>
																					<tr>
																						<td>
																							<label class="label" >Criteria Status</label>
																						</td>
																						<td>
																							<span class="ta" >
																								<xsl:value-of select="CriteriaStatus" />
																							</span>
																						</td>
																					</tr>
																					<xsl:if test="CriteriaValues">
																						<xsl:for-each select="CriteriaValues">
																							<tr>
																								<td colspan="2">
																									<fieldset class="group" >
																										<legend class="label">Criteria Values</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" >Threshold Value Upper</label>
																												</td>
																												<td>
																													<span class="ta" >
																														<xsl:value-of select="ThresholdValueUpper" />
																													</span>
																												</td>
																											</tr>
																											<tr>
																												<td>
																													<label class="label" >Threshold Value Lower</label>
																												</td>
																												<td>
																													<span class="ta" >
																														<xsl:value-of select="ThresholdValueLower" />
																													</span>
																												</td>
																											</tr>
																											<tr>
																												<td>
																													<label class="label" >Threshold Qualitative</label>
																												</td>
																												<td>
																													<span class="ta" >
																														<xsl:value-of select="ThresholdQualitative" />
																													</span>
																												</td>
																											</tr>
																											<tr>
																												<td>
																													<label class="label" >Threshold Value Source</label>
																												</td>
																												<td>
																													<span class="ta" >
																														<xsl:call-template name="ThresholdValueSourceCode"></xsl:call-template>
																													</span>
																												</td>
																											</tr>
																											<tr>
																												<td>
																													<label class="label" >Threshold Value Source Other</label>
																												</td>
																												<td>
																													<span class="ta" >
																														<xsl:value-of select="ThresholdValueSourceOther" />
																													</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" >Proportion Threshold Value</label>
																												</td>
																												<td>
																													<span class="ta" >
																														<xsl:value-of select="ProportionThresholdValue" />
																													</span>
																												</td>
																											</tr>
																											<tr>
																												<td>
																													<label class="label" >Proportion Value Achieved	</label>
																												</td>
																												<td>
																													<span class="ta" >
																														<xsl:value-of select="ProportionValueAchieved" />
																													</span>
																												</td>
																											</tr>
																											<tr>
																												<td>
																													<label class="label" >Proportion Threshold Value Unit</label>
																												</td>
																												<td>
																													<span class="ta" >
																														<xsl:value-of select="ProportionThresholdValueUnit" />
																													</span>
																												</td>
																											</tr>
																											<tr>
																												<td>
																													<label class="label" >Trend</label>
																												</td>
																												<td>
																													<span class="ta" >
																														<xsl:value-of select="Trend" />
																													</span>
																												</td>
																											</tr>
																											<tr>
																												<td>
																													<label class="label" >Parameter Achieved</label>
																												</td>
																												<td>
																													<span class="ta" >
																														<xsl:value-of select="ParameterAchieved" />
																													</span>
																												</td>
																											</tr>
																											<tr>
																												<td>
																													<label class="label" >Description</label>
																												</td>
																												<td>
																													<span class="ta" >
																														<xsl:value-of select="DescriptionParameter" />
																													</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>
																		</td>
																	</tr>
																</xsl:for-each>
															</xsl:if>
														</table>
													</fieldset>
												</td>
											</tr>
										</xsl:for-each>
									</xsl:if>
									<xsl:if test="CriteriaStatus">
										<xsl:for-each select="CriteriaStatus">
											<tr>
												<td colspan="2">
													<fieldset class="group" >
														<legend class="label">Criteria Status</legend>
														<table class="qa-table">
															<tr>
																<th class="q-cell"></th>
																<th class="a-cell"></th>
															</tr>
															<tr>
																<td>
																	<label class="label" >Criteria</label>
																</td>
																<td>
																	<span class="ta" >
																		<xsl:call-template name="GEScriteriaCode"></xsl:call-template>
																	</span>
																</td>
															</tr>
															<tr>
																<td>
																	<label class="label" >Description</label>
																</td>
																<td>
																	<span class="ta" >
																		<xsl:value-of select="DescriptionCriteria" />
																	</span>
																</td>
															</tr>
															<tr>
																<td>
																	<label class="label" >Criteria Status</label>
																</td>
																<td>
																	<span class="ta" >
																		<xsl:value-of select="CriteriaStatus" />
																	</span>
																</td>
															</tr>
															<xsl:if test="CriteriaValues">
																<xsl:for-each select="CriteriaValues">
																	<tr>
																		<td colspan="2">
																			<fieldset class="group" >
																				<legend class="label">Criteria Values</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" >Threshold Value Upper</label>
																						</td>
																						<td>
																							<span class="ta" >
																								<xsl:value-of select="ThresholdValueUpper" />
																							</span>
																						</td>
																					</tr>
																					<tr>
																						<td>
																							<label class="label" >Threshold Value Lower</label>
																						</td>
																						<td>
																							<span class="ta" >
																								<xsl:value-of select="ThresholdValueLower" />
																							</span>
																						</td>
																					</tr>
																					<tr>
																						<td>
																							<label class="label" >Threshold Qualitative</label>
																						</td>
																						<td>
																							<span class="ta" >
																								<xsl:value-of select="ThresholdQualitative" />
																							</span>
																						</td>
																					</tr>
																					<tr>
																						<td>
																							<label class="label" >Threshold Value Source</label>
																						</td>
																						<td>
																							<span class="ta" >
																								<xsl:call-template name="ThresholdValueSourceCode"></xsl:call-template>
																							</span>
																						</td>
																					</tr>
																					<tr>
																						<td>
																							<label class="label" >Threshold Value Source Other</label>
																						</td>
																						<td>
																							<span class="ta" >
																								<xsl:value-of select="ThresholdValueSourceOther" />
																							</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" >Proportion Threshold Value</label>
																						</td>
																						<td>
																							<span class="ta" >
																								<xsl:value-of select="ProportionThresholdValue" />
																							</span>
																						</td>
																					</tr>
																					<tr>
																						<td>
																							<label class="label" >Proportion Value Achieved	</label>
																						</td>
																						<td>
																							<span class="ta" >
																								<xsl:value-of select="ProportionValueAchieved" />
																							</span>
																						</td>
																					</tr>
																					<tr>
																						<td>
																							<label class="label" >Proportion Threshold Value Unit</label>
																						</td>
																						<td>
																							<span class="ta" >
																								<xsl:value-of select="ProportionThresholdValueUnit" />
																							</span>
																						</td>
																					</tr>
																					<tr>
																						<td>
																							<label class="label" >Trend</label>
																						</td>
																						<td>
																							<span class="ta" >
																								<xsl:value-of select="Trend" />
																							</span>
																						</td>
																					</tr>
																					<tr>
																						<td>
																							<label class="label" >Parameter Achieved</label>
																						</td>
																						<td>
																							<span class="ta" >
																								<xsl:value-of select="ParameterAchieved" />
																							</span>
																						</td>
																					</tr>
																					<tr>
																						<td>
																							<label class="label" >Description</label>
																						</td>
																						<td>
																							<span class="ta" >
																								<xsl:value-of select="DescriptionParameter" />
																							</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>
												</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="ART8_GES/CountryCode = 'BE'">Belgium</xsl:when>
			<xsl:when test="ART8_GES/CountryCode = 'BG'">Bulgaria</xsl:when>
			<xsl:when test="ART8_GES/CountryCode = 'CY'">Cyprus</xsl:when>
			<xsl:when test="ART8_GES/CountryCode = 'DE'">Germany</xsl:when>
			<xsl:when test="ART8_GES/CountryCode = 'DK'">Denmark</xsl:when>
			<xsl:when test="ART8_GES/CountryCode = 'EE'">Estonia</xsl:when>
			<xsl:when test="ART8_GES/CountryCode = 'EL'">Greece</xsl:when>
			<xsl:when test="ART8_GES/CountryCode = 'ES'">Spain</xsl:when>
			<xsl:when test="ART8_GES/CountryCode = 'FI'">Finland</xsl:when>
			<xsl:when test="ART8_GES/CountryCode = 'FR'">France</xsl:when>
			<xsl:when test="ART8_GES/CountryCode = 'HR'">Croatia</xsl:when>
			<xsl:when test="ART8_GES/CountryCode = 'IE'">Ireland</xsl:when>
			<xsl:when test="ART8_GES/CountryCode = 'IT'">Italy</xsl:when>
			<xsl:when test="ART8_GES/CountryCode = 'LT'">Lithuania</xsl:when>
			<xsl:when test="ART8_GES/CountryCode = 'LV'">Latvia</xsl:when>
			<xsl:when test="ART8_GES/CountryCode = 'MT'">Malta</xsl:when>
			<xsl:when test="ART8_GES/CountryCode = 'NL'">Netherlands</xsl:when>
			<xsl:when test="ART8_GES/CountryCode = 'PL'">Poland</xsl:when>
			<xsl:when test="ART8_GES/CountryCode = 'PT'">Portugal</xsl:when>
			<xsl:when test="ART8_GES/CountryCode = 'RO'">Romania</xsl:when>
			<xsl:when test="ART8_GES/CountryCode = 'SE'">Sweden</xsl:when>
			<xsl:when test="ART8_GES/CountryCode = 'SI'">Slovenia</xsl:when>
			<xsl:when test="ART8_GES/CountryCode = 'UK'">United Kingdom</xsl:when>
		</xsl:choose>  
	</xsl:template>
	<xsl:template name="GEScomponentCode">
		<xsl:choose>
			<xsl:when test="GEScomponent = '1.1.3'">(Indicator(old)) Area covered by the species (for sessile/benthic species)</xsl:when>
			<xsl:when test="GEScomponent = '1.3.2'">(Indicator(old)) Population genetic structure</xsl:when>
			<xsl:when test="GEScomponent = '1.4'">(Criteria(old)) Habitat distribution</xsl:when>
			<xsl:when test="GEScomponent = '1.4.1'">(Indicator(old)) Distributional range</xsl:when>
			<xsl:when test="GEScomponent = '1.4.2'">(Indicator(old)) Distributional pattern</xsl:when>
			<xsl:when test="GEScomponent = '1.5.2'">(Indicator(old)) Habitat volume</xsl:when>
			<xsl:when test="GEScomponent = '3.3.2'">(Indicator(old)) Mean maximum length across all species found in research vessel surveys</xsl:when>
			<xsl:when test="GEScomponent = '5.1.2'">(Indicator(old)) Nutrient ratios (silica, nitrogen and phosphorus)</xsl:when>
			<xsl:when test="GEScomponent = '5.2'">(Criteria(old)) Direct effects of nutrient enrichment</xsl:when>
			<xsl:when test="GEScomponent = '5.3'">(Criteria(old)) Indirect effects of nutrient enrichment</xsl:when>
			<xsl:when test="GEScomponent = '9.1.2'">(Indicator(old)) Frequency of regulatory levels being exceeded</xsl:when>
      <xsl:when test="GEScomponent = 'D1'">(Descriptor) D1 - Biodiversity</xsl:when>
      <xsl:when test="GEScomponent = 'D1.1'">(Descriptor) D1 - Biodiversity - birds</xsl:when>
      <xsl:when test="GEScomponent = 'D1.2'">(Descriptor) D1 - Biodiversity - mammals</xsl:when>
      <xsl:when test="GEScomponent = 'D1.3'">(Descriptor) D1 - Biodiversity - reptiles</xsl:when>
      <xsl:when test="GEScomponent = 'D1.4'">(Descriptor) D1 - Biodiversity - fish</xsl:when>
      <xsl:when test="GEScomponent = 'D1.5'">(Descriptor) D1 - Biodiversity - cephalopods</xsl:when>
      <xsl:when test="GEScomponent = 'D1.6'">(Descriptor) D1 - Biodiversity - pelagic habitats</xsl:when>
			<xsl:when test="GEScomponent = 'D10'">(Descriptor) D10 - Marine litter</xsl:when>
			<xsl:when test="GEScomponent = 'D10C1'">(Criteria) D10C1 - Litter (excluding micro-litter)</xsl:when>
			<xsl:when test="GEScomponent = 'D10C2'">(Criteria) D10C2 - Micro-litter</xsl:when>
			<xsl:when test="GEScomponent = 'D10C3'">(Criteria) D10C3 - Litter ingested</xsl:when>
			<xsl:when test="GEScomponent = 'D10C4'">(Criteria) D10C4 – Adverse effects of litter</xsl:when>
			<xsl:when test="GEScomponent = 'D11'">(Descriptor) D11 - Underwater noise</xsl:when>
			<xsl:when test="GEScomponent = 'D11C1'">(Criteria) D11C1 – Anthropogenic impulsive sound</xsl:when>
			<xsl:when test="GEScomponent = 'D11C2'">(Criteria) D11C2 – Anthropogenic continuous low-frequency sound</xsl:when>
			<xsl:when test="GEScomponent = 'D1C1'">(Criteria) D1C1 – Mortality rate from incidental by-catch</xsl:when>
			<xsl:when test="GEScomponent = 'D1C2'">(Criteria) D1C2 – Population abundance</xsl:when>
			<xsl:when test="GEScomponent = 'D1C3'">(Criteria) D1C3 - Population demographic characteristics</xsl:when>
			<xsl:when test="GEScomponent = 'D1C4'">(Criteria) D1C4 - Population distributional range and pattern</xsl:when>
			<xsl:when test="GEScomponent = 'D1C5'">(Criteria) D1C5 - Habitat for the species</xsl:when>
			<xsl:when test="GEScomponent = 'D1C6'">(Criteria) D1C6 – Pelagic habitat condition</xsl:when>
			<xsl:when test="GEScomponent = 'D2'">(Descriptor) D2 – Non-indigenous species</xsl:when>
			<xsl:when test="GEScomponent = 'D2C1'">(Criteria) D2C1 – Newly-introduced NIS</xsl:when>
			<xsl:when test="GEScomponent = 'D2C2'">(Criteria) D2C2 - Established NIS</xsl:when>
			<xsl:when test="GEScomponent = 'D2C3'">(Criteria) D2C3 - Adverse effects of NIS</xsl:when>
			<xsl:when test="GEScomponent = 'D3'">(Descriptor) D3 – Commercial fish and shellfish</xsl:when>
			<xsl:when test="GEScomponent = 'D3C1'">(Criteria) D3C1 - Fishing mortality rate (F)</xsl:when>
			<xsl:when test="GEScomponent = 'D3C2'">(Criteria) D3C2 - Spawning stock biomass (SSB)</xsl:when>
			<xsl:when test="GEScomponent = 'D3C3'">(Criteria) D3C3 – Population age/size distribution</xsl:when>
      <xsl:when test="GEScomponent = 'D4/D1'">(Descriptor) D4 – Food webs/D1 - Biodiversity - ecosystems</xsl:when>
			<xsl:when test="GEScomponent = 'D4C1'">(Criteria) D4C1 – Trophic guild species diversity</xsl:when>
			<xsl:when test="GEScomponent = 'D4C2'">(Criteria) D4C2 - Abundance across trophic guilds</xsl:when>
			<xsl:when test="GEScomponent = 'D4C3'">(Criteria) D4C3 – Trophic guild size distribution</xsl:when>
			<xsl:when test="GEScomponent = 'D4C4'">(Criteria) D4C4 – Trophic guild productivity</xsl:when>
			<xsl:when test="GEScomponent = 'D5'">(Descriptor) D5 – Eutrophication</xsl:when>
			<xsl:when test="GEScomponent = 'D5C1'">(Criteria) D5C1 - Nutrient concentrations</xsl:when>
			<xsl:when test="GEScomponent = 'D5C2'">(Criteria) D5C2 - Chlorophyll a concentration</xsl:when>
			<xsl:when test="GEScomponent = 'D5C3'">(Criteria) D5C3 - Harmful algal blooms</xsl:when>
			<xsl:when test="GEScomponent = 'D5C4'">(Criteria) D5C4 - Photic limit</xsl:when>
			<xsl:when test="GEScomponent = 'D5C5'">(Criteria) D5C5 - Dissolved oxygen concentration</xsl:when>
			<xsl:when test="GEScomponent = 'D5C6'">(Criteria) D5C6 - Opportunistic macroalgae of benthic habitats</xsl:when>
			<xsl:when test="GEScomponent = 'D5C7'">(Criteria) D5C7 - Macrophyte communities of benthic habitats</xsl:when>
			<xsl:when test="GEScomponent = 'D5C8'">(Criteria) D5C8 - Macrofaunal communities of benthic habitats</xsl:when>
      <xsl:when test="GEScomponent = 'D6/D1'">(Descriptor) D6 - Seafloor integrity/D1 - Biodiversity - benthic habitats</xsl:when>
			<xsl:when test="GEScomponent = 'D6C1'">(Criteria) D6C1 - Physical loss of the seabed</xsl:when>
			<xsl:when test="GEScomponent = 'D6C2'">(Criteria) D6C2 - Physical disturbance to the seabed</xsl:when>
			<xsl:when test="GEScomponent = 'D6C3'">(Criteria) D6C3 – Adverse effects from physical disturbance</xsl:when>
			<xsl:when test="GEScomponent = 'D6C4'">(Criteria) D6C4 – Benthic habitat extent</xsl:when>
			<xsl:when test="GEScomponent = 'D6C5'">(Criteria) D6C5 – Benthic habitat condition</xsl:when>
			<xsl:when test="GEScomponent = 'D7'">(Descriptor) D7 - Hydrographic changes</xsl:when>
			<xsl:when test="GEScomponent = 'D7C1'">(Criteria) D7C1 – Permanent alteration of hydrographical conditions</xsl:when>
			<xsl:when test="GEScomponent = 'D7C2'">(Criteria) D7C2 – Adverse effects from permanent alterations of hydrographical conditions </xsl:when>
			<xsl:when test="GEScomponent = 'D8'">(Descriptor) D8 - Contaminants</xsl:when>
			<xsl:when test="GEScomponent = 'D8C1'">(Criteria) D8C1 - Contaminant in environment</xsl:when>
			<xsl:when test="GEScomponent = 'D8C2'">(Criteria) D8C2 – Adverse effects of contaminants</xsl:when>
			<xsl:when test="GEScomponent = 'D8C3'">(Criteria) D8C3 – Significant acute pollution events</xsl:when>
			<xsl:when test="GEScomponent = 'D8C4'">(Criteria) D8C4 – Adverse effect of significant acute pollution events</xsl:when>
			<xsl:when test="GEScomponent = 'D9'">(Descriptor) D9 - Contaminants in seafood</xsl:when>
			<xsl:when test="GEScomponent = 'D9C1'">(Criteria) D9C1 - Contaminants in seafood</xsl:when>
			<xsl:when test="GEScomponent = '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="IntegrationRuleCriteriaCode">
		<xsl:choose>
			<xsl:when test="IntegrationRuleTypeCriteria = 'OOAO'">One Out, All Out (OOAO)</xsl:when>
      <xsl:when test="IntegrationRuleTypeCriteria = 'OOAO_HIE'">Hierarchical application of OOAO</xsl:when>
      <xsl:when test="IntegrationRuleTypeCriteria = '2OAO'">Two-out all-out</xsl:when>
      <xsl:when test="IntegrationRuleTypeCriteria = 'THRES'">Threshold methods</xsl:when>
      <xsl:when test="IntegrationRuleTypeCriteria = 'TREE'">Decision tree approach</xsl:when>
			<xsl:when test="IntegrationRuleTypeCriteria = 'NHIE_NWEI'">Non-hierarchical, non-weighted averaging</xsl:when>
			<xsl:when test="IntegrationRuleTypeCriteria = 'NHIE_WEI'">Non-hierarchical, weighted averaging</xsl:when>
			<xsl:when test="IntegrationRuleTypeCriteria = 'HIE_NWEI'">Hierarchical, non-weighted averaging</xsl:when>
			<xsl:when test="IntegrationRuleTypeCriteria = 'HIE_WEI'">Hierarchical, weighted averaging</xsl:when>
			<xsl:when test="IntegrationRuleTypeCriteria = 'MULTIMETRIC'">Multi-metric indices</xsl:when>
			<xsl:when test="IntegrationRuleTypeCriteria = 'MULTIVARIATE'">Multivariate analyses</xsl:when>
			<xsl:when test="IntegrationRuleTypeCriteria = 'SPATIAL'">Spatial analysis</xsl:when>
      <xsl:when test="IntegrationRuleTypeCriteria = 'OTH'">Other</xsl:when>
      <xsl:when test="IntegrationRuleTypeCriteria = 'Not relevant'">Not relevant</xsl:when>
		</xsl:choose>  
	</xsl:template>
  <xsl:template name="IntegrationRuleParameterCode">
    <xsl:choose>
      <xsl:when test="IntegrationRuleTypeParameter = 'OOAO'">One Out, All Out (OOAO)</xsl:when>
      <xsl:when test="IntegrationRuleTypeParameter = 'OOAO_HIE'">Hierarchical application of OOAO</xsl:when>
      <xsl:when test="IntegrationRuleTypeParameter = '2OAO'">Two-out all-out</xsl:when>
      <xsl:when test="IntegrationRuleTypeParameter = 'THRES'">Threshold methods</xsl:when>
      <xsl:when test="IntegrationRuleTypeParameter = 'TREE'">Decision tree approach</xsl:when>
      <xsl:when test="IntegrationRuleTypeParameter = 'NHIE_NWEI'">Non-hierarchical, non-weighted averaging</xsl:when>
      <xsl:when test="IntegrationRuleTypeParameter = 'NHIE_WEI'">Non-hierarchical, weighted averaging</xsl:when>
      <xsl:when test="IntegrationRuleTypeParameter = 'HIE_NWEI'">Hierarchical, non-weighted averaging</xsl:when>
      <xsl:when test="IntegrationRuleTypeParameter = 'HIE_WEI'">Hierarchical, weighted averaging</xsl:when>
      <xsl:when test="IntegrationRuleTypeParameter = 'MULTIMETRIC'">Multi-metric indices</xsl:when>
      <xsl:when test="IntegrationRuleTypeParameter = 'MULTIVARIATE'">Multivariate analyses</xsl:when>
      <xsl:when test="IntegrationRuleTypeParameter = 'SPATIAL'">Spatial analysis</xsl:when>
      <xsl:when test="IntegrationRuleTypeParameter = 'OTH'">Other</xsl:when>
      <xsl:when test="IntegrationRuleTypeParameter = 'Not relevant'">Not relevant</xsl:when>
    </xsl:choose>
  </xsl:template>
	<xsl:template name="GEScriteriaCode">
		<xsl:choose>
			<xsl:when test="Criteria = '5.2'">(Criteria(old)) Direct effects of nutrient enrichment</xsl:when>
			<xsl:when test="Criteria = '5.3'">(Criteria(old)) Indirect effects of nutrient enrichment</xsl:when>
			<xsl:when test="Criteria = 'D10C1'">(Criteria) D10C1 - Litter (excluding micro-litter)</xsl:when>
			<xsl:when test="Criteria = 'D10C2'">(Criteria) D10C2 - Micro-litter</xsl:when>
			<xsl:when test="Criteria = 'D10C3'">(Criteria) D10C3 - Litter ingested</xsl:when>
			<xsl:when test="Criteria = 'D10C4'">(Criteria) D10C4 – Adverse effects of litter</xsl:when>
			<xsl:when test="Criteria = 'D11C1'">(Criteria) D11C1 – Anthropogenic impulsive sound</xsl:when>
			<xsl:when test="Criteria = 'D11C2'">(Criteria) D11C2 – Anthropogenic continuous low-frequency sound</xsl:when>
			<xsl:when test="Criteria = 'D1C1'">(Criteria) D1C1 – Mortality rate from incidental by-catch</xsl:when>
			<xsl:when test="Criteria = 'D1C2'">(Criteria) D1C2 – Population abundance</xsl:when>
			<xsl:when test="Criteria = 'D1C3'">(Criteria) D1C3 - Population demographic characteristics</xsl:when>
			<xsl:when test="Criteria = 'D1C4'">(Criteria) D1C4 - Population distributional range and pattern</xsl:when>
			<xsl:when test="Criteria = 'D1C5'">(Criteria) D1C5 - Habitat for the species</xsl:when>
			<xsl:when test="Criteria = 'D1C6'">(Criteria) D1C6 – Pelagic habitat condition</xsl:when>
			<xsl:when test="Criteria = 'D2C1'">(Criteria) D2C1 – Newly-introduced NIS</xsl:when>
			<xsl:when test="Criteria = 'D2C2'">(Criteria) D2C2 - Established NIS</xsl:when>
			<xsl:when test="Criteria = 'D2C3'">(Criteria) D2C3 - Adverse effects of NIS</xsl:when>
			<xsl:when test="Criteria = 'D3C1'">(Criteria) D3C1 - Fishing mortality rate (F)</xsl:when>
			<xsl:when test="Criteria = 'D3C2'">(Criteria) D3C2 - Spawning stock biomass (SSB)</xsl:when>
			<xsl:when test="Criteria = 'D3C3'">(Criteria) D3C3 – Population age/size distribution</xsl:when>
			<xsl:when test="Criteria = 'D4C1'">(Criteria) D4C1 – Trophic guild species diversity</xsl:when>
			<xsl:when test="Criteria = 'D4C2'">(Criteria) D4C2 - Abundance across trophic guilds</xsl:when>
			<xsl:when test="Criteria = 'D4C3'">(Criteria) D4C3 – Trophic guild size distribution</xsl:when>
			<xsl:when test="Criteria = 'D4C4'">(Criteria) D4C4 – Trophic guild productivity</xsl:when>
			<xsl:when test="Criteria = 'D5C1'">(Criteria) D5C1 - Nutrient concentrations</xsl:when>
			<xsl:when test="Criteria = 'D5C2'">(Criteria) D5C2 - Chlorophyll a concentration</xsl:when>
			<xsl:when test="Criteria = 'D5C3'">(Criteria) D5C3 - Harmful algal blooms</xsl:when>
			<xsl:when test="Criteria = 'D5C4'">(Criteria) D5C4 - Photic limit</xsl:when>
			<xsl:when test="Criteria = 'D5C5'">(Criteria) D5C5 - Dissolved oxygen concentration</xsl:when>
			<xsl:when test="Criteria = 'D5C6'">(Criteria) D5C6 - Opportunistic macroalgae of benthic habitats</xsl:when>
			<xsl:when test="Criteria = 'D5C7'">(Criteria) D5C7 - Macrophyte communities of benthic habitats</xsl:when>
			<xsl:when test="Criteria = 'D5C8'">(Criteria) D5C8 - Macrofaunal communities of benthic habitats</xsl:when>
			<xsl:when test="Criteria = 'D6C1'">(Criteria) D6C1 - Physical loss of the seabed</xsl:when>
			<xsl:when test="Criteria = 'D6C2'">(Criteria) D6C2 - Physical disturbance to the seabed</xsl:when>
			<xsl:when test="Criteria = 'D6C3'">(Criteria) D6C3 – Adverse effects from physical disturbance</xsl:when>
			<xsl:when test="Criteria = 'D6C4'">(Criteria) D6C4 – Benthic habitat extent</xsl:when>
			<xsl:when test="Criteria = 'D6C5'">(Criteria) D6C5 – Benthic habitat condition</xsl:when>
			<xsl:when test="Criteria = 'D7C1'">(Criteria) D7C1 – Permanent alteration of hydrographical conditions</xsl:when>
			<xsl:when test="Criteria = 'D7C2'">(Criteria) D7C2 – Adverse effects from permanent alterations of hydrographical conditions </xsl:when>
			<xsl:when test="Criteria = 'D8C1'">(Criteria) D8C1 - Contaminant in environment</xsl:when>
			<xsl:when test="Criteria = 'D8C2'">(Criteria) D8C2 – Adverse effects of contaminants</xsl:when>
			<xsl:when test="Criteria = 'D8C3'">(Criteria) D8C3 – Significant acute pollution events</xsl:when>
			<xsl:when test="Criteria = 'D8C4'">(Criteria) D8C4 – Adverse effect of significant acute pollution events</xsl:when>
			<xsl:when test="Criteria = 'D9C1'">(Criteria) D9C1 - Contaminants in seafood</xsl:when>
		</xsl:choose>  
	</xsl:template>
	<xsl:template name="ParameterCode">
		<xsl:choose>
      <xsl:when test="Parameter = 'ABU'">Abundance (number of individuals)</xsl:when>
      <xsl:when test="Parameter = 'AGE-D'">Age distribution</xsl:when>
      <xsl:when test="Parameter = 'AMO-B'">Amount in biota (ingested)</xsl:when>
      <xsl:when test="Parameter = 'AMO-SB'">Amount on seabed</xsl:when>
      <xsl:when test="Parameter = 'AMO-C'">Amount on coastline</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 = 'CONC-B'">Concentration in biota (total)</xsl:when>
      <xsl:when test="Parameter = 'CONC-B-FA'">Concentration in biota - fat</xsl:when>
      <xsl:when test="Parameter = 'CONC-B-LI'">Concentration in biota - liver</xsl:when>
      <xsl:when test="Parameter = 'CONC-B-MU'">Concentration in biota - muscle</xsl:when>
      <xsl:when test="Parameter = 'CONC-B-OT'">Concentration in biota - other</xsl:when>
      <xsl:when test="Parameter = 'CONC-S'">Concentration in sediment (total)</xsl:when>
      <xsl:when test="Parameter = 'CONC-S-20'">Concentration in sediment (fraction below 20 \u00B5m)</xsl:when>
      <xsl:when test="Parameter = 'CONC-S-63'">Concentration in sediment (fraction below 63 \u00B5m)</xsl:when>
      <xsl:when test="Parameter = 'CONC-S2000'">Concentration in sediment (fraction below 2000 \u00B5m)</xsl:when>
      <xsl:when test="Parameter = 'CONC-S-OT'">Concentration in sediment - other</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 (breeding 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 = 'SIZE-LEN'">Size (length)</xsl:when>
      <xsl:when test="Parameter = 'LEV-N'">Level of sound</xsl:when>
      <xsl:when test="Parameter = 'MASS'">Mass</xsl:when>
      <xsl:when test="Parameter = 'DIST-DEPTH'">Maximum depth</xsl:when>
      <xsl:when test="Parameter = 'MOR/F'">Mortality rate / Mortality rate from fishing (F)</xsl:when>
      <xsl:when test="Parameter = 'THICK-BLU'">Blubber thickness</xsl:when>
      <xsl:when test="Parameter = 'OTH'">Other</xsl:when>
      <xsl:when test="Parameter = 'PRE'">Presence</xsl:when>
      <xsl:when test="Parameter = 'PROD'">Productivity</xsl:when>
      <xsl:when test="Parameter = 'ABU-REL'">Relative abundance within community</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 = 'SPP-C'">Species composition</xsl:when>
      <xsl:when test="Parameter = 'BIOM-SSB'">Biomass of Spawning Stock (SSB)</xsl:when>
      <xsl:when test="Parameter = 'SUR'">Survival rate</xsl:when>
      <xsl:when test="Parameter = 'TRA'">Transparency of water</xsl:when>
    </xsl:choose>  
	</xsl:template>
  <xsl:template name="PressureCode">
    <xsl:choose>
      	<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:choose>
  </xsl:template>
	<xsl:template name="ThresholdValueSourceCode">
		<xsl:choose>
      <xsl:when test="ThresholdValueSource = 'BathingWater'">Bathing Water Directive (76/160/EEC)</xsl:when>
      <xsl:when test="ThresholdValueSource = 'Birds'">Birds Directive (79/409/EEC)</xsl:when>
      <xsl:when test="ThresholdValueSource = 'DrinkingWater'">Drinking Water Directive (80/778/EEC) as amended by Directive (98/83/EC)</xsl:when>
      <xsl:when test="ThresholdValueSource = 'EIA Directive'">Environmental Impact Assessment Directive (85/337/EEC)</xsl:when>
      <xsl:when test="ThresholdValueSource = 'Foodstuffs'">Regulation on contaminants in foodstuffs (EC 1881/2006)</xsl:when>
      <xsl:when test="ThresholdValueSource = 'Habitats'">Habitats Directive (92/43/EEC)</xsl:when>
      <xsl:when test="ThresholdValueSource = 'IPPC'">Integrated Pollution Prevention Control Directive (96/61/EC)</xsl:when>
      <xsl:when test="ThresholdValueSource = 'Seveso'">Major Accidents (Seveso) Directive (96/82/EC)</xsl:when>
      <xsl:when test="ThresholdValueSource = 'Nitrates'">Nitrates Directive (91/676/EEC)</xsl:when>
      <xsl:when test="ThresholdValueSource = 'PPPP'">Placing of plant protection products on the market (Regulation EC/1107/2007)</xsl:when>
      <xsl:when test="ThresholdValueSource = 'SSD'">Sewage Sludge Directive (86/278/EEC)</xsl:when>
      <xsl:when test="ThresholdValueSource = 'UWWTD'">Urban Waste Water Treatment Directive (91/271/EEC)</xsl:when>
      <xsl:when test="ThresholdValueSource = 'WaterFD'">Water Framework Directive (2000/60/EC)</xsl:when>
      <xsl:when test="ThresholdValueSource = 'PSD'">Priority substances Directive (2013/39/EU)</xsl:when>
      <xsl:when test="ThresholdValueSource = 'FD'">Floods Directive (2007/60/EC)</xsl:when>
      <xsl:when test="ThresholdValueSource = 'IAER'">Prevention and management of the introduction and spread of invasive alien species (Regulation 1143/2014)</xsl:when>
      <xsl:when test="ThresholdValueSource = 'WasteFD'">Waste Framework Directive (2008/98/EC)</xsl:when>
      <xsl:when test="ThresholdValueSource = 'NEC'">Directive on National Emission Ceilings for certain pollutants (2001/81/EC)</xsl:when>
      <xsl:when test="ThresholdValueSource = 'REACH'">Regulation on Registration, Evaluation, Authorisation and Restriction of Chemicals (EC 1907/2006)</xsl:when>
      <xsl:when test="ThresholdValueSource = 'CFP'">Common Fisheries Policy</xsl:when>
      <xsl:when test="ThresholdValueSource = 'CFP-DC-MAP'">Common Fisheries Policy - Data Collection Framework (DC-MAP)</xsl:when>
      <xsl:when test="ThresholdValueSource = 'EUBiodivStrategy'">EU Biodiversity Strategy</xsl:when>
      <xsl:when test="ThresholdValueSource = 'CBD'">Convention on Biological Diversity</xsl:when>
      <xsl:when test="ThresholdValueSource = 'CMS'">Convention on Migratory Species</xsl:when>
      <xsl:when test="ThresholdValueSource = 'LTRAP'">UNECE Convention on long-range transboundary air pollution</xsl:when>
      <xsl:when test="ThresholdValueSource = 'HELCOM'">Helsinki Convention</xsl:when>
      <xsl:when test="ThresholdValueSource = 'OSPAR'">OSPAR Convention</xsl:when>
      <xsl:when test="ThresholdValueSource = 'BarCon'">Barcelona Convention UNEP/MAP</xsl:when>
      <xsl:when test="ThresholdValueSource = 'BuchCon'">Bucharest Convention</xsl:when>
      <xsl:when test="ThresholdValueSource = 'TWSC'">Trilateral Wadden Sea Cooperation</xsl:when>
      <xsl:when test="ThresholdValueSource = 'GFCM'">General Fisheries Commission for the Mediterranean</xsl:when>
      <xsl:when test="ThresholdValueSource = 'ICCAT'">International Commission for the Conservation of Atlantic Tunas</xsl:when>
      <xsl:when test="ThresholdValueSource = 'NEAFC'">North East Atlantic Fisheries Commission</xsl:when>
      <xsl:when test="ThresholdValueSource = 'IMO'">International Maritime Organisation (MARPOL, Ballast Water Convention, Antifouling Convention)</xsl:when>
      <xsl:when test="ThresholdValueSource = 'Other'">Other (specify)</xsl:when>
      <xsl:when test="ThresholdValueSource = 'Not applicable'">Not applicable</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>