View stylesheet

XML schemas http://water.eionet.europa.eu/schemas/dir200060ec/ProtArea_3p0.xsd
Output type HTML
Description HTML Factsheet
XSL file ProtArea_3p0.xslt (Last modified: 22 Oct 2009 20:45 )
<?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;
 }
 p { font-size:smaller;
 }</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">
					<br/>
					<div class="section">
						<h1>
							<span>
								<xsl:text>Protected Areas for </xsl:text>
							</span>
							<xsl:for-each select="n1:ProtectedAreas">
								<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_080CE878" 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:ProtectedAreas">
										<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:ProtectedAreas">
										<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:ProtectedAreas">
										<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:ProtectedAreas">
										<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:ProtectedAreas">
										<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:ProtectedAreas">
										<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:ProtectedAreas">
										<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:ProtectedAreas">
										<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:ProtectedAreas">
										<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:ProtectedAreas">
										<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. Register protected areas</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. Protected Areas</xsl:text>
								</span>
							</a>
							<br/>
							<br/>
						</div>
					</div>
					<div class="section">
						<xsl:for-each select="n1:ProtectedAreas">
							<br/>
							<h1>
								<a>
									<xsl:attribute name="name">
										<xsl:value-of select="&apos;1&apos;"/>
									</xsl:attribute>
								</a>
								<span>
									<xsl:text>1. Register protected areas</xsl:text>
								</span>
							</h1>
							<div class="section">
								<xsl:for-each select="n1:RegisterProtectedAreas">
									<xsl:for-each select="n1:PA_LEGISLATION">
										<p>
											<xsl:apply-templates/>
										</p>
									</xsl:for-each>
									<br/>
									<table border="1">
										<xsl:variable name="altova:CurrContextGrid_092F7538" select="."/>
										<thead>
											<tr>
												<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
													<span>
														<xsl:text>ReferenceDescription</xsl:text>
													</span>
												</th>
												<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
													<span>
														<xsl:text>ReferenceURLlocation</xsl:text>
													</span>
												</th>
											</tr>
										</thead>
										<tbody>
											<xsl:for-each select="n1:PA_LEGISLATION_REF">
												<xsl:for-each select="wfd:Reference">
													<tr>
														<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
															<xsl:for-each select="wfd:ReferenceDescription">
																<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="wfd:ReferenceURLlocation">
																<xsl:apply-templates/>
															</xsl:for-each>
														</td>
													</tr>
												</xsl:for-each>
											</xsl:for-each>
										</tbody>
									</table>
									<br/>
								</xsl:for-each>
							</div>
							<br/>
							<h1>
								<a>
									<xsl:attribute name="name">
										<xsl:value-of select="&apos;2&apos;"/>
									</xsl:attribute>
								</a>
								<span>
									<xsl:text>2. Protected Areas</xsl:text>
								</span>
							</h1>
							<div class="section">
								<table border="1">
									<xsl:variable name="altova:CurrContextGrid_07F92F00" select="."/>
									<thead>
										<tr>
											<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
												<span>
													<xsl:text>EUProtectedAreaCode</xsl:text>
												</span>
											</th>
											<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
												<span>
													<xsl:text>PROT_AREA_MS_CD</xsl:text>
												</span>
											</th>
											<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
												<span>
													<xsl:text>PROT_AREA_NAME</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>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>ProtectedAreaType</xsl:text>
												</span>
											</th>
											<th style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
												<span>
													<xsl:text>LegislationReference</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:ProtectedArea">
											<tr>
												<td style="border-width:0; font-size:smaller; text-align:left; vertical-align:top; ">
													<xsl:for-each select="n1:EUProtectedAreaCode">
														<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:PROT_AREA_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:PROT_AREA_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: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: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:ProtectedAreaType">
														<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:LegislationReference">
														<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>
									</tbody>
								</table>
							</div>
						</xsl:for-each>
					</div>
					<br/>
					<br/>
					<br/>
				</xsl:for-each>
			</body>
		</html>
	</xsl:template>
</xsl:stylesheet>