View stylesheet

XML schema http://air-climate.eionet.europa.eu/schemas/AirQualityQuestionnaire/AirQualityQuestionnaire-form10.xsd
Output type HTML
Description HTML
XSL file form10.xslt (Last modified: 15 Apr 2009 16:32 )
<?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="form10">
	<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-form10']/tuv[@xml:lang=$lang]" />
				- <xsl:value-of select="$labels/tu[@tuid='lbl-form10-title']/tuv[@xml:lang=$lang]" />
			</h1>
			<xsl:apply-templates select="form10a"/>
			<xsl:apply-templates select="form10b"/>
			<xsl:apply-templates select="form10c"/>
			<xsl:apply-templates select="form10d"/>
			<xsl:apply-templates select="form10e"/>
			<xsl:apply-templates select="form10f"/>
			<xsl:apply-templates select="form10g"/>
			<xsl:apply-templates select="form10h"/>
			<xsl:apply-templates select="form10i"/>
			<xsl:apply-templates select="form10j"/>
			<xsl:apply-templates select="form10k"/>
			<h2><xsl:value-of select="$labels/tu[@tuid='lbl-form-comments']/tuv[@xml:lang=$lang]" /></h2>
			<p><xsl:value-of select="form-comments"/></p>
		</body>
	</html>
</xsl:template>

<xsl:template match="form10a">
	<h2><xsl:value-of select="$labels/tu[@tuid='lbl-form10a-title']/tuv[@xml:lang=$lang]" /></h2>
	<table>
		<thead>
			<tr>
				<th rowspan="2"><xsl:value-of select="$labels/tu[@tuid='lbl-zone-code']/tuv[@xml:lang=$lang]" /></th>
				<th colspan="3"><xsl:value-of select="$labels/tu[@tuid='lbl-uat-lat-lv24h']/tuv[@xml:lang=$lang]" /></th>
				<th colspan="3"><xsl:value-of select="$labels/tu[@tuid='lbl-uat-lat-lvwinter']/tuv[@xml:lang=$lang]" /></th>
				<th rowspan="2"><xsl:value-of select="$labels/tu[@tuid='lbl-sa']/tuv[@xml:lang=$lang]" /></th>

			</tr>
			<tr>
				<th>&#x3e; UAT</th>
				<th>&#x2264; UAT; &#x3e;LAT</th>
				<th>&#x2264; LAT</th>

				<th>&#x3e; UAT</th>
				<th>&#x2264; UAT; &#x3e;LAT</th>
				<th>&#x2264; LAT</th>
			</tr>
		</thead>
		<tbody>
			<xsl:for-each select="form10a-row">
				<tr>
					<td><xsl:value-of select="zone-code"/></td>
					<td><xsl:value-of select="uat-lat-24/uat"/></td>
					<td><xsl:value-of select="uat-lat-24/uat-lat"/></td>
					<td><xsl:value-of select="uat-lat-24/lat"/></td>
					<td><xsl:value-of select="uat-lat-w/uat"/></td>
					<td><xsl:value-of select="uat-lat-w/uat-lat"/></td>
					<td><xsl:value-of select="uat-lat-w/lat"/></td>
					<td><xsl:value-of select="sa"/></td>
				</tr>
			</xsl:for-each>
		</tbody>
	</table>
</xsl:template>

<xsl:template match="form10b">
	<h2><xsl:value-of select="$labels/tu[@tuid='lbl-form10b-title']/tuv[@xml:lang=$lang]" /></h2>
	<table>
		<thead>
			<tr>
				<th rowspan="2"><xsl:value-of select="$labels/tu[@tuid='lbl-zone-code']/tuv[@xml:lang=$lang]" /></th>
				<th colspan="3"><xsl:value-of select="$labels/tu[@tuid='lbl-uat-lat-1hr']/tuv[@xml:lang=$lang]" /></th>
				<th colspan="3"><xsl:value-of select="$labels/tu[@tuid='lbl-uat-lat-lvannual']/tuv[@xml:lang=$lang]" /></th>
				<th colspan="3"><xsl:value-of select="$labels/tu[@tuid='lbl-uat-lat-vegetation']/tuv[@xml:lang=$lang]" /></th>
				<th rowspan="2"><xsl:value-of select="$labels/tu[@tuid='lbl-sa']/tuv[@xml:lang=$lang]" /></th>

			</tr>
			<tr>
				<th>&#x3e; UAT</th>
				<th>&#x2264; UAT; &#x3e;LAT</th>
				<th>&#x2264; LAT</th>

				<th>&#x3e; UAT</th>
				<th>&#x2264; UAT; &#x3e;LAT</th>
				<th>&#x2264; LAT</th>

				<th>&#x3e; UAT</th>
				<th>&#x2264; UAT; &#x3e;LAT</th>
				<th>&#x2264; LAT</th>
			</tr>
		</thead>
		<tbody>
			<xsl:for-each select="form10b-row">
				<tr>
					<td><xsl:value-of select="zone-code"/></td>
					<td><xsl:value-of select="uat-lat-1hr/uat"/></td>
					<td><xsl:value-of select="uat-lat-1hr/uat-lat"/></td>
					<td><xsl:value-of select="uat-lat-1hr/lat"/></td>
					<td><xsl:value-of select="uat-lat-y/uat"/></td>
					<td><xsl:value-of select="uat-lat-y/uat-lat"/></td>
					<td><xsl:value-of select="uat-lat-y/lat"/></td>
					<td><xsl:value-of select="uat-lat-veg/uat"/></td>
					<td><xsl:value-of select="uat-lat-veg/uat-lat"/></td>
					<td><xsl:value-of select="uat-lat-veg/lat"/></td>
					<td><xsl:value-of select="sa"/></td>
				</tr>
			</xsl:for-each>
		</tbody>
	</table>
