View stylesheet

XML schemas http://rod.eionet.europa.eu/obligations/137?V200807
Output type XML
Depends on aqq_content.xslt
Description Generates Form 22
XSL file aqq_form22.xslt (Last modified: 28 Oct 2009 11:36 )
<?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="/">
	    <form22 xsi:noNamespaceSchemaLocation="http://air-climate.eionet.europa.eu/schemas/AirQualityQuestionnaire/AirQualityQuestionnaire-form22.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xml:lang="en">
				<xsl:for-each select="//table:table[@table:name='22']/table:table-row[position()=3 or (position()&gt;3 and ./table:table-cell/text:p)]">
					<form22-row>
						<natural-source-code><xsl:value-of select="table:table-cell[1]/text:p"/></natural-source-code>
						<description><xsl:value-of select="table:table-cell[2]/text:p"/></description>
					</form22-row>
				</xsl:for-each>
			<form-comments/>
		</form22>
		</xsl:template>

</xsl:stylesheet>