source: stylesheets/lfs-xsl/docbook-xsl-1.78.1/webhelp/xsl/titlepage.templates.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 12.2 12.2-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/loongarch-12.2 xry111/mips64el xry111/multilib 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: 172.4 KB
Line 
1<?xml version="1.0"?>
2
3<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exsl="http://exslt.org/common" version="1.0" exclude-result-prefixes="exsl">
4
5<!-- This stylesheet was created by template/titlepage.xsl-->
6
7<xsl:template name="article.titlepage.recto">
8 <xsl:choose>
9 <xsl:when test="articleinfo/title">
10 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/title"/>
11 </xsl:when>
12 <xsl:when test="artheader/title">
13 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/title"/>
14 </xsl:when>
15 <xsl:when test="info/title">
16 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="info/title"/>
17 </xsl:when>
18 <xsl:when test="title">
19 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="title"/>
20 </xsl:when>
21 </xsl:choose>
22
23 <xsl:choose>
24 <xsl:when test="articleinfo/subtitle">
25 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/subtitle"/>
26 </xsl:when>
27 <xsl:when test="artheader/subtitle">
28 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/subtitle"/>
29 </xsl:when>
30 <xsl:when test="info/subtitle">
31 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="info/subtitle"/>
32 </xsl:when>
33 <xsl:when test="subtitle">
34 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="subtitle"/>
35 </xsl:when>
36 </xsl:choose>
37
38 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/corpauthor"/>
39 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/corpauthor"/>
40 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="info/corpauthor"/>
41 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/authorgroup"/>
42 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/authorgroup"/>
43 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="info/authorgroup"/>
44 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/author"/>
45 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/author"/>
46 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="info/author"/>
47 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/othercredit"/>
48 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/othercredit"/>
49 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="info/othercredit"/>
50 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/releaseinfo"/>
51 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/releaseinfo"/>
52 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="info/releaseinfo"/>
53 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/copyright"/>
54 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/copyright"/>
55 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="info/copyright"/>
56 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/legalnotice"/>
57 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/legalnotice"/>
58 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="info/legalnotice"/>
59 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/pubdate"/>
60 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/pubdate"/>
61 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="info/pubdate"/>
62 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/revision"/>
63 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/revision"/>
64 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="info/revision"/>
65 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/revhistory"/>
66 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/revhistory"/>
67 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="info/revhistory"/>
68</xsl:template>
69
70<xsl:template name="article.titlepage.verso">
71</xsl:template>
72
73<xsl:template name="article.titlepage.separator"><hr/>
74</xsl:template>
75
76<xsl:template name="article.titlepage.before.recto">
77</xsl:template>
78
79<xsl:template name="article.titlepage.before.verso">
80</xsl:template>
81
82<xsl:template name="article.titlepage">
83 <div class="titlepage">
84 <xsl:variable name="recto.content">
85 <xsl:call-template name="article.titlepage.before.recto"/>
86 <xsl:call-template name="article.titlepage.recto"/>
87 </xsl:variable>
88 <xsl:variable name="recto.elements.count">
89 <xsl:choose>
90 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
91 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
92 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
93 <xsl:otherwise>1</xsl:otherwise>
94 </xsl:choose>
95 </xsl:variable>
96 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
97 <div><xsl:copy-of select="$recto.content"/></div>
98 </xsl:if>
99 <xsl:variable name="verso.content">
100 <xsl:call-template name="article.titlepage.before.verso"/>
101 <xsl:call-template name="article.titlepage.verso"/>
102 </xsl:variable>
103 <xsl:variable name="verso.elements.count">
104 <xsl:choose>
105 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
106 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
107 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
108 <xsl:otherwise>1</xsl:otherwise>
109 </xsl:choose>
110 </xsl:variable>
111 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
112 <div><xsl:copy-of select="$verso.content"/></div>
113 </xsl:if>
114 <xsl:call-template name="article.titlepage.separator"/>
115 </div>
116</xsl:template>
117
118<xsl:template match="*" mode="article.titlepage.recto.mode">
119 <!-- if an element isn't found in this mode, -->
120 <!-- try the generic titlepage.mode -->
121 <xsl:apply-templates select="." mode="titlepage.mode"/>
122</xsl:template>
123
124<xsl:template match="*" mode="article.titlepage.verso.mode">
125 <!-- if an element isn't found in this mode, -->
126 <!-- try the generic titlepage.mode -->
127 <xsl:apply-templates select="." mode="titlepage.mode"/>
128</xsl:template>
129
130<xsl:template match="title" mode="article.titlepage.recto.auto.mode">
131<div xsl:use-attribute-sets="article.titlepage.recto.style">
132<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
133</div>
134</xsl:template>
135
136<xsl:template match="subtitle" mode="article.titlepage.recto.auto.mode">
137<div xsl:use-attribute-sets="article.titlepage.recto.style">
138<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
139</div>
140</xsl:template>
141
142<xsl:template match="corpauthor" mode="article.titlepage.recto.auto.mode">
143<div xsl:use-attribute-sets="article.titlepage.recto.style">
144<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
145</div>
146</xsl:template>
147
148<xsl:template match="authorgroup" mode="article.titlepage.recto.auto.mode">
149<div xsl:use-attribute-sets="article.titlepage.recto.style">
150<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
151</div>
152</xsl:template>
153
154<xsl:template match="author" mode="article.titlepage.recto.auto.mode">
155<div xsl:use-attribute-sets="article.titlepage.recto.style">
156<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
157</div>
158</xsl:template>
159
160<xsl:template match="othercredit" mode="article.titlepage.recto.auto.mode">
161<div xsl:use-attribute-sets="article.titlepage.recto.style">
162<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
163</div>
164</xsl:template>
165
166<xsl:template match="releaseinfo" mode="article.titlepage.recto.auto.mode">
167<div xsl:use-attribute-sets="article.titlepage.recto.style">
168<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
169</div>
170</xsl:template>
171
172<xsl:template match="copyright" mode="article.titlepage.recto.auto.mode">
173<div xsl:use-attribute-sets="article.titlepage.recto.style">
174<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
175</div>
176</xsl:template>
177
178<xsl:template match="legalnotice" mode="article.titlepage.recto.auto.mode">
179<div xsl:use-attribute-sets="article.titlepage.recto.style">
180<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
181</div>
182</xsl:template>
183
184<xsl:template match="pubdate" mode="article.titlepage.recto.auto.mode">
185<div xsl:use-attribute-sets="article.titlepage.recto.style">
186<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
187</div>
188</xsl:template>
189
190<xsl:template match="revision" mode="article.titlepage.recto.auto.mode">
191<div xsl:use-attribute-sets="article.titlepage.recto.style">
192<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
193</div>
194</xsl:template>
195
196<xsl:template match="revhistory" mode="article.titlepage.recto.auto.mode">
197<div xsl:use-attribute-sets="article.titlepage.recto.style">
198<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
199</div>
200</xsl:template>
201
202<xsl:template name="set.titlepage.recto">
203 <xsl:choose>
204 <xsl:when test="setinfo/title">
205 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/title"/>
206 </xsl:when>
207 <xsl:when test="info/title">
208 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/title"/>
209 </xsl:when>
210 <xsl:when test="title">
211 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="title"/>
212 </xsl:when>
213 </xsl:choose>
214
215 <xsl:choose>
216 <xsl:when test="setinfo/subtitle">
217 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/subtitle"/>
218 </xsl:when>
219 <xsl:when test="info/subtitle">
220 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/subtitle"/>
221 </xsl:when>
222 <xsl:when test="subtitle">
223 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="subtitle"/>
224 </xsl:when>
225 </xsl:choose>
226
227 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/corpauthor"/>
228 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/corpauthor"/>
229 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/authorgroup"/>
230 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/authorgroup"/>
231 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/author"/>
232 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/author"/>
233 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/othercredit"/>
234 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/othercredit"/>
235 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/releaseinfo"/>
236 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/releaseinfo"/>
237 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/copyright"/>
238 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/copyright"/>
239 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/legalnotice"/>
240 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/legalnotice"/>
241 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/pubdate"/>
242 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/pubdate"/>
243 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/revision"/>
244 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/revision"/>
245 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/revhistory"/>
246 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/revhistory"/>
247</xsl:template>
248
249<xsl:template name="set.titlepage.verso">
250</xsl:template>
251
252<xsl:template name="set.titlepage.separator"><hr/>
253</xsl:template>
254
255<xsl:template name="set.titlepage.before.recto">
256</xsl:template>
257
258<xsl:template name="set.titlepage.before.verso">
259</xsl:template>
260
261<xsl:template name="set.titlepage">
262 <div class="titlepage">
263 <xsl:variable name="recto.content">
264 <xsl:call-template name="set.titlepage.before.recto"/>
265 <xsl:call-template name="set.titlepage.recto"/>
266 </xsl:variable>
267 <xsl:variable name="recto.elements.count">
268 <xsl:choose>
269 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
270 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
271 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
272 <xsl:otherwise>1</xsl:otherwise>
273 </xsl:choose>
274 </xsl:variable>
275 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
276 <div><xsl:copy-of select="$recto.content"/></div>
277 </xsl:if>
278 <xsl:variable name="verso.content">
279 <xsl:call-template name="set.titlepage.before.verso"/>
280 <xsl:call-template name="set.titlepage.verso"/>
281 </xsl:variable>
282 <xsl:variable name="verso.elements.count">
283 <xsl:choose>
284 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
285 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
286 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
287 <xsl:otherwise>1</xsl:otherwise>
288 </xsl:choose>
289 </xsl:variable>
290 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
291 <div><xsl:copy-of select="$verso.content"/></div>
292 </xsl:if>
293 <xsl:call-template name="set.titlepage.separator"/>
294 </div>
295</xsl:template>
296
297<xsl:template match="*" mode="set.titlepage.recto.mode">
298 <!-- if an element isn't found in this mode, -->
299 <!-- try the generic titlepage.mode -->
300 <xsl:apply-templates select="." mode="titlepage.mode"/>
301</xsl:template>
302
303<xsl:template match="*" mode="set.titlepage.verso.mode">
304 <!-- if an element isn't found in this mode, -->
305 <!-- try the generic titlepage.mode -->
306 <xsl:apply-templates select="." mode="titlepage.mode"/>
307</xsl:template>
308
309<xsl:template match="title" mode="set.titlepage.recto.auto.mode">
310<div xsl:use-attribute-sets="set.titlepage.recto.style">
311<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
312</div>
313</xsl:template>
314
315<xsl:template match="subtitle" mode="set.titlepage.recto.auto.mode">
316<div xsl:use-attribute-sets="set.titlepage.recto.style">
317<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
318</div>
319</xsl:template>
320
321<xsl:template match="corpauthor" mode="set.titlepage.recto.auto.mode">
322<div xsl:use-attribute-sets="set.titlepage.recto.style">
323<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
324</div>
325</xsl:template>
326
327<xsl:template match="authorgroup" mode="set.titlepage.recto.auto.mode">
328<div xsl:use-attribute-sets="set.titlepage.recto.style">
329<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
330</div>
331</xsl:template>
332
333<xsl:template match="author" mode="set.titlepage.recto.auto.mode">
334<div xsl:use-attribute-sets="set.titlepage.recto.style">
335<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
336</div>
337</xsl:template>
338
339<xsl:template match="othercredit" mode="set.titlepage.recto.auto.mode">
340<div xsl:use-attribute-sets="set.titlepage.recto.style">
341<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
342</div>
343</xsl:template>
344
345<xsl:template match="releaseinfo" mode="set.titlepage.recto.auto.mode">
346<div xsl:use-attribute-sets="set.titlepage.recto.style">
347<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
348</div>
349</xsl:template>
350
351<xsl:template match="copyright" mode="set.titlepage.recto.auto.mode">
352<div xsl:use-attribute-sets="set.titlepage.recto.style">
353<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
354</div>
355</xsl:template>
356
357<xsl:template match="legalnotice" mode="set.titlepage.recto.auto.mode">
358<div xsl:use-attribute-sets="set.titlepage.recto.style">
359<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
360</div>
361</xsl:template>
362
363<xsl:template match="pubdate" mode="set.titlepage.recto.auto.mode">
364<div xsl:use-attribute-sets="set.titlepage.recto.style">
365<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
366</div>
367</xsl:template>
368
369<xsl:template match="revision" mode="set.titlepage.recto.auto.mode">
370<div xsl:use-attribute-sets="set.titlepage.recto.style">
371<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
372</div>
373</xsl:template>
374
375<xsl:template match="revhistory" mode="set.titlepage.recto.auto.mode">
376<div xsl:use-attribute-sets="set.titlepage.recto.style">
377<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
378</div>
379</xsl:template>
380
381<xsl:template name="book.titlepage.recto">
382 <xsl:choose>
383 <xsl:when test="bookinfo/title">
384 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/title"/>
385 </xsl:when>
386 <xsl:when test="info/title">
387 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/title"/>
388 </xsl:when>
389 <xsl:when test="title">
390 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="title"/>
391 </xsl:when>
392 </xsl:choose>
393
394 <xsl:choose>
395 <xsl:when test="bookinfo/subtitle">
396 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/subtitle"/>
397 </xsl:when>
398 <xsl:when test="info/subtitle">
399 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/subtitle"/>
400 </xsl:when>
401 <xsl:when test="subtitle">
402 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="subtitle"/>
403 </xsl:when>
404 </xsl:choose>
405
406 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/corpauthor"/>
407 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/corpauthor"/>
408 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/authorgroup"/>
409 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/authorgroup"/>
410 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/author"/>
411 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/author"/>
412 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/othercredit"/>
413 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/othercredit"/>
414 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/releaseinfo"/>
415 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/releaseinfo"/>
416 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/copyright"/>
417 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/copyright"/>
418 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/legalnotice"/>
419 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/legalnotice"/>
420 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/pubdate"/>
421 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/pubdate"/>
422 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/revision"/>
423 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/revision"/>
424 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/revhistory"/>
425 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/revhistory"/>
426</xsl:template>
427
428<xsl:template name="book.titlepage.verso">
429</xsl:template>
430
431<xsl:template name="book.titlepage.separator"><hr/>
432</xsl:template>
433
434<xsl:template name="book.titlepage.before.recto">
435</xsl:template>
436
437<xsl:template name="book.titlepage.before.verso">
438</xsl:template>
439
440<xsl:template name="book.titlepage">
441 <div class="titlepage">
442 <xsl:variable name="recto.content">
443 <xsl:call-template name="book.titlepage.before.recto"/>
444 <xsl:call-template name="book.titlepage.recto"/>
445 </xsl:variable>
446 <xsl:variable name="recto.elements.count">
447 <xsl:choose>
448 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
449 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
450 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
451 <xsl:otherwise>1</xsl:otherwise>
452 </xsl:choose>
453 </xsl:variable>
454 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
455 <div><xsl:copy-of select="$recto.content"/></div>
456 </xsl:if>
457 <xsl:variable name="verso.content">
458 <xsl:call-template name="book.titlepage.before.verso"/>
459 <xsl:call-template name="book.titlepage.verso"/>
460 </xsl:variable>
461 <xsl:variable name="verso.elements.count">
462 <xsl:choose>
463 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
464 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
465 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
466 <xsl:otherwise>1</xsl:otherwise>
467 </xsl:choose>
468 </xsl:variable>
469 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
470 <div><xsl:copy-of select="$verso.content"/></div>
471 </xsl:if>
472 <xsl:call-template name="book.titlepage.separator"/>
473 </div>
474</xsl:template>
475
476<xsl:template match="*" mode="book.titlepage.recto.mode">
477 <!-- if an element isn't found in this mode, -->
478 <!-- try the generic titlepage.mode -->
479 <xsl:apply-templates select="." mode="titlepage.mode"/>
480</xsl:template>
481
482<xsl:template match="*" mode="book.titlepage.verso.mode">
483 <!-- if an element isn't found in this mode, -->
484 <!-- try the generic titlepage.mode -->
485 <xsl:apply-templates select="." mode="titlepage.mode"/>
486</xsl:template>
487
488<xsl:template match="title" mode="book.titlepage.recto.auto.mode">
489<div xsl:use-attribute-sets="book.titlepage.recto.style">
490<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
491</div>
492</xsl:template>
493
494<xsl:template match="subtitle" mode="book.titlepage.recto.auto.mode">
495<div xsl:use-attribute-sets="book.titlepage.recto.style">
496<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
497</div>
498</xsl:template>
499
500<xsl:template match="corpauthor" mode="book.titlepage.recto.auto.mode">
501<div xsl:use-attribute-sets="book.titlepage.recto.style">
502<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
503</div>
504</xsl:template>
505
506<xsl:template match="authorgroup" mode="book.titlepage.recto.auto.mode">
507<div xsl:use-attribute-sets="book.titlepage.recto.style">
508<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
509</div>
510</xsl:template>
511
512<xsl:template match="author" mode="book.titlepage.recto.auto.mode">
513<div xsl:use-attribute-sets="book.titlepage.recto.style">
514<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
515</div>
516</xsl:template>
517
518<xsl:template match="othercredit" mode="book.titlepage.recto.auto.mode">
519<div xsl:use-attribute-sets="book.titlepage.recto.style">
520<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
521</div>
522</xsl:template>
523
524<xsl:template match="releaseinfo" mode="book.titlepage.recto.auto.mode">
525<div xsl:use-attribute-sets="book.titlepage.recto.style">
526<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
527</div>
528</xsl:template>
529
530<xsl:template match="copyright" mode="book.titlepage.recto.auto.mode">
531<div xsl:use-attribute-sets="book.titlepage.recto.style">
532<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
533</div>
534</xsl:template>
535
536<xsl:template match="legalnotice" mode="book.titlepage.recto.auto.mode">
537<div xsl:use-attribute-sets="book.titlepage.recto.style">
538<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
539</div>
540</xsl:template>
541
542<xsl:template match="pubdate" mode="book.titlepage.recto.auto.mode">
543<div xsl:use-attribute-sets="book.titlepage.recto.style">
544<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
545</div>
546</xsl:template>
547
548<xsl:template match="revision" mode="book.titlepage.recto.auto.mode">
549<div xsl:use-attribute-sets="book.titlepage.recto.style">
550<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
551</div>
552</xsl:template>
553
554<xsl:template match="revhistory" mode="book.titlepage.recto.auto.mode">
555<div xsl:use-attribute-sets="book.titlepage.recto.style">
556<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
557</div>
558</xsl:template>
559
560<xsl:template name="part.titlepage.recto">
561 <div xsl:use-attribute-sets="part.titlepage.recto.style">
562<xsl:call-template name="division.title">
563<xsl:with-param name="node" select="ancestor-or-self::part[1]"/>
564</xsl:call-template></div>
565 <xsl:choose>
566 <xsl:when test="partinfo/subtitle">
567 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/subtitle"/>
568 </xsl:when>
569 <xsl:when test="docinfo/subtitle">
570 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
571 </xsl:when>
572 <xsl:when test="info/subtitle">
573 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="info/subtitle"/>
574 </xsl:when>
575 <xsl:when test="subtitle">
576 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="subtitle"/>
577 </xsl:when>
578 </xsl:choose>
579
580 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/corpauthor"/>
581 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/corpauthor"/>
582 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="info/corpauthor"/>
583 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/authorgroup"/>
584 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/authorgroup"/>
585 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="info/authorgroup"/>
586 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/author"/>
587 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/author"/>
588 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="info/author"/>
589 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/othercredit"/>
590 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/othercredit"/>
591 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="info/othercredit"/>
592 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/releaseinfo"/>
593 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/>
594 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="info/releaseinfo"/>
595 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/copyright"/>
596 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/copyright"/>
597 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="info/copyright"/>
598 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/legalnotice"/>
599 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/legalnotice"/>
600 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="info/legalnotice"/>
601 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/pubdate"/>
602 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/pubdate"/>
603 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="info/pubdate"/>
604 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/revision"/>
605 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/revision"/>
606 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="info/revision"/>
607 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/revhistory"/>
608 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/revhistory"/>
609 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="info/revhistory"/>
610</xsl:template>
611
612<xsl:template name="part.titlepage.verso">
613</xsl:template>
614
615<xsl:template name="part.titlepage.separator">
616</xsl:template>
617
618<xsl:template name="part.titlepage.before.recto">
619</xsl:template>
620
621<xsl:template name="part.titlepage.before.verso">
622</xsl:template>
623
624<xsl:template name="part.titlepage">
625 <div class="titlepage">
626 <xsl:variable name="recto.content">
627 <xsl:call-template name="part.titlepage.before.recto"/>
628 <xsl:call-template name="part.titlepage.recto"/>
629 </xsl:variable>
630 <xsl:variable name="recto.elements.count">
631 <xsl:choose>
632 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
633 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
634 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
635 <xsl:otherwise>1</xsl:otherwise>
636 </xsl:choose>
637 </xsl:variable>
638 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
639 <div><xsl:copy-of select="$recto.content"/></div>
640 </xsl:if>
641 <xsl:variable name="verso.content">
642 <xsl:call-template name="part.titlepage.before.verso"/>
643 <xsl:call-template name="part.titlepage.verso"/>
644 </xsl:variable>
645 <xsl:variable name="verso.elements.count">
646 <xsl:choose>
647 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
648 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
649 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
650 <xsl:otherwise>1</xsl:otherwise>
651 </xsl:choose>
652 </xsl:variable>
653 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
654 <div><xsl:copy-of select="$verso.content"/></div>
655 </xsl:if>
656 <xsl:call-template name="part.titlepage.separator"/>
657 </div>
658</xsl:template>
659
660<xsl:template match="*" mode="part.titlepage.recto.mode">
661 <!-- if an element isn't found in this mode, -->
662 <!-- try the generic titlepage.mode -->
663 <xsl:apply-templates select="." mode="titlepage.mode"/>
664</xsl:template>
665
666<xsl:template match="*" mode="part.titlepage.verso.mode">
667 <!-- if an element isn't found in this mode, -->
668 <!-- try the generic titlepage.mode -->
669 <xsl:apply-templates select="." mode="titlepage.mode"/>
670</xsl:template>
671
672<xsl:template match="subtitle" mode="part.titlepage.recto.auto.mode">
673<div xsl:use-attribute-sets="part.titlepage.recto.style">
674<xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
675</div>
676</xsl:template>
677
678<xsl:template match="corpauthor" mode="part.titlepage.recto.auto.mode">
679<div xsl:use-attribute-sets="part.titlepage.recto.style">
680<xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
681</div>
682</xsl:template>
683
684<xsl:template match="authorgroup" mode="part.titlepage.recto.auto.mode">
685<div xsl:use-attribute-sets="part.titlepage.recto.style">
686<xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
687</div>
688</xsl:template>
689
690<xsl:template match="author" mode="part.titlepage.recto.auto.mode">
691<div xsl:use-attribute-sets="part.titlepage.recto.style">
692<xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
693</div>
694</xsl:template>
695
696<xsl:template match="othercredit" mode="part.titlepage.recto.auto.mode">
697<div xsl:use-attribute-sets="part.titlepage.recto.style">
698<xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
699</div>
700</xsl:template>
701
702<xsl:template match="releaseinfo" mode="part.titlepage.recto.auto.mode">
703<div xsl:use-attribute-sets="part.titlepage.recto.style">
704<xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
705</div>
706</xsl:template>
707
708<xsl:template match="copyright" mode="part.titlepage.recto.auto.mode">
709<div xsl:use-attribute-sets="part.titlepage.recto.style">
710<xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
711</div>
712</xsl:template>
713
714<xsl:template match="legalnotice" mode="part.titlepage.recto.auto.mode">
715<div xsl:use-attribute-sets="part.titlepage.recto.style">
716<xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
717</div>
718</xsl:template>
719
720<xsl:template match="pubdate" mode="part.titlepage.recto.auto.mode">
721<div xsl:use-attribute-sets="part.titlepage.recto.style">
722<xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
723</div>
724</xsl:template>
725
726<xsl:template match="revision" mode="part.titlepage.recto.auto.mode">
727<div xsl:use-attribute-sets="part.titlepage.recto.style">
728<xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
729</div>
730</xsl:template>
731
732<xsl:template match="revhistory" mode="part.titlepage.recto.auto.mode">
733<div xsl:use-attribute-sets="part.titlepage.recto.style">
734<xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
735</div>
736</xsl:template>
737
738<xsl:template name="partintro.titlepage.recto">
739 <xsl:choose>
740 <xsl:when test="partintroinfo/title">
741 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/title"/>
742 </xsl:when>
743 <xsl:when test="docinfo/title">
744 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/title"/>
745 </xsl:when>
746 <xsl:when test="info/title">
747 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/title"/>
748 </xsl:when>
749 <xsl:when test="title">
750 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="title"/>
751 </xsl:when>
752 </xsl:choose>
753
754 <xsl:choose>
755 <xsl:when test="partintroinfo/subtitle">
756 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/subtitle"/>
757 </xsl:when>
758 <xsl:when test="docinfo/subtitle">
759 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
760 </xsl:when>
761 <xsl:when test="info/subtitle">
762 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/subtitle"/>
763 </xsl:when>
764 <xsl:when test="subtitle">
765 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="subtitle"/>
766 </xsl:when>
767 </xsl:choose>
768
769 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/corpauthor"/>
770 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/corpauthor"/>
771 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/corpauthor"/>
772 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/authorgroup"/>
773 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/authorgroup"/>
774 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/authorgroup"/>
775 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/author"/>
776 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/author"/>
777 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/author"/>
778 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/othercredit"/>
779 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/othercredit"/>
780 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/othercredit"/>
781 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/releaseinfo"/>
782 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/>
783 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/releaseinfo"/>
784 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/copyright"/>
785 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/copyright"/>
786 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/copyright"/>
787 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/legalnotice"/>
788 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/legalnotice"/>
789 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/legalnotice"/>
790 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/pubdate"/>
791 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/pubdate"/>
792 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/pubdate"/>
793 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/revision"/>
794 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/revision"/>
795 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/revision"/>
796 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/revhistory"/>
797 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/revhistory"/>
798 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/revhistory"/>
799</xsl:template>
800
801<xsl:template name="partintro.titlepage.verso">
802</xsl:template>
803
804<xsl:template name="partintro.titlepage.separator">
805</xsl:template>
806
807<xsl:template name="partintro.titlepage.before.recto">
808</xsl:template>
809
810<xsl:template name="partintro.titlepage.before.verso">
811</xsl:template>
812
813<xsl:template name="partintro.titlepage">
814 <div>
815 <xsl:variable name="recto.content">
816 <xsl:call-template name="partintro.titlepage.before.recto"/>
817 <xsl:call-template name="partintro.titlepage.recto"/>
818 </xsl:variable>
819 <xsl:variable name="recto.elements.count">
820 <xsl:choose>
821 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
822 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
823 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
824 <xsl:otherwise>1</xsl:otherwise>
825 </xsl:choose>
826 </xsl:variable>
827 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
828 <div><xsl:copy-of select="$recto.content"/></div>
829 </xsl:if>
830 <xsl:variable name="verso.content">
831 <xsl:call-template name="partintro.titlepage.before.verso"/>
832 <xsl:call-template name="partintro.titlepage.verso"/>
833 </xsl:variable>
834 <xsl:variable name="verso.elements.count">
835 <xsl:choose>
836 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
837 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
838 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
839 <xsl:otherwise>1</xsl:otherwise>
840 </xsl:choose>
841 </xsl:variable>
842 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
843 <div><xsl:copy-of select="$verso.content"/></div>
844 </xsl:if>
845 <xsl:call-template name="partintro.titlepage.separator"/>
846 </div>
847</xsl:template>
848
849<xsl:template match="*" mode="partintro.titlepage.recto.mode">
850 <!-- if an element isn't found in this mode, -->
851 <!-- try the generic titlepage.mode -->
852 <xsl:apply-templates select="." mode="titlepage.mode"/>
853</xsl:template>
854
855<xsl:template match="*" mode="partintro.titlepage.verso.mode">
856 <!-- if an element isn't found in this mode, -->
857 <!-- try the generic titlepage.mode -->
858 <xsl:apply-templates select="." mode="titlepage.mode"/>
859</xsl:template>
860
861<xsl:template match="title" mode="partintro.titlepage.recto.auto.mode">
862<div xsl:use-attribute-sets="partintro.titlepage.recto.style">
863<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
864</div>
865</xsl:template>
866
867<xsl:template match="subtitle" mode="partintro.titlepage.recto.auto.mode">
868<div xsl:use-attribute-sets="partintro.titlepage.recto.style">
869<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
870</div>
871</xsl:template>
872
873<xsl:template match="corpauthor" mode="partintro.titlepage.recto.auto.mode">
874<div xsl:use-attribute-sets="partintro.titlepage.recto.style">
875<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
876</div>
877</xsl:template>
878
879<xsl:template match="authorgroup" mode="partintro.titlepage.recto.auto.mode">
880<div xsl:use-attribute-sets="partintro.titlepage.recto.style">
881<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
882</div>
883</xsl:template>
884
885<xsl:template match="author" mode="partintro.titlepage.recto.auto.mode">
886<div xsl:use-attribute-sets="partintro.titlepage.recto.style">
887<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
888</div>
889</xsl:template>
890
891<xsl:template match="othercredit" mode="partintro.titlepage.recto.auto.mode">
892<div xsl:use-attribute-sets="partintro.titlepage.recto.style">
893<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
894</div>
895</xsl:template>
896
897<xsl:template match="releaseinfo" mode="partintro.titlepage.recto.auto.mode">
898<div xsl:use-attribute-sets="partintro.titlepage.recto.style">
899<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
900</div>
901</xsl:template>
902
903<xsl:template match="copyright" mode="partintro.titlepage.recto.auto.mode">
904<div xsl:use-attribute-sets="partintro.titlepage.recto.style">
905<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
906</div>
907</xsl:template>
908
909<xsl:template match="legalnotice" mode="partintro.titlepage.recto.auto.mode">
910<div xsl:use-attribute-sets="partintro.titlepage.recto.style">
911<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
912</div>
913</xsl:template>
914
915<xsl:template match="pubdate" mode="partintro.titlepage.recto.auto.mode">
916<div xsl:use-attribute-sets="partintro.titlepage.recto.style">
917<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
918</div>
919</xsl:template>
920
921<xsl:template match="revision" mode="partintro.titlepage.recto.auto.mode">
922<div xsl:use-attribute-sets="partintro.titlepage.recto.style">
923<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
924</div>
925</xsl:template>
926
927<xsl:template match="revhistory" mode="partintro.titlepage.recto.auto.mode">
928<div xsl:use-attribute-sets="partintro.titlepage.recto.style">
929<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
930</div>
931</xsl:template>
932
933<xsl:template name="reference.titlepage.recto">
934 <xsl:choose>
935 <xsl:when test="referenceinfo/title">
936 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/title"/>
937 </xsl:when>
938 <xsl:when test="docinfo/title">
939 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/title"/>
940 </xsl:when>
941 <xsl:when test="info/title">
942 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/title"/>
943 </xsl:when>
944 <xsl:when test="title">
945 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="title"/>
946 </xsl:when>
947 </xsl:choose>
948
949 <xsl:choose>
950 <xsl:when test="referenceinfo/subtitle">
951 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/subtitle"/>
952 </xsl:when>
953 <xsl:when test="docinfo/subtitle">
954 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
955 </xsl:when>
956 <xsl:when test="info/subtitle">
957 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/subtitle"/>
958 </xsl:when>
959 <xsl:when test="subtitle">
960 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="subtitle"/>
961 </xsl:when>
962 </xsl:choose>
963
964 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/corpauthor"/>
965 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/corpauthor"/>
966 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/corpauthor"/>
967 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/authorgroup"/>
968 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/authorgroup"/>
969 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/authorgroup"/>
970 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/author"/>
971 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/author"/>
972 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/author"/>
973 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/othercredit"/>
974 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/othercredit"/>
975 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/othercredit"/>
976 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/releaseinfo"/>
977 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/>
978 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/releaseinfo"/>
979 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/copyright"/>
980 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/copyright"/>
981 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/copyright"/>
982 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/legalnotice"/>
983 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/legalnotice"/>
984 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/legalnotice"/>
985 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/pubdate"/>
986 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/pubdate"/>
987 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/pubdate"/>
988 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/revision"/>
989 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/revision"/>
990 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/revision"/>
991 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/revhistory"/>
992 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/revhistory"/>
993 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/revhistory"/>
994</xsl:template>
995
996<xsl:template name="reference.titlepage.verso">
997</xsl:template>
998
999<xsl:template name="reference.titlepage.separator"><hr/>
1000</xsl:template>
1001
1002<xsl:template name="reference.titlepage.before.recto">
1003</xsl:template>
1004
1005<xsl:template name="reference.titlepage.before.verso">
1006</xsl:template>
1007
1008<xsl:template name="reference.titlepage">
1009 <div class="titlepage">
1010 <xsl:variable name="recto.content">
1011 <xsl:call-template name="reference.titlepage.before.recto"/>
1012 <xsl:call-template name="reference.titlepage.recto"/>
1013 </xsl:variable>
1014 <xsl:variable name="recto.elements.count">
1015 <xsl:choose>
1016 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1017 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1018 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1019 <xsl:otherwise>1</xsl:otherwise>
1020 </xsl:choose>
1021 </xsl:variable>
1022 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
1023 <div><xsl:copy-of select="$recto.content"/></div>
1024 </xsl:if>
1025 <xsl:variable name="verso.content">
1026 <xsl:call-template name="reference.titlepage.before.verso"/>
1027 <xsl:call-template name="reference.titlepage.verso"/>
1028 </xsl:variable>
1029 <xsl:variable name="verso.elements.count">
1030 <xsl:choose>
1031 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1032 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1033 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1034 <xsl:otherwise>1</xsl:otherwise>
1035 </xsl:choose>
1036 </xsl:variable>
1037 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
1038 <div><xsl:copy-of select="$verso.content"/></div>
1039 </xsl:if>
1040 <xsl:call-template name="reference.titlepage.separator"/>
1041 </div>
1042</xsl:template>
1043
1044<xsl:template match="*" mode="reference.titlepage.recto.mode">
1045 <!-- if an element isn't found in this mode, -->
1046 <!-- try the generic titlepage.mode -->
1047 <xsl:apply-templates select="." mode="titlepage.mode"/>
1048</xsl:template>
1049
1050<xsl:template match="*" mode="reference.titlepage.verso.mode">
1051 <!-- if an element isn't found in this mode, -->
1052 <!-- try the generic titlepage.mode -->
1053 <xsl:apply-templates select="." mode="titlepage.mode"/>
1054</xsl:template>
1055
1056<xsl:template match="title" mode="reference.titlepage.recto.auto.mode">
1057<div xsl:use-attribute-sets="reference.titlepage.recto.style">
1058<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1059</div>
1060</xsl:template>
1061
1062<xsl:template match="subtitle" mode="reference.titlepage.recto.auto.mode">
1063<div xsl:use-attribute-sets="reference.titlepage.recto.style">
1064<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1065</div>
1066</xsl:template>
1067
1068<xsl:template match="corpauthor" mode="reference.titlepage.recto.auto.mode">
1069<div xsl:use-attribute-sets="reference.titlepage.recto.style">
1070<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1071</div>
1072</xsl:template>
1073
1074<xsl:template match="authorgroup" mode="reference.titlepage.recto.auto.mode">
1075<div xsl:use-attribute-sets="reference.titlepage.recto.style">
1076<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1077</div>
1078</xsl:template>
1079
1080<xsl:template match="author" mode="reference.titlepage.recto.auto.mode">
1081<div xsl:use-attribute-sets="reference.titlepage.recto.style">
1082<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1083</div>
1084</xsl:template>
1085
1086<xsl:template match="othercredit" mode="reference.titlepage.recto.auto.mode">
1087<div xsl:use-attribute-sets="reference.titlepage.recto.style">
1088<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1089</div>
1090</xsl:template>
1091
1092<xsl:template match="releaseinfo" mode="reference.titlepage.recto.auto.mode">
1093<div xsl:use-attribute-sets="reference.titlepage.recto.style">
1094<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1095</div>
1096</xsl:template>
1097
1098<xsl:template match="copyright" mode="reference.titlepage.recto.auto.mode">
1099<div xsl:use-attribute-sets="reference.titlepage.recto.style">
1100<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1101</div>
1102</xsl:template>
1103
1104<xsl:template match="legalnotice" mode="reference.titlepage.recto.auto.mode">
1105<div xsl:use-attribute-sets="reference.titlepage.recto.style">
1106<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1107</div>
1108</xsl:template>
1109
1110<xsl:template match="pubdate" mode="reference.titlepage.recto.auto.mode">
1111<div xsl:use-attribute-sets="reference.titlepage.recto.style">
1112<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1113</div>
1114</xsl:template>
1115
1116<xsl:template match="revision" mode="reference.titlepage.recto.auto.mode">
1117<div xsl:use-attribute-sets="reference.titlepage.recto.style">
1118<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1119</div>
1120</xsl:template>
1121
1122<xsl:template match="revhistory" mode="reference.titlepage.recto.auto.mode">
1123<div xsl:use-attribute-sets="reference.titlepage.recto.style">
1124<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1125</div>
1126</xsl:template>
1127
1128<xsl:template name="refentry.titlepage.recto">
1129</xsl:template>
1130
1131<xsl:template name="refentry.titlepage.verso">
1132</xsl:template>
1133
1134<xsl:template name="refentry.titlepage.separator">
1135</xsl:template>
1136
1137<xsl:template name="refentry.titlepage.before.recto">
1138</xsl:template>
1139
1140<xsl:template name="refentry.titlepage.before.verso">
1141</xsl:template>
1142
1143<xsl:template name="refentry.titlepage">
1144 <div class="titlepage">
1145 <xsl:variable name="recto.content">
1146 <xsl:call-template name="refentry.titlepage.before.recto"/>
1147 <xsl:call-template name="refentry.titlepage.recto"/>
1148 </xsl:variable>
1149 <xsl:variable name="recto.elements.count">
1150 <xsl:choose>
1151 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1152 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1153 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1154 <xsl:otherwise>1</xsl:otherwise>
1155 </xsl:choose>
1156 </xsl:variable>
1157 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
1158 <div><xsl:copy-of select="$recto.content"/></div>
1159 </xsl:if>
1160 <xsl:variable name="verso.content">
1161 <xsl:call-template name="refentry.titlepage.before.verso"/>
1162 <xsl:call-template name="refentry.titlepage.verso"/>
1163 </xsl:variable>
1164 <xsl:variable name="verso.elements.count">
1165 <xsl:choose>
1166 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1167 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1168 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1169 <xsl:otherwise>1</xsl:otherwise>
1170 </xsl:choose>
1171 </xsl:variable>
1172 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
1173 <div><xsl:copy-of select="$verso.content"/></div>
1174 </xsl:if>
1175 <xsl:call-template name="refentry.titlepage.separator"/>
1176 </div>
1177</xsl:template>
1178
1179<xsl:template match="*" mode="refentry.titlepage.recto.mode">
1180 <!-- if an element isn't found in this mode, -->
1181 <!-- try the generic titlepage.mode -->
1182 <xsl:apply-templates select="." mode="titlepage.mode"/>
1183</xsl:template>
1184
1185<xsl:template match="*" mode="refentry.titlepage.verso.mode">
1186 <!-- if an element isn't found in this mode, -->
1187 <!-- try the generic titlepage.mode -->
1188 <xsl:apply-templates select="." mode="titlepage.mode"/>
1189</xsl:template>
1190
1191<xsl:template name="dedication.titlepage.recto">
1192 <div xsl:use-attribute-sets="dedication.titlepage.recto.style">
1193<xsl:call-template name="component.title">
1194<xsl:with-param name="node" select="ancestor-or-self::dedication[1]"/>
1195</xsl:call-template></div>
1196 <xsl:choose>
1197 <xsl:when test="dedicationinfo/subtitle">
1198 <xsl:apply-templates mode="dedication.titlepage.recto.auto.mode" select="dedicationinfo/subtitle"/>
1199 </xsl:when>
1200 <xsl:when test="docinfo/subtitle">
1201 <xsl:apply-templates mode="dedication.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
1202 </xsl:when>
1203 <xsl:when test="info/subtitle">
1204 <xsl:apply-templates mode="dedication.titlepage.recto.auto.mode" select="info/subtitle"/>
1205 </xsl:when>
1206 <xsl:when test="subtitle">
1207 <xsl:apply-templates mode="dedication.titlepage.recto.auto.mode" select="subtitle"/>
1208 </xsl:when>
1209 </xsl:choose>
1210
1211</xsl:template>
1212
1213<xsl:template name="dedication.titlepage.verso">
1214</xsl:template>
1215
1216<xsl:template name="dedication.titlepage.separator">
1217</xsl:template>
1218
1219<xsl:template name="dedication.titlepage.before.recto">
1220</xsl:template>
1221
1222<xsl:template name="dedication.titlepage.before.verso">
1223</xsl:template>
1224
1225<xsl:template name="dedication.titlepage">
1226 <div class="titlepage">
1227 <xsl:variable name="recto.content">
1228 <xsl:call-template name="dedication.titlepage.before.recto"/>
1229 <xsl:call-template name="dedication.titlepage.recto"/>
1230 </xsl:variable>
1231 <xsl:variable name="recto.elements.count">
1232 <xsl:choose>
1233 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1234 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1235 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1236 <xsl:otherwise>1</xsl:otherwise>
1237 </xsl:choose>
1238 </xsl:variable>
1239 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
1240 <div><xsl:copy-of select="$recto.content"/></div>
1241 </xsl:if>
1242 <xsl:variable name="verso.content">
1243 <xsl:call-template name="dedication.titlepage.before.verso"/>
1244 <xsl:call-template name="dedication.titlepage.verso"/>
1245 </xsl:variable>
1246 <xsl:variable name="verso.elements.count">
1247 <xsl:choose>
1248 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1249 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1250 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1251 <xsl:otherwise>1</xsl:otherwise>
1252 </xsl:choose>
1253 </xsl:variable>
1254 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
1255 <div><xsl:copy-of select="$verso.content"/></div>
1256 </xsl:if>
1257 <xsl:call-template name="dedication.titlepage.separator"/>
1258 </div>
1259</xsl:template>
1260
1261<xsl:template match="*" mode="dedication.titlepage.recto.mode">
1262 <!-- if an element isn't found in this mode, -->
1263 <!-- try the generic titlepage.mode -->
1264 <xsl:apply-templates select="." mode="titlepage.mode"/>
1265</xsl:template>
1266
1267<xsl:template match="*" mode="dedication.titlepage.verso.mode">
1268 <!-- if an element isn't found in this mode, -->
1269 <!-- try the generic titlepage.mode -->
1270 <xsl:apply-templates select="." mode="titlepage.mode"/>
1271</xsl:template>
1272
1273<xsl:template match="subtitle" mode="dedication.titlepage.recto.auto.mode">
1274<div xsl:use-attribute-sets="dedication.titlepage.recto.style">
1275<xsl:apply-templates select="." mode="dedication.titlepage.recto.mode"/>
1276</div>
1277</xsl:template>
1278
1279<xsl:template name="acknowledgements.titlepage.recto">
1280 <div xsl:use-attribute-sets="acknowledgements.titlepage.recto.style">
1281<xsl:call-template name="component.title">
1282<xsl:with-param name="node" select="ancestor-or-self::acknowledgements[1]"/>
1283</xsl:call-template></div>
1284 <xsl:choose>
1285 <xsl:when test="acknowledgementsinfo/subtitle">
1286 <xsl:apply-templates mode="acknowledgements.titlepage.recto.auto.mode" select="acknowledgementsinfo/subtitle"/>
1287 </xsl:when>
1288 <xsl:when test="docinfo/subtitle">
1289 <xsl:apply-templates mode="acknowledgements.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
1290 </xsl:when>
1291 <xsl:when test="info/subtitle">
1292 <xsl:apply-templates mode="acknowledgements.titlepage.recto.auto.mode" select="info/subtitle"/>
1293 </xsl:when>
1294 <xsl:when test="subtitle">
1295 <xsl:apply-templates mode="acknowledgements.titlepage.recto.auto.mode" select="subtitle"/>
1296 </xsl:when>
1297 </xsl:choose>
1298
1299</xsl:template>
1300
1301<xsl:template name="acknowledgements.titlepage.verso">
1302</xsl:template>
1303
1304<xsl:template name="acknowledgements.titlepage.separator">
1305</xsl:template>
1306
1307<xsl:template name="acknowledgements.titlepage.before.recto">
1308</xsl:template>
1309
1310<xsl:template name="acknowledgements.titlepage.before.verso">
1311</xsl:template>
1312
1313<xsl:template name="acknowledgements.titlepage">
1314 <div class="titlepage">
1315 <xsl:variable name="recto.content">
1316 <xsl:call-template name="acknowledgements.titlepage.before.recto"/>
1317 <xsl:call-template name="acknowledgements.titlepage.recto"/>
1318 </xsl:variable>
1319 <xsl:variable name="recto.elements.count">
1320 <xsl:choose>
1321 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1322 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1323 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1324 <xsl:otherwise>1</xsl:otherwise>
1325 </xsl:choose>
1326 </xsl:variable>
1327 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
1328 <div><xsl:copy-of select="$recto.content"/></div>
1329 </xsl:if>
1330 <xsl:variable name="verso.content">
1331 <xsl:call-template name="acknowledgements.titlepage.before.verso"/>
1332 <xsl:call-template name="acknowledgements.titlepage.verso"/>
1333 </xsl:variable>
1334 <xsl:variable name="verso.elements.count">
1335 <xsl:choose>
1336 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1337 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1338 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1339 <xsl:otherwise>1</xsl:otherwise>
1340 </xsl:choose>
1341 </xsl:variable>
1342 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
1343 <div><xsl:copy-of select="$verso.content"/></div>
1344 </xsl:if>
1345 <xsl:call-template name="acknowledgements.titlepage.separator"/>
1346 </div>
1347</xsl:template>
1348
1349<xsl:template match="*" mode="acknowledgements.titlepage.recto.mode">
1350 <!-- if an element isn't found in this mode, -->
1351 <!-- try the generic titlepage.mode -->
1352 <xsl:apply-templates select="." mode="titlepage.mode"/>
1353</xsl:template>
1354
1355<xsl:template match="*" mode="acknowledgements.titlepage.verso.mode">
1356 <!-- if an element isn't found in this mode, -->
1357 <!-- try the generic titlepage.mode -->
1358 <xsl:apply-templates select="." mode="titlepage.mode"/>
1359</xsl:template>
1360
1361<xsl:template match="subtitle" mode="acknowledgements.titlepage.recto.auto.mode">
1362<div xsl:use-attribute-sets="acknowledgements.titlepage.recto.style">
1363<xsl:apply-templates select="." mode="acknowledgements.titlepage.recto.mode"/>
1364</div>
1365</xsl:template>
1366
1367<xsl:template name="preface.titlepage.recto">
1368 <xsl:choose>
1369 <xsl:when test="prefaceinfo/title">
1370 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/title"/>
1371 </xsl:when>
1372 <xsl:when test="docinfo/title">
1373 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/title"/>
1374 </xsl:when>
1375 <xsl:when test="info/title">
1376 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/title"/>
1377 </xsl:when>
1378 <xsl:when test="title">
1379 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="title"/>
1380 </xsl:when>
1381 </xsl:choose>
1382
1383 <xsl:choose>
1384 <xsl:when test="prefaceinfo/subtitle">
1385 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/subtitle"/>
1386 </xsl:when>
1387 <xsl:when test="docinfo/subtitle">
1388 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
1389 </xsl:when>
1390 <xsl:when test="info/subtitle">
1391 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/subtitle"/>
1392 </xsl:when>
1393 <xsl:when test="subtitle">
1394 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="subtitle"/>
1395 </xsl:when>
1396 </xsl:choose>
1397
1398 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/corpauthor"/>
1399 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/corpauthor"/>
1400 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/corpauthor"/>
1401 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/authorgroup"/>
1402 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/authorgroup"/>
1403 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/authorgroup"/>
1404 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/author"/>
1405 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/author"/>
1406 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/author"/>
1407 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/othercredit"/>
1408 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/othercredit"/>
1409 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/othercredit"/>
1410 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/releaseinfo"/>
1411 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/>
1412 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/releaseinfo"/>
1413 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/copyright"/>
1414 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/copyright"/>
1415 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/copyright"/>
1416 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/legalnotice"/>
1417 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/legalnotice"/>
1418 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/legalnotice"/>
1419 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/pubdate"/>
1420 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/pubdate"/>
1421 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/pubdate"/>
1422 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/revision"/>
1423 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/revision"/>
1424 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/revision"/>
1425 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/revhistory"/>
1426 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/revhistory"/>
1427 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/revhistory"/>
1428</xsl:template>
1429
1430<xsl:template name="preface.titlepage.verso">
1431</xsl:template>
1432
1433<xsl:template name="preface.titlepage.separator">
1434</xsl:template>
1435
1436<xsl:template name="preface.titlepage.before.recto">
1437</xsl:template>
1438
1439<xsl:template name="preface.titlepage.before.verso">
1440</xsl:template>
1441
1442<xsl:template name="preface.titlepage">
1443 <div class="titlepage">
1444 <xsl:variable name="recto.content">
1445 <xsl:call-template name="preface.titlepage.before.recto"/>
1446 <xsl:call-template name="preface.titlepage.recto"/>
1447 </xsl:variable>
1448 <xsl:variable name="recto.elements.count">
1449 <xsl:choose>
1450 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1451 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1452 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1453 <xsl:otherwise>1</xsl:otherwise>
1454 </xsl:choose>
1455 </xsl:variable>
1456 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
1457 <div><xsl:copy-of select="$recto.content"/></div>
1458 </xsl:if>
1459 <xsl:variable name="verso.content">
1460 <xsl:call-template name="preface.titlepage.before.verso"/>
1461 <xsl:call-template name="preface.titlepage.verso"/>
1462 </xsl:variable>
1463 <xsl:variable name="verso.elements.count">
1464 <xsl:choose>
1465 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1466 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1467 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1468 <xsl:otherwise>1</xsl:otherwise>
1469 </xsl:choose>
1470 </xsl:variable>
1471 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
1472 <div><xsl:copy-of select="$verso.content"/></div>
1473 </xsl:if>
1474 <xsl:call-template name="preface.titlepage.separator"/>
1475 </div>
1476</xsl:template>
1477
1478<xsl:template match="*" mode="preface.titlepage.recto.mode">
1479 <!-- if an element isn't found in this mode, -->
1480 <!-- try the generic titlepage.mode -->
1481 <xsl:apply-templates select="." mode="titlepage.mode"/>
1482</xsl:template>
1483
1484<xsl:template match="*" mode="preface.titlepage.verso.mode">
1485 <!-- if an element isn't found in this mode, -->
1486 <!-- try the generic titlepage.mode -->
1487 <xsl:apply-templates select="." mode="titlepage.mode"/>
1488</xsl:template>
1489
1490<xsl:template match="title" mode="preface.titlepage.recto.auto.mode">
1491<div xsl:use-attribute-sets="preface.titlepage.recto.style">
1492<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1493</div>
1494</xsl:template>
1495
1496<xsl:template match="subtitle" mode="preface.titlepage.recto.auto.mode">
1497<div xsl:use-attribute-sets="preface.titlepage.recto.style">
1498<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1499</div>
1500</xsl:template>
1501
1502<xsl:template match="corpauthor" mode="preface.titlepage.recto.auto.mode">
1503<div xsl:use-attribute-sets="preface.titlepage.recto.style">
1504<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1505</div>
1506</xsl:template>
1507
1508<xsl:template match="authorgroup" mode="preface.titlepage.recto.auto.mode">
1509<div xsl:use-attribute-sets="preface.titlepage.recto.style">
1510<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1511</div>
1512</xsl:template>
1513
1514<xsl:template match="author" mode="preface.titlepage.recto.auto.mode">
1515<div xsl:use-attribute-sets="preface.titlepage.recto.style">
1516<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1517</div>
1518</xsl:template>
1519
1520<xsl:template match="othercredit" mode="preface.titlepage.recto.auto.mode">
1521<div xsl:use-attribute-sets="preface.titlepage.recto.style">
1522<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1523</div>
1524</xsl:template>
1525
1526<xsl:template match="releaseinfo" mode="preface.titlepage.recto.auto.mode">
1527<div xsl:use-attribute-sets="preface.titlepage.recto.style">
1528<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1529</div>
1530</xsl:template>
1531
1532<xsl:template match="copyright" mode="preface.titlepage.recto.auto.mode">
1533<div xsl:use-attribute-sets="preface.titlepage.recto.style">
1534<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1535</div>
1536</xsl:template>
1537
1538<xsl:template match="legalnotice" mode="preface.titlepage.recto.auto.mode">
1539<div xsl:use-attribute-sets="preface.titlepage.recto.style">
1540<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1541</div>
1542</xsl:template>
1543
1544<xsl:template match="pubdate" mode="preface.titlepage.recto.auto.mode">
1545<div xsl:use-attribute-sets="preface.titlepage.recto.style">
1546<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1547</div>
1548</xsl:template>
1549
1550<xsl:template match="revision" mode="preface.titlepage.recto.auto.mode">
1551<div xsl:use-attribute-sets="preface.titlepage.recto.style">
1552<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1553</div>
1554</xsl:template>
1555
1556<xsl:template match="revhistory" mode="preface.titlepage.recto.auto.mode">
1557<div xsl:use-attribute-sets="preface.titlepage.recto.style">
1558<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1559</div>
1560</xsl:template>
1561
1562<xsl:template name="chapter.titlepage.recto">
1563 <xsl:choose>
1564 <xsl:when test="chapterinfo/title">
1565 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/title"/>
1566 </xsl:when>
1567 <xsl:when test="docinfo/title">
1568 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/title"/>
1569 </xsl:when>
1570 <xsl:when test="info/title">
1571 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/title"/>
1572 </xsl:when>
1573 <xsl:when test="title">
1574 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="title"/>
1575 </xsl:when>
1576 </xsl:choose>
1577
1578 <xsl:choose>
1579 <xsl:when test="chapterinfo/subtitle">
1580 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/subtitle"/>
1581 </xsl:when>
1582 <xsl:when test="docinfo/subtitle">
1583 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
1584 </xsl:when>
1585 <xsl:when test="info/subtitle">
1586 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/subtitle"/>
1587 </xsl:when>
1588 <xsl:when test="subtitle">
1589 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="subtitle"/>
1590 </xsl:when>
1591 </xsl:choose>
1592
1593 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/corpauthor"/>
1594 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/corpauthor"/>
1595 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/corpauthor"/>
1596 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/authorgroup"/>
1597 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/authorgroup"/>
1598 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/authorgroup"/>
1599 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/author"/>
1600 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/author"/>
1601 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/author"/>
1602 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/othercredit"/>
1603 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/othercredit"/>
1604 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/othercredit"/>
1605 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/releaseinfo"/>
1606 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/>
1607 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/releaseinfo"/>
1608 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/copyright"/>
1609 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/copyright"/>
1610 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/copyright"/>
1611 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/legalnotice"/>
1612 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/legalnotice"/>
1613 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/legalnotice"/>
1614 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/pubdate"/>
1615 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/pubdate"/>
1616 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/pubdate"/>
1617 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/revision"/>
1618 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/revision"/>
1619 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/revision"/>
1620 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/revhistory"/>
1621 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/revhistory"/>
1622 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/revhistory"/>
1623</xsl:template>
1624
1625<xsl:template name="chapter.titlepage.verso">
1626</xsl:template>
1627
1628<xsl:template name="chapter.titlepage.separator">
1629</xsl:template>
1630
1631<xsl:template name="chapter.titlepage.before.recto">
1632</xsl:template>
1633
1634<xsl:template name="chapter.titlepage.before.verso">
1635</xsl:template>
1636
1637<xsl:template name="chapter.titlepage">
1638 <div class="titlepage">
1639 <xsl:variable name="recto.content">
1640 <xsl:call-template name="chapter.titlepage.before.recto"/>
1641 <xsl:call-template name="chapter.titlepage.recto"/>
1642 </xsl:variable>
1643 <xsl:variable name="recto.elements.count">
1644 <xsl:choose>
1645 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1646 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1647 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1648 <xsl:otherwise>1</xsl:otherwise>
1649 </xsl:choose>
1650 </xsl:variable>
1651 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
1652 <div><xsl:copy-of select="$recto.content"/></div>
1653 </xsl:if>
1654 <xsl:variable name="verso.content">
1655 <xsl:call-template name="chapter.titlepage.before.verso"/>
1656 <xsl:call-template name="chapter.titlepage.verso"/>
1657 </xsl:variable>
1658 <xsl:variable name="verso.elements.count">
1659 <xsl:choose>
1660 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1661 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1662 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1663 <xsl:otherwise>1</xsl:otherwise>
1664 </xsl:choose>
1665 </xsl:variable>
1666 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
1667 <div><xsl:copy-of select="$verso.content"/></div>
1668 </xsl:if>
1669 <xsl:call-template name="chapter.titlepage.separator"/>
1670 </div>
1671</xsl:template>
1672
1673<xsl:template match="*" mode="chapter.titlepage.recto.mode">
1674 <!-- if an element isn't found in this mode, -->
1675 <!-- try the generic titlepage.mode -->
1676 <xsl:apply-templates select="." mode="titlepage.mode"/>
1677</xsl:template>
1678
1679<xsl:template match="*" mode="chapter.titlepage.verso.mode">
1680 <!-- if an element isn't found in this mode, -->
1681 <!-- try the generic titlepage.mode -->
1682 <xsl:apply-templates select="." mode="titlepage.mode"/>
1683</xsl:template>
1684
1685<xsl:template match="title" mode="chapter.titlepage.recto.auto.mode">
1686<div xsl:use-attribute-sets="chapter.titlepage.recto.style">
1687<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1688</div>
1689</xsl:template>
1690
1691<xsl:template match="subtitle" mode="chapter.titlepage.recto.auto.mode">
1692<div xsl:use-attribute-sets="chapter.titlepage.recto.style">
1693<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1694</div>
1695</xsl:template>
1696
1697<xsl:template match="corpauthor" mode="chapter.titlepage.recto.auto.mode">
1698<div xsl:use-attribute-sets="chapter.titlepage.recto.style">
1699<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1700</div>
1701</xsl:template>
1702
1703<xsl:template match="authorgroup" mode="chapter.titlepage.recto.auto.mode">
1704<div xsl:use-attribute-sets="chapter.titlepage.recto.style">
1705<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1706</div>
1707</xsl:template>
1708
1709<xsl:template match="author" mode="chapter.titlepage.recto.auto.mode">
1710<div xsl:use-attribute-sets="chapter.titlepage.recto.style">
1711<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1712</div>
1713</xsl:template>
1714
1715<xsl:template match="othercredit" mode="chapter.titlepage.recto.auto.mode">
1716<div xsl:use-attribute-sets="chapter.titlepage.recto.style">
1717<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1718</div>
1719</xsl:template>
1720
1721<xsl:template match="releaseinfo" mode="chapter.titlepage.recto.auto.mode">
1722<div xsl:use-attribute-sets="chapter.titlepage.recto.style">
1723<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1724</div>
1725</xsl:template>
1726
1727<xsl:template match="copyright" mode="chapter.titlepage.recto.auto.mode">
1728<div xsl:use-attribute-sets="chapter.titlepage.recto.style">
1729<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1730</div>
1731</xsl:template>
1732
1733<xsl:template match="legalnotice" mode="chapter.titlepage.recto.auto.mode">
1734<div xsl:use-attribute-sets="chapter.titlepage.recto.style">
1735<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1736</div>
1737</xsl:template>
1738
1739<xsl:template match="pubdate" mode="chapter.titlepage.recto.auto.mode">
1740<div xsl:use-attribute-sets="chapter.titlepage.recto.style">
1741<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1742</div>
1743</xsl:template>
1744
1745<xsl:template match="revision" mode="chapter.titlepage.recto.auto.mode">
1746<div xsl:use-attribute-sets="chapter.titlepage.recto.style">
1747<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1748</div>
1749</xsl:template>
1750
1751<xsl:template match="revhistory" mode="chapter.titlepage.recto.auto.mode">
1752<div xsl:use-attribute-sets="chapter.titlepage.recto.style">
1753<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1754</div>
1755</xsl:template>
1756
1757<xsl:template name="topic.titlepage.recto">
1758 <xsl:choose>
1759 <xsl:when test="topicinfo/title">
1760 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="topicinfo/title"/>
1761 </xsl:when>
1762 <xsl:when test="info/title">
1763 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="info/title"/>
1764 </xsl:when>
1765 <xsl:when test="title">
1766 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="title"/>
1767 </xsl:when>
1768 </xsl:choose>
1769
1770 <xsl:choose>
1771 <xsl:when test="topicinfo/subtitle">
1772 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="topicinfo/subtitle"/>
1773 </xsl:when>
1774 <xsl:when test="info/subtitle">
1775 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="info/subtitle"/>
1776 </xsl:when>
1777 <xsl:when test="subtitle">
1778 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="subtitle"/>
1779 </xsl:when>
1780 </xsl:choose>
1781
1782 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="topicinfo/corpauthor"/>
1783 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="info/corpauthor"/>
1784 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="topicinfo/authorgroup"/>
1785 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="info/authorgroup"/>
1786 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="topicinfo/author"/>
1787 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="info/author"/>
1788 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="topicinfo/othercredit"/>
1789 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="info/othercredit"/>
1790 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="topicinfo/releaseinfo"/>
1791 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="info/releaseinfo"/>
1792 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="topicinfo/copyright"/>
1793 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="info/copyright"/>
1794 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="topicinfo/legalnotice"/>
1795 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="info/legalnotice"/>
1796 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="topicinfo/pubdate"/>
1797 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="info/pubdate"/>
1798 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="topicinfo/revision"/>
1799 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="info/revision"/>
1800 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="topicinfo/revhistory"/>
1801 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="info/revhistory"/>
1802</xsl:template>
1803
1804<xsl:template name="topic.titlepage.verso">
1805</xsl:template>
1806
1807<xsl:template name="topic.titlepage.separator">
1808</xsl:template>
1809
1810<xsl:template name="topic.titlepage.before.recto">
1811</xsl:template>
1812
1813<xsl:template name="topic.titlepage.before.verso">
1814</xsl:template>
1815
1816<xsl:template name="topic.titlepage">
1817 <div class="titlepage">
1818 <xsl:variable name="recto.content">
1819 <xsl:call-template name="topic.titlepage.before.recto"/>
1820 <xsl:call-template name="topic.titlepage.recto"/>
1821 </xsl:variable>
1822 <xsl:variable name="recto.elements.count">
1823 <xsl:choose>
1824 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1825 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1826 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1827 <xsl:otherwise>1</xsl:otherwise>
1828 </xsl:choose>
1829 </xsl:variable>
1830 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
1831 <div><xsl:copy-of select="$recto.content"/></div>
1832 </xsl:if>
1833 <xsl:variable name="verso.content">
1834 <xsl:call-template name="topic.titlepage.before.verso"/>
1835 <xsl:call-template name="topic.titlepage.verso"/>
1836 </xsl:variable>
1837 <xsl:variable name="verso.elements.count">
1838 <xsl:choose>
1839 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1840 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1841 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1842 <xsl:otherwise>1</xsl:otherwise>
1843 </xsl:choose>
1844 </xsl:variable>
1845 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
1846 <div><xsl:copy-of select="$verso.content"/></div>
1847 </xsl:if>
1848 <xsl:call-template name="topic.titlepage.separator"/>
1849 </div>
1850</xsl:template>
1851
1852<xsl:template match="*" mode="topic.titlepage.recto.mode">
1853 <!-- if an element isn't found in this mode, -->
1854 <!-- try the generic titlepage.mode -->
1855 <xsl:apply-templates select="." mode="titlepage.mode"/>
1856</xsl:template>
1857
1858<xsl:template match="*" mode="topic.titlepage.verso.mode">
1859 <!-- if an element isn't found in this mode, -->
1860 <!-- try the generic titlepage.mode -->
1861 <xsl:apply-templates select="." mode="titlepage.mode"/>
1862</xsl:template>
1863
1864<xsl:template match="title" mode="topic.titlepage.recto.auto.mode">
1865<div xsl:use-attribute-sets="topic.titlepage.recto.style">
1866<xsl:apply-templates select="." mode="topic.titlepage.recto.mode"/>
1867</div>
1868</xsl:template>
1869
1870<xsl:template match="subtitle" mode="topic.titlepage.recto.auto.mode">
1871<div xsl:use-attribute-sets="topic.titlepage.recto.style">
1872<xsl:apply-templates select="." mode="topic.titlepage.recto.mode"/>
1873</div>
1874</xsl:template>
1875
1876<xsl:template match="corpauthor" mode="topic.titlepage.recto.auto.mode">
1877<div xsl:use-attribute-sets="topic.titlepage.recto.style">
1878<xsl:apply-templates select="." mode="topic.titlepage.recto.mode"/>
1879</div>
1880</xsl:template>
1881
1882<xsl:template match="authorgroup" mode="topic.titlepage.recto.auto.mode">
1883<div xsl:use-attribute-sets="topic.titlepage.recto.style">
1884<xsl:apply-templates select="." mode="topic.titlepage.recto.mode"/>
1885</div>
1886</xsl:template>
1887
1888<xsl:template match="author" mode="topic.titlepage.recto.auto.mode">
1889<div xsl:use-attribute-sets="topic.titlepage.recto.style">
1890<xsl:apply-templates select="." mode="topic.titlepage.recto.mode"/>
1891</div>
1892</xsl:template>
1893
1894<xsl:template match="othercredit" mode="topic.titlepage.recto.auto.mode">
1895<div xsl:use-attribute-sets="topic.titlepage.recto.style">
1896<xsl:apply-templates select="." mode="topic.titlepage.recto.mode"/>
1897</div>
1898</xsl:template>
1899
1900<xsl:template match="releaseinfo" mode="topic.titlepage.recto.auto.mode">
1901<div xsl:use-attribute-sets="topic.titlepage.recto.style">
1902<xsl:apply-templates select="." mode="topic.titlepage.recto.mode"/>
1903</div>
1904</xsl:template>
1905
1906<xsl:template match="copyright" mode="topic.titlepage.recto.auto.mode">
1907<div xsl:use-attribute-sets="topic.titlepage.recto.style">
1908<xsl:apply-templates select="." mode="topic.titlepage.recto.mode"/>
1909</div>
1910</xsl:template>
1911
1912<xsl:template match="legalnotice" mode="topic.titlepage.recto.auto.mode">
1913<div xsl:use-attribute-sets="topic.titlepage.recto.style">
1914<xsl:apply-templates select="." mode="topic.titlepage.recto.mode"/>
1915</div>
1916</xsl:template>
1917
1918<xsl:template match="pubdate" mode="topic.titlepage.recto.auto.mode">
1919<div xsl:use-attribute-sets="topic.titlepage.recto.style">
1920<xsl:apply-templates select="." mode="topic.titlepage.recto.mode"/>
1921</div>
1922</xsl:template>
1923
1924<xsl:template match="revision" mode="topic.titlepage.recto.auto.mode">
1925<div xsl:use-attribute-sets="topic.titlepage.recto.style">
1926<xsl:apply-templates select="." mode="topic.titlepage.recto.mode"/>
1927</div>
1928</xsl:template>
1929
1930<xsl:template match="revhistory" mode="topic.titlepage.recto.auto.mode">
1931<div xsl:use-attribute-sets="topic.titlepage.recto.style">
1932<xsl:apply-templates select="." mode="topic.titlepage.recto.mode"/>
1933</div>
1934</xsl:template>
1935
1936<xsl:template name="appendix.titlepage.recto">
1937 <xsl:choose>
1938 <xsl:when test="appendixinfo/title">
1939 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/title"/>
1940 </xsl:when>
1941 <xsl:when test="docinfo/title">
1942 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/title"/>
1943 </xsl:when>
1944 <xsl:when test="info/title">
1945 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/title"/>
1946 </xsl:when>
1947 <xsl:when test="title">
1948 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="title"/>
1949 </xsl:when>
1950 </xsl:choose>
1951
1952 <xsl:choose>
1953 <xsl:when test="appendixinfo/subtitle">
1954 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/subtitle"/>
1955 </xsl:when>
1956 <xsl:when test="docinfo/subtitle">
1957 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
1958 </xsl:when>
1959 <xsl:when test="info/subtitle">
1960 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/subtitle"/>
1961 </xsl:when>
1962 <xsl:when test="subtitle">
1963 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="subtitle"/>
1964 </xsl:when>
1965 </xsl:choose>
1966
1967 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/corpauthor"/>
1968 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/corpauthor"/>
1969 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/corpauthor"/>
1970 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/authorgroup"/>
1971 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/authorgroup"/>
1972 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/authorgroup"/>
1973 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/author"/>
1974 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/author"/>
1975 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/author"/>
1976 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/othercredit"/>
1977 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/othercredit"/>
1978 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/othercredit"/>
1979 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/releaseinfo"/>
1980 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/>
1981 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/releaseinfo"/>
1982 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/copyright"/>
1983 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/copyright"/>
1984 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/copyright"/>
1985 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/legalnotice"/>
1986 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/legalnotice"/>
1987 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/legalnotice"/>
1988 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/pubdate"/>
1989 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/pubdate"/>
1990 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/pubdate"/>
1991 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/revision"/>
1992 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/revision"/>
1993 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/revision"/>
1994 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/revhistory"/>
1995 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/revhistory"/>
1996 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/revhistory"/>
1997</xsl:template>
1998
1999<xsl:template name="appendix.titlepage.verso">
2000</xsl:template>
2001
2002<xsl:template name="appendix.titlepage.separator">
2003</xsl:template>
2004
2005<xsl:template name="appendix.titlepage.before.recto">
2006</xsl:template>
2007
2008<xsl:template name="appendix.titlepage.before.verso">
2009</xsl:template>
2010
2011<xsl:template name="appendix.titlepage">
2012 <div class="titlepage">
2013 <xsl:variable name="recto.content">
2014 <xsl:call-template name="appendix.titlepage.before.recto"/>
2015 <xsl:call-template name="appendix.titlepage.recto"/>
2016 </xsl:variable>
2017 <xsl:variable name="recto.elements.count">
2018 <xsl:choose>
2019 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2020 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2021 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2022 <xsl:otherwise>1</xsl:otherwise>
2023 </xsl:choose>
2024 </xsl:variable>
2025 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
2026 <div><xsl:copy-of select="$recto.content"/></div>
2027 </xsl:if>
2028 <xsl:variable name="verso.content">
2029 <xsl:call-template name="appendix.titlepage.before.verso"/>
2030 <xsl:call-template name="appendix.titlepage.verso"/>
2031 </xsl:variable>
2032 <xsl:variable name="verso.elements.count">
2033 <xsl:choose>
2034 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2035 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2036 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2037 <xsl:otherwise>1</xsl:otherwise>
2038 </xsl:choose>
2039 </xsl:variable>
2040 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
2041 <div><xsl:copy-of select="$verso.content"/></div>
2042 </xsl:if>
2043 <xsl:call-template name="appendix.titlepage.separator"/>
2044 </div>
2045</xsl:template>
2046
2047<xsl:template match="*" mode="appendix.titlepage.recto.mode">
2048 <!-- if an element isn't found in this mode, -->
2049 <!-- try the generic titlepage.mode -->
2050 <xsl:apply-templates select="." mode="titlepage.mode"/>
2051</xsl:template>
2052
2053<xsl:template match="*" mode="appendix.titlepage.verso.mode">
2054 <!-- if an element isn't found in this mode, -->
2055 <!-- try the generic titlepage.mode -->
2056 <xsl:apply-templates select="." mode="titlepage.mode"/>
2057</xsl:template>
2058
2059<xsl:template match="title" mode="appendix.titlepage.recto.auto.mode">
2060<div xsl:use-attribute-sets="appendix.titlepage.recto.style">
2061<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
2062</div>
2063</xsl:template>
2064
2065<xsl:template match="subtitle" mode="appendix.titlepage.recto.auto.mode">
2066<div xsl:use-attribute-sets="appendix.titlepage.recto.style">
2067<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
2068</div>
2069</xsl:template>
2070
2071<xsl:template match="corpauthor" mode="appendix.titlepage.recto.auto.mode">
2072<div xsl:use-attribute-sets="appendix.titlepage.recto.style">
2073<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
2074</div>
2075</xsl:template>
2076
2077<xsl:template match="authorgroup" mode="appendix.titlepage.recto.auto.mode">
2078<div xsl:use-attribute-sets="appendix.titlepage.recto.style">
2079<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
2080</div>
2081</xsl:template>
2082
2083<xsl:template match="author" mode="appendix.titlepage.recto.auto.mode">
2084<div xsl:use-attribute-sets="appendix.titlepage.recto.style">
2085<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
2086</div>
2087</xsl:template>
2088
2089<xsl:template match="othercredit" mode="appendix.titlepage.recto.auto.mode">
2090<div xsl:use-attribute-sets="appendix.titlepage.recto.style">
2091<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
2092</div>
2093</xsl:template>
2094
2095<xsl:template match="releaseinfo" mode="appendix.titlepage.recto.auto.mode">
2096<div xsl:use-attribute-sets="appendix.titlepage.recto.style">
2097<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
2098</div>
2099</xsl:template>
2100
2101<xsl:template match="copyright" mode="appendix.titlepage.recto.auto.mode">
2102<div xsl:use-attribute-sets="appendix.titlepage.recto.style">
2103<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
2104</div>
2105</xsl:template>
2106
2107<xsl:template match="legalnotice" mode="appendix.titlepage.recto.auto.mode">
2108<div xsl:use-attribute-sets="appendix.titlepage.recto.style">
2109<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
2110</div>
2111</xsl:template>
2112
2113<xsl:template match="pubdate" mode="appendix.titlepage.recto.auto.mode">
2114<div xsl:use-attribute-sets="appendix.titlepage.recto.style">
2115<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
2116</div>
2117</xsl:template>
2118
2119<xsl:template match="revision" mode="appendix.titlepage.recto.auto.mode">
2120<div xsl:use-attribute-sets="appendix.titlepage.recto.style">
2121<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
2122</div>
2123</xsl:template>
2124
2125<xsl:template match="revhistory" mode="appendix.titlepage.recto.auto.mode">
2126<div xsl:use-attribute-sets="appendix.titlepage.recto.style">
2127<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
2128</div>
2129</xsl:template>
2130
2131<xsl:template name="section.titlepage.recto">
2132 <xsl:choose>
2133 <xsl:when test="sectioninfo/title">
2134 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/title"/>
2135 </xsl:when>
2136 <xsl:when test="info/title">
2137 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/title"/>
2138 </xsl:when>
2139 <xsl:when test="title">
2140 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="title"/>
2141 </xsl:when>
2142 </xsl:choose>
2143
2144 <xsl:choose>
2145 <xsl:when test="sectioninfo/subtitle">
2146 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/subtitle"/>
2147 </xsl:when>
2148 <xsl:when test="info/subtitle">
2149 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/subtitle"/>
2150 </xsl:when>
2151 <xsl:when test="subtitle">
2152 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="subtitle"/>
2153 </xsl:when>
2154 </xsl:choose>
2155
2156 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/corpauthor"/>
2157 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/corpauthor"/>
2158 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/authorgroup"/>
2159 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/authorgroup"/>
2160 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/author"/>
2161 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/author"/>
2162 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/othercredit"/>
2163 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/othercredit"/>
2164 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/releaseinfo"/>
2165 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/releaseinfo"/>
2166 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/copyright"/>
2167 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/copyright"/>
2168 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/legalnotice"/>
2169 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/legalnotice"/>
2170 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/pubdate"/>
2171 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/pubdate"/>
2172 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/revision"/>
2173 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/revision"/>
2174 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/revhistory"/>
2175 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/revhistory"/>
2176</xsl:template>
2177
2178<xsl:template name="section.titlepage.verso">
2179</xsl:template>
2180
2181<xsl:template name="section.titlepage.separator"><xsl:if test="count(parent::*)='0'"><hr/></xsl:if>
2182</xsl:template>
2183
2184<xsl:template name="section.titlepage.before.recto">
2185</xsl:template>
2186
2187<xsl:template name="section.titlepage.before.verso">
2188</xsl:template>
2189
2190<xsl:template name="section.titlepage">
2191 <div class="titlepage">
2192 <xsl:variable name="recto.content">
2193 <xsl:call-template name="section.titlepage.before.recto"/>
2194 <xsl:call-template name="section.titlepage.recto"/>
2195 </xsl:variable>
2196 <xsl:variable name="recto.elements.count">
2197 <xsl:choose>
2198 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2199 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2200 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2201 <xsl:otherwise>1</xsl:otherwise>
2202 </xsl:choose>
2203 </xsl:variable>
2204 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
2205 <div><xsl:copy-of select="$recto.content"/></div>
2206 </xsl:if>
2207 <xsl:variable name="verso.content">
2208 <xsl:call-template name="section.titlepage.before.verso"/>
2209 <xsl:call-template name="section.titlepage.verso"/>
2210 </xsl:variable>
2211 <xsl:variable name="verso.elements.count">
2212 <xsl:choose>
2213 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2214 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2215 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2216 <xsl:otherwise>1</xsl:otherwise>
2217 </xsl:choose>
2218 </xsl:variable>
2219 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
2220 <div><xsl:copy-of select="$verso.content"/></div>
2221 </xsl:if>
2222 <xsl:call-template name="section.titlepage.separator"/>
2223 </div>
2224</xsl:template>
2225
2226<xsl:template match="*" mode="section.titlepage.recto.mode">
2227 <!-- if an element isn't found in this mode, -->
2228 <!-- try the generic titlepage.mode -->
2229 <xsl:apply-templates select="." mode="titlepage.mode"/>
2230</xsl:template>
2231
2232<xsl:template match="*" mode="section.titlepage.verso.mode">
2233 <!-- if an element isn't found in this mode, -->
2234 <!-- try the generic titlepage.mode -->
2235 <xsl:apply-templates select="." mode="titlepage.mode"/>
2236</xsl:template>
2237
2238<xsl:template match="title" mode="section.titlepage.recto.auto.mode">
2239<div xsl:use-attribute-sets="section.titlepage.recto.style">
2240<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2241</div>
2242</xsl:template>
2243
2244<xsl:template match="subtitle" mode="section.titlepage.recto.auto.mode">
2245<div xsl:use-attribute-sets="section.titlepage.recto.style">
2246<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2247</div>
2248</xsl:template>
2249
2250<xsl:template match="corpauthor" mode="section.titlepage.recto.auto.mode">
2251<div xsl:use-attribute-sets="section.titlepage.recto.style">
2252<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2253</div>
2254</xsl:template>
2255
2256<xsl:template match="authorgroup" mode="section.titlepage.recto.auto.mode">
2257<div xsl:use-attribute-sets="section.titlepage.recto.style">
2258<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2259</div>
2260</xsl:template>
2261
2262<xsl:template match="author" mode="section.titlepage.recto.auto.mode">
2263<div xsl:use-attribute-sets="section.titlepage.recto.style">
2264<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2265</div>
2266</xsl:template>
2267
2268<xsl:template match="othercredit" mode="section.titlepage.recto.auto.mode">
2269<div xsl:use-attribute-sets="section.titlepage.recto.style">
2270<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2271</div>
2272</xsl:template>
2273
2274<xsl:template match="releaseinfo" mode="section.titlepage.recto.auto.mode">
2275<div xsl:use-attribute-sets="section.titlepage.recto.style">
2276<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2277</div>
2278</xsl:template>
2279
2280<xsl:template match="copyright" mode="section.titlepage.recto.auto.mode">
2281<div xsl:use-attribute-sets="section.titlepage.recto.style">
2282<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2283</div>
2284</xsl:template>
2285
2286<xsl:template match="legalnotice" mode="section.titlepage.recto.auto.mode">
2287<div xsl:use-attribute-sets="section.titlepage.recto.style">
2288<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2289</div>
2290</xsl:template>
2291
2292<xsl:template match="pubdate" mode="section.titlepage.recto.auto.mode">
2293<div xsl:use-attribute-sets="section.titlepage.recto.style">
2294<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2295</div>
2296</xsl:template>
2297
2298<xsl:template match="revision" mode="section.titlepage.recto.auto.mode">
2299<div xsl:use-attribute-sets="section.titlepage.recto.style">
2300<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2301</div>
2302</xsl:template>
2303
2304<xsl:template match="revhistory" mode="section.titlepage.recto.auto.mode">
2305<div xsl:use-attribute-sets="section.titlepage.recto.style">
2306<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2307</div>
2308</xsl:template>
2309
2310<xsl:template name="sect1.titlepage.recto">
2311 <xsl:choose>
2312 <xsl:when test="sect1info/title">
2313 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/title"/>
2314 </xsl:when>
2315 <xsl:when test="info/title">
2316 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/title"/>
2317 </xsl:when>
2318 <xsl:when test="title">
2319 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="title"/>
2320 </xsl:when>
2321 </xsl:choose>
2322
2323 <xsl:choose>
2324 <xsl:when test="sect1info/subtitle">
2325 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/subtitle"/>
2326 </xsl:when>
2327 <xsl:when test="info/subtitle">
2328 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/subtitle"/>
2329 </xsl:when>
2330 <xsl:when test="subtitle">
2331 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="subtitle"/>
2332 </xsl:when>
2333 </xsl:choose>
2334
2335 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/corpauthor"/>
2336 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/corpauthor"/>
2337 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/authorgroup"/>
2338 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/authorgroup"/>
2339 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/author"/>
2340 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/author"/>
2341 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/othercredit"/>
2342 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/othercredit"/>
2343 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/releaseinfo"/>
2344 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/releaseinfo"/>
2345 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/copyright"/>
2346 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/copyright"/>
2347 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/legalnotice"/>
2348 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/legalnotice"/>
2349 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/pubdate"/>
2350 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/pubdate"/>
2351 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/revision"/>
2352 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/revision"/>
2353 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/revhistory"/>
2354 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/revhistory"/>
2355</xsl:template>
2356
2357<xsl:template name="sect1.titlepage.verso">
2358</xsl:template>
2359
2360<xsl:template name="sect1.titlepage.separator"><xsl:if test="count(parent::*)='0'"><hr/></xsl:if>
2361</xsl:template>
2362
2363<xsl:template name="sect1.titlepage.before.recto">
2364</xsl:template>
2365
2366<xsl:template name="sect1.titlepage.before.verso">
2367</xsl:template>
2368
2369<xsl:template name="sect1.titlepage">
2370 <div class="titlepage">
2371 <xsl:variable name="recto.content">
2372 <xsl:call-template name="sect1.titlepage.before.recto"/>
2373 <xsl:call-template name="sect1.titlepage.recto"/>
2374 </xsl:variable>
2375 <xsl:variable name="recto.elements.count">
2376 <xsl:choose>
2377 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2378 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2379 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2380 <xsl:otherwise>1</xsl:otherwise>
2381 </xsl:choose>
2382 </xsl:variable>
2383 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
2384 <div><xsl:copy-of select="$recto.content"/></div>
2385 </xsl:if>
2386 <xsl:variable name="verso.content">
2387 <xsl:call-template name="sect1.titlepage.before.verso"/>
2388 <xsl:call-template name="sect1.titlepage.verso"/>
2389 </xsl:variable>
2390 <xsl:variable name="verso.elements.count">
2391 <xsl:choose>
2392 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2393 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2394 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2395 <xsl:otherwise>1</xsl:otherwise>
2396 </xsl:choose>
2397 </xsl:variable>
2398 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
2399 <div><xsl:copy-of select="$verso.content"/></div>
2400 </xsl:if>
2401 <xsl:call-template name="sect1.titlepage.separator"/>
2402 </div>
2403</xsl:template>
2404
2405<xsl:template match="*" mode="sect1.titlepage.recto.mode">
2406 <!-- if an element isn't found in this mode, -->
2407 <!-- try the generic titlepage.mode -->
2408 <xsl:apply-templates select="." mode="titlepage.mode"/>
2409</xsl:template>
2410
2411<xsl:template match="*" mode="sect1.titlepage.verso.mode">
2412 <!-- if an element isn't found in this mode, -->
2413 <!-- try the generic titlepage.mode -->
2414 <xsl:apply-templates select="." mode="titlepage.mode"/>
2415</xsl:template>
2416
2417<xsl:template match="title" mode="sect1.titlepage.recto.auto.mode">
2418<div xsl:use-attribute-sets="sect1.titlepage.recto.style">
2419<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2420</div>
2421</xsl:template>
2422
2423<xsl:template match="subtitle" mode="sect1.titlepage.recto.auto.mode">
2424<div xsl:use-attribute-sets="sect1.titlepage.recto.style">
2425<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2426</div>
2427</xsl:template>
2428
2429<xsl:template match="corpauthor" mode="sect1.titlepage.recto.auto.mode">
2430<div xsl:use-attribute-sets="sect1.titlepage.recto.style">
2431<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2432</div>
2433</xsl:template>
2434
2435<xsl:template match="authorgroup" mode="sect1.titlepage.recto.auto.mode">
2436<div xsl:use-attribute-sets="sect1.titlepage.recto.style">
2437<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2438</div>
2439</xsl:template>
2440
2441<xsl:template match="author" mode="sect1.titlepage.recto.auto.mode">
2442<div xsl:use-attribute-sets="sect1.titlepage.recto.style">
2443<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2444</div>
2445</xsl:template>
2446
2447<xsl:template match="othercredit" mode="sect1.titlepage.recto.auto.mode">
2448<div xsl:use-attribute-sets="sect1.titlepage.recto.style">
2449<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2450</div>
2451</xsl:template>
2452
2453<xsl:template match="releaseinfo" mode="sect1.titlepage.recto.auto.mode">
2454<div xsl:use-attribute-sets="sect1.titlepage.recto.style">
2455<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2456</div>
2457</xsl:template>
2458
2459<xsl:template match="copyright" mode="sect1.titlepage.recto.auto.mode">
2460<div xsl:use-attribute-sets="sect1.titlepage.recto.style">
2461<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2462</div>
2463</xsl:template>
2464
2465<xsl:template match="legalnotice" mode="sect1.titlepage.recto.auto.mode">
2466<div xsl:use-attribute-sets="sect1.titlepage.recto.style">
2467<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2468</div>
2469</xsl:template>
2470
2471<xsl:template match="pubdate" mode="sect1.titlepage.recto.auto.mode">
2472<div xsl:use-attribute-sets="sect1.titlepage.recto.style">
2473<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2474</div>
2475</xsl:template>
2476
2477<xsl:template match="revision" mode="sect1.titlepage.recto.auto.mode">
2478<div xsl:use-attribute-sets="sect1.titlepage.recto.style">
2479<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2480</div>
2481</xsl:template>
2482
2483<xsl:template match="revhistory" mode="sect1.titlepage.recto.auto.mode">
2484<div xsl:use-attribute-sets="sect1.titlepage.recto.style">
2485<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2486</div>
2487</xsl:template>
2488
2489<xsl:template name="sect2.titlepage.recto">
2490 <xsl:choose>
2491 <xsl:when test="sect2info/title">
2492 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/title"/>
2493 </xsl:when>
2494 <xsl:when test="info/title">
2495 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/title"/>
2496 </xsl:when>
2497 <xsl:when test="title">
2498 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="title"/>
2499 </xsl:when>
2500 </xsl:choose>
2501
2502 <xsl:choose>
2503 <xsl:when test="sect2info/subtitle">
2504 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/subtitle"/>
2505 </xsl:when>
2506 <xsl:when test="info/subtitle">
2507 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/subtitle"/>
2508 </xsl:when>
2509 <xsl:when test="subtitle">
2510 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="subtitle"/>
2511 </xsl:when>
2512 </xsl:choose>
2513
2514 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/corpauthor"/>
2515 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/corpauthor"/>
2516 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/authorgroup"/>
2517 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/authorgroup"/>
2518 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/author"/>
2519 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/author"/>
2520 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/othercredit"/>
2521 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/othercredit"/>
2522 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/releaseinfo"/>
2523 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/releaseinfo"/>
2524 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/copyright"/>
2525 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/copyright"/>
2526 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/legalnotice"/>
2527 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/legalnotice"/>
2528 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/pubdate"/>
2529 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/pubdate"/>
2530 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/revision"/>
2531 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/revision"/>
2532 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/revhistory"/>
2533 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/revhistory"/>
2534</xsl:template>
2535
2536<xsl:template name="sect2.titlepage.verso">
2537</xsl:template>
2538
2539<xsl:template name="sect2.titlepage.separator"><xsl:if test="count(parent::*)='0'"><hr/></xsl:if>
2540</xsl:template>
2541
2542<xsl:template name="sect2.titlepage.before.recto">
2543</xsl:template>
2544
2545<xsl:template name="sect2.titlepage.before.verso">
2546</xsl:template>
2547
2548<xsl:template name="sect2.titlepage">
2549 <div class="titlepage">
2550 <xsl:variable name="recto.content">
2551 <xsl:call-template name="sect2.titlepage.before.recto"/>
2552 <xsl:call-template name="sect2.titlepage.recto"/>
2553 </xsl:variable>
2554 <xsl:variable name="recto.elements.count">
2555 <xsl:choose>
2556 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2557 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2558 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2559 <xsl:otherwise>1</xsl:otherwise>
2560 </xsl:choose>
2561 </xsl:variable>
2562 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
2563 <div><xsl:copy-of select="$recto.content"/></div>
2564 </xsl:if>
2565 <xsl:variable name="verso.content">
2566 <xsl:call-template name="sect2.titlepage.before.verso"/>
2567 <xsl:call-template name="sect2.titlepage.verso"/>
2568 </xsl:variable>
2569 <xsl:variable name="verso.elements.count">
2570 <xsl:choose>
2571 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2572 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2573 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2574 <xsl:otherwise>1</xsl:otherwise>
2575 </xsl:choose>
2576 </xsl:variable>
2577 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
2578 <div><xsl:copy-of select="$verso.content"/></div>
2579 </xsl:if>
2580 <xsl:call-template name="sect2.titlepage.separator"/>
2581 </div>
2582</xsl:template>
2583
2584<xsl:template match="*" mode="sect2.titlepage.recto.mode">
2585 <!-- if an element isn't found in this mode, -->
2586 <!-- try the generic titlepage.mode -->
2587 <xsl:apply-templates select="." mode="titlepage.mode"/>
2588</xsl:template>
2589
2590<xsl:template match="*" mode="sect2.titlepage.verso.mode">
2591 <!-- if an element isn't found in this mode, -->
2592 <!-- try the generic titlepage.mode -->
2593 <xsl:apply-templates select="." mode="titlepage.mode"/>
2594</xsl:template>
2595
2596<xsl:template match="title" mode="sect2.titlepage.recto.auto.mode">
2597<div xsl:use-attribute-sets="sect2.titlepage.recto.style">
2598<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2599</div>
2600</xsl:template>
2601
2602<xsl:template match="subtitle" mode="sect2.titlepage.recto.auto.mode">
2603<div xsl:use-attribute-sets="sect2.titlepage.recto.style">
2604<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2605</div>
2606</xsl:template>
2607
2608<xsl:template match="corpauthor" mode="sect2.titlepage.recto.auto.mode">
2609<div xsl:use-attribute-sets="sect2.titlepage.recto.style">
2610<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2611</div>
2612</xsl:template>
2613
2614<xsl:template match="authorgroup" mode="sect2.titlepage.recto.auto.mode">
2615<div xsl:use-attribute-sets="sect2.titlepage.recto.style">
2616<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2617</div>
2618</xsl:template>
2619
2620<xsl:template match="author" mode="sect2.titlepage.recto.auto.mode">
2621<div xsl:use-attribute-sets="sect2.titlepage.recto.style">
2622<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2623</div>
2624</xsl:template>
2625
2626<xsl:template match="othercredit" mode="sect2.titlepage.recto.auto.mode">
2627<div xsl:use-attribute-sets="sect2.titlepage.recto.style">
2628<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2629</div>
2630</xsl:template>
2631
2632<xsl:template match="releaseinfo" mode="sect2.titlepage.recto.auto.mode">
2633<div xsl:use-attribute-sets="sect2.titlepage.recto.style">
2634<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2635</div>
2636</xsl:template>
2637
2638<xsl:template match="copyright" mode="sect2.titlepage.recto.auto.mode">
2639<div xsl:use-attribute-sets="sect2.titlepage.recto.style">
2640<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2641</div>
2642</xsl:template>
2643
2644<xsl:template match="legalnotice" mode="sect2.titlepage.recto.auto.mode">
2645<div xsl:use-attribute-sets="sect2.titlepage.recto.style">
2646<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2647</div>
2648</xsl:template>
2649
2650<xsl:template match="pubdate" mode="sect2.titlepage.recto.auto.mode">
2651<div xsl:use-attribute-sets="sect2.titlepage.recto.style">
2652<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2653</div>
2654</xsl:template>
2655
2656<xsl:template match="revision" mode="sect2.titlepage.recto.auto.mode">
2657<div xsl:use-attribute-sets="sect2.titlepage.recto.style">
2658<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2659</div>
2660</xsl:template>
2661
2662<xsl:template match="revhistory" mode="sect2.titlepage.recto.auto.mode">
2663<div xsl:use-attribute-sets="sect2.titlepage.recto.style">
2664<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2665</div>
2666</xsl:template>
2667
2668<xsl:template name="sect3.titlepage.recto">
2669 <xsl:choose>
2670 <xsl:when test="sect3info/title">
2671 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/title"/>
2672 </xsl:when>
2673 <xsl:when test="info/title">
2674 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/title"/>
2675 </xsl:when>
2676 <xsl:when test="title">
2677 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="title"/>
2678 </xsl:when>
2679 </xsl:choose>
2680
2681 <xsl:choose>
2682 <xsl:when test="sect3info/subtitle">
2683 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/subtitle"/>
2684 </xsl:when>
2685 <xsl:when test="info/subtitle">
2686 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/subtitle"/>
2687 </xsl:when>
2688 <xsl:when test="subtitle">
2689 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="subtitle"/>
2690 </xsl:when>
2691 </xsl:choose>
2692
2693 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/corpauthor"/>
2694 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/corpauthor"/>
2695 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/authorgroup"/>
2696 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/authorgroup"/>
2697 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/author"/>
2698 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/author"/>
2699 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/othercredit"/>
2700 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/othercredit"/>
2701 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/releaseinfo"/>
2702 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/releaseinfo"/>
2703 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/copyright"/>
2704 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/copyright"/>
2705 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/legalnotice"/>
2706 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/legalnotice"/>
2707 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/pubdate"/>
2708 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/pubdate"/>
2709 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/revision"/>
2710 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/revision"/>
2711 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/revhistory"/>
2712 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/revhistory"/>
2713</xsl:template>
2714
2715<xsl:template name="sect3.titlepage.verso">
2716</xsl:template>
2717
2718<xsl:template name="sect3.titlepage.separator"><xsl:if test="count(parent::*)='0'"><hr/></xsl:if>
2719</xsl:template>
2720
2721<xsl:template name="sect3.titlepage.before.recto">
2722</xsl:template>
2723
2724<xsl:template name="sect3.titlepage.before.verso">
2725</xsl:template>
2726
2727<xsl:template name="sect3.titlepage">
2728 <div class="titlepage">
2729 <xsl:variable name="recto.content">
2730 <xsl:call-template name="sect3.titlepage.before.recto"/>
2731 <xsl:call-template name="sect3.titlepage.recto"/>
2732 </xsl:variable>
2733 <xsl:variable name="recto.elements.count">
2734 <xsl:choose>
2735 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2736 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2737 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2738 <xsl:otherwise>1</xsl:otherwise>
2739 </xsl:choose>
2740 </xsl:variable>
2741 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
2742 <div><xsl:copy-of select="$recto.content"/></div>
2743 </xsl:if>
2744 <xsl:variable name="verso.content">
2745 <xsl:call-template name="sect3.titlepage.before.verso"/>
2746 <xsl:call-template name="sect3.titlepage.verso"/>
2747 </xsl:variable>
2748 <xsl:variable name="verso.elements.count">
2749 <xsl:choose>
2750 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2751 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2752 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2753 <xsl:otherwise>1</xsl:otherwise>
2754 </xsl:choose>
2755 </xsl:variable>
2756 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
2757 <div><xsl:copy-of select="$verso.content"/></div>
2758 </xsl:if>
2759 <xsl:call-template name="sect3.titlepage.separator"/>
2760 </div>
2761</xsl:template>
2762
2763<xsl:template match="*" mode="sect3.titlepage.recto.mode">
2764 <!-- if an element isn't found in this mode, -->
2765 <!-- try the generic titlepage.mode -->
2766 <xsl:apply-templates select="." mode="titlepage.mode"/>
2767</xsl:template>
2768
2769<xsl:template match="*" mode="sect3.titlepage.verso.mode">
2770 <!-- if an element isn't found in this mode, -->
2771 <!-- try the generic titlepage.mode -->
2772 <xsl:apply-templates select="." mode="titlepage.mode"/>
2773</xsl:template>
2774
2775<xsl:template match="title" mode="sect3.titlepage.recto.auto.mode">
2776<div xsl:use-attribute-sets="sect3.titlepage.recto.style">
2777<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2778</div>
2779</xsl:template>
2780
2781<xsl:template match="subtitle" mode="sect3.titlepage.recto.auto.mode">
2782<div xsl:use-attribute-sets="sect3.titlepage.recto.style">
2783<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2784</div>
2785</xsl:template>
2786
2787<xsl:template match="corpauthor" mode="sect3.titlepage.recto.auto.mode">
2788<div xsl:use-attribute-sets="sect3.titlepage.recto.style">
2789<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2790</div>
2791</xsl:template>
2792
2793<xsl:template match="authorgroup" mode="sect3.titlepage.recto.auto.mode">
2794<div xsl:use-attribute-sets="sect3.titlepage.recto.style">
2795<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2796</div>
2797</xsl:template>
2798
2799<xsl:template match="author" mode="sect3.titlepage.recto.auto.mode">
2800<div xsl:use-attribute-sets="sect3.titlepage.recto.style">
2801<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2802</div>
2803</xsl:template>
2804
2805<xsl:template match="othercredit" mode="sect3.titlepage.recto.auto.mode">
2806<div xsl:use-attribute-sets="sect3.titlepage.recto.style">
2807<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2808</div>
2809</xsl:template>
2810
2811<xsl:template match="releaseinfo" mode="sect3.titlepage.recto.auto.mode">
2812<div xsl:use-attribute-sets="sect3.titlepage.recto.style">
2813<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2814</div>
2815</xsl:template>
2816
2817<xsl:template match="copyright" mode="sect3.titlepage.recto.auto.mode">
2818<div xsl:use-attribute-sets="sect3.titlepage.recto.style">
2819<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2820</div>
2821</xsl:template>
2822
2823<xsl:template match="legalnotice" mode="sect3.titlepage.recto.auto.mode">
2824<div xsl:use-attribute-sets="sect3.titlepage.recto.style">
2825<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2826</div>
2827</xsl:template>
2828
2829<xsl:template match="pubdate" mode="sect3.titlepage.recto.auto.mode">
2830<div xsl:use-attribute-sets="sect3.titlepage.recto.style">
2831<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2832</div>
2833</xsl:template>
2834
2835<xsl:template match="revision" mode="sect3.titlepage.recto.auto.mode">
2836<div xsl:use-attribute-sets="sect3.titlepage.recto.style">
2837<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2838</div>
2839</xsl:template>
2840
2841<xsl:template match="revhistory" mode="sect3.titlepage.recto.auto.mode">
2842<div xsl:use-attribute-sets="sect3.titlepage.recto.style">
2843<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2844</div>
2845</xsl:template>
2846
2847<xsl:template name="sect4.titlepage.recto">
2848 <xsl:choose>
2849 <xsl:when test="sect4info/title">
2850 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/title"/>
2851 </xsl:when>
2852 <xsl:when test="info/title">
2853 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/title"/>
2854 </xsl:when>
2855 <xsl:when test="title">
2856 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="title"/>
2857 </xsl:when>
2858 </xsl:choose>
2859
2860 <xsl:choose>
2861 <xsl:when test="sect4info/subtitle">
2862 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/subtitle"/>
2863 </xsl:when>
2864 <xsl:when test="info/subtitle">
2865 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/subtitle"/>
2866 </xsl:when>
2867 <xsl:when test="subtitle">
2868 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="subtitle"/>
2869 </xsl:when>
2870 </xsl:choose>
2871
2872 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/corpauthor"/>
2873 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/corpauthor"/>
2874 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/authorgroup"/>
2875 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/authorgroup"/>
2876 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/author"/>
2877 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/author"/>
2878 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/othercredit"/>
2879 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/othercredit"/>
2880 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/releaseinfo"/>
2881 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/releaseinfo"/>
2882 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/copyright"/>
2883 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/copyright"/>
2884 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/legalnotice"/>
2885 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/legalnotice"/>
2886 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/pubdate"/>
2887 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/pubdate"/>
2888 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/revision"/>
2889 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/revision"/>
2890 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/revhistory"/>
2891 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/revhistory"/>
2892</xsl:template>
2893
2894<xsl:template name="sect4.titlepage.verso">
2895</xsl:template>
2896
2897<xsl:template name="sect4.titlepage.separator"><xsl:if test="count(parent::*)='0'"><hr/></xsl:if>
2898</xsl:template>
2899
2900<xsl:template name="sect4.titlepage.before.recto">
2901</xsl:template>
2902
2903<xsl:template name="sect4.titlepage.before.verso">
2904</xsl:template>
2905
2906<xsl:template name="sect4.titlepage">
2907 <div class="titlepage">
2908 <xsl:variable name="recto.content">
2909 <xsl:call-template name="sect4.titlepage.before.recto"/>
2910 <xsl:call-template name="sect4.titlepage.recto"/>
2911 </xsl:variable>
2912 <xsl:variable name="recto.elements.count">
2913 <xsl:choose>
2914 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2915 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2916 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2917 <xsl:otherwise>1</xsl:otherwise>
2918 </xsl:choose>
2919 </xsl:variable>
2920 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
2921 <div><xsl:copy-of select="$recto.content"/></div>
2922 </xsl:if>
2923 <xsl:variable name="verso.content">
2924 <xsl:call-template name="sect4.titlepage.before.verso"/>
2925 <xsl:call-template name="sect4.titlepage.verso"/>
2926 </xsl:variable>
2927 <xsl:variable name="verso.elements.count">
2928 <xsl:choose>
2929 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2930 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2931 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2932 <xsl:otherwise>1</xsl:otherwise>
2933 </xsl:choose>
2934 </xsl:variable>
2935 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
2936 <div><xsl:copy-of select="$verso.content"/></div>
2937 </xsl:if>
2938 <xsl:call-template name="sect4.titlepage.separator"/>
2939 </div>
2940</xsl:template>
2941
2942<xsl:template match="*" mode="sect4.titlepage.recto.mode">
2943 <!-- if an element isn't found in this mode, -->
2944 <!-- try the generic titlepage.mode -->
2945 <xsl:apply-templates select="." mode="titlepage.mode"/>
2946</xsl:template>
2947
2948<xsl:template match="*" mode="sect4.titlepage.verso.mode">
2949 <!-- if an element isn't found in this mode, -->
2950 <!-- try the generic titlepage.mode -->
2951 <xsl:apply-templates select="." mode="titlepage.mode"/>
2952</xsl:template>
2953
2954<xsl:template match="title" mode="sect4.titlepage.recto.auto.mode">
2955<div xsl:use-attribute-sets="sect4.titlepage.recto.style">
2956<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
2957</div>
2958</xsl:template>
2959
2960<xsl:template match="subtitle" mode="sect4.titlepage.recto.auto.mode">
2961<div xsl:use-attribute-sets="sect4.titlepage.recto.style">
2962<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
2963</div>
2964</xsl:template>
2965
2966<xsl:template match="corpauthor" mode="sect4.titlepage.recto.auto.mode">
2967<div xsl:use-attribute-sets="sect4.titlepage.recto.style">
2968<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
2969</div>
2970</xsl:template>
2971
2972<xsl:template match="authorgroup" mode="sect4.titlepage.recto.auto.mode">
2973<div xsl:use-attribute-sets="sect4.titlepage.recto.style">
2974<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
2975</div>
2976</xsl:template>
2977
2978<xsl:template match="author" mode="sect4.titlepage.recto.auto.mode">
2979<div xsl:use-attribute-sets="sect4.titlepage.recto.style">
2980<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
2981</div>
2982</xsl:template>
2983
2984<xsl:template match="othercredit" mode="sect4.titlepage.recto.auto.mode">
2985<div xsl:use-attribute-sets="sect4.titlepage.recto.style">
2986<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
2987</div>
2988</xsl:template>
2989
2990<xsl:template match="releaseinfo" mode="sect4.titlepage.recto.auto.mode">
2991<div xsl:use-attribute-sets="sect4.titlepage.recto.style">
2992<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
2993</div>
2994</xsl:template>
2995
2996<xsl:template match="copyright" mode="sect4.titlepage.recto.auto.mode">
2997<div xsl:use-attribute-sets="sect4.titlepage.recto.style">
2998<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
2999</div>
3000</xsl:template>
3001
3002<xsl:template match="legalnotice" mode="sect4.titlepage.recto.auto.mode">
3003<div xsl:use-attribute-sets="sect4.titlepage.recto.style">
3004<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
3005</div>
3006</xsl:template>
3007
3008<xsl:template match="pubdate" mode="sect4.titlepage.recto.auto.mode">
3009<div xsl:use-attribute-sets="sect4.titlepage.recto.style">
3010<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
3011</div>
3012</xsl:template>
3013
3014<xsl:template match="revision" mode="sect4.titlepage.recto.auto.mode">
3015<div xsl:use-attribute-sets="sect4.titlepage.recto.style">
3016<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
3017</div>
3018</xsl:template>
3019
3020<xsl:template match="revhistory" mode="sect4.titlepage.recto.auto.mode">
3021<div xsl:use-attribute-sets="sect4.titlepage.recto.style">
3022<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
3023</div>
3024</xsl:template>
3025
3026<xsl:template name="sect5.titlepage.recto">
3027 <xsl:choose>
3028 <xsl:when test="sect5info/title">
3029 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/title"/>
3030 </xsl:when>
3031 <xsl:when test="info/title">
3032 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/title"/>
3033 </xsl:when>
3034 <xsl:when test="title">
3035 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="title"/>
3036 </xsl:when>
3037 </xsl:choose>
3038
3039 <xsl:choose>
3040 <xsl:when test="sect5info/subtitle">
3041 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/subtitle"/>
3042 </xsl:when>
3043 <xsl:when test="info/subtitle">
3044 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/subtitle"/>
3045 </xsl:when>
3046 <xsl:when test="subtitle">
3047 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="subtitle"/>
3048 </xsl:when>
3049 </xsl:choose>
3050
3051 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/corpauthor"/>
3052 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/corpauthor"/>
3053 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/authorgroup"/>
3054 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/authorgroup"/>
3055 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/author"/>
3056 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/author"/>
3057 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/othercredit"/>
3058 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/othercredit"/>
3059 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/releaseinfo"/>
3060 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/releaseinfo"/>
3061 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/copyright"/>
3062 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/copyright"/>
3063 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/legalnotice"/>
3064 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/legalnotice"/>
3065 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/pubdate"/>
3066 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/pubdate"/>
3067 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/revision"/>
3068 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/revision"/>
3069 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/revhistory"/>
3070 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/revhistory"/>
3071</xsl:template>
3072
3073<xsl:template name="sect5.titlepage.verso">
3074</xsl:template>
3075
3076<xsl:template name="sect5.titlepage.separator"><xsl:if test="count(parent::*)='0'"><hr/></xsl:if>
3077</xsl:template>
3078
3079<xsl:template name="sect5.titlepage.before.recto">
3080</xsl:template>
3081
3082<xsl:template name="sect5.titlepage.before.verso">
3083</xsl:template>
3084
3085<xsl:template name="sect5.titlepage">
3086 <div class="titlepage">
3087 <xsl:variable name="recto.content">
3088 <xsl:call-template name="sect5.titlepage.before.recto"/>
3089 <xsl:call-template name="sect5.titlepage.recto"/>
3090 </xsl:variable>
3091 <xsl:variable name="recto.elements.count">
3092 <xsl:choose>
3093 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3094 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3095 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3096 <xsl:otherwise>1</xsl:otherwise>
3097 </xsl:choose>
3098 </xsl:variable>
3099 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
3100 <div><xsl:copy-of select="$recto.content"/></div>
3101 </xsl:if>
3102 <xsl:variable name="verso.content">
3103 <xsl:call-template name="sect5.titlepage.before.verso"/>
3104 <xsl:call-template name="sect5.titlepage.verso"/>
3105 </xsl:variable>
3106 <xsl:variable name="verso.elements.count">
3107 <xsl:choose>
3108 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3109 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3110 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3111 <xsl:otherwise>1</xsl:otherwise>
3112 </xsl:choose>
3113 </xsl:variable>
3114 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
3115 <div><xsl:copy-of select="$verso.content"/></div>
3116 </xsl:if>
3117 <xsl:call-template name="sect5.titlepage.separator"/>
3118 </div>
3119</xsl:template>
3120
3121<xsl:template match="*" mode="sect5.titlepage.recto.mode">
3122 <!-- if an element isn't found in this mode, -->
3123 <!-- try the generic titlepage.mode -->
3124 <xsl:apply-templates select="." mode="titlepage.mode"/>
3125</xsl:template>
3126
3127<xsl:template match="*" mode="sect5.titlepage.verso.mode">
3128 <!-- if an element isn't found in this mode, -->
3129 <!-- try the generic titlepage.mode -->
3130 <xsl:apply-templates select="." mode="titlepage.mode"/>
3131</xsl:template>
3132
3133<xsl:template match="title" mode="sect5.titlepage.recto.auto.mode">
3134<div xsl:use-attribute-sets="sect5.titlepage.recto.style">
3135<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3136</div>
3137</xsl:template>
3138
3139<xsl:template match="subtitle" mode="sect5.titlepage.recto.auto.mode">
3140<div xsl:use-attribute-sets="sect5.titlepage.recto.style">
3141<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3142</div>
3143</xsl:template>
3144
3145<xsl:template match="corpauthor" mode="sect5.titlepage.recto.auto.mode">
3146<div xsl:use-attribute-sets="sect5.titlepage.recto.style">
3147<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3148</div>
3149</xsl:template>
3150
3151<xsl:template match="authorgroup" mode="sect5.titlepage.recto.auto.mode">
3152<div xsl:use-attribute-sets="sect5.titlepage.recto.style">
3153<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3154</div>
3155</xsl:template>
3156
3157<xsl:template match="author" mode="sect5.titlepage.recto.auto.mode">
3158<div xsl:use-attribute-sets="sect5.titlepage.recto.style">
3159<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3160</div>
3161</xsl:template>
3162
3163<xsl:template match="othercredit" mode="sect5.titlepage.recto.auto.mode">
3164<div xsl:use-attribute-sets="sect5.titlepage.recto.style">
3165<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3166</div>
3167</xsl:template>
3168
3169<xsl:template match="releaseinfo" mode="sect5.titlepage.recto.auto.mode">
3170<div xsl:use-attribute-sets="sect5.titlepage.recto.style">
3171<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3172</div>
3173</xsl:template>
3174
3175<xsl:template match="copyright" mode="sect5.titlepage.recto.auto.mode">
3176<div xsl:use-attribute-sets="sect5.titlepage.recto.style">
3177<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3178</div>
3179</xsl:template>
3180
3181<xsl:template match="legalnotice" mode="sect5.titlepage.recto.auto.mode">
3182<div xsl:use-attribute-sets="sect5.titlepage.recto.style">
3183<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3184</div>
3185</xsl:template>
3186
3187<xsl:template match="pubdate" mode="sect5.titlepage.recto.auto.mode">
3188<div xsl:use-attribute-sets="sect5.titlepage.recto.style">
3189<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3190</div>
3191</xsl:template>
3192
3193<xsl:template match="revision" mode="sect5.titlepage.recto.auto.mode">
3194<div xsl:use-attribute-sets="sect5.titlepage.recto.style">
3195<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3196</div>
3197</xsl:template>
3198
3199<xsl:template match="revhistory" mode="sect5.titlepage.recto.auto.mode">
3200<div xsl:use-attribute-sets="sect5.titlepage.recto.style">
3201<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3202</div>
3203</xsl:template>
3204
3205<xsl:template name="simplesect.titlepage.recto">
3206 <xsl:choose>
3207 <xsl:when test="simplesectinfo/title">
3208 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/title"/>
3209 </xsl:when>
3210 <xsl:when test="docinfo/title">
3211 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/title"/>
3212 </xsl:when>
3213 <xsl:when test="info/title">
3214 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/title"/>
3215 </xsl:when>
3216 <xsl:when test="title">
3217 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="title"/>
3218 </xsl:when>
3219 </xsl:choose>
3220
3221 <xsl:choose>
3222 <xsl:when test="simplesectinfo/subtitle">
3223 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/subtitle"/>
3224 </xsl:when>
3225 <xsl:when test="docinfo/subtitle">
3226 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
3227 </xsl:when>
3228 <xsl:when test="info/subtitle">
3229 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/subtitle"/>
3230 </xsl:when>
3231 <xsl:when test="subtitle">
3232 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="subtitle"/>
3233 </xsl:when>
3234 </xsl:choose>
3235
3236 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/corpauthor"/>
3237 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/corpauthor"/>
3238 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/corpauthor"/>
3239 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/authorgroup"/>
3240 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/authorgroup"/>
3241 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/authorgroup"/>
3242 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/author"/>
3243 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/author"/>
3244 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/author"/>
3245 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/othercredit"/>
3246 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/othercredit"/>
3247 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/othercredit"/>
3248 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/releaseinfo"/>
3249 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/>
3250 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/releaseinfo"/>
3251 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/copyright"/>
3252 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/copyright"/>
3253 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/copyright"/>
3254 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/legalnotice"/>
3255 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/legalnotice"/>
3256 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/legalnotice"/>
3257 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/pubdate"/>
3258 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/pubdate"/>
3259 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/pubdate"/>
3260 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/revision"/>
3261 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/revision"/>
3262 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/revision"/>
3263 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/revhistory"/>
3264 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/revhistory"/>
3265 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/revhistory"/>
3266</xsl:template>
3267
3268<xsl:template name="simplesect.titlepage.verso">
3269</xsl:template>
3270
3271<xsl:template name="simplesect.titlepage.separator"><xsl:if test="count(parent::*)='0'"><hr/></xsl:if>
3272</xsl:template>
3273
3274<xsl:template name="simplesect.titlepage.before.recto">
3275</xsl:template>
3276
3277<xsl:template name="simplesect.titlepage.before.verso">
3278</xsl:template>
3279
3280<xsl:template name="simplesect.titlepage">
3281 <div class="titlepage">
3282 <xsl:variable name="recto.content">
3283 <xsl:call-template name="simplesect.titlepage.before.recto"/>
3284 <xsl:call-template name="simplesect.titlepage.recto"/>
3285 </xsl:variable>
3286 <xsl:variable name="recto.elements.count">
3287 <xsl:choose>
3288 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3289 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3290 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3291 <xsl:otherwise>1</xsl:otherwise>
3292 </xsl:choose>
3293 </xsl:variable>
3294 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
3295 <div><xsl:copy-of select="$recto.content"/></div>
3296 </xsl:if>
3297 <xsl:variable name="verso.content">
3298 <xsl:call-template name="simplesect.titlepage.before.verso"/>
3299 <xsl:call-template name="simplesect.titlepage.verso"/>
3300 </xsl:variable>
3301 <xsl:variable name="verso.elements.count">
3302 <xsl:choose>
3303 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3304 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3305 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3306 <xsl:otherwise>1</xsl:otherwise>
3307 </xsl:choose>
3308 </xsl:variable>
3309 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
3310 <div><xsl:copy-of select="$verso.content"/></div>
3311 </xsl:if>
3312 <xsl:call-template name="simplesect.titlepage.separator"/>
3313 </div>
3314</xsl:template>
3315
3316<xsl:template match="*" mode="simplesect.titlepage.recto.mode">
3317 <!-- if an element isn't found in this mode, -->
3318 <!-- try the generic titlepage.mode -->
3319 <xsl:apply-templates select="." mode="titlepage.mode"/>
3320</xsl:template>
3321
3322<xsl:template match="*" mode="simplesect.titlepage.verso.mode">
3323 <!-- if an element isn't found in this mode, -->
3324 <!-- try the generic titlepage.mode -->
3325 <xsl:apply-templates select="." mode="titlepage.mode"/>
3326</xsl:template>
3327
3328<xsl:template match="title" mode="simplesect.titlepage.recto.auto.mode">
3329<div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3330<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3331</div>
3332</xsl:template>
3333
3334<xsl:template match="subtitle" mode="simplesect.titlepage.recto.auto.mode">
3335<div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3336<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3337</div>
3338</xsl:template>
3339
3340<xsl:template match="corpauthor" mode="simplesect.titlepage.recto.auto.mode">
3341<div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3342<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3343</div>
3344</xsl:template>
3345
3346<xsl:template match="authorgroup" mode="simplesect.titlepage.recto.auto.mode">
3347<div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3348<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3349</div>
3350</xsl:template>
3351
3352<xsl:template match="author" mode="simplesect.titlepage.recto.auto.mode">
3353<div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3354<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3355</div>
3356</xsl:template>
3357
3358<xsl:template match="othercredit" mode="simplesect.titlepage.recto.auto.mode">
3359<div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3360<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3361</div>
3362</xsl:template>
3363
3364<xsl:template match="releaseinfo" mode="simplesect.titlepage.recto.auto.mode">
3365<div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3366<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3367</div>
3368</xsl:template>
3369
3370<xsl:template match="copyright" mode="simplesect.titlepage.recto.auto.mode">
3371<div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3372<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3373</div>
3374</xsl:template>
3375
3376<xsl:template match="legalnotice" mode="simplesect.titlepage.recto.auto.mode">
3377<div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3378<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3379</div>
3380</xsl:template>
3381
3382<xsl:template match="pubdate" mode="simplesect.titlepage.recto.auto.mode">
3383<div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3384<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3385</div>
3386</xsl:template>
3387
3388<xsl:template match="revision" mode="simplesect.titlepage.recto.auto.mode">
3389<div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3390<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3391</div>
3392</xsl:template>
3393
3394<xsl:template match="revhistory" mode="simplesect.titlepage.recto.auto.mode">
3395<div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3396<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3397</div>
3398</xsl:template>
3399
3400<xsl:template name="bibliography.titlepage.recto">
3401 <div xsl:use-attribute-sets="bibliography.titlepage.recto.style">
3402<xsl:call-template name="component.title">
3403<xsl:with-param name="node" select="ancestor-or-self::bibliography[1]"/>
3404</xsl:call-template></div>
3405 <xsl:choose>
3406 <xsl:when test="bibliographyinfo/subtitle">
3407 <xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="bibliographyinfo/subtitle"/>
3408 </xsl:when>
3409 <xsl:when test="docinfo/subtitle">
3410 <xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
3411 </xsl:when>
3412 <xsl:when test="info/subtitle">
3413 <xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="info/subtitle"/>
3414 </xsl:when>
3415 <xsl:when test="subtitle">
3416 <xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="subtitle"/>
3417 </xsl:when>
3418 </xsl:choose>
3419
3420</xsl:template>
3421
3422<xsl:template name="bibliography.titlepage.verso">
3423</xsl:template>
3424
3425<xsl:template name="bibliography.titlepage.separator">
3426</xsl:template>
3427
3428<xsl:template name="bibliography.titlepage.before.recto">
3429</xsl:template>
3430
3431<xsl:template name="bibliography.titlepage.before.verso">
3432</xsl:template>
3433
3434<xsl:template name="bibliography.titlepage">
3435 <div class="titlepage">
3436 <xsl:variable name="recto.content">
3437 <xsl:call-template name="bibliography.titlepage.before.recto"/>
3438 <xsl:call-template name="bibliography.titlepage.recto"/>
3439 </xsl:variable>
3440 <xsl:variable name="recto.elements.count">
3441 <xsl:choose>
3442 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3443 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3444 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3445 <xsl:otherwise>1</xsl:otherwise>
3446 </xsl:choose>
3447 </xsl:variable>
3448 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
3449 <div><xsl:copy-of select="$recto.content"/></div>
3450 </xsl:if>
3451 <xsl:variable name="verso.content">
3452 <xsl:call-template name="bibliography.titlepage.before.verso"/>
3453 <xsl:call-template name="bibliography.titlepage.verso"/>
3454 </xsl:variable>
3455 <xsl:variable name="verso.elements.count">
3456 <xsl:choose>
3457 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3458 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3459 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3460 <xsl:otherwise>1</xsl:otherwise>
3461 </xsl:choose>
3462 </xsl:variable>
3463 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
3464 <div><xsl:copy-of select="$verso.content"/></div>
3465 </xsl:if>
3466 <xsl:call-template name="bibliography.titlepage.separator"/>
3467 </div>
3468</xsl:template>
3469
3470<xsl:template match="*" mode="bibliography.titlepage.recto.mode">
3471 <!-- if an element isn't found in this mode, -->
3472 <!-- try the generic titlepage.mode -->
3473 <xsl:apply-templates select="." mode="titlepage.mode"/>
3474</xsl:template>
3475
3476<xsl:template match="*" mode="bibliography.titlepage.verso.mode">
3477 <!-- if an element isn't found in this mode, -->
3478 <!-- try the generic titlepage.mode -->
3479 <xsl:apply-templates select="." mode="titlepage.mode"/>
3480</xsl:template>
3481
3482<xsl:template match="subtitle" mode="bibliography.titlepage.recto.auto.mode">
3483<div xsl:use-attribute-sets="bibliography.titlepage.recto.style">
3484<xsl:apply-templates select="." mode="bibliography.titlepage.recto.mode"/>
3485</div>
3486</xsl:template>
3487
3488<xsl:template name="glossary.titlepage.recto">
3489 <div xsl:use-attribute-sets="glossary.titlepage.recto.style">
3490<xsl:call-template name="component.title">
3491<xsl:with-param name="node" select="ancestor-or-self::glossary[1]"/>
3492</xsl:call-template></div>
3493 <xsl:choose>
3494 <xsl:when test="glossaryinfo/subtitle">
3495 <xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="glossaryinfo/subtitle"/>
3496 </xsl:when>
3497 <xsl:when test="docinfo/subtitle">
3498 <xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
3499 </xsl:when>
3500 <xsl:when test="info/subtitle">
3501 <xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="info/subtitle"/>
3502 </xsl:when>
3503 <xsl:when test="subtitle">
3504 <xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="subtitle"/>
3505 </xsl:when>
3506 </xsl:choose>
3507
3508</xsl:template>
3509
3510<xsl:template name="glossary.titlepage.verso">
3511</xsl:template>
3512
3513<xsl:template name="glossary.titlepage.separator">
3514</xsl:template>
3515
3516<xsl:template name="glossary.titlepage.before.recto">
3517</xsl:template>
3518
3519<xsl:template name="glossary.titlepage.before.verso">
3520</xsl:template>
3521
3522<xsl:template name="glossary.titlepage">
3523 <div class="titlepage">
3524 <xsl:variable name="recto.content">
3525 <xsl:call-template name="glossary.titlepage.before.recto"/>
3526 <xsl:call-template name="glossary.titlepage.recto"/>
3527 </xsl:variable>
3528 <xsl:variable name="recto.elements.count">
3529 <xsl:choose>
3530 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3531 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3532 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3533 <xsl:otherwise>1</xsl:otherwise>
3534 </xsl:choose>
3535 </xsl:variable>
3536 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
3537 <div><xsl:copy-of select="$recto.content"/></div>
3538 </xsl:if>
3539 <xsl:variable name="verso.content">
3540 <xsl:call-template name="glossary.titlepage.before.verso"/>
3541 <xsl:call-template name="glossary.titlepage.verso"/>
3542 </xsl:variable>
3543 <xsl:variable name="verso.elements.count">
3544 <xsl:choose>
3545 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3546 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3547 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3548 <xsl:otherwise>1</xsl:otherwise>
3549 </xsl:choose>
3550 </xsl:variable>
3551 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
3552 <div><xsl:copy-of select="$verso.content"/></div>
3553 </xsl:if>
3554 <xsl:call-template name="glossary.titlepage.separator"/>
3555 </div>
3556</xsl:template>
3557
3558<xsl:template match="*" mode="glossary.titlepage.recto.mode">
3559 <!-- if an element isn't found in this mode, -->
3560 <!-- try the generic titlepage.mode -->
3561 <xsl:apply-templates select="." mode="titlepage.mode"/>
3562</xsl:template>
3563
3564<xsl:template match="*" mode="glossary.titlepage.verso.mode">
3565 <!-- if an element isn't found in this mode, -->
3566 <!-- try the generic titlepage.mode -->
3567 <xsl:apply-templates select="." mode="titlepage.mode"/>
3568</xsl:template>
3569
3570<xsl:template match="subtitle" mode="glossary.titlepage.recto.auto.mode">
3571<div xsl:use-attribute-sets="glossary.titlepage.recto.style">
3572<xsl:apply-templates select="." mode="glossary.titlepage.recto.mode"/>
3573</div>
3574</xsl:template>
3575
3576<xsl:template name="index.titlepage.recto">
3577 <div xsl:use-attribute-sets="index.titlepage.recto.style">
3578<xsl:call-template name="component.title">
3579<xsl:with-param name="node" select="ancestor-or-self::index[1]"/>
3580</xsl:call-template></div>
3581 <xsl:choose>
3582 <xsl:when test="indexinfo/subtitle">
3583 <xsl:apply-templates mode="index.titlepage.recto.auto.mode" select="indexinfo/subtitle"/>
3584 </xsl:when>
3585 <xsl:when test="docinfo/subtitle">
3586 <xsl:apply-templates mode="index.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
3587 </xsl:when>
3588 <xsl:when test="info/subtitle">
3589 <xsl:apply-templates mode="index.titlepage.recto.auto.mode" select="info/subtitle"/>
3590 </xsl:when>
3591 <xsl:when test="subtitle">
3592 <xsl:apply-templates mode="index.titlepage.recto.auto.mode" select="subtitle"/>
3593 </xsl:when>
3594 </xsl:choose>
3595
3596</xsl:template>
3597
3598<xsl:template name="index.titlepage.verso">
3599</xsl:template>
3600
3601<xsl:template name="index.titlepage.separator">
3602</xsl:template>
3603
3604<xsl:template name="index.titlepage.before.recto">
3605</xsl:template>
3606
3607<xsl:template name="index.titlepage.before.verso">
3608</xsl:template>
3609
3610<xsl:template name="index.titlepage">
3611 <div class="titlepage">
3612 <xsl:variable name="recto.content">
3613 <xsl:call-template name="index.titlepage.before.recto"/>
3614 <xsl:call-template name="index.titlepage.recto"/>
3615 </xsl:variable>
3616 <xsl:variable name="recto.elements.count">
3617 <xsl:choose>
3618 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3619 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3620 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3621 <xsl:otherwise>1</xsl:otherwise>
3622 </xsl:choose>
3623 </xsl:variable>
3624 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
3625 <div><xsl:copy-of select="$recto.content"/></div>
3626 </xsl:if>
3627 <xsl:variable name="verso.content">
3628 <xsl:call-template name="index.titlepage.before.verso"/>
3629 <xsl:call-template name="index.titlepage.verso"/>
3630 </xsl:variable>
3631 <xsl:variable name="verso.elements.count">
3632 <xsl:choose>
3633 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3634 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3635 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3636 <xsl:otherwise>1</xsl:otherwise>
3637 </xsl:choose>
3638 </xsl:variable>
3639 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
3640 <div><xsl:copy-of select="$verso.content"/></div>
3641 </xsl:if>
3642 <xsl:call-template name="index.titlepage.separator"/>
3643 </div>
3644</xsl:template>
3645
3646<xsl:template match="*" mode="index.titlepage.recto.mode">
3647 <!-- if an element isn't found in this mode, -->
3648 <!-- try the generic titlepage.mode -->
3649 <xsl:apply-templates select="." mode="titlepage.mode"/>
3650</xsl:template>
3651
3652<xsl:template match="*" mode="index.titlepage.verso.mode">
3653 <!-- if an element isn't found in this mode, -->
3654 <!-- try the generic titlepage.mode -->
3655 <xsl:apply-templates select="." mode="titlepage.mode"/>
3656</xsl:template>
3657
3658<xsl:template match="subtitle" mode="index.titlepage.recto.auto.mode">
3659<div xsl:use-attribute-sets="index.titlepage.recto.style">
3660<xsl:apply-templates select="." mode="index.titlepage.recto.mode"/>
3661</div>
3662</xsl:template>
3663
3664<xsl:template name="setindex.titlepage.recto">
3665 <div xsl:use-attribute-sets="setindex.titlepage.recto.style">
3666<xsl:call-template name="component.title">
3667<xsl:with-param name="node" select="ancestor-or-self::setindex[1]"/>
3668</xsl:call-template></div>
3669 <xsl:choose>
3670 <xsl:when test="setindexinfo/subtitle">
3671 <xsl:apply-templates mode="setindex.titlepage.recto.auto.mode" select="setindexinfo/subtitle"/>
3672 </xsl:when>
3673 <xsl:when test="docinfo/subtitle">
3674 <xsl:apply-templates mode="setindex.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
3675 </xsl:when>
3676 <xsl:when test="info/subtitle">
3677 <xsl:apply-templates mode="setindex.titlepage.recto.auto.mode" select="info/subtitle"/>
3678 </xsl:when>
3679 <xsl:when test="subtitle">
3680 <xsl:apply-templates mode="setindex.titlepage.recto.auto.mode" select="subtitle"/>
3681 </xsl:when>
3682 </xsl:choose>
3683
3684</xsl:template>
3685
3686<xsl:template name="setindex.titlepage.verso">
3687</xsl:template>
3688
3689<xsl:template name="setindex.titlepage.separator">
3690</xsl:template>
3691
3692<xsl:template name="setindex.titlepage.before.recto">
3693</xsl:template>
3694
3695<xsl:template name="setindex.titlepage.before.verso">
3696</xsl:template>
3697
3698<xsl:template name="setindex.titlepage">
3699 <div class="titlepage">
3700 <xsl:variable name="recto.content">
3701 <xsl:call-template name="setindex.titlepage.before.recto"/>
3702 <xsl:call-template name="setindex.titlepage.recto"/>
3703 </xsl:variable>
3704 <xsl:variable name="recto.elements.count">
3705 <xsl:choose>
3706 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3707 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3708 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3709 <xsl:otherwise>1</xsl:otherwise>
3710 </xsl:choose>
3711 </xsl:variable>
3712 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
3713 <div><xsl:copy-of select="$recto.content"/></div>
3714 </xsl:if>
3715 <xsl:variable name="verso.content">
3716 <xsl:call-template name="setindex.titlepage.before.verso"/>
3717 <xsl:call-template name="setindex.titlepage.verso"/>
3718 </xsl:variable>
3719 <xsl:variable name="verso.elements.count">
3720 <xsl:choose>
3721 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3722 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3723 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3724 <xsl:otherwise>1</xsl:otherwise>
3725 </xsl:choose>
3726 </xsl:variable>
3727 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
3728 <div><xsl:copy-of select="$verso.content"/></div>
3729 </xsl:if>
3730 <xsl:call-template name="setindex.titlepage.separator"/>
3731 </div>
3732</xsl:template>
3733
3734<xsl:template match="*" mode="setindex.titlepage.recto.mode">
3735 <!-- if an element isn't found in this mode, -->
3736 <!-- try the generic titlepage.mode -->
3737 <xsl:apply-templates select="." mode="titlepage.mode"/>
3738</xsl:template>
3739
3740<xsl:template match="*" mode="setindex.titlepage.verso.mode">
3741 <!-- if an element isn't found in this mode, -->
3742 <!-- try the generic titlepage.mode -->
3743 <xsl:apply-templates select="." mode="titlepage.mode"/>
3744</xsl:template>
3745
3746<xsl:template match="subtitle" mode="setindex.titlepage.recto.auto.mode">
3747<div xsl:use-attribute-sets="setindex.titlepage.recto.style">
3748<xsl:apply-templates select="." mode="setindex.titlepage.recto.mode"/>
3749</div>
3750</xsl:template>
3751
3752<xsl:template name="sidebar.titlepage.recto">
3753 <xsl:choose>
3754 <xsl:when test="sidebarinfo/title">
3755 <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="sidebarinfo/title"/>
3756 </xsl:when>
3757 <xsl:when test="docinfo/title">
3758 <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="docinfo/title"/>
3759 </xsl:when>
3760 <xsl:when test="info/title">
3761 <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="info/title"/>
3762 </xsl:when>
3763 <xsl:when test="title">
3764 <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="title"/>
3765 </xsl:when>
3766 </xsl:choose>
3767
3768 <xsl:choose>
3769 <xsl:when test="sidebarinfo/subtitle">
3770 <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="sidebarinfo/subtitle"/>
3771 </xsl:when>
3772 <xsl:when test="docinfo/subtitle">
3773 <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
3774 </xsl:when>
3775 <xsl:when test="info/subtitle">
3776 <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="info/subtitle"/>
3777 </xsl:when>
3778 <xsl:when test="subtitle">
3779 <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="subtitle"/>
3780 </xsl:when>
3781 </xsl:choose>
3782
3783</xsl:template>
3784
3785<xsl:template name="sidebar.titlepage.verso">
3786</xsl:template>
3787
3788<xsl:template name="sidebar.titlepage.separator">
3789</xsl:template>
3790
3791<xsl:template name="sidebar.titlepage.before.recto">
3792</xsl:template>
3793
3794<xsl:template name="sidebar.titlepage.before.verso">
3795</xsl:template>
3796
3797<xsl:template name="sidebar.titlepage">
3798 <div class="titlepage">
3799 <xsl:variable name="recto.content">
3800 <xsl:call-template name="sidebar.titlepage.before.recto"/>
3801 <xsl:call-template name="sidebar.titlepage.recto"/>
3802 </xsl:variable>
3803 <xsl:variable name="recto.elements.count">
3804 <xsl:choose>
3805 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3806 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3807 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3808 <xsl:otherwise>1</xsl:otherwise>
3809 </xsl:choose>
3810 </xsl:variable>
3811 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
3812 <div><xsl:copy-of select="$recto.content"/></div>
3813 </xsl:if>
3814 <xsl:variable name="verso.content">
3815 <xsl:call-template name="sidebar.titlepage.before.verso"/>
3816 <xsl:call-template name="sidebar.titlepage.verso"/>
3817 </xsl:variable>
3818 <xsl:variable name="verso.elements.count">
3819 <xsl:choose>
3820 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3821 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3822 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3823 <xsl:otherwise>1</xsl:otherwise>
3824 </xsl:choose>
3825 </xsl:variable>
3826 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
3827 <div><xsl:copy-of select="$verso.content"/></div>
3828 </xsl:if>
3829 <xsl:call-template name="sidebar.titlepage.separator"/>
3830 </div>
3831</xsl:template>
3832
3833<xsl:template match="*" mode="sidebar.titlepage.recto.mode">
3834 <!-- if an element isn't found in this mode, -->
3835 <!-- try the generic titlepage.mode -->
3836 <xsl:apply-templates select="." mode="titlepage.mode"/>
3837</xsl:template>
3838
3839<xsl:template match="*" mode="sidebar.titlepage.verso.mode">
3840 <!-- if an element isn't found in this mode, -->
3841 <!-- try the generic titlepage.mode -->
3842 <xsl:apply-templates select="." mode="titlepage.mode"/>
3843</xsl:template>
3844
3845<xsl:template match="title" mode="sidebar.titlepage.recto.auto.mode">
3846<div xsl:use-attribute-sets="sidebar.titlepage.recto.style">
3847<xsl:call-template name="formal.object.heading">
3848<xsl:with-param name="object" select="ancestor-or-self::sidebar[1]"/>
3849</xsl:call-template>
3850</div>
3851</xsl:template>
3852
3853<xsl:template match="subtitle" mode="sidebar.titlepage.recto.auto.mode">
3854<div xsl:use-attribute-sets="sidebar.titlepage.recto.style">
3855<xsl:apply-templates select="." mode="sidebar.titlepage.recto.mode"/>
3856</div>
3857</xsl:template>
3858
3859</xsl:stylesheet>
3860
Note: See TracBrowser for help on using the repository browser.