</xsl:template>

<xsl:template match="form10c">
	<h2><xsl:value-of select="$labels/tu[@tuid='lbl-form10c-title']/tuv[@xml:lang=$lang]" /></h2>
	<table>
		<thead>
			<tr>
				<th rowspan="2"><xsl:value-of select="$labels/tu[@tuid='lbl-zone-code']/tuv[@xml:lang=$lang]" /></th>
				<th colspan="3"><xsl:value-of select="$labels/tu[@tuid='lbl-uat-lat-24h']/tuv[@xml:lang=$lang]" /></th>
				<th colspan="3"><xsl:value-of select="$labels/tu[@tuid='lbl-uat-lat-annual']/tuv[@xml:lang=$lang]" /></th>
				<th rowspan="2"><xsl:value-of select="$labels/tu[@tuid='lbl-sa']/tuv[@xml:lang=$lang]" /></th>

			</tr>
			<tr>
				<th>&#x3e; UAT</th>
				<th>&#x2264; UAT; &#x3e;LAT</th>
				<th>&#x2264; LAT</th>

				<th>&#x3e; UAT</th>
				<th>&#x2264; UAT; &#x3e;LAT</th>
				<th>&#x2264; LAT</th>
			</tr>
		</thead>
		<tbody>
			<xsl:for-each select="form10c-row">
				<tr>
					<td><xsl:value-of select="zone-code"/></td>
					<td><xsl:value-of select="uat-lat-24/uat"/></td>
					<td><xsl:value-of select="uat-lat-24/uat-lat"/></td>
					<td><xsl:value-of select="uat-lat-24/lat"/></td>
					<td><xsl:value-of select="uat-lat-y/uat"/></td>
					<td><xsl:value-of select="uat-lat-y/uat-lat"/></td>
					<td><xsl:value-of select="uat-lat-y/lat"/></td>
					<td><xsl:value-of select="sa"/></td>
				</tr>
			</xsl:for-each>
		</tbody>
	</table>
</xsl:template>

<xsl:template match="form10d">
	<h2><xsl:value-of select="$labels/tu[@tuid='lbl-form10d-title']/tuv[@xml:lang=$lang]" /></h2>
	<table>
		<thead>
			<tr>
				<th rowspan="2"><xsl:value-of select="$labels/tu[@tuid='lbl-zone-code']/tuv[@xml:lang=$lang]" /></th>
				<th colspan="3"><xsl:value-of select="$labels/tu[@tuid='lbl-uat-lat']/tuv[@xml:lang=$lang]" /></th>
				<th rowspan="2"><xsl:value-of select="$labels/tu[@tuid='lbl-sa']/tuv[@xml:lang=$lang]" /></th>

			</tr>
			<tr>
				<th>&#x3e; UAT</th>
				<th>&#x2264; UAT; &#x3e;LAT</th>
				<th>&#x2264; LAT</th>
			</tr>
		</thead>
		<tbody>
			<xsl:for-each select="form10d-row">
				<tr>
					<td><xsl:value-of select="zone-code"/></td>
					<td><xsl:value-of select="uat-and-lat/uat"/></td>
					<td><xsl:value-of select="uat-and-lat/uat-lat"/></td>
					<td><xsl:value-of select="uat-and-lat/lat"/></td>
					<td><xsl:value-of select="sa"/></td>
				</tr>
			</xsl:for-each>
		</tbody>
	</table>
</xsl:template>

