<?xml version="1.0" encoding="ISO-8859-1"?>

<xsl:stylesheet
    xmlns:a="http://www.dummyns.com/DUMMYNS"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    version="1.0"
	exclude-result-prefixes="a">

<xsl:output method="html"/>

<xsl:template match="/">
<html>
<head></head>
<body>

<xsl:apply-templates/>

</body>
</html>
</xsl:template>

<xsl:template match="/a:livre/a:sommaire">
<p><xsl:text>Inhaltverzeichnis</xsl:text></p>
<table>

<xsl:for-each select="a:entree">
<tr>
<td><xsl:value-of select="a:descr"/></td>
<td><xsl:value-of select="a:page/@no"/></td>
</tr>
</xsl:for-each>
</table>

</xsl:template>


<xsl:template match="/a:livre/a:contenu">
<p><xsl:text>Inhalt</xsl:text></p>
<xsl:apply-templates/>
</xsl:template>


<xsl:template name="kapitel" match="/a:livre/a:contenu//a:chapitre">
  <xsl:param name="tiefe" select="0"/>
 
  <p><xsl:text>Titel: </xsl:text><xsl:value-of select="a:titre"/></p>
  <p><xsl:text>Tiefe: </xsl:text><xsl:value-of select="$tiefe"/></p>
  <p><xsl:text>Pos: </xsl:text><xsl:value-of select="position()"/></p>
   <xsl:for-each select="a:chapitre">
      <xsl:call-template name="kapitel">
        <xsl:with-param name="tiefe" select="number($tiefe)+1"/>
      </xsl:call-template>
  </xsl:for-each>
  

</xsl:template>

<xsl:template match="/a:livre/a:appendice">
<p><xsl:text>Anhang</xsl:text></p>
</xsl:template>

</xsl:stylesheet>

<!-- Stylus Studio meta-information - (c) 2004-2005. Progress Software Corporation. All rights reserved.
<metaInformation>
<scenarios ><scenario default="yes" name="Test" userelativepaths="yes" externalpreview="no" url="test.xml" htmlbaseurl="" outputurl="testhtml.html" processortype="xalan" useresolver="yes" profilemode="0" profiledepth="" profilelength="" urlprofilexml="" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext="" validateoutput="no" validator="internal" customvalidator=""/></scenarios><MapperMetaTag><MapperInfo srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no"/><MapperBlockPosition></MapperBlockPosition><TemplateContext></TemplateContext><MapperFilter side="source"></MapperFilter></MapperMetaTag>
</metaInformation>
-->