| XML schema |
http://wise2.jrc.it/wfdwebinterface/xmlschemas/SWB.xsd
|
|---|---|
| Output type | HTML |
| Description | Simple HTML table (incomplete) |
| XSL file | SWB_HTML.xsl (Last modified: 23 Jun 2008 13:26 ) |
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:wf="http://wise2.jrc.it">
<xsl:output omit-xml-declaration="yes" encoding="UTF-8"/>
<!-- Created by Yvonne Walker WRc plc 21/04/2005 for WFD 2005 Reporting -->
<xsl:param name="code">we</xsl:param>
<xsl:template match="/">
<html>
<head>
<title>WFD 2005 Submission Report</title>
<style type="text/css">
.scope-row { text-align: left; }
</style>
</head>
<body>
<xsl:apply-templates select="wf:SurfaceWaterBodies"/>
</body>
</html>
</xsl:template>
<xsl:template match="wf:SurfaceWaterBodies">
<h1>
Water Framework Directive Article 5 Submission for
<xsl:call-template name="Country">
<xsl:with-param name="MS" select="wf:C_CD"/>
</xsl:call-template>
</h1>
<p><b>Water basin district:</b> <xsl:value-of select="wf:DIST_CD"/></p>
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="wf:SurfaceWaterBody">
<h2>Water body: <xsl:value-of select="wf:EU_CD"/></h2>
<table width="600">
<col style="width:300px"/>
<col style="width:300px"/>
<tbody>
<tr>
<th scope="row" class="scope-row">European Code:</th>
<td>
<xsl:value-of select="wf:EU_CD"/>
</td>
</tr>
<tr>
<th scope="row" class="scope-row">Member State Code:</th>
<td>
<xsl:value-of select="wf:MS_CD"/>
</td>
</tr>
<tr>
<th scope="row" class="scope-row">Latitude:</th>
<td>
<xsl:value-of select="wf:LAT"/>
</td>
</tr>
<tr>
<th scope="row" class="scope-row">Longitude:</th>
<td>
<xsl:value-of select="wf:LON"/>
</td>
</tr>
<tr>
<th scope="row" class="scope-row">Area:</th>
<td>
<xsl:value-of select="wf:AREA"/>
</td>
</tr>
<tr>
<th scope="row" class="scope-row">Risk category:</th>
<td>
<xsl:value-of select="wf:RISK_TOTAL"/>
</td>
</tr>
<tr>
<th scope="row" class="scope-row">Name:</th>
<td>
<xsl:value-of select="wf:NAME"/>
</td>
</tr>
<tr>
<th scope="row" class="scope-row">Year of reporting:</th>
<td>
<xsl:value-of select="wf:STATUS_YR"/>
</td>
</tr>
<tr>
<th scope="row" class="scope-row">URL to further information:</th>
<td>
<a>
<xsl:attribute name="href"><xsl:value-of select="wf:URL"/></xsl:attribute>
<xsl:value-of select="wf:URL"/>
</a>
</td>
</tr>
</tbody>
</table>
</xsl:template>
<!-- Country implementation -->
<xsl:template name="Country">
<xsl:param name="MS"/>
<xsl:choose>
<xsl:when test="$MS = 'UK'">United Kingdom</xsl:when>
<xsl:when test="$MS = 'IE'">Ireland</xsl:when>
<xsl:when test="$MS = 'FR'">France</xsl:when>
<xsl:when test="$MS='DE'">Germany</xsl:when>
<xsl:when test="$MS='AT'">Austria</xsl:when>
<xsl:when test="$MS='BE'">Belgium</xsl:when>
<xsl:when test="$MS='BG'">Bulgaria</xsl:when>
<xsl:when test="$MS='CH'">Switzerland</xsl:when>
<xsl:when test="$MS='CZ'">Czech Republic</xsl:when>
<xsl:when test="$MS='CY'">Cyprus</xsl:when>
<xsl:when test="$MS='DK'">Denmark</xsl:when>
<xsl:when test="$MS='EE'">Estonia</xsl:when>
<xsl:when test="$MS='ES'">Spain</xsl:when>
<xsl:when test="$MS='FI'">Finland</xsl:when>
<xsl:when test="$MS='GR'">Greece</xsl:when>
<xsl:when test="$MS='HU'">Hungary</xsl:when>
<xsl:when test="$MS='IS'">Iceland</xsl:when>
<xsl:when test="$MS='IT'">Italy</xsl:when>
<xsl:when test="$MS='LT'">Lithuania</xsl:when>
<xsl:when test="$MS='LU'">Luxembourg</xsl:when>
<xsl:when test="$MS='LV'">Latvia</xsl:when>
<xsl:when test="$MS='MT'">Malta</xsl:when>
<xsl:when test="$MS='NO'">Norway</xsl:when>
<xsl:when test="$MS='NL'">The Netherlands</xsl:when>
<xsl:when test="$MS='PL'">Poland</xsl:when>
<xsl:when test="$MS='PT'">Portugal</xsl:when>
<xsl:when test="$MS='RO'">Romania</xsl:when>
<xsl:when test="$MS='SE'">Sweden</xsl:when>
<xsl:when test="$MS='SI'">Slovenia</xsl:when>
<xsl:when test="$MS='SK'">Slovakia</xsl:when>
<xsl:when test="$MS='TR'">Turkey</xsl:when>
</xsl:choose>
</xsl:template>
<!-- YesNoUnknown implementation -->
<xsl:template name="YesNoUnknown">
<xsl:param name="YNU"/>
<xsl:choose>
<xsl:when test="$YNU = 'Y'">Yes</xsl:when>
<xsl:when test="$YNU = 'N'">No</xsl:when>
<xsl:when test="$YNU = 'U'">Unknown</xsl:when>
</xsl:choose>
</xsl:template>
<xsl:template match="*"/>
</xsl:stylesheet>
European Environment Agency
Kgs. Nytorv 6, DK-1050 Copenhagen K, Denmark