3 xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform"
5 xmlns=
"http://www.devhelp.net/book"
8 <xsl:import href=
"common.xsl"/>
15 <xsl:template match=
"/">
16 <book title=
"{/article/section/title/text()}" link=
"index.html" author=
"" name=
"vala" language=
"vala" version=
"2">
18 <xsl:apply-templates select=
"/article/section/section"/>
23 <xsl:template match=
"/article/section/section">
24 <xsl:variable name=
"path">
25 <xsl:call-template name=
"normalizepath">
26 <xsl:with-param name=
"title" select=
"title"/>
29 <sub name=
"{title/text()}" link=
"{$path}.html">
30 <xsl:for-each select=
"section">
31 <xsl:variable name=
"fragment">
32 <xsl:call-template name=
"normalizepath">
33 <xsl:with-param name=
"title" select=
"title"/>
36 <sub name=
"{title/text()}" link=
"{$path}.html#{$fragment}"/>