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 9366 2012-05-12 23:44:25Z 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"/>
21 <xsl:element name="{$div.element}" namespace="http://www.w3.org/1999/xhtml">
22 <xsl:apply-templates select="." mode="common.html.attributes"/>
23 <xsl:call-template name="id.attribute">
24 <xsl:with-param name="conditional" select="0"/>
26 <xsl:call-template name="dir">
27 <xsl:with-param name="inherit" select="1"/>
29 <xsl:call-template name="language.attribute"/>
30 <xsl:if test="$generate.id.attributes != 0">
31 <xsl:attribute name="id">
32 <xsl:call-template name="object.id"/>
36 <xsl:call-template name="set.titlepage"/>
38 <xsl:variable name="toc.params">
39 <xsl:call-template name="find.path.params">
40 <xsl:with-param name="table" select="normalize-space($generate.toc)"/>
44 <xsl:call-template name="make.lots">
45 <xsl:with-param name="toc.params" select="$toc.params"/>
46 <xsl:with-param name="toc">
47 <xsl:call-template name="set.toc">
48 <xsl:with-param name="toc.title.p" select="contains($toc.params, 'title')"/>
53 <xsl:apply-templates/>
57 <xsl:template match="set/setinfo"/>
58 <xsl:template match="set/title"/>
59 <xsl:template match="set/titleabbrev"/>
60 <xsl:template match="set/subtitle"/>
62 <!-- ==================================================================== -->
64 <xsl:template match="book">
65 <xsl:call-template name="id.warning"/>
68 <xsl:apply-templates select="." mode="common.html.attributes"/>
69 <xsl:call-template name="id.attribute">
70 <xsl:with-param name="conditional" select="0"/>
73 <xsl:call-template name="book.titlepage"/>
75 <xsl:apply-templates select="dedication" mode="dedication"/>
76 <xsl:apply-templates select="acknowledgements" mode="acknowledgements"/>
78 <xsl:variable name="toc.params">
79 <xsl:call-template name="find.path.params">
80 <xsl:with-param name="table" select="normalize-space($generate.toc)"/>
84 <xsl:call-template name="make.lots">
85 <xsl:with-param name="toc.params" select="$toc.params"/>
86 <xsl:with-param name="toc">
87 <xsl:call-template name="division.toc">
88 <xsl:with-param name="toc.title.p" select="contains($toc.params, 'title')"/>
93 <xsl:apply-templates/>
97 <xsl:template match="book/bookinfo"/>
98 <xsl:template match="book/info"/>
99 <xsl:template match="book/title"/>
100 <xsl:template match="book/titleabbrev"/>
101 <xsl:template match="book/subtitle"/>
103 <!-- ==================================================================== -->
105 <xsl:template match="part">
106 <xsl:call-template name="id.warning"/>
109 <xsl:apply-templates select="." mode="common.html.attributes"/>
110 <xsl:call-template name="id.attribute">
111 <xsl:with-param name="conditional" select="0"/>
114 <xsl:call-template name="part.titlepage"/>
116 <xsl:variable name="toc.params">
117 <xsl:call-template name="find.path.params">
118 <xsl:with-param name="table" select="normalize-space($generate.toc)"/>
121 <xsl:if test="not(partintro) and contains($toc.params, 'toc')">
122 <xsl:call-template name="division.toc"/>
124 <xsl:apply-templates/>
128 <xsl:template match="part" mode="make.part.toc">
129 <xsl:call-template name="division.toc"/>
132 <xsl:template match="reference" mode="make.part.toc">
133 <xsl:call-template name="division.toc"/>
136 <xsl:template match="part/docinfo"/>
137 <xsl:template match="part/partinfo"/>
138 <xsl:template match="part/info"/>
139 <xsl:template match="part/title"/>
140 <xsl:template match="part/titleabbrev"/>
141 <xsl:template match="part/subtitle"/>
143 <xsl:template match="partintro">
144 <xsl:call-template name="id.warning"/>
147 <xsl:call-template name="common.html.attributes"/>
148 <xsl:call-template name="id.attribute">
149 <xsl:with-param name="conditional" select="0"/>
152 <xsl:call-template name="partintro.titlepage"/>
153 <xsl:apply-templates/>
155 <xsl:variable name="toc.params">
156 <xsl:call-template name="find.path.params">
157 <xsl:with-param name="node" select="parent::*"/>
158 <xsl:with-param name="table" select="normalize-space($generate.toc)"/>
161 <xsl:if test="contains($toc.params, 'toc')">
162 <!-- not ancestor::part because partintro appears in reference -->
163 <xsl:apply-templates select="parent::*" mode="make.part.toc"/>
165 <xsl:call-template name="process.footnotes"/>
169 <xsl:template match="partintro/title"/>
170 <xsl:template match="partintro/titleabbrev"/>
171 <xsl:template match="partintro/subtitle"/>
173 <xsl:template match="partintro/title" mode="partintro.title.mode">
175 <xsl:apply-templates/>
179 <xsl:template match="partintro/subtitle" mode="partintro.title.mode">
181 <em xmlns:xslo="http://www.w3.org/1999/XSL/Transform"><xsl:apply-templates/></em>
185 <!-- ==================================================================== -->
187 <xsl:template match="book" mode="division.number">
188 <xsl:number from="set" count="book" format="1."/>
191 <xsl:template match="part" mode="division.number">
192 <xsl:number from="book" count="part" format="I."/>
195 <!-- ==================================================================== -->
197 <xsl:template name="division.title">
198 <xsl:param name="node" select="."/>
201 <xsl:attribute name="class">title</xsl:attribute>
202 <xsl:call-template name="anchor">
203 <xsl:with-param name="node" select="$node"/>
204 <xsl:with-param name="conditional" select="0"/>
206 <xsl:apply-templates select="$node" mode="object.title.markup">
207 <xsl:with-param name="allow-anchors" select="1"/>
208 </xsl:apply-templates>