Release 0.41.92
[vala-gnome.git] / doc / manual / devhelp.xsl
blob92036c38a112884da61ef0967fc5449c1584b749
1 <?xml version="1.0"?>
2 <xsl:stylesheet
3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4 version="1.1"
5 xmlns="http://www.devhelp.net/book"
8 <xsl:import href="common.xsl"/>
10 <xsl:output
11 method="xml"
12 indent="yes"
15 <xsl:template match="/">
16 <book title="{/article/section/title/text()}" link="index.html" author="" name="vala" language="vala" version="2">
17 <chapters>
18 <xsl:apply-templates select="/article/section/section"/>
19 </chapters>
20 </book>
21 </xsl:template>
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"/>
27 </xsl:call-template>
28 </xsl:variable>
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"/>
34 </xsl:call-template>
35 </xsl:variable>
36 <sub name="{title/text()}" link="{$path}.html#{$fragment}"/>
37 </xsl:for-each>
38 </sub>
39 </xsl:template>
41 </xsl:stylesheet>