<xsl:template match="form10e">
	<h2><xsl:value-of select="$labels/tu[@tuid='lbl-form10e-title']/tuv[@xml:lang=$lang]" /></h2>
	<table>
		<thead>
			<tr>
				<th rowspan="2"><xsl:value-of select="$labels/tu[@tuid='lbl-zone-code']/tuv[@xml:lang=$lang]" /></th>
				<th colspan="3"><xsl:value-of select="$labels/tu[@tuid='lbl-uat-lat']/tuv[@xml:lang=$lang]" /></th>
				<th rowspan="2"><xsl:value-of select="$labels/tu[@tuid='lbl-sa']/tuv[@xml:lang=$lang]" /></th>
			</tr>
			<tr>
				<th>&#x3e; UAT</th>
				<th>&#x2264; UAT; &#x3e;LAT</th>
				<th>&#x2264; LAT</th>
			</tr>
		</thead>
		<tbody>
			<xsl:for-each select="form10e-row">
				<tr>
					<td><xsl:value-of select="zone-code"/></td>
					<td><xsl:value-of select="uat-and-lat/uat"/></td>
					<td><xsl:value-of select="uat-and-lat/uat-lat"/></td>
					<td><xsl:value-of select="uat-and-lat/lat"/></td>
					<td><xsl:value-of select="sa"/></td>
				</tr>
			</xsl:for-each>
		</tbody>
	</table>
</xsl:template>

<xsl:template match="form10f">
	<h2><xsl:value-of select="$labels/tu[@tuid='lbl-form10f-title']/tuv[@xml:lang=$lang]" /></h2>
	<table>
		<thead>
			<tr>
				<th rowspan="2"><xsl:value-of select="$labels/tu[@tuid='lbl-zone-code']/tuv[@xml:lang=$lang]" /></th>
				<th colspan="3"><xsl:value-of select="$labels/tu[@tuid='lbl-uat-lat']/tuv[@xml:lang=$lang]" /></th>
				<th rowspan="2"><xsl:value-of select="$labels/tu[@tuid='lbl-sa']/tuv[@xml:lang=$lang]" /></th>

			</tr>
			<tr>
				<th>&#x3e; UAT</th>
				<th>&#x2264; UAT; &#x3e;LAT</th>
				<th>&#x2264; LAT</th>
			</tr>
		</thead>
		<tbody>
			<xsl:for-each select="form10f-row">
				<tr>
					<td><xsl:value-of select="zone-code"/></td>
					<td><xsl:value-of select="uat-and-lat/uat"/></td>
					<td><xsl:value-of select="uat-and-lat/uat-lat"/></td>
					<td><xsl:value-of select="uat-and-lat/lat"/></td>
					<td><xsl:value-of select="sa"/></td>
				</tr>
			</xsl:for-each>
		</tbody>
	</table>
</xsl:template>

<xsl:template match="form10g">
	<h2><xsl:value-of select="$labels/tu[@tuid='lbl-form10g-title']/tuv[@xml:lang=$lang]" /></h2>
	<table>
		<thead>
			<tr>
				<th><xsl:value-of select="$labels/tu[@tuid='lbl-zone-code']/tuv[@xml:lang=$lang]" /></th>
				<th><xsl:value-of select="$labels/tu[@tuid='lbl-sa']/tuv[@xml:lang=$lang]" /></th>

			</tr>
		</thead>
		<tbody>
			<xsl:for-each select="form10g-row">
				<tr>
					<td><xsl:value-of select="zone-code"/></td>
					<td><xsl:value-of select="sa"/></td>
				</tr>
			</xsl:for-each>
		</tbody>
	</table>
</xsl:template>

<xsl:template match="form10h">
	<h2><xsl:value-of select="$labels/tu[@tuid='lbl-form10h-title']/tuv[@xml:lang=$lang]" /></h2>
	<table>
		<thead>
			<tr>
				<th rowspan="2"><xsl:value-of select="$labels/tu[@tuid='lbl-zone-code']/tuv[@xml:lang=$lang]" /></th>
				<th colspan="3"><xsl:value-of select="$labels/tu[@tuid='lbl-uat-lat']/tuv[@xml:lang=$lang]" /></th>
				<th rowspan="2"><xsl:value-of select="$labels/tu[@tuid='lbl-sa']/tuv[@xml:lang=$lang]" /></th>

			</tr>
			<tr>
				<th>&#x3e; UAT</th>
				<th>&#x2264; UAT; &#x3e;LAT</th>
				<th>&#x2264; LAT</th>
			</tr>
		</thead>
		<tbody>
			<xsl:for-each select="form10h-row">
				<tr>
					<td><xsl:value-of select="zone-code"/></td>
					<td><xsl:value-of select="uat-and-lat/uat"/></td>
					<td><xsl:value-of select="uat-and-lat/uat-lat"/></td>
					<td><xsl:value-of select="uat-and-lat/lat"/></td>
					<td><xsl:value-of select="sa"/></td>
				</tr>
			</xsl:for-each>
		</tbody>
	</table>
