View stylesheet

XML schema http://water.eionet.europa.eu/schemas/dir200060ec/SWB_3p0.xsd
Output type HTML
Description HTML Factsheet
XSL file SWB_3p0.xslt (Last modified: 22 Oct 2009 20:39 )
<?xml version="1.0" encoding="UTF-8"?>
<!--Designed and generated by Altova StyleVision Professional Edition 2009 sp1 - see http://www.altova.com/stylevision for more information.-->
<xsl:stylesheet version="1.0" 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:link="http://www.xbrl.org/2003/linkbase" xmlns:n1="http://water.eionet.europa.eu/schemas/dir200060ec" xmlns:wfd="http://water.eionet.europa.eu/schemas/dir200060ec/wfdcommon" xmlns:xbrldi="http://xbrl.org/2006/xbrldi" xmlns:xbrli="http://www.xbrl.org/2003/instance" xmlns:xdt="http://www.w3.org/2005/xpath-datatypes" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:altova="http://www.altova.com" exclude-result-prefixes="dc fn link n1 wfd xbrldi xbrli xdt xlink xs xsi">
	<xsl:output version="4.0" method="html" indent="no" encoding="UTF-8" doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" doctype-system="http://www.w3.org/TR/html4/loose.dtd"/>
	<xsl:param name="SV_OutputFormat" select="'HTML'"/>
	<xsl:variable name="XML" select="/"/>
	<xsl:template match="/">
		<html>
			<head>
				<title/>
				<style type="text/css">
					<xsl:comment>body { font-family:Arial;
 }
 table { border-width:0;
vertical-align:top;
 }
 th { background-color:#dbdbdb;
border-width:0;
font-size:small;
text-align:left;
vertical-align:top;
 }
 td { border-width:0;
font-size:smaller;
text-align:left;
vertical-align:top;
 }
 h1 { color:#003399;
font-family:Arial;
font-size:xx-large;
font-weight:bold;
 }
 h2 { color:#003399;
font-family:Arial;
font-size:large;
text-decoration:underline;
 }
 h3 { color:#003399;
font-family:Arial;
font-size:medium;
 }
 h4 { color:#003399;
font-family:Arial;
font-size:small;
 }
 .tov1 { font-family:Arial;
font-size:larger;
font-weight:bold;
 }
 .tov2 { font-family:Arial;
font-size:large;
 }
 .section { page-break-after:always;
 }
 .content { font-size:small;
 }
 .subtitle { font-size:small;
font-weight:bold;
 }</xsl:comment>
				</style>
			</head>
			<body style="margin-left=0.6in; margin-right=0.6in; margin-top=0.79in; margin-bottom=0.79in">
				<br/>
				<xsl:for-each select="$XML">
					<div class="section">
						<h1>
							<span>
								<xsl:text>Surface water bodies for </xsl:text>
							</span>
							<xsl:for-each select="n1:SurfaceWaterBodies">
								<xsl:for-each select="n1:C_CD">
									<xsl:apply-templates/>
								</xsl:for-each>
							</xsl:for-each>
						</h1>
						<h2>
							<span style="text-decoration:underline; ">
								<xsl:text>XML File details</xsl:text>
							</span>
						</h2>
						<table border="1">
							<xsl:variable name="altova:CurrContextGrid_080E95C8" select="."/>
							<tbody>
								<tr>
									<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
										<span>
											<xsl:text>CreationDate</xsl:text>
										</span>
									</th>
									<xsl:for-each select="n1:SurfaceWaterBodies">
										<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
											<xsl:for-each select="@CreationDate">
												<span>
													<xsl:value-of select="string(.)"/>
												</span>
											</xsl:for-each>
										</td>
									</xsl:for-each>
								</tr>
								<tr>
									<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
										<span>
											<xsl:text>Creator</xsl:text>
										</span>
									</th>
									<xsl:for-each select="n1:SurfaceWaterBodies">
										<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
											<xsl:for-each select="@Creator">
												<span>
													<xsl:value-of select="string(.)"/>
												</span>
											</xsl:for-each>
										</td>
									</xsl:for-each>
								</tr>
								<tr>
									<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
										<span>
											<xsl:text>Email</xsl:text>
										</span>
									</th>
									<xsl:for-each select="n1:SurfaceWaterBodies">
										<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
											<xsl:for-each select="@Email">
												<span>
													<xsl:value-of select="string(.)"/>
												</span>
											</xsl:for-each>
										</td>
									</xsl:for-each>
								</tr>
								<tr>
									<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
										<span>
											<xsl:text>Description</xsl:text>
										</span>
									</th>
									<xsl:for-each select="n1:SurfaceWaterBodies">
										<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
											<xsl:for-each select="@Description">
												<span>
													<xsl:value-of select="string(.)"/>
												</span>
											</xsl:for-each>
										</td>
									</xsl:for-each>
								</tr>
								<tr>
									<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
										<span>
											<xsl:text>GeneratedBy</xsl:text>
										</span>
									</th>
									<xsl:for-each select="n1:SurfaceWaterBodies">
										<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
											<xsl:for-each select="@GeneratedBy">
												<span>
													<xsl:value-of select="string(.)"/>
												</span>
											</xsl:for-each>
										</td>
									</xsl:for-each>
								</tr>
								<tr>
									<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
										<span>
											<xsl:text>MD_ClassificationCode</xsl:text>
										</span>
									</th>
									<xsl:for-each select="n1:SurfaceWaterBodies">
										<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
											<xsl:for-each select="@MD_ClassificationCode">
												<span>
													<xsl:value-of select="string(.)"/>
												</span>
											</xsl:for-each>
										</td>
									</xsl:for-each>
								</tr>
								<tr>
									<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
										<span>
											<xsl:text>C_CD</xsl:text>
										</span>
									</th>
									<xsl:for-each select="n1:SurfaceWaterBodies">
										<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
											<xsl:for-each select="n1:C_CD">
												<xsl:apply-templates/>
											</xsl:for-each>
										</td>
									</xsl:for-each>
								</tr>
								<tr>
									<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
										<span>
											<xsl:text>EURBDCode</xsl:text>
										</span>
									</th>
									<xsl:for-each select="n1:SurfaceWaterBodies">
										<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
											<xsl:for-each select="n1:EURBDCode">
												<xsl:apply-templates/>
											</xsl:for-each>
										</td>
									</xsl:for-each>
								</tr>
								<tr>
									<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
										<span>
											<xsl:text>METADATA</xsl:text>
										</span>
									</th>
									<xsl:for-each select="n1:SurfaceWaterBodies">
										<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
											<xsl:for-each select="n1:METADATA">
												<xsl:apply-templates/>
											</xsl:for-each>
										</td>
									</xsl:for-each>
								</tr>
								<tr>
									<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
										<span>
											<xsl:text>URL</xsl:text>
										</span>
									</th>
									<xsl:for-each select="n1:SurfaceWaterBodies">
										<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
											<xsl:for-each select="n1:URL">
												<xsl:apply-templates/>
											</xsl:for-each>
										</td>
									</xsl:for-each>
								</tr>
							</tbody>
						</table>
						<br/>
						<br/>
						<div>
							<h1>
								<span>
									<xsl:text>Contents</xsl:text>
								</span>
							</h1>
							<a>
								<xsl:choose>
									<xsl:when test="substring(string(&apos;#1&apos;), 1, 1) = '#'">
										<xsl:attribute name="href">
											<xsl:value-of select="&apos;#1&apos;"/>
										</xsl:attribute>
									</xsl:when>
									<xsl:otherwise>
										<xsl:attribute name="href">
											<xsl:if test="substring(string(&apos;#1&apos;), 2, 1) = ':'">
												<xsl:text>file:///</xsl:text>
											</xsl:if>
											<xsl:value-of select="translate(string(&apos;#1&apos;), '&#x5c;', '/')"/>
										</xsl:attribute>
									</xsl:otherwise>
								</xsl:choose>
								<span>
									<xsl:text>1. Surface Water bodies overview</xsl:text>
								</span>
							</a>
							<br/>
							<a>
								<xsl:choose>
									<xsl:when test="substring(string(&apos;#2&apos;), 1, 1) = '#'">
										<xsl:attribute name="href">
											<xsl:value-of select="&apos;#2&apos;"/>
										</xsl:attribute>
									</xsl:when>
									<xsl:otherwise>
										<xsl:attribute name="href">
											<xsl:if test="substring(string(&apos;#2&apos;), 2, 1) = ':'">
												<xsl:text>file:///</xsl:text>
											</xsl:if>
											<xsl:value-of select="translate(string(&apos;#2&apos;), '&#x5c;', '/')"/>
										</xsl:attribute>
									</xsl:otherwise>
								</xsl:choose>
								<span>
									<xsl:text>2. Surface water bodies details</xsl:text>
								</span>
							</a>
							<br/>
							<br/>
						</div>
						<br/>
						<br/>
					</div>
					<div class="section">
						<div class="section">
							<h1>
								<a>
									<xsl:attribute name="name">
										<xsl:value-of select="&apos;1&apos;"/>
									</xsl:attribute>
								</a>
								<span>
									<xsl:text>1. Surface Water bodies overview</xsl:text>
								</span>
							</h1>
							<table border="1">
								<xsl:variable name="altova:CurrContextGrid_081142F0" select="."/>
								<thead>
									<tr>
										<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; "/>
										<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
											<span>
												<xsl:text>EUSurfaceWaterBodyCode</xsl:text>
											</span>
										</th>
										<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
											<span>
												<xsl:text>SWB_MS_CD</xsl:text>
											</span>
										</th>
										<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
											<span>
												<xsl:text>SWB_NAME</xsl:text>
											</span>
										</th>
										<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
											<span>
												<xsl:text>EUSubUnitCode</xsl:text>
											</span>
										</th>
										<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
											<span>
												<xsl:text>LAT</xsl:text>
											</span>
										</th>
										<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
											<span>
												<xsl:text>LON</xsl:text>
											</span>
										</th>
										<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
											<span>
												<xsl:text>CATEGORY</xsl:text>
											</span>
										</th>
										<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
											<span>
												<xsl:text>Natural</xsl:text>
											</span>
										</th>
										<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
											<span>
												<xsl:text>TypologyCode</xsl:text>
											</span>
										</th>
										<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
											<span>
												<xsl:text>ReferenceDataSet</xsl:text>
											</span>
										</th>
										<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
											<span>
												<xsl:text>AREA</xsl:text>
											</span>
										</th>
										<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
											<span>
												<xsl:text>LENGTH</xsl:text>
											</span>
										</th>
										<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
											<span>
												<xsl:text>Scale</xsl:text>
											</span>
										</th>
										<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
											<span>
												<xsl:text>ScaleExplanation</xsl:text>
											</span>
										</th>
										<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
											<span>
												<xsl:text>METADATA</xsl:text>
											</span>
										</th>
										<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
											<span>
												<xsl:text>URL</xsl:text>
											</span>
										</th>
									</tr>
								</thead>
								<tbody>
									<xsl:for-each select="n1:SurfaceWaterBodies">
										<xsl:for-each select="n1:SurfaceWaterBody">
											<tr>
												<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
													<a>
														<xsl:choose>
															<xsl:when test="substring(string(concat(&apos;#&apos;,n1:EUSurfaceWaterBodyCode)), 1, 1) = '#'">
																<xsl:attribute name="href">
																	<xsl:value-of select="concat(&apos;#&apos;,n1:EUSurfaceWaterBodyCode)"/>
																</xsl:attribute>
															</xsl:when>
															<xsl:otherwise>
																<xsl:attribute name="href">
																	<xsl:if test="substring(string(concat(&apos;#&apos;,n1:EUSurfaceWaterBodyCode)), 2, 1) = ':'">
																		<xsl:text>file:///</xsl:text>
																	</xsl:if>
																	<xsl:value-of select="translate(string(concat(&apos;#&apos;,n1:EUSurfaceWaterBodyCode)), '&#x5c;', '/')"/>
																</xsl:attribute>
															</xsl:otherwise>
														</xsl:choose>
														<span>
															<xsl:value-of select="position()"/>
														</span>
													</a>
												</td>
												<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
													<xsl:for-each select="n1:EUSurfaceWaterBodyCode">
														<xsl:apply-templates/>
													</xsl:for-each>
												</td>
												<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
													<xsl:for-each select="n1:SWB_MS_CD">
														<xsl:apply-templates/>
													</xsl:for-each>
												</td>
												<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
													<xsl:for-each select="n1:SWB_NAME">
														<xsl:apply-templates/>
													</xsl:for-each>
												</td>
												<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
													<xsl:for-each select="n1:EUSubUnitCode">
														<xsl:apply-templates/>
													</xsl:for-each>
												</td>
												<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
													<xsl:for-each select="n1:LAT">
														<xsl:apply-templates/>
													</xsl:for-each>
												</td>
												<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
													<xsl:for-each select="n1:LON">
														<xsl:apply-templates/>
													</xsl:for-each>
												</td>
												<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
													<xsl:for-each select="n1:CATEGORY">
														<xsl:apply-templates/>
													</xsl:for-each>
												</td>
												<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
													<xsl:for-each select="n1:Natural">
														<xsl:apply-templates/>
													</xsl:for-each>
												</td>
												<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
													<xsl:for-each select="n1:TypologyCode">
														<xsl:apply-templates/>
													</xsl:for-each>
												</td>
												<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
													<xsl:for-each select="n1:ReferenceDataSet">
														<xsl:apply-templates/>
													</xsl:for-each>
												</td>
												<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
													<xsl:for-each select="n1:AREA">
														<xsl:apply-templates/>
													</xsl:for-each>
												</td>
												<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
													<xsl:for-each select="n1:LENGTH">
														<xsl:apply-templates/>
													</xsl:for-each>
												</td>
												<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
													<xsl:for-each select="n1:Scale">
														<xsl:apply-templates/>
													</xsl:for-each>
												</td>
												<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
													<xsl:for-each select="n1:ScaleExplanation">
														<xsl:apply-templates/>
													</xsl:for-each>
												</td>
												<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
													<xsl:for-each select="n1:METADATA">
														<xsl:apply-templates/>
													</xsl:for-each>
												</td>
												<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
													<xsl:for-each select="n1:URL">
														<xsl:apply-templates/>
													</xsl:for-each>
												</td>
											</tr>
										</xsl:for-each>
									</xsl:for-each>
								</tbody>
							</table>
						</div>
					</div>
					<br/>
					<br/>
					<h1>
						<a>
							<xsl:attribute name="name">
								<xsl:value-of select="&apos;2&apos;"/>
							</xsl:attribute>
						</a>
						<span>
							<xsl:text>2. Surface water bodies details</xsl:text>
						</span>
					</h1>
					<div class="section">
						<xsl:for-each select="n1:SurfaceWaterBodies">
							<xsl:for-each select="n1:SurfaceWaterBody">
								<br/>
								<h2>
									<a>
										<xsl:attribute name="name">
											<xsl:value-of select="n1:EUSurfaceWaterBodyCode"/>
										</xsl:attribute>
									</a>
									<span>
										<xsl:value-of select="position()"/>
									</span>
									<span>
										<xsl:text>. </xsl:text>
									</span>
									<xsl:for-each select="n1:EUSurfaceWaterBodyCode">
										<xsl:apply-templates/>
									</xsl:for-each>
								</h2>
								<table border="1">
									<xsl:variable name="altova:CurrContextGrid_044AB990" select="."/>
									<tbody>
										<tr>
											<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
												<span>
													<xsl:text>EUSurfaceWaterBodyCode</xsl:text>
												</span>
											</th>
											<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
												<xsl:for-each select="n1:EUSurfaceWaterBodyCode">
													<xsl:apply-templates/>
												</xsl:for-each>
											</td>
										</tr>
										<tr>
											<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
												<span>
													<xsl:text>SWB_MS_CD</xsl:text>
												</span>
											</th>
											<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
												<xsl:for-each select="n1:SWB_MS_CD">
													<xsl:apply-templates/>
												</xsl:for-each>
											</td>
										</tr>
										<tr>
											<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
												<span>
													<xsl:text>SWB_NAME</xsl:text>
												</span>
											</th>
											<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
												<xsl:for-each select="n1:SWB_NAME">
													<xsl:apply-templates/>
												</xsl:for-each>
											</td>
										</tr>
										<tr>
											<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
												<span>
													<xsl:text>EUSubUnitCode</xsl:text>
												</span>
											</th>
											<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
												<xsl:for-each select="n1:EUSubUnitCode">
													<xsl:apply-templates/>
												</xsl:for-each>
											</td>
										</tr>
										<tr>
											<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
												<span>
													<xsl:text>LAT</xsl:text>
												</span>
											</th>
											<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
												<xsl:for-each select="n1:LAT">
													<xsl:apply-templates/>
												</xsl:for-each>
											</td>
										</tr>
										<tr>
											<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
												<span>
													<xsl:text>LON</xsl:text>
												</span>
											</th>
											<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
												<xsl:for-each select="n1:LON">
													<xsl:apply-templates/>
												</xsl:for-each>
											</td>
										</tr>
										<tr>
											<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
												<span>
													<xsl:text>CATEGORY</xsl:text>
												</span>
											</th>
											<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
												<xsl:for-each select="n1:CATEGORY">
													<xsl:apply-templates/>
												</xsl:for-each>
											</td>
										</tr>
										<tr>
											<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
												<span>
													<xsl:text>Natural</xsl:text>
												</span>
											</th>
											<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
												<xsl:for-each select="n1:Natural">
													<xsl:apply-templates/>
												</xsl:for-each>
											</td>
										</tr>
										<tr>
											<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
												<span>
													<xsl:text>TypologyCode</xsl:text>
												</span>
											</th>
											<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
												<xsl:for-each select="n1:TypologyCode">
													<xsl:apply-templates/>
												</xsl:for-each>
											</td>
										</tr>
										<tr>
											<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
												<span>
													<xsl:text>ReferenceDataSet</xsl:text>
												</span>
											</th>
											<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
												<xsl:for-each select="n1:ReferenceDataSet">
													<xsl:apply-templates/>
												</xsl:for-each>
											</td>
										</tr>
										<tr>
											<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
												<span>
													<xsl:text>AREA</xsl:text>
												</span>
											</th>
											<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
												<xsl:for-each select="n1:AREA">
													<xsl:apply-templates/>
												</xsl:for-each>
											</td>
										</tr>
										<tr>
											<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
												<span>
													<xsl:text>LENGTH</xsl:text>
												</span>
											</th>
											<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
												<xsl:for-each select="n1:LENGTH">
													<xsl:apply-templates/>
												</xsl:for-each>
											</td>
										</tr>
										<tr>
											<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
												<span>
													<xsl:text>Scale</xsl:text>
												</span>
											</th>
											<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
												<xsl:for-each select="n1:Scale">
													<xsl:apply-templates/>
												</xsl:for-each>
											</td>
										</tr>
										<tr>
											<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
												<span>
													<xsl:text>ScaleExplanation</xsl:text>
												</span>
											</th>
											<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
												<xsl:for-each select="n1:ScaleExplanation">
													<xsl:apply-templates/>
												</xsl:for-each>
											</td>
										</tr>
										<tr>
											<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
												<span>
													<xsl:text>METADATA</xsl:text>
												</span>
											</th>
											<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
												<xsl:for-each select="n1:METADATA">
													<xsl:apply-templates/>
												</xsl:for-each>
											</td>
										</tr>
										<tr>
											<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
												<span>
													<xsl:text>URL</xsl:text>
												</span>
											</th>
											<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
												<xsl:for-each select="n1:URL">
													<xsl:apply-templates/>
												</xsl:for-each>
											</td>
										</tr>
									</tbody>
								</table>
								<br/>
								<br/>
								<h3>
									<span>
										<xsl:text>Pressures and Impacts</xsl:text>
									</span>
								</h3>
								<div class="content">
									<div class="subtitle">
										<span>
											<xsl:text>Significant pressure types:</xsl:text>
										</span>
									</div>
									<ul>
										<xsl:for-each select="n1:PressuresAndImpacts">
											<xsl:for-each select="n1:SignificantPressureTypes">
												<li>
													<xsl:apply-templates/>
												</li>
											</xsl:for-each>
										</xsl:for-each>
									</ul>
									<br/>
									<div class="subtitle">
										<span>
											<xsl:text>Other pressure description:</xsl:text>
										</span>
									</div>
									<ul>
										<xsl:for-each select="n1:PressuresAndImpacts">
											<xsl:for-each select="n1:OtherPressureDescription">
												<li>
													<xsl:apply-templates/>
												</li>
											</xsl:for-each>
										</xsl:for-each>
									</ul>
									<br/>
									<div class="subtitle">
										<span>
											<xsl:text>Significant Impact Types:</xsl:text>
										</span>
									</div>
									<ul>
										<xsl:for-each select="n1:PressuresAndImpacts">
											<xsl:for-each select="n1:SignificantImpactTypes">
												<li>
													<xsl:apply-templates/>
												</li>
											</xsl:for-each>
										</xsl:for-each>
									</ul>
									<br/>
									<div class="subtitle">
										<span>
											<xsl:text>Other impact description:</xsl:text>
										</span>
									</div>
									<ul>
										<xsl:for-each select="n1:PressuresAndImpacts">
											<xsl:for-each select="n1:OtherImpactDescription">
												<li>
													<xsl:apply-templates/>
												</li>
											</xsl:for-each>
										</xsl:for-each>
									</ul>
								</div>
								<br/>
								<br/>
								<h3>
									<span>
										<xsl:text>Surface water body status</xsl:text>
									</span>
								</h3>
								<xsl:for-each select="n1:SurfaceWaterBodyStatus">
									<h4>
										<span>
											<xsl:text>Ecological Status or potential</xsl:text>
										</span>
									</h4>
									<table border="1">
										<xsl:variable name="altova:CurrContextGrid_044A1EE8" select="."/>
										<tbody>
											<tr>
												<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
													<span>
														<xsl:text>TargetStatusOrPotential</xsl:text>
													</span>
												</th>
												<xsl:for-each select="n1:EcologicalStatusOrPotential">
													<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
														<xsl:for-each select="n1:TargetStatusOrPotential">
															<xsl:apply-templates/>
														</xsl:for-each>
													</td>
												</xsl:for-each>
											</tr>
											<tr>
												<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
													<span>
														<xsl:text>ValueEcologicalStatusOrPotential</xsl:text>
													</span>
												</th>
												<xsl:for-each select="n1:EcologicalStatusOrPotential">
													<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
														<xsl:for-each select="n1:ValueEcologicalStatusOrPotential">
															<xsl:apply-templates/>
														</xsl:for-each>
													</td>
												</xsl:for-each>
											</tr>
											<tr>
												<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
													<span>
														<xsl:text>Confidence</xsl:text>
													</span>
												</th>
												<xsl:for-each select="n1:EcologicalStatusOrPotential">
													<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
														<xsl:for-each select="n1:Confidence">
															<xsl:apply-templates/>
														</xsl:for-each>
													</td>
												</xsl:for-each>
											</tr>
											<tr>
												<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
													<span>
														<xsl:text>CommentConfidence</xsl:text>
													</span>
												</th>
												<xsl:for-each select="n1:EcologicalStatusOrPotential">
													<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
														<xsl:for-each select="n1:CommentConfidence">
															<xsl:apply-templates/>
														</xsl:for-each>
													</td>
												</xsl:for-each>
											</tr>
											<tr>
												<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
													<span>
														<xsl:text>ValueQE1-1PhytoplanktonStatusOrPotential</xsl:text>
													</span>
												</th>
												<xsl:for-each select="n1:EcologicalStatusOrPotential">
													<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
														<xsl:for-each select="n1:ValueQE1-1PhytoplanktonStatusOrPotential">
															<xsl:apply-templates/>
														</xsl:for-each>
													</td>
												</xsl:for-each>
											</tr>
											<tr>
												<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
													<span>
														<xsl:text>ValueQE1-2OtherAquaticFloraStatusOrPotential</xsl:text>
													</span>
												</th>
												<xsl:for-each select="n1:EcologicalStatusOrPotential">
													<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
														<xsl:for-each select="n1:ValueQE1-2OtherAquaticFloraStatusOrPotential">
															<xsl:apply-templates/>
														</xsl:for-each>
													</td>
												</xsl:for-each>
											</tr>
											<tr>
												<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
													<span>
														<xsl:text>ValueQE1-2-1MacroalgaeStatusOrPotential</xsl:text>
													</span>
												</th>
												<xsl:for-each select="n1:EcologicalStatusOrPotential">
													<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
														<xsl:for-each select="n1:ValueQE1-2-1MacroalgaeStatusOrPotential">
															<xsl:apply-templates/>
														</xsl:for-each>
													</td>
												</xsl:for-each>
											</tr>
											<tr>
												<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
													<span>
														<xsl:text>ValueQE1-2-2AngiospermsStatusOrPotential</xsl:text>
													</span>
												</th>
												<xsl:for-each select="n1:EcologicalStatusOrPotential">
													<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
														<xsl:for-each select="n1:ValueQE1-2-2AngiospermsStatusOrPotential">
															<xsl:apply-templates/>
														</xsl:for-each>
													</td>
												</xsl:for-each>
											</tr>
											<tr>
												<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
													<span>
														<xsl:text>ValueQE1-2-3MacropyhtesStatusOrPotential</xsl:text>
													</span>
												</th>
												<xsl:for-each select="n1:EcologicalStatusOrPotential">
													<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
														<xsl:for-each select="n1:ValueQE1-2-3MacropyhtesStatusOrPotential">
															<xsl:apply-templates/>
														</xsl:for-each>
													</td>
												</xsl:for-each>
											</tr>
											<tr>
												<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
													<span>
														<xsl:text>ValueQE1-2-4PhytobenthosStatusOrPotential</xsl:text>
													</span>
												</th>
												<xsl:for-each select="n1:EcologicalStatusOrPotential">
													<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
														<xsl:for-each select="n1:ValueQE1-2-4PhytobenthosStatusOrPotential">
															<xsl:apply-templates/>
														</xsl:for-each>
													</td>
												</xsl:for-each>
											</tr>
											<tr>
												<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
													<span>
														<xsl:text>ValueQE1-3MacroinvertabratesStatusOrPotential</xsl:text>
													</span>
												</th>
												<xsl:for-each select="n1:EcologicalStatusOrPotential">
													<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
														<xsl:for-each select="n1:ValueQE1-3MacroinvertabratesStatusOrPotential">
															<xsl:apply-templates/>
														</xsl:for-each>
													</td>
												</xsl:for-each>
											</tr>
											<tr>
												<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
													<span>
														<xsl:text>ValueQE1-4FishStatusOrPotential</xsl:text>
													</span>
												</th>
												<xsl:for-each select="n1:EcologicalStatusOrPotential">
													<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
														<xsl:for-each select="n1:ValueQE1-4FishStatusOrPotential">
															<xsl:apply-templates/>
														</xsl:for-each>
													</td>
												</xsl:for-each>
											</tr>
											<tr>
												<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
													<span>
														<xsl:text>ValueQE1-5OtherBiologicalQEStatusOrPotential</xsl:text>
													</span>
												</th>
												<xsl:for-each select="n1:EcologicalStatusOrPotential">
													<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
														<xsl:for-each select="n1:ValueQE1-5OtherBiologicalQEStatusOrPotential">
															<xsl:apply-templates/>
														</xsl:for-each>
													</td>
												</xsl:for-each>
											</tr>
											<tr>
												<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
													<span>
														<xsl:text>ValueQE2HydromorphStatusOrPotential</xsl:text>
													</span>
												</th>
												<xsl:for-each select="n1:EcologicalStatusOrPotential">
													<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
														<xsl:for-each select="n1:ValueQE2HydromorphStatusOrPotential">
															<xsl:apply-templates/>
														</xsl:for-each>
													</td>
												</xsl:for-each>
											</tr>
											<tr>
												<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
													<span>
														<xsl:text>ValueQE3-1GeneralPhysicoChemStatusOrPotential</xsl:text>
													</span>
												</th>
												<xsl:for-each select="n1:EcologicalStatusOrPotential">
													<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
														<xsl:for-each select="n1:ValueQE3-1GeneralPhysicoChemStatusOrPotential">
															<xsl:apply-templates/>
														</xsl:for-each>
													</td>
												</xsl:for-each>
											</tr>
											<tr>
												<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
													<span>
														<xsl:text>ValueQE3-3NonPrioritySpecificPollutants</xsl:text>
													</span>
												</th>
												<xsl:for-each select="n1:EcologicalStatusOrPotential">
													<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
														<xsl:for-each select="n1:ValueQE3-3NonPrioritySpecificPollutants">
															<xsl:apply-templates/>
														</xsl:for-each>
													</td>
												</xsl:for-each>
											</tr>
											<tr>
												<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
													<span>
														<xsl:text>ValueQE3-4OtherNationalPollutants</xsl:text>
													</span>
												</th>
												<xsl:for-each select="n1:EcologicalStatusOrPotential">
													<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
														<xsl:for-each select="n1:ValueQE3-4OtherNationalPollutants">
															<xsl:apply-templates/>
														</xsl:for-each>
													</td>
												</xsl:for-each>
											</tr>
										</tbody>
									</table>
									<br/>
									<br/>
									<div class="subtitle">
										<span>
											<xsl:text>Ecological exemptions:</xsl:text>
										</span>
									</div>
									<br/>
									<table border="1">
										<xsl:variable name="altova:CurrContextGrid_04499998" select="."/>
										<thead>
											<tr>
												<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
													<span>
														<xsl:text>EcologicalExemptionType</xsl:text>
													</span>
												</th>
												<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
													<span>
														<xsl:text>EcologicalExemptionQE</xsl:text>
													</span>
												</th>
											</tr>
										</thead>
										<tbody>
											<xsl:for-each select="n1:EcologicalStatusOrPotential">
												<xsl:for-each select="n1:EcologicalExemptions">
													<xsl:for-each select="n1:EcologicalExemption">
														<tr>
															<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
																<xsl:for-each select="n1:EcologicalExemptionType">
																	<xsl:apply-templates/>
																</xsl:for-each>
															</td>
															<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
																<ul>
																	<xsl:for-each select="n1:EcologicalExemptionQE">
																		<li>
																			<xsl:apply-templates/>
																		</li>
																	</xsl:for-each>
																</ul>
															</td>
														</tr>
													</xsl:for-each>
												</xsl:for-each>
											</xsl:for-each>
										</tbody>
									</table>
									<br/>
									<div class="content">
										<xsl:for-each select="n1:EcologicalStatusOrPotential">
											<xsl:for-each select="n1:EcologicalExemptionComment">
												<xsl:apply-templates/>
											</xsl:for-each>
										</xsl:for-each>
									</div>
									<br/>
								</xsl:for-each>
								<br/>
								<br/>
								<h4>
									<span>
										<xsl:text>Chemical Status</xsl:text>
									</span>
								</h4>
								<div class="subtitle">
									<span>
										<xsl:text>Chemical status value: </xsl:text>
									</span>
									<xsl:for-each select="n1:SurfaceWaterBodyStatus">
										<xsl:for-each select="n1:ChemicalStatus">
											<xsl:for-each select="n1:ValueChemicalStatus">
												<xsl:apply-templates/>
											</xsl:for-each>
										</xsl:for-each>
									</xsl:for-each>
								</div>
								<span>
									<xsl:text>&#160;</xsl:text>
								</span>
								<br/>
								<br/>
								<div class="subtitle">
									<span>
										<xsl:text>Chemical exceedances:</xsl:text>
									</span>
								</div>
								<br/>
								<ul>
									<xsl:for-each select="n1:SurfaceWaterBodyStatus">
										<xsl:for-each select="n1:ChemicalStatus">
											<xsl:for-each select="n1:ChemicalExceedances">
												<li>
													<div class="content">
														<xsl:apply-templates/>
													</div>
												</li>
											</xsl:for-each>
										</xsl:for-each>
									</xsl:for-each>
								</ul>
								<br/>
								<div class="subtitle">
									<span>
										<xsl:text>Chemical exemptions:</xsl:text>
									</span>
								</div>
								<br/>
								<table border="1">
									<xsl:variable name="altova:CurrContextGrid_077BD5E0" select="."/>
									<thead>
										<tr>
											<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
												<span>
													<xsl:text>ChemicalExemptionType</xsl:text>
												</span>
											</th>
											<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; width:196px; ">
												<span>
													<xsl:text>ChemicalExemptions</xsl:text>
												</span>
											</th>
											<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
												<span>
													<xsl:text>ChemicalExemptionComment</xsl:text>
												</span>
											</th>
										</tr>
									</thead>
									<tbody>
										<xsl:for-each select="n1:SurfaceWaterBodyStatus">
											<xsl:for-each select="n1:ChemicalStatus">
												<xsl:for-each select="n1:ChemicalExemptions">
													<xsl:for-each select="n1:ChemicalExemption">
														<tr>
															<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
																<xsl:for-each select="n1:ChemicalExemptionType">
																	<xsl:apply-templates/>
																</xsl:for-each>
															</td>
															<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; width:196px; ">
																<ul>
																	<xsl:for-each select="n1:ChemicalExemptions">
																		<li>
																			<xsl:apply-templates/>
																		</li>
																	</xsl:for-each>
																</ul>
															</td>
															<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
																<xsl:for-each select="n1:ChemicalExemptionComment">
																	<xsl:apply-templates/>
																</xsl:for-each>
															</td>
														</tr>
													</xsl:for-each>
												</xsl:for-each>
											</xsl:for-each>
										</xsl:for-each>
									</tbody>
								</table>
								<br/>
								<br/>
								<br/>
								<br/>
								<h3>
									<span>
										<xsl:text>Status protected areas</xsl:text>
									</span>
								</h3>
								<xsl:for-each select="n1:StatusProtectedAreas">
									<br/>
									<div class="content">
										<span>
											<xsl:text>Is the Water Body associated with a Protected Area? </xsl:text>
										</span>
										<xsl:for-each select="n1:PROT_AREA_ASSOC">
											<xsl:apply-templates/>
										</xsl:for-each>
									</div>
									<br/>
									<br/>
									<table border="1">
										<xsl:variable name="altova:CurrContextGrid_097DB078" select="."/>
										<thead>
											<tr>
												<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
													<span>
														<xsl:text>TypeOfProtectedArea</xsl:text>
													</span>
												</th>
												<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
													<span>
														<xsl:text>ProtectedAreaCode</xsl:text>
													</span>
												</th>
												<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
													<span>
														<xsl:text>TypeOfAssociation</xsl:text>
													</span>
												</th>
												<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
													<span>
														<xsl:text>ValueStatusProtectedArea</xsl:text>
													</span>
												</th>
												<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
													<span>
														<xsl:text>CommentValueStatusProtArea</xsl:text>
													</span>
												</th>
												<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
													<span>
														<xsl:text>ProtAreaExemptions</xsl:text>
													</span>
												</th>
												<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
													<span>
														<xsl:text>ProtAreaExemptionComment</xsl:text>
													</span>
												</th>
											</tr>
										</thead>
										<tbody>
											<xsl:for-each select="n1:SWProtectedAreaDetails">
												<tr>
													<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
														<xsl:for-each select="n1:TypeOfProtectedArea">
															<xsl:apply-templates/>
														</xsl:for-each>
													</td>
													<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
														<ul>
															<xsl:for-each select="n1:ProtectedAreaCode">
																<li>
																	<xsl:apply-templates/>
																</li>
															</xsl:for-each>
														</ul>
													</td>
													<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
														<xsl:for-each select="n1:TypeOfAssociation">
															<xsl:apply-templates/>
														</xsl:for-each>
													</td>
													<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
														<xsl:for-each select="n1:ValueStatusProtectedArea">
															<xsl:apply-templates/>
														</xsl:for-each>
													</td>
													<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
														<xsl:for-each select="n1:CommentValueStatusProtArea">
															<xsl:apply-templates/>
														</xsl:for-each>
													</td>
													<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
														<ul>
															<xsl:for-each select="n1:ProtAreaExemptions">
																<li>
																	<xsl:apply-templates/>
																</li>
															</xsl:for-each>
														</ul>
													</td>
													<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
														<xsl:for-each select="n1:ProtAreaExemptionComment">
															<xsl:apply-templates/>
														</xsl:for-each>
													</td>
												</tr>
											</xsl:for-each>
										</tbody>
									</table>
									<br/>
									<br/>
								</xsl:for-each>
								<br/>
								<br/>
							</xsl:for-each>
						</xsl:for-each>
					</div>
					<br/>
					<br/>
					<br/>
				</xsl:for-each>
			</body>
		</html>
	</xsl:template>
</xsl:stylesheet>