View stylesheet

XML schemas http://rod.eionet.europa.eu/obligations/137?V200807
Output type XML
Depends on aqq_content.xslt
Description Generates Form 17
XSL file aqq_form17.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="/">
	    <form17 xsi:noNamespaceSchemaLocation="http://air-climate.eionet.europa.eu/schemas/AirQualityQuestionnaire/AirQualityQuestionnaire-form17.xsd"
					xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xml:lang="en">
				<xsl:for-each select="//table:table[@table:name='17']/table:table-row[position()=4 or (position()&gt;4 and ./table:table-cell/text:p)]">
					<form17-row>
						<eoi-station-code><xsl:value-of select="table:table-cell[1]/text:p"/></eoi-station-code>
						<average-10minute><xsl:value-of select="table:table-cell[2]/text:p"/></average-10minute>
						<calendar-day-number><xsl:value-of select="table:table-cell[3]/text:p"/></calendar-day-number>
						<previous-column-days><xsl:value-of select="table:table-cell[4]/text:p"/></previous-column-days>
						<maximum-concentration><xsl:value-of select="table:table-cell[5]/text:p"/></maximum-concentration>
						<date>
							<month><xsl:value-of select="table:table-cell[6]/text:p"/></month>
							<month-day><xsl:value-of select="table:table-cell[7]/text:p"/></month-day>
						</date>
					</form17-row>
				</xsl:for-each>
			<form-comments/>
		</form17>
		</xsl:template>

</xsl:stylesheet>