View stylesheet

XML schemas http://air-climate.eionet.europa.eu/schemas/AirQualityQuestionnaire/AirQualityQuestionnaire-form11.xsd
Output type HTML
Description HTML
XSL file form11.xslt (Last modified: 15 Apr 2009 16:34 )
<?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="form11">
	<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-form11']/tuv[@xml:lang=$lang]" />
				- <xsl:value-of select="$labels/tu[@tuid='lbl-form11-title']/tuv[@xml:lang=$lang]" />
			</h1>
			<xsl:apply-templates select="form11a"/>
			<xsl:apply-templates select="form11b"/>
			<xsl:apply-templates select="form11c"/>
			<xsl:apply-templates select="form11d"/>
			<xsl:apply-templates select="form11e"/>
			<xsl:apply-templates select="form11f"/>
			<xsl:apply-templates select="form11g"/>
			<xsl:apply-templates select="form11h"/>
			<xsl:apply-templates select="form11i"/>
			<xsl:apply-templates select="form11j"/>
			<xsl:apply-templates select="form11k"/>
			<xsl:apply-templates select="form11l"/>
			<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="form11a">
	<h2>
		<xsl:value-of select="$labels/tu[@tuid='lbl-form11a']/tuv[@xml:lang=$lang]" />
		- <xsl:value-of select="$labels/tu[@tuid='lbl-form11a-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-station-code']/tuv[@xml:lang=$lang]" /></th>
				<th><xsl:value-of select="$labels/tu[@tuid='lbl-month']/tuv[@xml:lang=$lang]" /></th>
				<th><xsl:value-of select="$labels/tu[@tuid='lbl-day-of-month']/tuv[@xml:lang=$lang]" /></th>
				<th><xsl:value-of select="$labels/tu[@tuid='lbl-hour']/tuv[@xml:lang=$lang]" /></th>
				<th><xsl:value-of select="$labels/tu[@tuid='lbl-level-ugm3']/tuv[@xml:lang=$lang]" /></th>
				<th><xsl:value-of select="$labels/tu[@tuid='lbl-reason-codes']/tuv[@xml:lang=$lang]" /></th>
			</tr>
		</thead>
		<tbody>
			<xsl:for-each select="form11a-row">
				<tr>
					<td><xsl:value-of select="zone-code"/></td>
					<td><xsl:value-of select="eoi-station-code"/></td>
					<td><xsl:value-of select="month"/></td>
					<td><xsl:value-of select="day-of-month"/></td>
					<td><xsl:value-of select="hour"/></td>
					<td><xsl:value-of select="level"/></td>
					<td><xsl:value-of select="reason-code"/></td>
				</tr>
			</xsl:for-each>
		</tbody>
	</table>
</xsl:template>
<xsl:template match="form11b">
	<h2>
		<xsl:value-of select="$labels/tu[@tuid='lbl-form11b']/tuv[@xml:lang=$lang]" />
		- <xsl:value-of select="$labels/tu[@tuid='lbl-form11b-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-station-code']/tuv[@xml:lang=$lang]" /></th>
				<th><xsl:value-of select="$labels/tu[@tuid='lbl-month']/tuv[@xml:lang=$lang]" /></th>
				<th><xsl:value-of select="$labels/tu[@tuid='lbl-day-of-month']/tuv[@xml:lang=$lang]" /></th>
				<th><xsl:value-of select="$labels/tu[@tuid='lbl-level-ugm3']/tuv[@xml:lang=$lang]" /></th>
				<th><xsl:value-of select="$labels/tu[@tuid='lbl-reason-codes']/tuv[@xml:lang=$lang]" /></th>
			</tr>
		</thead>
		<tbody>
			<xsl:for-each select="form11b-row">
				<tr>
					<td><xsl:value-of select="zone-code"/></td>
					<td><xsl:value-of select="eoi-station-code"/></td>
					<td><xsl:value-of select="month"/></td>
					<td><xsl:value-of select="day-of-month"/></td>
					<td><xsl:value-of select="level"/></td>
					<td><xsl:value-of select="reason-code"/></td>
				</tr>
			</xsl:for-each>
		</tbody>
	</table>
