View stylesheet

XML schemas http://rod.eionet.europa.eu/obligations/137?V200807
Output type XML
Depends on aqq_content.xslt
Description Generates Form 19
XSL file aqq_form19.xslt (Last modified: 28 Oct 2009 11:37 )
<?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="/">
	    <form19 xsi:noNamespaceSchemaLocation="http://air-climate.eionet.europa.eu/schemas/AirQualityQuestionnaire/AirQualityQuestionnaire-form19.xsd"
					xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xml:lang="en">
			<form19a>
				<xsl:for-each select="//table:table[@table:name='19a']/table:table-row[position()=6 or (position()&gt;6 and ./table:table-cell/text:p)]">
					<form19a-row>
						<zone-code><xsl:value-of select="table:table-cell[1]/text:p"/></zone-code>
						<above-lv-heal-1hr>
							<area>
								<km2><xsl:value-of select="table:table-cell[2]/text:p"/></km2>
								<method><xsl:value-of select="table:table-cell[3]/text:p"/></method>
							</area>
							<population-exposed>
								<number><xsl:value-of select="table:table-cell[4]/text:p"/></number>
								<method><xsl:value-of select="table:table-cell[5]/text:p"/></method>
							</population-exposed>
						</above-lv-heal-1hr>
						<above-lv-heal-24hr>
							<area>
								<km2><xsl:value-of select="table:table-cell[6]/text:p"/></km2>
								<method><xsl:value-of select="table:table-cell[7]/text:p"/></method>
							</area>
							<population-exposed>
								<number><xsl:value-of select="table:table-cell[8]/text:p"/></number>
								<method><xsl:value-of select="table:table-cell[9]/text:p"/></method>
							</population-exposed>
						</above-lv-heal-24hr>
						<above-lv-eco-y>
							<area>
								<km2><xsl:value-of select="table:table-cell[10]/text:p"/></km2>
								<method><xsl:value-of select="table:table-cell[11]/text:p"/></method>
							</area>
							<eco-area-exposed>
								<km2><xsl:value-of select="table:table-cell[12]/text:p"/></km2>
								<method><xsl:value-of select="table:table-cell[13]/text:p"/></method>
							</eco-area-exposed>
						</above-lv-eco-y>
						<above-lv-eco-w>
							<area>
								<km2><xsl:value-of select="table:table-cell[14]/text:p"/></km2>
								<method><xsl:value-of select="table:table-cell[15]/text:p"/></method>
							</area>
							<eco-area-exposed>
								<km2><xsl:value-of select="table:table-cell[16]/text:p"/></km2>
								<method><xsl:value-of select="table:table-cell[17]/text:p"/></method>
							</eco-area-exposed>
						</above-lv-eco-w>
					</form19a-row>
				</xsl:for-each>
			</form19a>
			<form19b>
				<xsl:for-each select="//table:table[@table:name='19b']/table:table-row[position()=6 or (position()&gt;6 and ./table:table-cell/text:p)]">
					<form19b-row>
						<zone-code><xsl:value-of select="table:table-cell[1]/text:p"/></zone-code>
						<lv-health-1hr>
							<area>
								<km2><xsl:value-of select="table:table-cell[2]/text:p"/></km2>
								<method><xsl:value-of select="table:table-cell[3]/text:p"/></method>
							</area>
							<road-length>
								<km><xsl:value-of select="table:table-cell[4]/text:p"/></km>
								<method><xsl:value-of select="table:table-cell[5]/text:p"/></method>
							</road-length>
							<population-exposed>
								<number><xsl:value-of select="table:table-cell[6]/text:p"/></number>
								<method><xsl:value-of select="table:table-cell[7]/text:p"/></method>
							</population-exposed>
						</lv-health-1hr>
						<lv-health-y>
							<area>
								<km2><xsl:value-of select="table:table-cell[8]/text:p"/></km2>
								<method><xsl:value-of select="table:table-cell[9]/text:p"/></method>
							</area>
							<road-length>
								<km><xsl:value-of select="table:table-cell[10]/text:p"/></km>
								<method><xsl:value-of select="table:table-cell[11]/text:p"/></method>
							</road-length>
							<population-exposed>
								<number><xsl:value-of select="table:table-cell[12]/text:p"/></number>
								<method><xsl:value-of select="table:table-cell[13]/text:p"/></method>
							</population-exposed>
						</lv-health-y>
						<lv-health-veg>
							<area>
								<km2><xsl:value-of select="table:table-cell[14]/text:p"/></km2>
								<method><xsl:value-of select="table:table-cell[15]/text:p"/></method>
							</area>
							<veg-area-exposed>
								<km2><xsl:value-of select="table:table-cell[16]/text:p"/></km2>
								<method><xsl:value-of select="table:table-cell[17]/text:p"/></method>
							</veg-area-exposed>
						</lv-health-veg>
					</form19b-row>
				</xsl:for-each>
			</form19b>
			<form19c>
				<form19c1>
					<xsl:for-each select="//table:table[@table:name='19c1']/table:table-row[position()=6 or (position()&gt;6 and ./table:table-cell/text:p)]">
						<form19c1-row>
							<zone-code><xsl:value-of select="table:table-cell[1]/text:p"/></zone-code>
							<lv-health-24hr>
								<area>
									<km2><xsl:value-of select="table:table-cell[2]/text:p"/></km2>
									<method><xsl:value-of select="table:table-cell[3]/text:p"/></method>
								</area>
								<road-length>
									<km><xsl:value-of select="table:table-cell[4]/text:p"/></km>
									<method><xsl:value-of select="table:table-cell[5]/text:p"/></method>
								</road-length>
								<population-exposed>
									<number><xsl:value-of select="table:table-cell[6]/text:p"/></number>
									<method><xsl:value-of select="table:table-cell[7]/text:p"/></method>
								</population-exposed>
							</lv-health-24hr>
							<lv-health-y>
								<area>
									<km2><xsl:value-of select="table:table-cell[8]/text:p"/></km2>
									<method><xsl:value-of select="table:table-cell[9]/text:p"/></method>
								</area>
								<road-length>
									<km><xsl:value-of select="table:table-cell[10]/text:p"/></km>
									<method><xsl:value-of select="table:table-cell[11]/text:p"/></method>
								</road-length>
								<population-exposed>
									<number><xsl:value-of select="table:table-cell[12]/text:p"/></number>
									<method><xsl:value-of select="table:table-cell[13]/text:p"/></method>
								</population-exposed>
							</lv-health-y>
						</form19c1-row>
					</xsl:for-each>
				</form19c1>
				<form19c2>
					<xsl:for-each select="//table:table[@table:name='19c2']/table:table-row[position()=6 or (position()&gt;6 and ./table:table-cell/text:p)]">
						<form19c2-row>
							<zone-code><xsl:value-of select="table:table-cell[1]/text:p"/></zone-code>
							<lv-health-24hr>
								<area>
									<km2><xsl:value-of select="table:table-cell[2]/text:p"/></km2>
									<method><xsl:value-of select="table:table-cell[3]/text:p"/></method>
								</area>
								<road-length>
									<km><xsl:value-of select="table:table-cell[4]/text:p"/></km>
									<method><xsl:value-of select="table:table-cell[5]/text:p"/></method>
								</road-length>
								<population-exposed>
									<number><xsl:value-of select="table:table-cell[6]/text:p"/></number>
									<method><xsl:value-of select="table:table-cell[7]/text:p"/></method>
								</population-exposed>
							</lv-health-24hr>
							<lv-health-y>
								<area>
									<km2><xsl:value-of select="table:table-cell[8]/text:p"/></km2>
									<method><xsl:value-of select="table:table-cell[9]/text:p"/></method>
								</area>
								<road-length>
									<km><xsl:value-of select="table:table-cell[10]/text:p"/></km>
									<method><xsl:value-of select="table:table-cell[11]/text:p"/></method>
								</road-length>
								<population-exposed>
									<number><xsl:value-of select="table:table-cell[12]/text:p"/></number>
									<method><xsl:value-of select="table:table-cell[13]/text:p"/></method>
								</population-exposed>
							</lv-health-y>
						</form19c2-row>
					</xsl:for-each>
				</form19c2>
			</form19c>
			<form19d>
				<xsl:for-each select="//table:table[@table:name='19d']/table:table-row[position()=6 or (position()&gt;6 and ./table:table-cell/text:p)]">
					<form19d-row>
						<zone-code><xsl:value-of select="table:table-cell[1]/text:p"/></zone-code>
						<above-lv>
							<area>
								<km2><xsl:value-of select="table:table-cell[2]/text:p"/></km2>
								<method><xsl:value-of select="table:table-cell[3]/text:p"/></method>
							</area>
							<road-length>
								<km><xsl:value-of select="table:table-cell[4]/text:p"/></km>
								<method><xsl:value-of select="table:table-cell[5]/text:p"/></method>
							</road-length>
							<population-exposed>
								<number><xsl:value-of select="table:table-cell[6]/text:p"/></number>
								<method><xsl:value-of select="table:table-cell[7]/text:p"/></method>
							</population-exposed>
						</above-lv>
					</form19d-row>
				</xsl:for-each>
			</form19d>
			<form19e>
				<xsl:for-each select="//table:table[@table:name='19e']/table:table-row[position()=6 or (position()&gt;6 and ./table:table-cell/text:p)]">
					<form19e-row>
						<zone-code><xsl:value-of select="table:table-cell[1]/text:p"/></zone-code>
						<above-lv>
							<area>
								<km2><xsl:value-of select="table:table-cell[2]/text:p"/></km2>
								<method><xsl:value-of select="table:table-cell[3]/text:p"/></method>
							</area>
							<road-length>
								<km><xsl:value-of select="table:table-cell[4]/text:p"/></km>
								<method><xsl:value-of select="table:table-cell[5]/text:p"/></method>
							</road-length>
							<population-exposed>
								<number><xsl:value-of select="table:table-cell[6]/text:p"/></number>
								<method><xsl:value-of select="table:table-cell[7]/text:p"/></method>
							</population-exposed>
						</above-lv>
					</form19e-row>
				</xsl:for-each>
			</form19e>
			<form19f>
				<xsl:for-each select="//table:table[@table:name='19f']/table:table-row[position()=6 or (position()&gt;6 and ./table:table-cell/text:p)]">
					<form19f-row>
						<zone-code><xsl:value-of select="table:table-cell[1]/text:p"/></zone-code>
						<above-lv>
							<area>
								<km2><xsl:value-of select="table:table-cell[2]/text:p"/></km2>
								<method><xsl:value-of select="table:table-cell[3]/text:p"/></method>
							</area>
							<road-length>
								<km><xsl:value-of select="table:table-cell[4]/text:p"/></km>
								<method><xsl:value-of select="table:table-cell[5]/text:p"/></method>
							</road-length>
							<population-exposed>
								<number><xsl:value-of select="table:table-cell[6]/text:p"/></number>
								<method><xsl:value-of select="table:table-cell[7]/text:p"/></method>
							</population-exposed>
						</above-lv>
					</form19f-row>
				</xsl:for-each>
			</form19f>
			<form19g>
				<xsl:for-each select="//table:table[@table:name='19g']/table:table-row[position()=6 or (position()&gt;6 and ./table:table-cell/text:p)]">
					<form19g-row>
						<zone-code><xsl:value-of select="table:table-cell[1]/text:p"/></zone-code>
						<tv-above-health>
							<area>
								<km2><xsl:value-of select="table:table-cell[2]/text:p"/></km2>
								<method><xsl:value-of select="table:table-cell[3]/text:p"/></method>
							</area>
							<population-exposed>
								<number><xsl:value-of select="table:table-cell[4]/text:p"/></number>
								<method><xsl:value-of select="table:table-cell[5]/text:p"/></method>
							</population-exposed>
						</tv-above-health>
						<lto-above-health>
							<area>
								<km2><xsl:value-of select="table:table-cell[6]/text:p"/></km2>
								<method><xsl:value-of select="table:table-cell[7]/text:p"/></method>
							</area>
							<population-exposed>
								<number><xsl:value-of select="table:table-cell[8]/text:p"/></number>
								<method><xsl:value-of select="table:table-cell[9]/text:p"/></method>
							</population-exposed>
						</lto-above-health>
						<tv-above-eco>
							<area>
								<km2><xsl:value-of select="table:table-cell[10]/text:p"/></km2>
								<method><xsl:value-of select="table:table-cell[12]/text:p"/></method>
							</area>
							<eco-area-exposed>
								<km2><xsl:value-of select="table:table-cell[12]/text:p"/></km2>
								<method><xsl:value-of select="table:table-cell[13]/text:p"/></method>
							</eco-area-exposed>
						</tv-above-eco>
						<lto-above-eco>
							<area>
								<km2><xsl:value-of select="table:table-cell[14]/text:p"/></km2>
								<method><xsl:value-of select="table:table-cell[15]/text:p"/></method>
							</area>
							<eco-area-exposed>
								<km2><xsl:value-of select="table:table-cell[16]/text:p"/></km2>
								<method><xsl:value-of select="table:table-cell[17]/text:p"/></method>
							</eco-area-exposed>
						</lto-above-eco>
					</form19g-row>
				</xsl:for-each>
			</form19g>
			<form19h>
				<xsl:for-each select="//table:table[@table:name='19h']/table:table-row[position()=6 or (position()&gt;6 and ./table:table-cell/text:p)]">
					<form19h-row>
						<zone-code><xsl:value-of select="table:table-cell[1]/text:p"/></zone-code>
						<tv-above-health>
							<area>
								<km2><xsl:value-of select="table:table-cell[2]/text:p"/></km2>
								<method><xsl:value-of select="table:table-cell[3]/text:p"/></method>
							</area>
							<population-exposed>
								<number><xsl:value-of select="table:table-cell[4]/text:p"/></number>
								<method><xsl:value-of select="table:table-cell[5]/text:p"/></method>
							</population-exposed>
						</tv-above-health>
					</form19h-row>
				</xsl:for-each>
			</form19h>			
			<form19i>
				<xsl:for-each select="//table:table[@table:name='19i']/table:table-row[position()=6 or (position()&gt;6 and ./table:table-cell/text:p)]">
					<form19i-row>
						<zone-code><xsl:value-of select="table:table-cell[1]/text:p"/></zone-code>
						<tv-above-health>
							<area>
								<km2><xsl:value-of select="table:table-cell[2]/text:p"/></km2>
								<method><xsl:value-of select="table:table-cell[3]/text:p"/></method>
							</area>
							<population-exposed>
								<number><xsl:value-of select="table:table-cell[4]/text:p"/></number>
								<method><xsl:value-of select="table:table-cell[5]/text:p"/></method>
							</population-exposed>
						</tv-above-health>
					</form19i-row>
				</xsl:for-each>
			</form19i>			
			<form19j>
				<xsl:for-each select="//table:table[@table:name='19j']/table:table-row[position()=6 or (position()&gt;6 and ./table:table-cell/text:p)]">
					<form19j-row>
						<zone-code><xsl:value-of select="table:table-cell[1]/text:p"/></zone-code>
						<tv-above-health>
							<area>
								<km2><xsl:value-of select="table:table-cell[2]/text:p"/></km2>
								<method><xsl:value-of select="table:table-cell[3]/text:p"/></method>
							</area>
							<population-exposed>
								<number><xsl:value-of select="table:table-cell[4]/text:p"/></number>
								<method><xsl:value-of select="table:table-cell[5]/text:p"/></method>
							</population-exposed>
						</tv-above-health>
					</form19j-row>
				</xsl:for-each>
			</form19j>			
			<form19k>
				<xsl:for-each select="//table:table[@table:name='19k']/table:table-row[position()=6 or (position()&gt;6 and ./table:table-cell/text:p)]">
					<form19k-row>
						<zone-code><xsl:value-of select="table:table-cell[1]/text:p"/></zone-code>
						<tv-above-health>
							<area>
								<km2><xsl:value-of select="table:table-cell[2]/text:p"/></km2>
								<method><xsl:value-of select="table:table-cell[3]/text:p"/></method>
							</area>
							<population-exposed>
								<number><xsl:value-of select="table:table-cell[4]/text:p"/></number>
								<method><xsl:value-of select="table:table-cell[5]/text:p"/></method>
							</population-exposed>
						</tv-above-health>
					</form19k-row>
				</xsl:for-each>
			</form19k>
			<form19l>
				<xsl:for-each select="//table:table[@table:name='19l']/table:table-row[position()=6 or (position()&gt;6 and ./table:table-cell/text:p)]">
					<form19l-row>
						<zone-code><xsl:value-of select="table:table-cell[1]/text:p"/></zone-code>
						<tv-above>
							<area>
								<km2><xsl:value-of select="table:table-cell[2]/text:p"/></km2>
								<method><xsl:value-of select="table:table-cell[3]/text:p"/></method>
							</area>
							<road-length>
								<km><xsl:value-of select="table:table-cell[4]/text:p"/></km>
								<method><xsl:value-of select="table:table-cell[5]/text:p"/></method>
							</road-length>
							<population-exposed>
								<number><xsl:value-of select="table:table-cell[6]/text:p"/></number>
								<method><xsl:value-of select="table:table-cell[7]/text:p"/></method>
							</population-exposed>
						</tv-above>
					</form19l-row>
				</xsl:for-each>
			</form19l>
			<form-comments/>
		</form19>
		</xsl:template>

</xsl:stylesheet>