<?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"/>
	<!--Das Select-Attribut für Parameter-Variablen gibt den Vorgabewert an-->
	<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:template>
<xsl:template match='ueberschrift'>
	<xsl:param name='l' select="0"/>
	<xsl:variable name='u'>
		<xsl:number level="multiple" count="abschnitt"/><xsl:text> </xsl:text>
		<xsl:value-of select="text()"/>
	</xsl:variable>
	<xsl:element name="{concat('h',$l)}">
		<!-- concat "klebt" Zeichenketten -->
		<xsl:copy-of select="$u"/>
	</xsl:element>
</xsl:template>
<xsl:template match='*'>
	<!--nichts tun-->
</xsl:template>
</xsl:stylesheet>