</xsl:template>
<xsl:template match="form11c">
	<h2>
		<xsl:value-of select="$labels/tu[@tuid='lbl-form11c']/tuv[@xml:lang=$lang]" />
		- <xsl:value-of select="$labels/tu[@tuid='lbl-form11c-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-station-code']/tuv[@xml:lang=$lang]" /></th>
				<th><xsl:value-of select="$labels/tu[@tuid='lbl-level-ugm3']/tuv[@xml:lang=$lang]" /></th>
				<th><xsl:value-of select="$labels/tu[@tuid='lbl-reason-codes']/tuv[@xml:lang=$lang]" /></th>
			</tr>
		</thead>
		<tbody>
			<xsl:for-each select="form11c-row">
				<tr>
					<td><xsl:value-of select="zone-code"/></td>
					<td><xsl:value-of select="eoi-station-code"/></td>
					<td><xsl:value-of select="level"/></td>
					<td><xsl:value-of select="reason-code"/></td>
				</tr>
			</xsl:for-each>
		</tbody>
	</table>
</xsl:template>
<xsl:template match="form11d">
	<h2>
		<xsl:value-of select="$labels/tu[@tuid='lbl-form11d']/tuv[@xml:lang=$lang]" />
		- <xsl:value-of select="$labels/tu[@tuid='lbl-form11d-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-station-code']/tuv[@xml:lang=$lang]" /></th>
				<th><xsl:value-of select="$labels/tu[@tuid='lbl-level-ugm3']/tuv[@xml:lang=$lang]" /></th>
				<th><xsl:value-of select="$labels/tu[@tuid='lbl-reason-codes']/tuv[@xml:lang=$lang]" /></th>
			</tr>
		</thead>
		<tbody>
			<xsl:for-each select="form11d-row">
				<tr>
					<td><xsl:value-of select="zone-code"/></td>
					<td><xsl:value-of select="eoi-station-code"/></td>
					<td><xsl:value-of select="level"/></td>
					<td><xsl:value-of select="reason-code"/></td>
				</tr>
			</xsl:for-each>
		</tbody>
	</table>
</xsl:template>
<xsl:template match="form11e">
	<h2>
		<xsl:value-of select="$labels/tu[@tuid='lbl-form11e']/tuv[@xml:lang=$lang]" />
		- <xsl:value-of select="$labels/tu[@tuid='lbl-form11e-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-station-code']/tuv[@xml:lang=$lang]" /></th>
				<th><xsl:value-of select="$labels/tu[@tuid='lbl-month']/tuv[@xml:lang=$lang]" /></th>
				<th><xsl:value-of select="$labels/tu[@tuid='lbl-day-of-month']/tuv[@xml:lang=$lang]" /></th>
				<th><xsl:value-of select="$labels/tu[@tuid='lbl-hour']/tuv[@xml:lang=$lang]" /></th>
				<th><xsl:value-of select="$labels/tu[@tuid='lbl-level-ugm3']/tuv[@xml:lang=$lang]" /></th>
				<th><xsl:value-of select="$labels/tu[@tuid='lbl-reason-codes']/tuv[@xml:lang=$lang]" /></th>
			</tr>
		</thead>
		<tbody>
			<xsl:for-each select="form11e-row">
				<tr>
					<td><xsl:value-of select="zone-code"/></td>
					<td><xsl:value-of select="eoi-station-code"/></td>
					<td><xsl:value-of select="month"/></td>
					<td><xsl:value-of select="day-of-month"/></td>
					<td><xsl:value-of select="hour"/></td>
					<td><xsl:value-of select="level"/></td>
					<td><xsl:value-of select="reason-code"/></td>
				</tr>
			</xsl:for-each>
		</tbody>
	</table>
