<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
		version="1.0">
<xsl:output method='html'/>
<xsl:template match='/'>
	<html>
		<xsl:apply-templates/>
	</html>
</xsl:template>
<xsl:template match='abschnitt'>
		<xsl:param name='l' select="1"/>
		<xsl:apply-templates select='ueberschrift'>
			<xsl:with-param name='l'>
				<xsl:value-of select="$l"/>
			</xsl:with-param>
		</xsl:apply-templates>
		<xsl:apply-templates select='abschnitt'>
			<xsl:with-param name='l'>
				<xsl:value-of select="$l +1 "/>
			</xsl:with-param>
		</xsl:apply-templates>
		<xsl:apply-templates select='*[name() != "abschnitt" and name() != "ueberschrift"]'/>
</xsl:template>
<xsl:template match='*'>
	<xsl:copy>
		<xsl:apply-templates />
	</xsl:copy>
</xsl:template>
<xsl:template match='wert'>
	<tr>
	<xsl:apply-templates />
	</tr>
</xsl:template>
<xsl:template match='abschnitt[wert]'>
	<table>
	<xsl:apply-templates />
	</table>
</xsl:template>
<xsl:template match='code'>
	<td>
	<xsl:apply-templates />
	</td>
</xsl:template>
<xsl:template match='beschreibung'>
	<td>
	<xsl:apply-templates />
	</td>
</xsl:template>
<xsl:template match='ueberschrift'>
	<xsl:param name='l' select="0"/>
	<xsl:element name="{concat('h',$l)}">
		<xsl:apply-templates />
	</xsl:element>
</xsl:template>
</xsl:stylesheet>

