1 <?xml version="1.0" encoding="utf-8"?>
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"
9 <xsl:output method="text"/>
12 <xsl:template match="/">
13 <xsl:text>0 ; JDE Website ; 14 ; 3 ; http://sunsite.auc.dk/jde/ ; _top
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>
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>
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>
29 <xsl:template match="text()|@*">