</xsl:template>

<xsl:template match="form10i">
	<h2><xsl:value-of select="$labels/tu[@tuid='lbl-form10i-title']/tuv[@xml:lang=$lang]" /></h2>
	<table>
		<thead>
			<tr>
				<th rowspan="2"><xsl:value-of select="$labels/tu[@tuid='lbl-zone-code']/tuv[@xml:lang=$lang]" /></th>
				<th colspan="3"><xsl:value-of select="$labels/tu[@tuid='lbl-uat-lat']/tuv[@xml:lang=$lang]" /></th>
				<th rowspan="2"><xsl:value-of select="$labels/tu[@tuid='lbl-sa']/tuv[@xml:lang=$lang]" /></th>

			</tr>
			<tr>
				<th>&#x3e; UAT</th>
				<th>&#x2264; UAT; &#x3e;LAT</th>
				<th>&#x2264; LAT</th>
			</tr>
		</thead>
		<tbody>
			<xsl:for-each select="form10i-row">
				<tr>
					<td><xsl:value-of select="zone-code"/></td>
					<td><xsl:value-of select="uat-and-lat/uat"/></td>
					<td><xsl:value-of select="uat-and-lat/uat-lat"/></td>
					<td><xsl:value-of select="uat-and-lat/lat"/></td>
					<td><xsl:value-of select="sa"/></td>
				</tr>
			</xsl:for-each>
		</tbody>
	</table>
</xsl:template>

<xsl:template match="form10j">
	<h2><xsl:value-of select="$labels/tu[@tuid='lbl-form10j-title']/tuv[@xml:lang=$lang]" /></h2>
	<table>
		<thead>
			<tr>
				<th rowspan="2"><xsl:value-of select="$labels/tu[@tuid='lbl-zone-code']/tuv[@xml:lang=$lang]" /></th>
				<th colspan="3"><xsl:value-of select="$labels/tu[@tuid='lbl-uat-lat']/tuv[@xml:lang=$lang]" /></th>
				<th rowspan="2"><xsl:value-of select="$labels/tu[@tuid='lbl-sa']/tuv[@xml:lang=$lang]" /></th>

			</tr>
			<tr>
				<th>&#x3e; UAT</th>
				<th>&#x2264; UAT; &#x3e;LAT</th>
				<th>&#x2264; LAT</th>
			</tr>
		</thead>
		<tbody>
			<xsl:for-each select="form10j-row">
				<tr>
					<td><xsl:value-of select="zone-code"/></td>
					<td><xsl:value-of select="uat-and-lat/uat"/></td>
					<td><xsl:value-of select="uat-and-lat/uat-lat"/></td>
					<td><xsl:value-of select="uat-and-lat/lat"/></td>
					<td><xsl:value-of select="sa"/></td>
				</tr>
			</xsl:for-each>
		</tbody>
	</table>
</xsl:template>

<xsl:template match="form10k">
	<h2><xsl:value-of select="$labels/tu[@tuid='lbl-form10k-title']/tuv[@xml:lang=$lang]" /></h2>
	<table>
		<thead>
			<tr>
				<th rowspan="2"><xsl:value-of select="$labels/tu[@tuid='lbl-zone-code']/tuv[@xml:lang=$lang]" /></th>
				<th colspan="3"><xsl:value-of select="$labels/tu[@tuid='lbl-uat-lat']/tuv[@xml:lang=$lang]" /></th>
				<th rowspan="2"><xsl:value-of select="$labels/tu[@tuid='lbl-sa']/tuv[@xml:lang=$lang]" /></th>

			</tr>
			<tr>
				<th>&#x3e; UAT</th>
				<th>&#x2264; UAT; &#x3e;LAT</th>
				<th>&#x2264; LAT</th>
			</tr>
		</thead>
		<tbody>
			<xsl:for-each select="form10k-row">
				<tr>
					<td><xsl:value-of select="zone-code"/></td>
					<td><xsl:value-of select="uat-and-lat/uat"/></td>
					<td><xsl:value-of select="uat-and-lat/uat-lat"/></td>
					<td><xsl:value-of select="uat-and-lat/lat"/></td>
					<td><xsl:value-of select="sa"/></td>
				</tr>
			</xsl:for-each>
		</tbody>
	</table>
</xsl:template>
</xsl:stylesheet>