source: trunk/Distribution/XSL/xhtml/manifest.xsl@ 3

Last change on this file since 3 was 2, checked in by jkacer, 18 years ago

Added all DocBook Framework stuff:

  • DocBook DTD
  • Transformation software FOP 0.20.5 and Saxon 6
  • XSL styles
  • Rexx scripts

Also added some WarpIN-related stuff for creation of WarpIN installation packages.
This state corresponds to version 1.0.0 from November 2005, just slightly modified to carry versioning information (Rexx scripts).

File size: 4.6 KB
Line 
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">
5
6<!-- ********************************************************************
7 $Id: manifest.xsl,v 1.7 2005/05/26 07:27:34 bobstayton Exp $
8 ********************************************************************
9
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.
13
14 ******************************************************************** -->
15
16<!-- ==================================================================== -->
17
18<xsl:variable name="manifest.base.dir">
19</xsl:variable>
20
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"/>
27 </xsl:if>
28 <xsl:value-of select="$manifest"/>
29 </xsl:with-param>
30 <xsl:with-param name="method" select="'text'"/>
31 <xsl:with-param name="content">
32 <xsl:apply-templates select="$node" mode="enumerate-files"/>
33 </xsl:with-param>
34 <xsl:with-param name="encoding" select="$chunker.output.encoding"/>
35 </xsl:call-template>
36</xsl:template>
37
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"/>
45 </xsl:if>
46 </xsl:with-param>
47 <xsl:with-param name="base.name">
48 <xsl:apply-templates mode="chunk-filename" select="."/>
49 </xsl:with-param>
50 </xsl:call-template>
51 <xsl:text>
52</xsl:text>
53 </xsl:if>
54 <xsl:apply-templates select="*" mode="enumerate-files"/>
55</xsl:template>
56
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"/>
65 </xsl:if>
66 </xsl:with-param>
67 <xsl:with-param name="base.name">
68 <xsl:apply-templates mode="chunk-filename" select="."/>
69 </xsl:with-param>
70 </xsl:call-template>
71 <xsl:text>
72</xsl:text>
73 </xsl:if>
74 <xsl:apply-templates select="*" mode="enumerate-files"/>
75 </xsl:if>
76</xsl:template>
77
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"/>
85 </xsl:if>
86 </xsl:with-param>
87 <xsl:with-param name="base.name">
88 <xsl:apply-templates mode="chunk-filename" select="."/>
89 </xsl:with-param>
90 </xsl:call-template>
91 <xsl:text>
92</xsl:text>
93 </xsl:if>
94</xsl:template>
95
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="."/>
100 </xsl:call-template>
101 </xsl:variable>
102 <xsl:variable name="mediaobject" select="."/>
103
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"/>
107 </xsl:call-template>
108 <xsl:text>
109</xsl:text>
110 </xsl:if>
111</xsl:template>
112
113<xsl:template match="text()" mode="enumerate-files">
114</xsl:template>
115
116</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.