View stylesheet

XML schemas http://rod.eionet.europa.eu/obligations/137?V200807
Output type XML
Depends on aqq_content.xslt
Description Generates Form 15
XSL file aqq_form15.xslt (Last modified: 10 Sep 2009 12:23 )
<?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="/">
	    <form15 xsi:noNamespaceSchemaLocation="http://air-climate.eionet.europa.eu/schemas/AirQualityQuestionnaire/AirQualityQuestionnaire-form15.xsd"
			xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
			xml:lang="en">
			<form15a>
				<xsl:for-each select="//table:table[@table:name='15a']/table:table-row[position()=4 or (position()&gt;4 and ./table:table-cell/text:p)]">
					<form15a-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>
						<aot40-veg-protection>
							<value>
								<xsl:value-of select="table:table-cell[3]/text:p"/>
							</value>
							<valid-data-number>
								<xsl:value-of select="table:table-cell[4]/text:p"/>
							</valid-data-number>
						</aot40-veg-protection>
						<aot40-forest-protection>
							<value>
								<xsl:value-of select="table:table-cell[5]/text:p"/>
							</value>
							<valid-data-number>
								<xsl:value-of select="table:table-cell[6]/text:p"/>
							</valid-data-number>
						</aot40-forest-protection>
						<annual-average>
							<xsl:value-of select="table:table-cell[7]/text:p"/>
						</annual-average>
					</form15a-row>
				</xsl:for-each>
			</form15a>
			<form15b>
				<xsl:for-each select="//table:table[@table:name='15b']/table:table-row[position()=4 or (position()&gt;4 and ./table:table-cell/text:p)]">
					<form15b-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>
						<arsenic>
							<concentration>
								<xsl:value-of select="table:table-cell[3]/text:p"/>
							</concentration>
						</arsenic>
						<cadmium>
							<concentration>
								<xsl:value-of select="table:table-cell[4]/text:p"/>
							</concentration>
						</cadmium>
						<nickel>
							<concentration>
								<xsl:value-of select="table:table-cell[5]/text:p"/>
							</concentration>
						</nickel>
						<benzo-a-pyrene>
							<concentration>
								<xsl:value-of select="table:table-cell[6]/text:p"/>
							</concentration>
						</benzo-a-pyrene>
					</form15b-row>
				</xsl:for-each>
			</form15b>
			<form-comments/>
		</form15>
		</xsl:template>
</xsl:stylesheet>