View stylesheet

XML schemas http://rod.eionet.europa.eu/obligations/137?V200807
Output type XML
Depends on aqq_content.xslt
Description Generates Form 9
XSL file aqq_form09.xslt (Last modified: 22 Oct 2009 11:43 )
<?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="/">
	    <form9 xsi:noNamespaceSchemaLocation="http://air-climate.eionet.europa.eu/schemas/AirQualityQuestionnaire/AirQualityQuestionnaire-form9.xsd"
			xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
			xml:lang="en">
			<form9a>
				<xsl:for-each select="//table:table[@table:name='9a']/table:table-row[position()=4 or (position()&gt;4 and ./table:table-cell/text:p)]">
					<form9a-row>
						<zone-code>
							<xsl:value-of select="table:table-cell[1]/text:p"/>
						</zone-code>
						<thresholds-health>
							<tv>
								<xsl:value-of select="table:table-cell[2]/text:p"/>
							</tv>
							<tv-lto>
								<xsl:value-of select="table:table-cell[3]/text:p"/>
							</tv-lto>
							<lto>
								<xsl:value-of select="table:table-cell[4]/text:p"/>
							</lto>
						</thresholds-health>
						<thresholds-vegetation>
							<tv>
								<xsl:value-of select="table:table-cell[5]/text:p"/>
							</tv>
							<tv-lto>
								<xsl:value-of select="table:table-cell[6]/text:p"/>
							</tv-lto>
							<lto>
								<xsl:value-of select="table:table-cell[7]/text:p"/>
							</lto>
						</thresholds-vegetation>
					</form9a-row>
				</xsl:for-each>
			</form9a>
			<form9b>
				<xsl:for-each select="//table:table[@table:name='9b']/table:table-row[position()=4 or (position()&gt;4 and ./table:table-cell/text:p)]">
					<form9b-row>
						<zone-code>
							<xsl:value-of select="table:table-cell[1]/text:p"/>
						</zone-code>
						<arsenic>
							<gt-tv>
								<xsl:value-of select="table:table-cell[2]/text:p"/>
							</gt-tv>
							<lt-tv>
								<xsl:value-of select="table:table-cell[3]/text:p"/>
							</lt-tv>
						</arsenic>
						<cadmium>
							<gt-tv>
								<xsl:value-of select="table:table-cell[4]/text:p"/>
							</gt-tv>
							<lt-tv>
								<xsl:value-of select="table:table-cell[5]/text:p"/>
							</lt-tv>
						</cadmium>
						<nickel>
							<gt-tv>
								<xsl:value-of select="table:table-cell[6]/text:p"/>
							</gt-tv>
							<lt-tv>
								<xsl:value-of select="table:table-cell[7]/text:p"/>
							</lt-tv>
						</nickel>
						<benzo-a-pyrene>
							<gt-tv>
								<xsl:value-of select="table:table-cell[8]/text:p"/>
							</gt-tv>
							<lt-tv>
								<xsl:value-of select="table:table-cell[9]/text:p"/>
							</lt-tv>
						</benzo-a-pyrene>
					</form9b-row>
				</xsl:for-each>
			</form9b>
			<form9c>
				<xsl:for-each select="//table:table[@table:name='9c']/table:table-row[position()=4 or (position()&gt;4 and ./table:table-cell/text:p)]">
					<form9c-row>
						<zone-code>
							<xsl:value-of select="table:table-cell[1]/text:p"/>
						</zone-code>
						<target-value>
							<gt-tv>
								<xsl:value-of select="table:table-cell[2]/text:p"/>
							</gt-tv>
							<lt-tv>
								<xsl:value-of select="table:table-cell[3]/text:p"/>
							</lt-tv>
						</target-value>
					</form9c-row>
				</xsl:for-each>
			</form9c>
			<form-comments/>
		</form9>
		</xsl:template>
</xsl:stylesheet>