<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" indent="yes" encoding="ISO-8859-1" omit-xml-declaration="no" />

<xsl:template match="/">
  <html>
  <head>
  <title>Round Table FAQ (XML-Version)</title>
  </head>
  <body>
  <h1>Häufig gestellte Fragen zu Round Table (FAQ)</h1>
  <xsl:for-each select="faq/item">
    <p><a><xsl:attribute name="href"><xsl:value-of select="concat('#FAQ-',@nummer)"/></xsl:attribute>
    <xsl:value-of select="frage" /></a></p>
  </xsl:for-each>
  <xsl:for-each select="faq/item">
    <a><xsl:attribute name="name"><xsl:value-of select="concat('FAQ-',@nummer)"/></xsl:attribute></a>
    <h2><xsl:value-of select="frage" /></h2>
    <p>
    <xsl:apply-templates />
    </p>
    <p><a href="#">Zum Anfang</a></p>
  </xsl:for-each>
  </body>
  </html>
</xsl:template>

<xsl:template match="link">
  <a href="{@url}"><xsl:value-of select="." /></a>
</xsl:template>

<xsl:template match="liste">
  <ul>
  <xsl:for-each select="punkt">
    <li><xsl:value-of select="." /></li>
  </xsl:for-each>
  </ul>
</xsl:template>

</xsl:stylesheet>
