View stylesheet

XML schemas http://rod.eionet.europa.eu/obligations/137?V200807
Output type XML
Depends on aqq_content.xslt
Description Generates Form 23
XSL file aqq_form23.xslt (Last modified: 28 Oct 2009 11:35 )
<?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="/">
	    <form23 xsi:noNamespaceSchemaLocation="http://air-climate.eionet.europa.eu/schemas/AirQualityQuestionnaire/AirQualityQuestionnaire-form23.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xml:lang="en">
			<form23a>
				<xsl:for-each select="//table:table[@table:name='23a']/table:table-row[position()=4 or (position()&gt;4 and ./table:table-cell/text:p)]">
					<form23a-row>
						<zone-code><xsl:value-of select="table:table-cell[1]/text:p"/></zone-code>
						<eoi-station-code><xsl:value-of select="table:table-cell[2]/text:p"/></eoi-station-code>
						<exceedences-number><xsl:value-of select="table:table-cell[3]/text:p"/></exceedences-number>
						<natural-event-code><xsl:value-of select="table:table-cell[4]/text:p"/></natural-event-code>
						<estimated-exceedences><xsl:value-of select="table:table-cell[5]/text:p"/></estimated-exceedences>
						<reference-to-justification><xsl:value-of select="table:table-cell[6]/text:p"/></reference-to-justification>
					</form23a-row>
				</xsl:for-each>
			</form23a>
			<form23b>
				<xsl:for-each select="//table:table[@table:name='23b']/table:table-row[position()=4 or (position()&gt;4 and ./table:table-cell/text:p)]">
					<form23b-row>
						<zone-code><xsl:value-of select="table:table-cell[1]/text:p"/></zone-code>
						<eoi-station-code><xsl:value-of select="table:table-cell[2]/text:p"/></eoi-station-code>
						<mean-concentration-y><xsl:value-of select="table:table-cell[3]/text:p"/></mean-concentration-y>
						<natural-event-code><xsl:value-of select="table:table-cell[4]/text:p"/></natural-event-code>
						<estimated-mean-concentration><xsl:value-of select="table:table-cell[5]/text:p"/></estimated-mean-concentration>
						<reference-to-justification><xsl:value-of select="table:table-cell[6]/text:p"/></reference-to-justification>
					</form23b-row>
				</xsl:for-each>
			</form23b>
			<form-comments/>
		</form23>
		</xsl:template>

</xsl:stylesheet>