1 <?xml version="1.0" encoding="US-ASCII"?>
2 <!--This file was created automatically by html2xhtml-->
3 <!--from the HTML stylesheets. Do not edit this file.-->
4 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" xmlns="http://www.w3.org/1999/xhtml" version="1.0" exclude-result-prefixes="doc">
6 <!-- ********************************************************************
8 ********************************************************************
10 This file is part of the XSL DocBook Stylesheet distribution.
11 See ../README or http://nwalsh.com/docbook/xsl/ for copyright
12 and other information.
14 ******************************************************************** -->
16 <!-- ==================================================================== -->
18 <xsl:variable name="manifest.base.dir">
21 <xsl:template name="generate.manifest">
22 <xsl:param name="node" select="/"/>
23 <xsl:call-template name="write.text.chunk">
24 <xsl:with-param name="filename">
25 <xsl:if test="$manifest.in.base.dir != 0">
26 <xsl:value-of select="$base.dir"/>
28 <xsl:value-of select="$manifest"/>
30 <xsl:with-param name="method" select="'text'"/>
31 <xsl:with-param name="content">
32 <xsl:apply-templates select="$node" mode="enumerate-files"/>
34 <xsl:with-param name="encoding" select="$chunker.output.encoding"/>
38 <xsl:template match="set|book|part|preface|chapter|appendix |article |reference|refentry |sect1|sect2|sect3|sect4|sect5 |section |book/glossary|article/glossary|part/glossary |book/bibliography|article/bibliography|part/bibliography |colophon" mode="enumerate-files">
39 <xsl:variable name="ischunk"><xsl:call-template name="chunk"/></xsl:variable>
40 <xsl:if test="$ischunk='1'">
41 <xsl:call-template name="make-relative-filename">
42 <xsl:with-param name="base.dir">
43 <xsl:if test="$manifest.in.base.dir = 0">
44 <xsl:value-of select="$base.dir"/>
47 <xsl:with-param name="base.name">
48 <xsl:apply-templates mode="chunk-filename" select="."/>
54 <xsl:apply-templates select="*" mode="enumerate-files"/>
57 <xsl:template match="book/index|article/index|part/index" mode="enumerate-files">
58 <xsl:if test="$htmlhelp.output != 1">
59 <xsl:variable name="ischunk"><xsl:call-template name="chunk"/></xsl:variable>
60 <xsl:if test="$ischunk='1'">
61 <xsl:call-template name="make-relative-filename">
62 <xsl:with-param name="base.dir">
63 <xsl:if test="$manifest.in.base.dir = 0">
64 <xsl:value-of select="$base.dir"/>
67 <xsl:with-param name="base.name">
68 <xsl:apply-templates mode="chunk-filename" select="."/>
74 <xsl:apply-templates select="*" mode="enumerate-files"/>
78 <xsl:template match="legalnotice" mode="enumerate-files">
79 <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
80 <xsl:if test="$generate.legalnotice.link != 0">
81 <xsl:call-template name="make-relative-filename">
82 <xsl:with-param name="base.dir">
83 <xsl:if test="$manifest.in.base.dir = 0">
84 <xsl:value-of select="$base.dir"/>
87 <xsl:with-param name="base.name">
88 <xsl:apply-templates mode="chunk-filename" select="."/>
96 <xsl:template match="mediaobject[imageobject] | inlinemediaobject[imageobject]" mode="enumerate-files">
97 <xsl:variable name="longdesc.uri">
98 <xsl:call-template name="longdesc.uri">
99 <xsl:with-param name="mediaobject" select="."/>
102 <xsl:variable name="mediaobject" select="."/>
104 <xsl:if test="$html.longdesc != 0 and $mediaobject/textobject[not(phrase)]">
105 <xsl:call-template name="longdesc.uri">
106 <xsl:with-param name="mediaobject" select="$mediaobject"/>
113 <xsl:template match="text()" mode="enumerate-files">