2
<xsl:stylesheet xmlns="http://www.devhelp.net/book" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.1">
3
<xsl:output method="xml" indent="yes"/>
4
<xsl:template match="/">
5
<book title="{//title/text()}" link="index.html" author="" name="vala" version="2">
7
<xsl:for-each select="//body/section">
8
<sub name="{h/text()}" link="{@id}.html">
9
<xsl:for-each select="section">
10
<sub name="{h/text()}" link="{../@id}.html#{@id}"/>