1 <?xml version="1.0" encoding="ASCII"?><!--This file was created automatically by html2xhtml--><!--from the HTML stylesheets.--><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:d="http://docbook.org/ns/docbook" xmlns="http://www.w3.org/1999/xhtml" exclude-result-prefixes="d" version="1.0">
3 <!-- ********************************************************************
5 This file is part of the XSL DocBook Stylesheet distribution.
6 See ../README or http://cdn.docbook.org/release/xsl/current/ for
7 copyright and other information.
9 ******************************************************************** -->
11 <!-- ==================================================================== -->
13 <xsl:template match="d:set">
14 <xsl:call-template name="id.warning"/>
16 <xsl:element name="{$div.element}" namespace="http://www.w3.org/1999/xhtml">
17 <xsl:apply-templates select="." mode="common.html.attributes"/>
18 <xsl:call-template name="id.attribute">
19 <xsl:with-param name="conditional" select="0"/>
21 <xsl:call-template name="dir">
22 <xsl:with-param name="inherit" select="1"/>
24 <xsl:call-template name="language.attribute"/>
25 <xsl:if test="$generate.id.attributes != 0">
26 <xsl:attribute name="id">
27 <xsl:call-template name="object.id"/>
31 <xsl:call-template name="set.titlepage"/>
33 <xsl:variable name="toc.params">
34 <xsl:call-template name="find.path.params">
35 <xsl:with-param name="table" select="normalize-space($generate.toc)"/>
39 <xsl:call-template name="make.lots">
40 <xsl:with-param name="toc.params" select="$toc.params"/>
41 <xsl:with-param name="toc">
42 <xsl:call-template name="set.toc">
43 <xsl:with-param name="toc.title.p" select="contains($toc.params, 'title')"/>
48 <xsl:apply-templates/>
52 <xsl:template match="d:set/d:setinfo"/>
53 <xsl:template match="d:set/d:title"/>
54 <xsl:template match="d:set/d:titleabbrev"/>
55 <xsl:template match="d:set/d:subtitle"/>
57 <!-- ==================================================================== -->
59 <xsl:template match="d:book">
60 <xsl:call-template name="id.warning"/>
63 <xsl:apply-templates select="." mode="common.html.attributes"/>
64 <xsl:call-template name="id.attribute">
65 <xsl:with-param name="conditional" select="0"/>
68 <xsl:call-template name="book.titlepage"/>
70 <xsl:apply-templates select="d:dedication" mode="dedication"/>
71 <xsl:apply-templates select="d:acknowledgements" mode="acknowledgements"/>
73 <xsl:variable name="toc.params">
74 <xsl:call-template name="find.path.params">
75 <xsl:with-param name="table" select="normalize-space($generate.toc)"/>
79 <xsl:call-template name="make.lots">
80 <xsl:with-param name="toc.params" select="$toc.params"/>
81 <xsl:with-param name="toc">
82 <xsl:call-template name="division.toc">
83 <xsl:with-param name="toc.title.p" select="contains($toc.params, 'title')"/>
88 <xsl:apply-templates/>
92 <xsl:template match="d:book/d:bookinfo"/>
93 <xsl:template match="d:book/d:info"/>
94 <xsl:template match="d:book/d:title"/>
95 <xsl:template match="d:book/d:titleabbrev"/>
96 <xsl:template match="d:book/d:subtitle"/>
98 <!-- ==================================================================== -->
100 <xsl:template match="d:part">
101 <xsl:call-template name="id.warning"/>
104 <xsl:apply-templates select="." mode="common.html.attributes"/>
105 <xsl:call-template name="id.attribute">
106 <xsl:with-param name="conditional" select="0"/>
109 <xsl:call-template name="part.titlepage"/>
111 <xsl:variable name="toc.params">
112 <xsl:call-template name="find.path.params">
113 <xsl:with-param name="table" select="normalize-space($generate.toc)"/>
116 <xsl:if test="not(d:partintro) and contains($toc.params, 'toc')">
117 <xsl:call-template name="division.toc"/>
119 <xsl:apply-templates/>
123 <xsl:template match="d:part" mode="make.part.toc">
124 <xsl:call-template name="division.toc"/>
127 <xsl:template match="d:reference" mode="make.part.toc">
128 <xsl:call-template name="division.toc"/>
131 <xsl:template match="d:part/d:docinfo"/>
132 <xsl:template match="d:part/d:partinfo"/>
133 <xsl:template match="d:part/d:info"/>
134 <xsl:template match="d:part/d:title"/>
135 <xsl:template match="d:part/d:titleabbrev"/>
136 <xsl:template match="d:part/d:subtitle"/>
138 <xsl:template match="d:partintro">
139 <xsl:call-template name="id.warning"/>
142 <xsl:call-template name="common.html.attributes"/>
143 <xsl:call-template name="id.attribute">
144 <xsl:with-param name="conditional" select="0"/>
147 <xsl:call-template name="partintro.titlepage"/>
148 <xsl:apply-templates/>
150 <xsl:variable name="toc.params">
151 <xsl:call-template name="find.path.params">
152 <xsl:with-param name="node" select="parent::*"/>
153 <xsl:with-param name="table" select="normalize-space($generate.toc)"/>
156 <xsl:if test="contains($toc.params, 'toc')">
157 <!-- not ancestor::part because partintro appears in reference -->
158 <xsl:apply-templates select="parent::*" mode="make.part.toc"/>
160 <xsl:call-template name="process.footnotes"/>
164 <xsl:template match="d:partintro/d:title"/>
165 <xsl:template match="d:partintro/d:titleabbrev"/>
166 <xsl:template match="d:partintro/d:subtitle"/>
168 <xsl:template match="d:partintro/d:title" mode="partintro.title.mode">
170 <xsl:apply-templates/>
174 <xsl:template match="d:partintro/d:subtitle" mode="partintro.title.mode">
176 <em><xsl:apply-templates/></em>
180 <!-- ==================================================================== -->
182 <xsl:template match="d:book" mode="division.number">
183 <xsl:number from="d:set" count="d:book" format="1."/>
186 <xsl:template match="d:part" mode="division.number">
187 <xsl:number from="d:book" count="d:part" format="I."/>
190 <!-- ==================================================================== -->
192 <xsl:template name="division.title">
193 <xsl:param name="node" select="."/>
196 <xsl:attribute name="class">title</xsl:attribute>
197 <xsl:call-template name="anchor">
198 <xsl:with-param name="node" select="$node"/>
199 <xsl:with-param name="conditional" select="0"/>
201 <xsl:apply-templates select="$node" mode="object.title.markup">
202 <xsl:with-param name="allow-anchors" select="1"/>
203 </xsl:apply-templates>