| XML schema |
http://air-climate.eionet.europa.eu/schemas/AirQualityQuestionnaire/AirQualityQuestionnaire-form4.xsd
|
|---|---|
| Output type | HTML |
| Description | HTML |
| XSL file | form4.xslt (Last modified: 22 Jan 2009 12:53 ) |
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="yes"
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
omit-xml-declaration="yes" />
<xsl:param name="xml_folder_uri" />
<xsl:variable name="lang">en</xsl:variable>
<!-- Uncommment the lines below for production use -->
<xsl:variable name="labels_xml" select="document(concat($xml_folder_uri,'aqq-labels.xml'))" />
<!-- Uncomment the lines below for development use
<xsl:variable name="labels_xml" select="document('../xml/aqq-labels.xml')" />
-->
<xsl:variable name="labels" select="$labels_xml/tmx/body" />
<xsl:template match="form4">
<html>
<head>
<style type="text/css">
table {
border: 1px solid black;
border-collapse: collapse;
width: 100%;
}
table th {
border: 1px solid black;
}
table td {
border: 1px solid black;
}
</style>
</head>
<body>
<h1><xsl:value-of select="$labels/tu[@tuid='lbl_form4-title']/tuv[@xml:lang=$lang]" /></h1>
<table>
<thead>
<tr>
<th rowspan="2"><xsl:value-of select="$labels/tu[@tuid='lbl-station-code']/tuv[@xml:lang=$lang]" /></th>
<th rowspan="2"><xsl:value-of select="$labels/tu[@tuid='lbl-station-code-local']/tuv[@xml:lang=$lang]" /></th>
<th rowspan="2"><xsl:value-of select="$labels/tu[@tuid='lbl-zone-code']/tuv[@xml:lang=$lang]" /></th>
<th rowspan="2"><xsl:value-of select="$labels/tu[@tuid='lbl-station-type']/tuv[@xml:lang=$lang]" /></th>
<th colspan="3"><xsl:value-of select="$labels/tu[@tuid='lbl-directive-3ec']/tuv[@xml:lang=$lang]" /></th>
</tr>
<tr>
<th><xsl:value-of select="$labels/tu[@tuid='lbl-o3']/tuv[@xml:lang=$lang]" /></th>
<th><xsl:value-of select="$labels/tu[@tuid='lbl-no2']/tuv[@xml:lang=$lang]" /></th>
<th><xsl:value-of select="$labels/tu[@tuid='lbl-nox']/tuv[@xml:lang=$lang]" /></th>
</tr>
</thead>
<tbody>
<xsl:for-each select="form4-row">
<tr>
<td align="center"><xsl:value-of select="eoi-station-code"/></td>
<td align="center"><xsl:value-of select="local-station-code"/></td>
<td align="center"><xsl:value-of select="zone-code"/></td>
<td align="center"><xsl:value-of select="station-type"/></td>
<td align="center">
<xsl:if test="directive-relation/o3 = 'true'">y</xsl:if>
</td>
<td align="center">
<xsl:if test="directive-relation/no2 = 'true'">y</xsl:if>
</td>
<td align="center">
<xsl:if test="directive-relation/nox = 'true'">y</xsl:if>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
European Environment Agency
Kgs. Nytorv 6, DK-1050 Copenhagen K, Denmark