View stylesheet

XML schema http://water.eionet.europa.eu/schemas/dir200856ec/MSCA_1p0.xsd
Output type HTML
Description Show as HTML
XSL file MSCA_1p0.xslt (Last modified: 02 May 2011 15:30 )
<?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:ms="http://water.eionet.europa.eu/schemas/dir200856ec/mscommon" xmlns:n1="http://water.eionet.europa.eu/schemas/dir200856ec" xmlns:n2="http://water.eionet.europa.eu/schemas/dir200856ec/fdcommon" 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 ms n1 n2 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 for </xsl:text>
							</span>
							<xsl:for-each select="n1:MSCA">
								<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_06D748B8" 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:MSCA">
										<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:MSCA">
										<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:MSCA">
										<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:MSCA">
										<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:MSCA">
										<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>Language</xsl:text>
										</span>
									</th>
									<xsl:for-each select="n1:MSCA">
										<td style="border-width:0; font-size:small; text-align:left; ">
											<xsl:for-each select="@Language">
												<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:MSCA">
										<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:MSCA">
										<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:MSCA">
										<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>
					<br/>
					<br/>
					<div class="section">
						<h1>
							<span>
								<xsl:text>Competent authorities</xsl:text>
							</span>
						</h1>
						<table border="1">
							<xsl:variable name="altova:CurrContextGrid_06D992B0" 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>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:MSCA">
									<xsl:for-each select="n1:CompetentAuthority">
										<tr>
											<td style="border-width:0; font-size:small; text-align:left; ">
												<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>
													<xsl:for-each select="n1:MSCACode">
														<xsl:apply-templates/>
													</xsl:for-each>
												</a>
											</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: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/>
					</div>
					<div class="section">
						<xsl:for-each select="n1:MSCA">
							<xsl:for-each select="n1:CompetentAuthority">
								<h4>
									<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:MSCACode">
										<xsl:apply-templates/>
									</xsl:for-each>
								</h4>
								<div class="content">
									<xsl:for-each select="n1:LegalStatus">
										<xsl:apply-templates/>
									</xsl:for-each>
								</div>
								<div class="content">
									<xsl:for-each select="n1:Responsibilities">
										<xsl:apply-templates/>
									</xsl:for-each>
								</div>
								<div class="content">
									<xsl:for-each select="n1:Reference">
										<xsl:apply-templates/>
									</xsl:for-each>
								</div>
								<div class="content">
									<xsl:for-each select="n1:Membership">
										<xsl:apply-templates/>
									</xsl:for-each>
								</div>
								<div class="content">
									<xsl:for-each select="n1:RegionalCoordination">
										<xsl:apply-templates/>
									</xsl:for-each>
								</div>
								<br/>
								<br/>
								<br/>
								<br/>
								<br/>
							</xsl:for-each>
						</xsl:for-each>
						<br/>
					</div>
					<br/>
				</xsl:for-each>
			</body>
		</html>
	</xsl:template>
</xsl:stylesheet>