source: stylesheets/lfs-xsl/docbook-xsl-1.78.1/xhtml/division.xsl@ 15c7d39

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 7.5 7.6 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 15c7d39 was 15c7d39, checked in by Matthew Burgess <matthew@…>, 11 years ago

Update stylesheets to docbook-xsl-1.78.1.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10355 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 6.9 KB
Line 
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">
5
6<!-- ********************************************************************
7 $Id: division.xsl 9366 2012-05-12 23:44:25Z bobstayton $
8 ********************************************************************
9
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.
13
14 ******************************************************************** -->
15
16<!-- ==================================================================== -->
17
18<xsl:template match="set">
19 <xsl:call-template name="id.warning"/>
20
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"/>
25 </xsl:call-template>
26 <xsl:call-template name="dir">
27 <xsl:with-param name="inherit" select="1"/>
28 </xsl:call-template>
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"/>
33 </xsl:attribute>
34 </xsl:if>
35
36 <xsl:call-template name="set.titlepage"/>
37
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)"/>
41 </xsl:call-template>
42 </xsl:variable>
43
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')"/>
49 </xsl:call-template>
50 </xsl:with-param>
51 </xsl:call-template>
52
53 <xsl:apply-templates/>
54 </xsl:element>
55</xsl:template>
56
57<xsl:template match="set/setinfo"/>
58<xsl:template match="set/title"/>
59<xsl:template match="set/titleabbrev"/>
60<xsl:template match="set/subtitle"/>
61
62<!-- ==================================================================== -->
63
64<xsl:template match="book">
65 <xsl:call-template name="id.warning"/>
66
67 <div>
68 <xsl:apply-templates select="." mode="common.html.attributes"/>
69 <xsl:call-template name="id.attribute">
70 <xsl:with-param name="conditional" select="0"/>
71 </xsl:call-template>
72
73 <xsl:call-template name="book.titlepage"/>
74
75 <xsl:apply-templates select="dedication" mode="dedication"/>
76 <xsl:apply-templates select="acknowledgements" mode="acknowledgements"/>
77
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)"/>
81 </xsl:call-template>
82 </xsl:variable>
83
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')"/>
89 </xsl:call-template>
90 </xsl:with-param>
91 </xsl:call-template>
92
93 <xsl:apply-templates/>
94 </div>
95</xsl:template>
96
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"/>
102
103<!-- ==================================================================== -->
104
105<xsl:template match="part">
106 <xsl:call-template name="id.warning"/>
107
108 <div>
109 <xsl:apply-templates select="." mode="common.html.attributes"/>
110 <xsl:call-template name="id.attribute">
111 <xsl:with-param name="conditional" select="0"/>
112 </xsl:call-template>
113
114 <xsl:call-template name="part.titlepage"/>
115
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)"/>
119 </xsl:call-template>
120 </xsl:variable>
121 <xsl:if test="not(partintro) and contains($toc.params, 'toc')">
122 <xsl:call-template name="division.toc"/>
123 </xsl:if>
124 <xsl:apply-templates/>
125 </div>
126</xsl:template>
127
128<xsl:template match="part" mode="make.part.toc">
129 <xsl:call-template name="division.toc"/>
130</xsl:template>
131
132<xsl:template match="reference" mode="make.part.toc">
133 <xsl:call-template name="division.toc"/>
134</xsl:template>
135
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"/>
142
143<xsl:template match="partintro">
144 <xsl:call-template name="id.warning"/>
145
146 <div>
147 <xsl:call-template name="common.html.attributes"/>
148 <xsl:call-template name="id.attribute">
149 <xsl:with-param name="conditional" select="0"/>
150 </xsl:call-template>
151
152 <xsl:call-template name="partintro.titlepage"/>
153 <xsl:apply-templates/>
154
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)"/>
159 </xsl:call-template>
160 </xsl:variable>
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"/>
164 </xsl:if>
165 <xsl:call-template name="process.footnotes"/>
166 </div>
167</xsl:template>
168
169<xsl:template match="partintro/title"/>
170<xsl:template match="partintro/titleabbrev"/>
171<xsl:template match="partintro/subtitle"/>
172
173<xsl:template match="partintro/title" mode="partintro.title.mode">
174 <h2>
175 <xsl:apply-templates/>
176 </h2>
177</xsl:template>
178
179<xsl:template match="partintro/subtitle" mode="partintro.title.mode">
180 <h3>
181 <em xmlns:xslo="http://www.w3.org/1999/XSL/Transform"><xsl:apply-templates/></em>
182 </h3>
183</xsl:template>
184
185<!-- ==================================================================== -->
186
187<xsl:template match="book" mode="division.number">
188 <xsl:number from="set" count="book" format="1."/>
189</xsl:template>
190
191<xsl:template match="part" mode="division.number">
192 <xsl:number from="book" count="part" format="I."/>
193</xsl:template>
194
195<!-- ==================================================================== -->
196
197<xsl:template name="division.title">
198 <xsl:param name="node" select="."/>
199
200 <h1>
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"/>
205 </xsl:call-template>
206 <xsl:apply-templates select="$node" mode="object.title.markup">
207 <xsl:with-param name="allow-anchors" select="1"/>
208 </xsl:apply-templates>
209 </h1>
210</xsl:template>
211
212</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.