View stylesheet

XML schema http://water.eionet.europa.eu/schemas/dir200060ec/RBDSUCA_3p0.xsd
Output type HTML
Description HTML Factsheet
XSL file RBDSUCA_2p1.xslt (Last modified: 15 Mar 2010 15:16 )
<?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;
 }
 th { background-color:#dbdbdb;
border-width:0;
font-size:small;
text-align:left;
vertical-align:top;
 }
 td { border-width:0;
font-size:small;
text-align:left;
 }
 h1 { color:#003399;
font-family:Arial;
font-size:xx-large;
font-weight:bold;
 }
 h2 { color:#003399;
font-family:Arial;
font-size:large;
 }
 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;
 }</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>Competent authorities, River basin districts and Sub-units for </xsl:text>
							</span>
							<xsl:for-each select="n1:RBDSUCA">
								<xsl:for-each select="n1:C_CD">
									<xsl:variable name="dasdasd" select="."/>
									<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_07FE5B20" select="."/>
							<tbody>
								<tr>
									<th style="border-width:0; font-size:small; text-align:left; ">
										<span>
											<xsl:text>CreationDate</xsl:text>
										</span>
									</th>
									<xsl:for-each select="n1:RBDSUCA">
										<td style="border-width:0; font-size:small; text-align:left; ">
											<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:small; text-align:left; ">
										<span>
											<xsl:text>Creator</xsl:text>
										</span>
									</th>
									<xsl:for-each select="n1:RBDSUCA">
										<td style="border-width:0; font-size:small; text-align:left; ">
											<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:small; text-align:left; ">
										<span>
											<xsl:text>Email</xsl:text>
										</span>
									</th>
									<xsl:for-each select="n1:RBDSUCA">
										<td style="border-width:0; font-size:small; text-align:left; ">
											<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:small; text-align:left; ">
										<span>
											<xsl:text>Description</xsl:text>
										</span>
									</th>
									<xsl:for-each select="n1:RBDSUCA">
										<td style="border-width:0; font-size:small; text-align:left; ">
											<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:small; text-align:left; ">
										<span>
											<xsl:text>GeneratedBy</xsl:text>
										</span>
									</th>
									<xsl:for-each select="n1:RBDSUCA">
										<td style="border-width:0; font-size:small; text-align:left; ">
											<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:small; text-align:left; ">
										<span>
											<xsl:text>C_CD</xsl:text>
										</span>
									</th>
									<xsl:for-each select="n1:RBDSUCA">
										<td style="border-width:0; font-size:small; text-align:left; ">
											<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:small; text-align:left; ">
										<span>
											<xsl:text>METADATA</xsl:text>
										</span>
									</th>
									<xsl:for-each select="n1:RBDSUCA">
										<td style="border-width:0; font-size:small; text-align:left; ">
											<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:small; text-align:left; ">
										<span>
											<xsl:text>URL</xsl:text>
										</span>
									</th>
									<xsl:for-each select="n1:RBDSUCA">
										<td style="border-width:0; font-size:small; text-align:left; ">
											<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. Competent authorities</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. River basin districts</xsl:text>
								</span>
							</a>
							<br/>
							<a>
								<xsl:choose>
									<xsl:when test="substring(string(&apos;#3&apos;), 1, 1) = '#'">
										<xsl:attribute name="href">
											<xsl:value-of select="&apos;#3&apos;"/>
										</xsl:attribute>
									</xsl:when>
									<xsl:otherwise>
										<xsl:attribute name="href">
											<xsl:if test="substring(string(&apos;#3&apos;), 2, 1) = ':'">
												<xsl:text>file:///</xsl:text>
											</xsl:if>
											<xsl:value-of select="translate(string(&apos;#3&apos;), '&#x5c;', '/')"/>
										</xsl:attribute>
									</xsl:otherwise>
								</xsl:choose>
								<span>
									<xsl:text>3. Sub units</xsl:text>
								</span>
							</a>
							<br/>
							<br/>
						</div>
					</div>
					<br/>
					<br/>
					<div class="section">
						<h1>
							<a>
								<xsl:attribute name="name">
									<xsl:value-of select="&apos;1&apos;"/>
								</xsl:attribute>
							</a>
							<span>
								<xsl:text>1. Competent authorities</xsl:text>
							</span>
						</h1>
						<table border="1">
							<xsl:variable name="altova:CurrContextGrid_078D1358" select="."/>
							<thead>
								<tr>
									<th style="border-width:0; font-size:small; text-align:left; ">
										<span>
											<xsl:text>EUCACode</xsl:text>
										</span>
									</th>
									<th style="border-width:0; font-size:small; text-align:left; ">
										<span>
											<xsl:text>CompetentAuthorityName</xsl:text>
										</span>
									</th>
									<th style="border-width:0; font-size:small; text-align:left; ">
										<span>
											<xsl:text>CompetentAuthorityNameNL</xsl:text>
										</span>
									</th>
									<th style="border-width:0; font-size:small; text-align:left; ">
										<span>
											<xsl:text>Acronym</xsl:text>
										</span>
									</th>
									<th style="border-width:0; font-size:small; text-align:left; ">
										<span>
											<xsl:text>Auth_CD</xsl:text>
										</span>
									</th>
									<th style="border-width:0; font-size:small; text-align:left; ">
										<span>
											<xsl:text>LegalStatus</xsl:text>
										</span>
									</th>
									<th style="border-width:0; font-size:small; text-align:left; ">
										<span>
											<xsl:text>Reference</xsl:text>
										</span>
									</th>
									<th style="border-width:0; font-size:small; text-align:left; ">
										<span>
											<xsl:text>Summary</xsl:text>
										</span>
									</th>
									<th style="border-width:0; font-size:small; text-align:left; ">
										<span>
											<xsl:text>Street</xsl:text>
										</span>
									</th>
									<th style="border-width:0; font-size:small; text-align:left; ">
										<span>
											<xsl:text>City</xsl:text>
										</span>
									</th>
									<th style="border-width:0; font-size:small; text-align:left; ">
										<span>
											<xsl:text>CityNL</xsl:text>
										</span>
									</th>
									<th style="border-width:0; font-size:small; text-align:left; ">
										<span>
											<xsl:text>Country</xsl:text>
										</span>
									</th>
									<th style="border-width:0; font-size:small; text-align:left; ">
										<span>
											<xsl:text>Postcode</xsl:text>
										</span>
									</th>
									<th style="border-width:0; font-size:small; text-align:left; ">
										<span>
											<xsl:text>URL</xsl:text>
										</span>
									</th>
								</tr>
							</thead>
							<tbody>
								<xsl:for-each select="n1:RBDSUCA">
									<xsl:for-each select="n1:CompetentAuthority">
										<tr>
											<td style="border-width:0; font-size:small; text-align:left; ">
												<xsl:for-each select="n1:EUCACode">
													<xsl:apply-templates/>
												</xsl:for-each>
											</td>
											<td style="border-width:0; font-size:small; text-align:left; ">
												<xsl:for-each select="n1:CompetentAuthorityName">
													<xsl:apply-templates/>
												</xsl:for-each>
											</td>
											<td style="border-width:0; font-size:small; text-align:left; ">
												<xsl:for-each select="n1:CompetentAuthorityNameNL">
													<xsl:apply-templates/>
												</xsl:for-each>
											</td>
											<td style="border-width:0; font-size:small; text-align:left; ">
												<xsl:for-each select="n1:Acronym">
													<xsl:apply-templates/>
												</xsl:for-each>
											</td>
											<td style="border-width:0; font-size:small; text-align:left; ">
												<xsl:for-each select="n1:Auth_CD">
													<xsl:apply-templates/>
												</xsl:for-each>
											</td>
											<td style="border-width:0; font-size:small; text-align:left; ">
												<xsl:for-each select="n1:LegalStatus">
													<xsl:apply-templates/>
												</xsl:for-each>
											</td>
											<td style="border-width:0; font-size:small; text-align:left; ">
												<xsl:for-each select="n1:Reference">
													<xsl:apply-templates/>
												</xsl:for-each>
											</td>
											<td style="border-width:0; font-size:small; text-align:left; ">
												<xsl:for-each select="n1:Summary">
													<xsl:apply-templates/>
												</xsl:for-each>
											</td>
											<td style="border-width:0; font-size:small; text-align:left; ">
												<xsl:for-each select="n1:Street">
													<xsl:apply-templates/>
												</xsl:for-each>
											</td>
											<td style="border-width:0; font-size:small; text-align:left; ">
												<xsl:for-each select="n1:City">
													<xsl:apply-templates/>
												</xsl:for-each>
											</td>
											<td style="border-width:0; font-size:small; text-align:left; ">
												<xsl:for-each select="n1:CityNL">
													<xsl:apply-templates/>
												</xsl:for-each>
											</td>
											<td style="border-width:0; font-size:small; text-align:left; ">
												<xsl:for-each select="n1:Country">
													<xsl:apply-templates/>
												</xsl:for-each>
											</td>
											<td style="border-width:0; font-size:small; text-align:left; ">
												<xsl:for-each select="n1:Postcode">
													<xsl:apply-templates/>
												</xsl:for-each>
											</td>
											<td style="border-width:0; font-size:small; text-align:left; ">
												<xsl:for-each select="n1:URL">
													<xsl:apply-templates/>
												</xsl:for-each>
												<br/>
											</td>
										</tr>
									</xsl:for-each>
								</xsl:for-each>
							</tbody>
						</table>
						<br/>
						<h2>
							<span>
								<xsl:text>1.1 Competent authority roles</xsl:text>
							</span>
						</h2>
						<xsl:for-each select="n1:RBDSUCA">
							<xsl:for-each select="n1:CompetentAuthority">
								<h4>
									<span>
										<xsl:value-of select="position()"/>
									</span>
									<span>
										<xsl:text>. </xsl:text>
									</span>
									<xsl:for-each select="n1:EUCACode">
										<xsl:apply-templates/>
									</xsl:for-each>
								</h4>
								<div>
									<ul>
										<xsl:for-each select="n1:Roles">
											<xsl:for-each select="n1:RoleCode">
												<li style="font-family:Arial; font-size:small; ">
													<xsl:apply-templates/>
												</li>
											</xsl:for-each>
										</xsl:for-each>
									</ul>
									<xsl:if test="string-length( n1:Roles/n1:Comment )!=0">
										<div class="content">
											<span>
												<xsl:text>Comment: </xsl:text>
											</span>
											<xsl:for-each select="n1:Roles">
												<xsl:for-each select="n1:Comment">
													<xsl:apply-templates/>
												</xsl:for-each>
											</xsl:for-each>
										</div>
									</xsl:if>
								</div>
								<br/>
							</xsl:for-each>
						</xsl:for-each>
						<br/>
					</div>
					<h1>
						<a>
							<xsl:attribute name="name">
								<xsl:value-of select="&apos;2&apos;"/>
							</xsl:attribute>
						</a>
						<span>
							<xsl:text>2. River basin districts</xsl:text>
						</span>
					</h1>
					<table border="1">
						<xsl:variable name="altova:CurrContextGrid_077FEFC8" select="."/>
						<thead>
							<tr>
								<th style="border-width:0; font-size:small; text-align:left; ">
									<span>
										<xsl:text>EURBDCode</xsl:text>
									</span>
								</th>
								<th style="border-width:0; font-size:small; text-align:left; ">
									<span>
										<xsl:text>RBDName</xsl:text>
									</span>
								</th>
								<th style="border-width:0; font-size:small; text-align:left; ">
									<span>
										<xsl:text>RBDNameNL</xsl:text>
									</span>
								</th>
								<th style="border-width:0; font-size:small; text-align:left; ">
									<span>
										<xsl:text>RBD_MS_CD</xsl:text>
									</span>
								</th>
								<th style="border-width:0; font-size:small; text-align:left; ">
									<span>
										<xsl:text>Area</xsl:text>
									</span>
								</th>
								<th style="border-width:0; font-size:small; text-align:left; ">
									<span>
										<xsl:text>NationalRelationships</xsl:text>
									</span>
								</th>
								<th style="border-width:0; font-size:small; text-align:left; ">
									<span>
										<xsl:text>International</xsl:text>
									</span>
								</th>
								<th style="border-width:0; font-size:small; text-align:left; ">
									<span>
										<xsl:text>InternationalName</xsl:text>
									</span>
								</th>
								<th style="border-width:0; font-size:small; text-align:left; ">
									<span>
										<xsl:text>InternationalRelationships</xsl:text>
									</span>
								</th>
								<th style="border-width:0; font-size:small; text-align:left; ">
									<span>
										<xsl:text>PrimeCompetentAuthority</xsl:text>
									</span>
								</th>
								<th style="border-width:0; font-size:small; text-align:left; ">
									<span>
										<xsl:text>OtherCompetentAuthorities</xsl:text>
									</span>
								</th>
								<th style="border-width:0; font-size:small; text-align:left; ">
									<span>
										<xsl:text>OtherRelevantRoles</xsl:text>
									</span>
								</th>
							</tr>
						</thead>
						<tbody>
							<xsl:for-each select="n1:RBDSUCA">
								<xsl:for-each select="n1:RiverBasinDistrict">
									<tr>
										<td style="border-width:0; font-size:small; text-align:left; ">
											<xsl:for-each select="n1:EURBDCode">
												<xsl:apply-templates/>
											</xsl:for-each>
										</td>
										<td style="border-width:0; font-size:small; text-align:left; ">
											<xsl:for-each select="n1:RBDName">
												<xsl:apply-templates/>
											</xsl:for-each>
										</td>
										<td style="border-width:0; font-size:small; text-align:left; ">
											<xsl:for-each select="n1:RBDNameNL">
												<xsl:apply-templates/>
											</xsl:for-each>
										</td>
										<td style="border-width:0; font-size:small; text-align:left; ">
											<xsl:for-each select="n1:RBD_MS_CD">
												<xsl:apply-templates/>
											</xsl:for-each>
										</td>
										<td style="border-width:0; font-size:small; text-align:left; ">
											<xsl:for-each select="n1:Area">
												<xsl:apply-templates/>
											</xsl:for-each>
										</td>
										<td style="border-width:0; font-size:small; text-align:left; ">
											<xsl:for-each select="n1:NationalRelationships">
												<xsl:apply-templates/>
											</xsl:for-each>
										</td>
										<td style="border-width:0; font-size:small; text-align:left; ">
											<xsl:for-each select="n1:International">
												<xsl:apply-templates/>
											</xsl:for-each>
										</td>
										<td style="border-width:0; font-size:small; text-align:left; ">
											<xsl:for-each select="n1:InternationalName">
												<xsl:apply-templates/>
											</xsl:for-each>
										</td>
										<td style="border-width:0; font-size:small; text-align:left; ">
											<xsl:for-each select="n1:InternationalRelationships">
												<xsl:apply-templates/>
											</xsl:for-each>
										</td>
										<td style="border-width:0; font-size:small; text-align:left; ">
											<xsl:for-each select="n1:PrimeCompetentAuthority">
												<xsl:apply-templates/>
											</xsl:for-each>
										</td>
										<td style="border-width:0; font-size:small; text-align:left; ">
											<xsl:for-each select="n1:OtherCompetentAuthorities">
												<xsl:apply-templates/>
											</xsl:for-each>
										</td>
										<td style="border-width:0; font-size:small; text-align:left; ">
											<xsl:for-each select="n1:OtherRelevantRoles">
												<xsl:apply-templates/>
											</xsl:for-each>
										</td>
									</tr>
								</xsl:for-each>
							</xsl:for-each>
						</tbody>
					</table>
					<br/>
					<br/>
					<h1>
						<a>
							<xsl:attribute name="name">
								<xsl:value-of select="&apos;3&apos;"/>
							</xsl:attribute>
						</a>
						<span>
							<xsl:text>3. Sub units</xsl:text>
						</span>
					</h1>
					<xsl:for-each select="n1:RBDSUCA">
						<xsl:for-each select="n1:RiverBasinDistrict">
							<h2>
								<span>
									<xsl:value-of select="position()"/>
								</span>
								<span>
									<xsl:text>. </xsl:text>
								</span>
								<xsl:for-each select="n1:EURBDCode">
									<span>
										<xsl:text>&#160;</xsl:text>
									</span>
									<xsl:apply-templates/>
								</xsl:for-each>
							</h2>
							<table border="1">
								<xsl:variable name="altova:CurrContextGrid_07826470" select="."/>
								<thead>
									<tr>
										<th style="border-width:0; font-size:small; text-align:left; ">
											<span>
												<xsl:text>EUSubUnitCode</xsl:text>
											</span>
										</th>
										<th style="border-width:0; font-size:small; text-align:left; ">
											<span>
												<xsl:text>MS_SubUnitCode</xsl:text>
											</span>
										</th>
										<th style="border-width:0; font-size:small; text-align:left; ">
											<span>
												<xsl:text>SubUnitName</xsl:text>
											</span>
										</th>
										<th style="border-width:0; font-size:small; text-align:left; ">
											<span>
												<xsl:text>SubUnitNameNL</xsl:text>
											</span>
										</th>
										<th style="border-width:0; font-size:small; text-align:left; ">
											<span>
												<xsl:text>SubUnitArea</xsl:text>
											</span>
										</th>
									</tr>
								</thead>
								<tbody>
									<xsl:for-each select="n1:SubUnits">
										<xsl:for-each select="n1:SubUnit">
											<tr>
												<td style="border-width:0; font-size:small; text-align:left; ">
													<xsl:for-each select="n1:EUSubUnitCode">
														<xsl:apply-templates/>
													</xsl:for-each>
												</td>
												<td style="border-width:0; font-size:small; text-align:left; ">
													<xsl:for-each select="n1:MS_SubUnitCode">
														<xsl:apply-templates/>
													</xsl:for-each>
												</td>
												<td style="border-width:0; font-size:small; text-align:left; ">
													<xsl:for-each select="n1:SubUnitName">
														<xsl:apply-templates/>
													</xsl:for-each>
												</td>
												<td style="border-width:0; font-size:small; text-align:left; ">
													<xsl:for-each select="n1:SubUnitNameNL">
														<xsl:apply-templates/>
													</xsl:for-each>
												</td>
												<td style="border-width:0; font-size:small; text-align:left; ">
													<xsl:for-each select="n1:SubUnitArea">
														<xsl:apply-templates/>
													</xsl:for-each>
												</td>
											</tr>
										</xsl:for-each>
									</xsl:for-each>
								</tbody>
							</table>
							<br/>
						</xsl:for-each>
					</xsl:for-each>
					<br/>
				</xsl:for-each>
			</body>
		</html>
	</xsl:template>
</xsl:stylesheet>