Hallo,
Danke für die Hilfe, obwohl es erst richtig mit
<xsl:for-each select="/Dokument//Kapitel[@Typ='Hauptkapitel']">
Ja, sorry: [@Typ='Hauptkapitel']
<xsl:for-each select="//Kapitel[@Typ='Hauptkapitel']"> muss auch reichen.
Aber das Prinzip, hast du jetzt. ;-)
Grüße
Thomas