View stylesheet

XML schemas http://rod.eionet.europa.eu/obligations/137?V200807
Output type XML
Depends on aqq_content.xslt
Description Generates Form 26
XSL file aqq_form26.xslt (Last modified: 10 Sep 2009 12:25 )
<?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="/">
	    <form26 xsi:noNamespaceSchemaLocation="http://air-climate.eionet.europa.eu/schemas/AirQualityQuestionnaire/AirQualityQuestionnaire-form26.xsd"
			xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
			xml:lang="en">
			<xsl:for-each select="//table:table[@table:name=26]/table:table-row[position() = 3 or (position() &gt; 3 and ./table:table-cell/text:p)]">
				<form26-row>
					<pollutant>
							   <xsl:value-of select="table:table-cell[1]/text:p"/>
					</pollutant>
					<limit-value-exceeded>
							   <xsl:value-of select="table:table-cell[2]/text:p"/>
					</limit-value-exceeded>
					<monitoring-method-used>
							   <xsl:value-of select="table:table-cell[3]/text:p"/>
					</monitoring-method-used>
					<eoi-station-code>
							   <xsl:value-of select="table:table-cell[4]/text:p"/>
					</eoi-station-code>
					<measured-value>
							   <xsl:value-of select="table:table-cell[5]/text:p"/>
					</measured-value>
					<reason-code>
							   <xsl:value-of select="table:table-cell[6]/text:p"/>
					</reason-code>
					<measures-taken>
							   <xsl:value-of select="table:table-cell[7]/text:p"/>
					</measures-taken>
				</form26-row>
			</xsl:for-each>
			<form-comments/>
		</form26>
		</xsl:template>
</xsl:stylesheet>