</xsl:template>
<xsl:template match="form11f">
	<h2>
		<xsl:value-of select="$labels/tu[@tuid='lbl-form11f']/tuv[@xml:lang=$lang]" />
		- <xsl:value-of select="$labels/tu[@tuid='lbl-form11f-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-station-code']/tuv[@xml:lang=$lang]" /></th>
				<th><xsl:value-of select="$labels/tu[@tuid='lbl-level-ugm3']/tuv[@xml:lang=$lang]" /></th>
				<th><xsl:value-of select="$labels/tu[@tuid='lbl-reason-codes']/tuv[@xml:lang=$lang]" /></th>
			</tr>
		</thead>
		<tbody>
			<xsl:for-each select="form11f-row">
				<tr>
					<td><xsl:value-of select="zone-code"/></td>
					<td><xsl:value-of select="eoi-station-code"/></td>
					<td><xsl:value-of select="level"/></td>
					<td><xsl:value-of select="reason-code"/></td>
				</tr>
			</xsl:for-each>
		</tbody>
	</table>
</xsl:template>
<xsl:template match="form11g">
	<h2>
		<xsl:value-of select="$labels/tu[@tuid='lbl-form11g']/tuv[@xml:lang=$lang]" />
		- <xsl:value-of select="$labels/tu[@tuid='lbl-form11g-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-station-code']/tuv[@xml:lang=$lang]" /></th>
				<th><xsl:value-of select="$labels/tu[@tuid='lbl-level-ugm3']/tuv[@xml:lang=$lang]" /></th>
				<th><xsl:value-of select="$labels/tu[@tuid='lbl-reason-codes']/tuv[@xml:lang=$lang]" /></th>
			</tr>
		</thead>
		<tbody>
			<xsl:for-each select="form11g-row">
				<tr>
					<td><xsl:value-of select="zone-code"/></td>
					<td><xsl:value-of select="eoi-station-code"/></td>
					<td><xsl:value-of select="level"/></td>
					<td><xsl:value-of select="reason-code"/></td>
				</tr>
			</xsl:for-each>
		</tbody>
	</table>
</xsl:template>
<xsl:template match="form11h">
	<h2>
		<xsl:value-of select="$labels/tu[@tuid='lbl-form11h']/tuv[@xml:lang=$lang]" />
		- <xsl:value-of select="$labels/tu[@tuid='lbl-form11h-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-station-code']/tuv[@xml:lang=$lang]" /></th>
				<th><xsl:value-of select="$labels/tu[@tuid='lbl-month']/tuv[@xml:lang=$lang]" /></th>
				<th><xsl:value-of select="$labels/tu[@tuid='lbl-day-of-month']/tuv[@xml:lang=$lang]" /></th>
				<th><xsl:value-of select="$labels/tu[@tuid='lbl-level-ugm3']/tuv[@xml:lang=$lang]" /></th>
				<th><xsl:value-of select="$labels/tu[@tuid='lbl-reason-codes']/tuv[@xml:lang=$lang]" /></th>
			</tr>
		</thead>
		<tbody>
			<xsl:for-each select="form11h-row">
				<tr>
					<td><xsl:value-of select="zone-code"/></td>
					<td><xsl:value-of select="eoi-station-code"/></td>
					<td><xsl:value-of select="month"/></td>
					<td><xsl:value-of select="day-of-month"/></td>
					<td><xsl:value-of select="level"/></td>
					<td><xsl:value-of select="reason-code"/></td>
				</tr>
			</xsl:for-each>
		</tbody>
	</table>
</xsl:template>
<xsl:template match="form11i">
	<h2>
		<xsl:value-of select="$labels/tu[@tuid='lbl-form11i']/tuv[@xml:lang=$lang]" />
		- <xsl:value-of select="$labels/tu[@tuid='lbl-form11i-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-station-code']/tuv[@xml:lang=$lang]" /></th>
				<th><xsl:value-of select="$labels/tu[@tuid='lbl-level-ugm3']/tuv[@xml:lang=$lang]" /></th>
				<th><xsl:value-of select="$labels/tu[@tuid='lbl-reason-codes']/tuv[@xml:lang=$lang]" /></th>
			</tr>
		</thead>
		<tbody>
			<xsl:for-each select="form11i-row">
				<tr>
					<td><xsl:value-of select="zone-code"/></td>
					<td><xsl:value-of select="eoi-station-code"/></td>
					<td><xsl:value-of select="level"/></td>
					<td><xsl:value-of select="reason-code"/></td>
				</tr>
			</xsl:for-each>
		</tbody>
	</table>
