Initial Commit
[packages] / xemacs-packages / jde / doc / src / styles / html / jdebook_toc.xsl
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4                 xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
5                 xmlns:saxon="http://icl.com/saxon"
6                 exclude-result-prefixes="doc"
7                 version='1.0'>
8
9 <xsl:output method="text"/>
10  
11
12 <xsl:template match="/">
13 <xsl:text>0  ; JDE Website                 ; 14 ; 3 ; http://sunsite.auc.dk/jde/   ; _top
14 </xsl:text>
15 <xsl:for-each select="book/chapter">
16 <xsl:text>0 ; </xsl:text><xsl:value-of select="normalize-space(title)"/><xsl:text> ; 0 ; ../html/jde-ug/jde-ug-content.html#</xsl:text><xsl:value-of select="title/anchor/@id"/><xsl:text>
17 </xsl:text>
18 <xsl:for-each select="sect3">
19 <xsl:text>1 ; </xsl:text><xsl:value-of select="normalize-space(title)"/><xsl:text> ; </xsl:text><xsl:choose><xsl:when test="count(sect4)=0">3</xsl:when><xsl:otherwise>0</xsl:otherwise></xsl:choose><xsl:text> ; ../html/jde-ug/jde-ug-content.html#</xsl:text><xsl:value-of select="title/anchor/@id"/><xsl:text>
20 </xsl:text>
21 <xsl:for-each select="sect4">
22 <xsl:text>2 ; </xsl:text><xsl:value-of select="normalize-space(title)"/><xsl:text> ; 3 ; ../html/jde-ug/jde-ug-content.html#</xsl:text><xsl:value-of select="title/anchor/@id"/><xsl:text>
23 </xsl:text>
24 </xsl:for-each>
25 </xsl:for-each>
26 </xsl:for-each>
27 </xsl:template>
28
29 <xsl:template match="text()|@*">
30 </xsl:template>
31
32 </xsl:stylesheet>
33