View stylesheet

XML schemas http://rod.eionet.europa.eu/obligations/137?V200807
Output type XML
Depends on aqq_content.xslt
Description Generates Form 10
XSL file aqq_form10.xslt (Last modified: 10 Sep 2009 12:52 )
<?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="/">
	    <form10 xsi:noNamespaceSchemaLocation="http://air-climate.eionet.europa.eu/schemas/AirQualityQuestionnaire/AirQualityQuestionnaire-form10.xsd"
			xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
			xml:lang="en">
			<form10a>
				<xsl:for-each select="//table:table[@table:name='10a']/table:table-row[position()=5 or (position()&gt;5 and ./table:table-cell/text:p)]">
					<form10a-row>
						<zone-code>
							<xsl:value-of select="table:table-cell[1]/text:p"/>
						</zone-code>
						<uat-lat-24>
							<uat>
							<xsl:value-of select="table:table-cell[2]/text:p"/>
							</uat>
							<uat-lat>
							<xsl:value-of select="table:table-cell[3]/text:p"/>
							</uat-lat>
							<lat>
							<xsl:value-of select="table:table-cell[4]/text:p"/>
							</lat>
						</uat-lat-24>
						<uat-lat-w>
							<uat>
							<xsl:value-of select="table:table-cell[5]/text:p"/>
							</uat>
							<uat-lat>
							<xsl:value-of select="table:table-cell[6]/text:p"/>
							</uat-lat>
							<lat>
							<xsl:value-of select="table:table-cell[7]/text:p"/>
							</lat>
						</uat-lat-w>
						<sa>
							<xsl:if test="table:table-cell[8]/text:p = 'y'">
								<xsl:text>true</xsl:text>
							</xsl:if>
							<xsl:if test="table:table-cell[8]/text:p != 'y'">
								<xsl:text>false</xsl:text>
							</xsl:if>
						</sa>
					</form10a-row>
				</xsl:for-each>
			</form10a>
			<form10b>
				<xsl:for-each select="//table:table[@table:name='10b']/table:table-row[position()=5 or (position()&gt;5 and ./table:table-cell/text:p)]">
					<form10b-row>
						<zone-code>
							<xsl:value-of select="table:table-cell[1]/text:p"/>
						</zone-code>
					<uat-lat-1hr>
						<uat>
							<xsl:value-of select="table:table-cell[2]/text:p"/>
						</uat>
						<uat-lat>
							<xsl:value-of select="table:table-cell[3]/text:p"/>
						</uat-lat>
						<lat>
							<xsl:value-of select="table:table-cell[4]/text:p"/>
						</lat>
					</uat-lat-1hr>
					<uat-lat-y>
						<uat>
							<xsl:value-of select="table:table-cell[5]/text:p"/>
						</uat>
						<uat-lat>
							<xsl:value-of select="table:table-cell[6]/text:p"/>
						</uat-lat>
						<lat>
							<xsl:value-of select="table:table-cell[7]/text:p"/>
						</lat>
					</uat-lat-y>
					<uat-lat-veg>
						<uat>
							<xsl:value-of select="table:table-cell[8]/text:p"/>
						</uat>
						<uat-lat>
							<xsl:value-of select="table:table-cell[9]/text:p"/>
						</uat-lat>
						<lat>
							<xsl:value-of select="table:table-cell[10]/text:p"/>
						</lat>
					</uat-lat-veg>
					<sa>
						<xsl:if test="table:table-cell[11]/text:p = 'y'">
							<xsl:text>true</xsl:text>
						</xsl:if>
						<xsl:if test="table:table-cell[11]/text:p != 'y'">
							<xsl:text>false</xsl:text>
						</xsl:if>
					</sa>
					</form10b-row>
				</xsl:for-each>
			</form10b>
			<form10c>
				<xsl:for-each select="//table:table[@table:name='10c']/table:table-row[position()=5 or (position()&gt;5 and ./table:table-cell/text:p)]">
					<form10c-row>
						<zone-code>
							<xsl:value-of select="table:table-cell[1]/text:p"/>
						</zone-code>
						<uat-lat-24>
							<uat>
							<xsl:value-of select="table:table-cell[2]/text:p"/>
							</uat>
							<uat-lat>
							<xsl:value-of select="table:table-cell[3]/text:p"/>
							</uat-lat>
							<lat>
							<xsl:value-of select="table:table-cell[4]/text:p"/>
							</lat>
						</uat-lat-24>
						<uat-lat-y>
							<uat>
							<xsl:value-of select="table:table-cell[5]/text:p"/>
							</uat>
							<uat-lat>
							<xsl:value-of select="table:table-cell[6]/text:p"/>
							</uat-lat>
							<lat>
							<xsl:value-of select="table:table-cell[7]/text:p"/>
							</lat>
						</uat-lat-y>
						<sa>
							<xsl:if test="table:table-cell[8]/text:p = 'y'">
								<xsl:text>true</xsl:text>
							</xsl:if>
							<xsl:if test="table:table-cell[8]/text:p != 'y'">
								<xsl:text>false</xsl:text>
							</xsl:if>
						</sa>
					</form10c-row>
				</xsl:for-each>
			</form10c>
			<form10d>
				<xsl:for-each select="//table:table[@table:name='10d']/table:table-row[position()=5 or (position()&gt;5 and ./table:table-cell/text:p)]">
					<form10d-row>
						<zone-code>
							<xsl:value-of select="table:table-cell[1]/text:p"/>
						</zone-code>
						<uat-and-lat>
							<uat>
							<xsl:value-of select="table:table-cell[2]/text:p"/>
							</uat>
							<uat-lat>
							<xsl:value-of select="table:table-cell[3]/text:p"/>
							</uat-lat>
							<lat>
							<xsl:value-of select="table:table-cell[4]/text:p"/>
							</lat>
						</uat-and-lat>
						<sa>
							<xsl:if test="table:table-cell[5]/text:p = 'y'">
								<xsl:text>true</xsl:text>
							</xsl:if>
							<xsl:if test="table:table-cell[5]/text:p != 'y'">
								<xsl:text>false</xsl:text>
							</xsl:if>
						</sa>
					</form10d-row>
				</xsl:for-each>
			</form10d>
			<form10e>
				<xsl:for-each select="//table:table[@table:name='10e']/table:table-row[position()=5 or (position()&gt;5 and ./table:table-cell/text:p)]">
					<form10e-row>
						<zone-code>
							<xsl:value-of select="table:table-cell[1]/text:p"/>
						</zone-code>
						<uat-and-lat>
							<uat>
							<xsl:value-of select="table:table-cell[2]/text:p"/>
							</uat>
							<uat-lat>
							<xsl:value-of select="table:table-cell[3]/text:p"/>
							</uat-lat>
							<lat>
							<xsl:value-of select="table:table-cell[4]/text:p"/>
							</lat>
						</uat-and-lat>
						<sa>
							<xsl:if test="table:table-cell[5]/text:p = 'y'">
								<xsl:text>true</xsl:text>
							</xsl:if>
							<xsl:if test="table:table-cell[5]/text:p != 'y'">
								<xsl:text>false</xsl:text>
							</xsl:if>
						</sa>
					</form10e-row>
				</xsl:for-each>
			</form10e>
			<form10f>
				<xsl:for-each select="//table:table[@table:name='10f']/table:table-row[position()=5 or (position()&gt;5 and ./table:table-cell/text:p)]">
					<form10f-row>
						<zone-code>
							<xsl:value-of select="table:table-cell[1]/text:p"/>
						</zone-code>
						<uat-and-lat>
							<uat>
							<xsl:value-of select="table:table-cell[2]/text:p"/>
							</uat>
							<uat-lat>
							<xsl:value-of select="table:table-cell[3]/text:p"/>
							</uat-lat>
							<lat>
							<xsl:value-of select="table:table-cell[4]/text:p"/>
							</lat>
						</uat-and-lat>
						<sa>
							<xsl:if test="table:table-cell[5]/text:p = 'y'">
								<xsl:text>true</xsl:text>
							</xsl:if>
							<xsl:if test="table:table-cell[5]/text:p != 'y'">
								<xsl:text>false</xsl:text>
							</xsl:if>
						</sa>
					</form10f-row>
				</xsl:for-each>
			</form10f>
			<form10g>
				<xsl:for-each select="//table:table[@table:name='10g']/table:table-row[position()=4 or (position()&gt;4 and ./table:table-cell/text:p)]">
					<form10g-row>
						<zone-code>
							<xsl:value-of select="table:table-cell[1]/text:p"/>
						</zone-code>
						<sa>
							<xsl:if test="table:table-cell[2]/text:p = 'y'">
								<xsl:text>true</xsl:text>
							</xsl:if>
							<xsl:if test="table:table-cell[2]/text:p != 'y'">
								<xsl:text>false</xsl:text>
							</xsl:if>
						</sa>
					</form10g-row>
				</xsl:for-each>
			</form10g>
			<form10h>
				<xsl:for-each select="//table:table[@table:name='10h']/table:table-row[position()=5 or (position()&gt;5 and ./table:table-cell/text:p)]">
					<form10h-row>
						<zone-code>
							<xsl:value-of select="table:table-cell[1]/text:p"/>
						</zone-code>
						<uat-and-lat>
							<uat>
							<xsl:value-of select="table:table-cell[2]/text:p"/>
							</uat>
							<uat-lat>
							<xsl:value-of select="table:table-cell[3]/text:p"/>
							</uat-lat>
							<lat>
							<xsl:value-of select="table:table-cell[4]/text:p"/>
							</lat>
						</uat-and-lat>
						<sa>
							<xsl:if test="table:table-cell[5]/text:p = 'y'">
								<xsl:text>true</xsl:text>
							</xsl:if>
							<xsl:if test="table:table-cell[5]/text:p != 'y'">
								<xsl:text>false</xsl:text>
							</xsl:if>
						</sa>
					</form10h-row>
				</xsl:for-each>
			</form10h>
			<form10i>
				<xsl:for-each select="//table:table[@table:name='10i']/table:table-row[position()=5 or (position()&gt;5 and ./table:table-cell/text:p)]">
					<form10i-row>
						<zone-code>
							<xsl:value-of select="table:table-cell[1]/text:p"/>
						</zone-code>
						<uat-and-lat>
							<uat>
							<xsl:value-of select="table:table-cell[2]/text:p"/>
							</uat>
							<uat-lat>
							<xsl:value-of select="table:table-cell[3]/text:p"/>
							</uat-lat>
							<lat>
							<xsl:value-of select="table:table-cell[4]/text:p"/>
							</lat>
						</uat-and-lat>
						<sa>
							<xsl:if test="table:table-cell[5]/text:p = 'y'">
								<xsl:text>true</xsl:text>
							</xsl:if>
							<xsl:if test="table:table-cell[5]/text:p != 'y'">
								<xsl:text>false</xsl:text>
							</xsl:if>
						</sa>
					</form10i-row>
				</xsl:for-each>
			</form10i>
			<form10j>
				<xsl:for-each select="//table:table[@table:name='10j']/table:table-row[position()=5 or (position()&gt;5 and ./table:table-cell/text:p)]">
					<form10j-row>
						<zone-code>
							<xsl:value-of select="table:table-cell[1]/text:p"/>
						</zone-code>
						<uat-and-lat>
							<uat>
							<xsl:value-of select="table:table-cell[2]/text:p"/>
							</uat>
							<uat-lat>
							<xsl:value-of select="table:table-cell[3]/text:p"/>
							</uat-lat>
							<lat>
							<xsl:value-of select="table:table-cell[4]/text:p"/>
							</lat>
						</uat-and-lat>
						<sa>
							<xsl:if test="table:table-cell[5]/text:p = 'y'">
								<xsl:text>true</xsl:text>
							</xsl:if>
							<xsl:if test="table:table-cell[5]/text:p != 'y'">
								<xsl:text>false</xsl:text>
							</xsl:if>
						</sa>
					</form10j-row>
				</xsl:for-each>
			</form10j>
			<form10k>
				<xsl:for-each select="//table:table[@table:name='10k']/table:table-row[position()=5 or (position()&gt;5 and ./table:table-cell/text:p)]">
					<form10k-row>
						<zone-code>
							<xsl:value-of select="table:table-cell[1]/text:p"/>
						</zone-code>
						<uat-and-lat>
							<uat>
							<xsl:value-of select="table:table-cell[2]/text:p"/>
							</uat>
							<uat-lat>
							<xsl:value-of select="table:table-cell[3]/text:p"/>
							</uat-lat>
							<lat>
							<xsl:value-of select="table:table-cell[4]/text:p"/>
							</lat>
						</uat-and-lat>
						<sa>
							<xsl:if test="table:table-cell[5]/text:p = 'y'">
								<xsl:text>true</xsl:text>
							</xsl:if>
							<xsl:if test="table:table-cell[5]/text:p != 'y'">
								<xsl:text>false</xsl:text>
							</xsl:if>
						</sa>
					</form10k-row>
				</xsl:for-each>
			</form10k>
			<form-comments/>
		</form10>
		</xsl:template>
</xsl:stylesheet>