</xsl:template>
<xsl:template match="form11j">
	<h2>
		<xsl:value-of select="$labels/tu[@tuid='lbl-form11j']/tuv[@xml:lang=$lang]" />
		- <xsl:value-of select="$labels/tu[@tuid='lbl-form11j-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-station-code']/tuv[@xml:lang=$lang]" /></th>
				<th><xsl:value-of select="$labels/tu[@tuid='lbl-level-ugm3']/tuv[@xml:lang=$lang]" /></th>
				<th><xsl:value-of select="$labels/tu[@tuid='lbl-reason-codes']/tuv[@xml:lang=$lang]" /></th>
			</tr>
		</thead>
		<tbody>
			<xsl:for-each select="form11j-row">
				<tr>
					<td><xsl:value-of select="zone-code"/></td>
					<td><xsl:value-of select="eoi-station-code"/></td>
					<td><xsl:value-of select="level"/></td>
					<td><xsl:value-of select="reason-code"/></td>
				</tr>
			</xsl:for-each>
		</tbody>
	</table>
</xsl:template>
<xsl:template match="form11k">
	<h2>
		<xsl:value-of select="$labels/tu[@tuid='lbl-form11k']/tuv[@xml:lang=$lang]" />
		- <xsl:value-of select="$labels/tu[@tuid='lbl-form11k-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-station-code']/tuv[@xml:lang=$lang]" /></th>
				<th><xsl:value-of select="$labels/tu[@tuid='lbl-level-ugm3']/tuv[@xml:lang=$lang]" /></th>
				<th><xsl:value-of select="$labels/tu[@tuid='lbl-reason-codes']/tuv[@xml:lang=$lang]" /></th>
				<th><xsl:value-of select="$labels/tu[@tuid='lbl-article-3.2']/tuv[@xml:lang=$lang]" /></th>
			</tr>
		</thead>
		<tbody>
			<xsl:for-each select="form11k-row">
				<tr>
					<td><xsl:value-of select="zone-code"/></td>
					<td><xsl:value-of select="eoi-station-code"/></td>
					<td><xsl:value-of select="level"/></td>
					<td><xsl:value-of select="reason-code"/></td>
					<td><xsl:value-of select="article-3"/></td>
				</tr>
			</xsl:for-each>
		</tbody>
	</table>
</xsl:template>
<xsl:template match="form11l">
	<h2>
		<xsl:value-of select="$labels/tu[@tuid='lbl-form11l']/tuv[@xml:lang=$lang]" />
		- <xsl:value-of select="$labels/tu[@tuid='lbl-form11l-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-station-code']/tuv[@xml:lang=$lang]" /></th>
				<th><xsl:value-of select="$labels/tu[@tuid='lbl-month']/tuv[@xml:lang=$lang]" /></th>
				<th><xsl:value-of select="$labels/tu[@tuid='lbl-day-of-month']/tuv[@xml:lang=$lang]" /></th>
				<th><xsl:value-of select="$labels/tu[@tuid='lbl-level-ugm3']/tuv[@xml:lang=$lang]" /></th>
				<th><xsl:value-of select="$labels/tu[@tuid='lbl-reason-codes']/tuv[@xml:lang=$lang]" /></th>
			</tr>
		</thead>
		<tbody>
			<xsl:for-each select="form11l-row">
				<tr>
					<td><xsl:value-of select="zone-code"/></td>
					<td><xsl:value-of select="eoi-station-code"/></td>
					<td><xsl:value-of select="month"/></td>
					<td><xsl:value-of select="day-of-month"/></td>
					<td><xsl:value-of select="level"/></td>
					<td><xsl:value-of select="reason-code"/></td>
				</tr>
			</xsl:for-each>
		</tbody>
	</table>
</xsl:template>
</xsl:stylesheet>