View stylesheet

XML schemas http://rod.eionet.europa.eu/obligations/137?V200807
Output type XML
Depends on aqq_content.xslt
Description Generates Form 11
XSL file aqq_form11.xslt (Last modified: 10 Sep 2009 12:22 )
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0"
	xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0"
	xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0">
	
	<xsl:output method="xml" indent="yes"/>

	<xsl:template match="/">
	    <form11 xsi:noNamespaceSchemaLocation="http://air-climate.eionet.europa.eu/schemas/AirQualityQuestionnaire/AirQualityQuestionnaire-form11.xsd"
			xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
			xml:lang="en">
			<form11a>
				<xsl:for-each select="//table:table[@table:name='11a']/table:table-row[position()=4 or (position()&gt;4 and ./table:table-cell/text:p)]">
					<form11a-row>
						<zone-code>
							<xsl:value-of select="table:table-cell[1]/text:p"/>
						</zone-code>
						<eoi-station-code>
							<xsl:value-of select="table:table-cell[2]/text:p"/>
						</eoi-station-code>
						<month>
							<xsl:value-of select="table:table-cell[3]/text:p"/>
						</month>
						<day-of-month>
							<xsl:value-of select="table:table-cell[4]/text:p"/>
						</day-of-month>
						<hour>
							<xsl:value-of select="table:table-cell[5]/text:p"/>
						</hour>
						<level>
							<xsl:value-of select="table:table-cell[6]/text:p"/>
						</level>
						<reason-code>
							<xsl:value-of select="table:table-cell[7]/text:p"/>
						</reason-code>
					</form11a-row>
				</xsl:for-each>
			</form11a>
			<form11b>
				<xsl:for-each select="//table:table[@table:name='11b']/table:table-row[position()=4 or (position()&gt;4 and ./table:table-cell/text:p)]">
					<form11b-row>
						<zone-code>
							<xsl:value-of select="table:table-cell[1]/text:p"/>
						</zone-code>
						<eoi-station-code>
							<xsl:value-of select="table:table-cell[2]/text:p"/>
						</eoi-station-code>
						<month>
							<xsl:value-of select="table:table-cell[3]/text:p"/>
						</month>
						<day-of-month>
							<xsl:value-of select="table:table-cell[4]/text:p"/>
						</day-of-month>
						<level>
							<xsl:value-of select="table:table-cell[5]/text:p"/>
						</level>
						<reason-code>
							<xsl:value-of select="table:table-cell[6]/text:p"/>
						</reason-code>
					</form11b-row>
				</xsl:for-each>
			</form11b>
			<form11c>
				<xsl:for-each select="//table:table[@table:name='11c']/table:table-row[position()=4 or (position()&gt;4 and ./table:table-cell/text:p)]">
					<form11c-row>
						<zone-code>
							<xsl:value-of select="table:table-cell[1]/text:p"/>
						</zone-code>
						<eoi-station-code>
							<xsl:value-of select="table:table-cell[2]/text:p"/>
						</eoi-station-code>
						<level>
							<xsl:value-of select="table:table-cell[3]/text:p"/>
						</level>
						<reason-code>
							<xsl:value-of select="table:table-cell[4]/text:p"/>
						</reason-code>
					</form11c-row>
				</xsl:for-each>
			</form11c>
			<form11d>
				<xsl:for-each select="//table:table[@table:name='11d']/table:table-row[position()=4 or (position()&gt;4 and ./table:table-cell/text:p)]">
					<form11d-row>
						<zone-code>
							<xsl:value-of select="table:table-cell[1]/text:p"/>
						</zone-code>
						<eoi-station-code>
							<xsl:value-of select="table:table-cell[2]/text:p"/>
						</eoi-station-code>
						<level>
							<xsl:value-of select="table:table-cell[3]/text:p"/>
						</level>
						<reason-code>
							<xsl:value-of select="table:table-cell[4]/text:p"/>
						</reason-code>
					</form11d-row>
				</xsl:for-each>
			</form11d>
			<form11e>
				<xsl:for-each select="//table:table[@table:name='11e']/table:table-row[position()=4 or (position()&gt;4 and ./table:table-cell/text:p)]">
					<form11e-row>
						<zone-code>
							<xsl:value-of select="table:table-cell[1]/text:p"/>
						</zone-code>
						<eoi-station-code>
							<xsl:value-of select="table:table-cell[2]/text:p"/>
						</eoi-station-code>
						<month>
							<xsl:value-of select="table:table-cell[3]/text:p"/>
						</month>
						<day-of-month>
							<xsl:value-of select="table:table-cell[4]/text:p"/>
						</day-of-month>
						<hour>
							<xsl:value-of select="table:table-cell[5]/text:p"/>
						</hour>
						<level>
							<xsl:value-of select="table:table-cell[6]/text:p"/>
						</level>
						<reason-code>
							<xsl:value-of select="table:table-cell[7]/text:p"/>
						</reason-code>
					</form11e-row>
				</xsl:for-each>
			</form11e>
			<form11f>
				<xsl:for-each select="//table:table[@table:name='11f']/table:table-row[position()=4 or (position()&gt;4 and ./table:table-cell/text:p)]">
					<form11f-row>
						<zone-code>
							<xsl:value-of select="table:table-cell[1]/text:p"/>
						</zone-code>
						<eoi-station-code>
							<xsl:value-of select="table:table-cell[2]/text:p"/>
						</eoi-station-code>
						<level>
							<xsl:value-of select="table:table-cell[3]/text:p"/>
						</level>
						<reason-code>
							<xsl:value-of select="table:table-cell[4]/text:p"/>
						</reason-code>
					</form11f-row>
				</xsl:for-each>
			</form11f>
			<form11g>
				<xsl:for-each select="//table:table[@table:name='11g']/table:table-row[position()=4 or (position()&gt;4 and ./table:table-cell/text:p)]">
					<form11g-row>
						<zone-code>
							<xsl:value-of select="table:table-cell[1]/text:p"/>
						</zone-code>
						<eoi-station-code>
							<xsl:value-of select="table:table-cell[2]/text:p"/>
						</eoi-station-code>
						<level>
							<xsl:value-of select="table:table-cell[3]/text:p"/>
						</level>
						<reason-code>
							<xsl:value-of select="table:table-cell[4]/text:p"/>
						</reason-code>
					</form11g-row>
				</xsl:for-each>
			</form11g>
			<form11h>
				<xsl:for-each select="//table:table[@table:name='11h']/table:table-row[position()=4 or (position()&gt;4 and ./table:table-cell/text:p)]">
					<form11h-row>
						<zone-code>
							<xsl:value-of select="table:table-cell[1]/text:p"/>
						</zone-code>
						<eoi-station-code>
							<xsl:value-of select="table:table-cell[2]/text:p"/>
						</eoi-station-code>
						<month>
							<xsl:value-of select="table:table-cell[3]/text:p"/>
						</month>
						<day-of-month>
							<xsl:value-of select="table:table-cell[4]/text:p"/>
						</day-of-month>
						<level>
							<xsl:value-of select="table:table-cell[5]/text:p"/>
						</level>
						<reason-code>
							<xsl:value-of select="table:table-cell[6]/text:p"/>
						</reason-code>
					</form11h-row>
				</xsl:for-each>
			</form11h>
			<form11i>
				<xsl:for-each select="//table:table[@table:name='11i']/table:table-row[position()=4 or (position()&gt;4 and ./table:table-cell/text:p)]">
					<form11i-row>
						<zone-code>
							<xsl:value-of select="table:table-cell[1]/text:p"/>
						</zone-code>
						<eoi-station-code>
							<xsl:value-of select="table:table-cell[2]/text:p"/>
						</eoi-station-code>
						<level>
							<xsl:value-of select="table:table-cell[3]/text:p"/>
						</level>
						<reason-code>
							<xsl:value-of select="table:table-cell[4]/text:p"/>
						</reason-code>
					</form11i-row>
				</xsl:for-each>
			</form11i>
			<form11j>
				<xsl:for-each select="//table:table[@table:name='11j']/table:table-row[position()=4 or (position()&gt;4 and ./table:table-cell/text:p)]">
					<form11j-row>
						<zone-code>
							<xsl:value-of select="table:table-cell[1]/text:p"/>
						</zone-code>
						<eoi-station-code>
							<xsl:value-of select="table:table-cell[2]/text:p"/>
						</eoi-station-code>
						<level>
							<xsl:value-of select="table:table-cell[3]/text:p"/>
						</level>
						<reason-code>
							<xsl:value-of select="table:table-cell[4]/text:p"/>
						</reason-code>
					</form11j-row>
				</xsl:for-each>
			</form11j>
			<form11k>
				<xsl:for-each select="//table:table[@table:name='11k']/table:table-row[position()=4 or (position()&gt;4 and ./table:table-cell/text:p)]">
					<form11k-row>
						<zone-code>
							<xsl:value-of select="table:table-cell[1]/text:p"/>
						</zone-code>
						<eoi-station-code>
							<xsl:value-of select="table:table-cell[2]/text:p"/>
						</eoi-station-code>
						<level>
							<xsl:value-of select="table:table-cell[3]/text:p"/>
						</level>
						<reason-code>
							<xsl:value-of select="table:table-cell[4]/text:p"/>
						</reason-code>
						<article-3>
							<xsl:value-of select="table:table-cell[5]/text:p"/>
						</article-3>
					</form11k-row>
				</xsl:for-each>
			</form11k>
			<form11l>
				<xsl:for-each select="//table:table[@table:name='11l']/table:table-row[position()=4 or (position()&gt;4 and ./table:table-cell/text:p)]">
					<form11l-row>
						<zone-code>
							<xsl:value-of select="table:table-cell[1]/text:p"/>
						</zone-code>
						<eoi-station-code>
							<xsl:value-of select="table:table-cell[2]/text:p"/>
						</eoi-station-code>
						<month>
							<xsl:value-of select="table:table-cell[3]/text:p"/>
						</month>
						<day-of-month>
							<xsl:value-of select="table:table-cell[4]/text:p"/>
						</day-of-month>
						<level>
							<xsl:value-of select="table:table-cell[5]/text:p"/>
						</level>
						<reason-code>
							<xsl:value-of select="table:table-cell[6]/text:p"/>
						</reason-code>
					</form11l-row>
				</xsl:for-each>
			</form11l>
			<form-comments/>
		</form11>
		</xsl:template>
</xsl:stylesheet>