1 <?xml version="1.0" encoding="ASCII"?>
2 <!--This file was created automatically by html2xhtml-->
3 <!--from the HTML stylesheets.-->
4 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" version="1.0">
6 <!-- ********************************************************************
7 $Id: division.xsl 8421 2009-05-04 07:49:49Z bobstayton $
8 ********************************************************************
10 This file is part of the XSL DocBook Stylesheet distribution.
11 See ../README or http://docbook.sf.net/release/xsl/current/ for
12 copyright and other information.
14 ******************************************************************** -->
16 <!-- ==================================================================== -->
18 <xsl:template match="set">
19 <xsl:call-template name="id.warning"/>
22 <xsl:apply-templates select="." mode="common.html.attributes"/>
23 <xsl:call-template name="dir">
24 <xsl:with-param name="inherit" select="1"/>
26 <xsl:call-template name="xml.language.attribute"/>
27 <xsl:if test="$generate.id.attributes != 0">
28 <xsl:attribute name="id">
29 <xsl:call-template name="object.id"/>
33 <xsl:call-template name="set.titlepage"/>
35 <xsl:variable name="toc.params">
36 <xsl:call-template name="find.path.params">
37 <xsl:with-param name="table" select="normalize-space($generate.toc)"/>
41 <xsl:call-template name="make.lots">
42 <xsl:with-param name="toc.params" select="$toc.params"/>
43 <xsl:with-param name="toc">
44 <xsl:call-template name="set.toc">
45 <xsl:with-param name="toc.title.p" select="contains($toc.params, 'title')"/>
50 <xsl:apply-templates/>
54 <xsl:template match="set/setinfo"/>
55 <xsl:template match="set/title"/>
56 <xsl:template match="set/titleabbrev"/>
57 <xsl:template match="set/subtitle"/>
59 <!-- ==================================================================== -->
61 <xsl:template match="book">
62 <xsl:call-template name="id.warning"/>
65 <xsl:apply-templates select="." mode="common.html.attributes"/>
66 <xsl:if test="$generate.id.attributes != 0">
67 <xsl:attribute name="id">
68 <xsl:call-template name="object.id"/>
72 <xsl:call-template name="book.titlepage"/>
74 <xsl:apply-templates select="dedication" mode="dedication"/>
75 <xsl:apply-templates select="acknowledgements" mode="acknowledgements"/>
77 <xsl:variable name="toc.params">
78 <xsl:call-template name="find.path.params">
79 <xsl:with-param name="table" select="normalize-space($generate.toc)"/>
83 <xsl:call-template name="make.lots">
84 <xsl:with-param name="toc.params" select="$toc.params"/>
85 <xsl:with-param name="toc">
86 <xsl:call-template name="division.toc">
87 <xsl:with-param name="toc.title.p" select="contains($toc.params, 'title')"/>
92 <xsl:apply-templates/>
96 <xsl:template match="book/bookinfo"/>
97 <xsl:template match="book/info"/>
98 <xsl:template match="book/title"/>
99 <xsl:template match="book/titleabbrev"/>
100 <xsl:template match="book/subtitle"/>
102 <!-- ==================================================================== -->
104 <xsl:template match="part">
105 <xsl:call-template name="id.warning"/>
108 <xsl:apply-templates select="." mode="common.html.attributes"/>
109 <xsl:if test="$generate.id.attributes != 0">
110 <xsl:attribute name="id">
111 <xsl:call-template name="object.id"/>
115 <xsl:call-template name="part.titlepage"/>
117 <xsl:variable name="toc.params">
118 <xsl:call-template name="find.path.params">
119 <xsl:with-param name="table" select="normalize-space($generate.toc)"/>
122 <xsl:if test="not(partintro) and contains($toc.params, 'toc')">
123 <xsl:call-template name="division.toc"/>
125 <xsl:apply-templates/>
129 <xsl:template match="part" mode="make.part.toc">
130 <xsl:call-template name="division.toc"/>
133 <xsl:template match="reference" mode="make.part.toc">
134 <xsl:call-template name="division.toc"/>
137 <xsl:template match="part/docinfo"/>
138 <xsl:template match="part/partinfo"/>
139 <xsl:template match="part/info"/>
140 <xsl:template match="part/title"/>
141 <xsl:template match="part/titleabbrev"/>
142 <xsl:template match="part/subtitle"/>
144 <xsl:template match="partintro">
145 <xsl:call-template name="id.warning"/>
148 <xsl:call-template name="common.html.attributes"/>
149 <xsl:if test="$generate.id.attributes != 0">
150 <xsl:attribute name="id">
151 <xsl:call-template name="object.id"/>
155 <xsl:call-template name="partintro.titlepage"/>
156 <xsl:apply-templates/>
158 <xsl:variable name="toc.params">
159 <xsl:call-template name="find.path.params">
160 <xsl:with-param name="node" select="parent::*"/>
161 <xsl:with-param name="table" select="normalize-space($generate.toc)"/>
164 <xsl:if test="contains($toc.params, 'toc')">
165 <!-- not ancestor::part because partintro appears in reference -->
166 <xsl:apply-templates select="parent::*" mode="make.part.toc"/>
168 <xsl:call-template name="process.footnotes"/>
172 <xsl:template match="partintro/title"/>
173 <xsl:template match="partintro/titleabbrev"/>
174 <xsl:template match="partintro/subtitle"/>
176 <xsl:template match="partintro/title" mode="partintro.title.mode">
178 <xsl:apply-templates/>
182 <xsl:template match="partintro/subtitle" mode="partintro.title.mode">
184 <em xmlns:xslo="http://www.w3.org/1999/XSL/Transform"><xsl:apply-templates/></em>
188 <!-- ==================================================================== -->
190 <xsl:template match="book" mode="division.number">
191 <xsl:number from="set" count="book" format="1."/>
194 <xsl:template match="part" mode="division.number">
195 <xsl:number from="book" count="part" format="I."/>
198 <!-- ==================================================================== -->
200 <xsl:template name="division.title">
201 <xsl:param name="node" select="."/>
204 <xsl:attribute name="class">title</xsl:attribute>
205 <xsl:if test="$generate.id.attributes = 0">
206 <xsl:call-template name="anchor">
207 <xsl:with-param name="node" select="$node"/>
208 <xsl:with-param name="conditional" select="0"/>
211 <xsl:apply-templates select="$node" mode="object.title.markup">
212 <xsl:with-param name="allow-anchors" select="1"/>
213 </xsl:apply-templates>