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">
5 <!-- This stylesheet was created by template/titlepage.xsl-->
7 <xsl:template name="article.titlepage.recto">
9 <xsl:when test="articleinfo/title">
10 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/title"/>
12 <xsl:when test="artheader/title">
13 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/title"/>
15 <xsl:when test="info/title">
16 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="info/title"/>
18 <xsl:when test="title">
19 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="title"/>
24 <xsl:when test="articleinfo/subtitle">
25 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/subtitle"/>
27 <xsl:when test="artheader/subtitle">
28 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/subtitle"/>
30 <xsl:when test="info/subtitle">
31 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="info/subtitle"/>
33 <xsl:when test="subtitle">
34 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="subtitle"/>
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:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/abstract"/>
69 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/abstract"/>
70 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="info/abstract"/>
73 <xsl:template name="article.titlepage.verso">
76 <xsl:template name="article.titlepage.separator"><hr/>
79 <xsl:template name="article.titlepage.before.recto">
82 <xsl:template name="article.titlepage.before.verso">
85 <xsl:template name="article.titlepage">
86 <div class="titlepage">
87 <xsl:variable name="recto.content">
88 <xsl:call-template name="article.titlepage.before.recto"/>
89 <xsl:call-template name="article.titlepage.recto"/>
91 <xsl:variable name="recto.elements.count">
93 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
94 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
95 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
96 <xsl:otherwise>1</xsl:otherwise>
99 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
100 <div><xsl:copy-of select="$recto.content"/></div>
102 <xsl:variable name="verso.content">
103 <xsl:call-template name="article.titlepage.before.verso"/>
104 <xsl:call-template name="article.titlepage.verso"/>
106 <xsl:variable name="verso.elements.count">
108 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
109 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
110 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
111 <xsl:otherwise>1</xsl:otherwise>
114 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
115 <div><xsl:copy-of select="$verso.content"/></div>
117 <xsl:call-template name="article.titlepage.separator"/>
121 <xsl:template match="*" mode="article.titlepage.recto.mode">
122 <!-- if an element isn't found in this mode, -->
123 <!-- try the generic titlepage.mode -->
124 <xsl:apply-templates select="." mode="titlepage.mode"/>
127 <xsl:template match="*" mode="article.titlepage.verso.mode">
128 <!-- if an element isn't found in this mode, -->
129 <!-- try the generic titlepage.mode -->
130 <xsl:apply-templates select="." mode="titlepage.mode"/>
133 <xsl:template match="title" mode="article.titlepage.recto.auto.mode">
134 <div xsl:use-attribute-sets="article.titlepage.recto.style">
135 <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
139 <xsl:template match="subtitle" mode="article.titlepage.recto.auto.mode">
140 <div xsl:use-attribute-sets="article.titlepage.recto.style">
141 <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
145 <xsl:template match="corpauthor" mode="article.titlepage.recto.auto.mode">
146 <div xsl:use-attribute-sets="article.titlepage.recto.style">
147 <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
151 <xsl:template match="authorgroup" mode="article.titlepage.recto.auto.mode">
152 <div xsl:use-attribute-sets="article.titlepage.recto.style">
153 <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
157 <xsl:template match="author" mode="article.titlepage.recto.auto.mode">
158 <div xsl:use-attribute-sets="article.titlepage.recto.style">
159 <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
163 <xsl:template match="othercredit" mode="article.titlepage.recto.auto.mode">
164 <div xsl:use-attribute-sets="article.titlepage.recto.style">
165 <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
169 <xsl:template match="releaseinfo" mode="article.titlepage.recto.auto.mode">
170 <div xsl:use-attribute-sets="article.titlepage.recto.style">
171 <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
175 <xsl:template match="copyright" mode="article.titlepage.recto.auto.mode">
176 <div xsl:use-attribute-sets="article.titlepage.recto.style">
177 <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
181 <xsl:template match="legalnotice" mode="article.titlepage.recto.auto.mode">
182 <div xsl:use-attribute-sets="article.titlepage.recto.style">
183 <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
187 <xsl:template match="pubdate" mode="article.titlepage.recto.auto.mode">
188 <div xsl:use-attribute-sets="article.titlepage.recto.style">
189 <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
193 <xsl:template match="revision" mode="article.titlepage.recto.auto.mode">
194 <div xsl:use-attribute-sets="article.titlepage.recto.style">
195 <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
199 <xsl:template match="revhistory" mode="article.titlepage.recto.auto.mode">
200 <div xsl:use-attribute-sets="article.titlepage.recto.style">
201 <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
205 <xsl:template match="abstract" mode="article.titlepage.recto.auto.mode">
206 <div xsl:use-attribute-sets="article.titlepage.recto.style">
207 <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
211 <xsl:template name="set.titlepage.recto">
213 <xsl:when test="setinfo/title">
214 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/title"/>
216 <xsl:when test="info/title">
217 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/title"/>
219 <xsl:when test="title">
220 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="title"/>
225 <xsl:when test="setinfo/subtitle">
226 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/subtitle"/>
228 <xsl:when test="info/subtitle">
229 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/subtitle"/>
231 <xsl:when test="subtitle">
232 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="subtitle"/>
236 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/corpauthor"/>
237 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/corpauthor"/>
238 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/authorgroup"/>
239 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/authorgroup"/>
240 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/author"/>
241 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/author"/>
242 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/othercredit"/>
243 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/othercredit"/>
244 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/releaseinfo"/>
245 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/releaseinfo"/>
246 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/copyright"/>
247 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/copyright"/>
248 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/legalnotice"/>
249 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/legalnotice"/>
250 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/pubdate"/>
251 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/pubdate"/>
252 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/revision"/>
253 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/revision"/>
254 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/revhistory"/>
255 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/revhistory"/>
256 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/abstract"/>
257 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/abstract"/>
260 <xsl:template name="set.titlepage.verso">
263 <xsl:template name="set.titlepage.separator"><hr/>
266 <xsl:template name="set.titlepage.before.recto">
269 <xsl:template name="set.titlepage.before.verso">
272 <xsl:template name="set.titlepage">
273 <div class="titlepage">
274 <xsl:variable name="recto.content">
275 <xsl:call-template name="set.titlepage.before.recto"/>
276 <xsl:call-template name="set.titlepage.recto"/>
278 <xsl:variable name="recto.elements.count">
280 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
281 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
282 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
283 <xsl:otherwise>1</xsl:otherwise>
286 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
287 <div><xsl:copy-of select="$recto.content"/></div>
289 <xsl:variable name="verso.content">
290 <xsl:call-template name="set.titlepage.before.verso"/>
291 <xsl:call-template name="set.titlepage.verso"/>
293 <xsl:variable name="verso.elements.count">
295 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
296 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
297 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
298 <xsl:otherwise>1</xsl:otherwise>
301 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
302 <div><xsl:copy-of select="$verso.content"/></div>
304 <xsl:call-template name="set.titlepage.separator"/>
308 <xsl:template match="*" mode="set.titlepage.recto.mode">
309 <!-- if an element isn't found in this mode, -->
310 <!-- try the generic titlepage.mode -->
311 <xsl:apply-templates select="." mode="titlepage.mode"/>
314 <xsl:template match="*" mode="set.titlepage.verso.mode">
315 <!-- if an element isn't found in this mode, -->
316 <!-- try the generic titlepage.mode -->
317 <xsl:apply-templates select="." mode="titlepage.mode"/>
320 <xsl:template match="title" mode="set.titlepage.recto.auto.mode">
321 <div xsl:use-attribute-sets="set.titlepage.recto.style">
322 <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
326 <xsl:template match="subtitle" mode="set.titlepage.recto.auto.mode">
327 <div xsl:use-attribute-sets="set.titlepage.recto.style">
328 <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
332 <xsl:template match="corpauthor" mode="set.titlepage.recto.auto.mode">
333 <div xsl:use-attribute-sets="set.titlepage.recto.style">
334 <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
338 <xsl:template match="authorgroup" mode="set.titlepage.recto.auto.mode">
339 <div xsl:use-attribute-sets="set.titlepage.recto.style">
340 <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
344 <xsl:template match="author" mode="set.titlepage.recto.auto.mode">
345 <div xsl:use-attribute-sets="set.titlepage.recto.style">
346 <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
350 <xsl:template match="othercredit" mode="set.titlepage.recto.auto.mode">
351 <div xsl:use-attribute-sets="set.titlepage.recto.style">
352 <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
356 <xsl:template match="releaseinfo" mode="set.titlepage.recto.auto.mode">
357 <div xsl:use-attribute-sets="set.titlepage.recto.style">
358 <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
362 <xsl:template match="copyright" mode="set.titlepage.recto.auto.mode">
363 <div xsl:use-attribute-sets="set.titlepage.recto.style">
364 <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
368 <xsl:template match="legalnotice" mode="set.titlepage.recto.auto.mode">
369 <div xsl:use-attribute-sets="set.titlepage.recto.style">
370 <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
374 <xsl:template match="pubdate" mode="set.titlepage.recto.auto.mode">
375 <div xsl:use-attribute-sets="set.titlepage.recto.style">
376 <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
380 <xsl:template match="revision" mode="set.titlepage.recto.auto.mode">
381 <div xsl:use-attribute-sets="set.titlepage.recto.style">
382 <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
386 <xsl:template match="revhistory" mode="set.titlepage.recto.auto.mode">
387 <div xsl:use-attribute-sets="set.titlepage.recto.style">
388 <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
392 <xsl:template match="abstract" mode="set.titlepage.recto.auto.mode">
393 <div xsl:use-attribute-sets="set.titlepage.recto.style">
394 <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
398 <xsl:template name="book.titlepage.recto">
400 <xsl:when test="bookinfo/title">
401 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/title"/>
403 <xsl:when test="info/title">
404 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/title"/>
406 <xsl:when test="title">
407 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="title"/>
412 <xsl:when test="bookinfo/subtitle">
413 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/subtitle"/>
415 <xsl:when test="info/subtitle">
416 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/subtitle"/>
418 <xsl:when test="subtitle">
419 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="subtitle"/>
423 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/corpauthor"/>
424 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/corpauthor"/>
425 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/authorgroup"/>
426 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/authorgroup"/>
427 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/author"/>
428 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/author"/>
429 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/othercredit"/>
430 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/othercredit"/>
431 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/releaseinfo"/>
432 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/releaseinfo"/>
433 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/copyright"/>
434 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/copyright"/>
435 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/legalnotice"/>
436 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/legalnotice"/>
437 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/pubdate"/>
438 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/pubdate"/>
439 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/revision"/>
440 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/revision"/>
441 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/revhistory"/>
442 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/revhistory"/>
443 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/abstract"/>
444 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/abstract"/>
447 <xsl:template name="book.titlepage.verso">
450 <xsl:template name="book.titlepage.separator"><hr/>
453 <xsl:template name="book.titlepage.before.recto">
456 <xsl:template name="book.titlepage.before.verso">
459 <xsl:template name="book.titlepage">
460 <div class="titlepage">
461 <xsl:variable name="recto.content">
462 <xsl:call-template name="book.titlepage.before.recto"/>
463 <xsl:call-template name="book.titlepage.recto"/>
465 <xsl:variable name="recto.elements.count">
467 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
468 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
469 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
470 <xsl:otherwise>1</xsl:otherwise>
473 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
474 <div><xsl:copy-of select="$recto.content"/></div>
476 <xsl:variable name="verso.content">
477 <xsl:call-template name="book.titlepage.before.verso"/>
478 <xsl:call-template name="book.titlepage.verso"/>
480 <xsl:variable name="verso.elements.count">
482 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
483 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
484 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
485 <xsl:otherwise>1</xsl:otherwise>
488 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
489 <div><xsl:copy-of select="$verso.content"/></div>
491 <xsl:call-template name="book.titlepage.separator"/>
495 <xsl:template match="*" mode="book.titlepage.recto.mode">
496 <!-- if an element isn't found in this mode, -->
497 <!-- try the generic titlepage.mode -->
498 <xsl:apply-templates select="." mode="titlepage.mode"/>
501 <xsl:template match="*" mode="book.titlepage.verso.mode">
502 <!-- if an element isn't found in this mode, -->
503 <!-- try the generic titlepage.mode -->
504 <xsl:apply-templates select="." mode="titlepage.mode"/>
507 <xsl:template match="title" mode="book.titlepage.recto.auto.mode">
508 <div xsl:use-attribute-sets="book.titlepage.recto.style">
509 <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
513 <xsl:template match="subtitle" mode="book.titlepage.recto.auto.mode">
514 <div xsl:use-attribute-sets="book.titlepage.recto.style">
515 <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
519 <xsl:template match="corpauthor" mode="book.titlepage.recto.auto.mode">
520 <div xsl:use-attribute-sets="book.titlepage.recto.style">
521 <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
525 <xsl:template match="authorgroup" mode="book.titlepage.recto.auto.mode">
526 <div xsl:use-attribute-sets="book.titlepage.recto.style">
527 <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
531 <xsl:template match="author" mode="book.titlepage.recto.auto.mode">
532 <div xsl:use-attribute-sets="book.titlepage.recto.style">
533 <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
537 <xsl:template match="othercredit" mode="book.titlepage.recto.auto.mode">
538 <div xsl:use-attribute-sets="book.titlepage.recto.style">
539 <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
543 <xsl:template match="releaseinfo" mode="book.titlepage.recto.auto.mode">
544 <div xsl:use-attribute-sets="book.titlepage.recto.style">
545 <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
549 <xsl:template match="copyright" mode="book.titlepage.recto.auto.mode">
550 <div xsl:use-attribute-sets="book.titlepage.recto.style">
551 <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
555 <xsl:template match="legalnotice" mode="book.titlepage.recto.auto.mode">
556 <div xsl:use-attribute-sets="book.titlepage.recto.style">
557 <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
561 <xsl:template match="pubdate" mode="book.titlepage.recto.auto.mode">
562 <div xsl:use-attribute-sets="book.titlepage.recto.style">
563 <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
567 <xsl:template match="revision" mode="book.titlepage.recto.auto.mode">
568 <div xsl:use-attribute-sets="book.titlepage.recto.style">
569 <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
573 <xsl:template match="revhistory" mode="book.titlepage.recto.auto.mode">
574 <div xsl:use-attribute-sets="book.titlepage.recto.style">
575 <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
579 <xsl:template match="abstract" mode="book.titlepage.recto.auto.mode">
580 <div xsl:use-attribute-sets="book.titlepage.recto.style">
581 <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
585 <xsl:template name="part.titlepage.recto">
586 <div xsl:use-attribute-sets="part.titlepage.recto.style">
587 <xsl:call-template name="division.title">
588 <xsl:with-param name="node" select="ancestor-or-self::part[1]"/>
589 </xsl:call-template></div>
591 <xsl:when test="partinfo/subtitle">
592 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/subtitle"/>
594 <xsl:when test="docinfo/subtitle">
595 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
597 <xsl:when test="info/subtitle">
598 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="info/subtitle"/>
600 <xsl:when test="subtitle">
601 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="subtitle"/>
605 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/corpauthor"/>
606 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/corpauthor"/>
607 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="info/corpauthor"/>
608 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/authorgroup"/>
609 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/authorgroup"/>
610 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="info/authorgroup"/>
611 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/author"/>
612 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/author"/>
613 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="info/author"/>
614 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/othercredit"/>
615 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/othercredit"/>
616 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="info/othercredit"/>
617 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/releaseinfo"/>
618 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/>
619 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="info/releaseinfo"/>
620 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/copyright"/>
621 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/copyright"/>
622 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="info/copyright"/>
623 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/legalnotice"/>
624 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/legalnotice"/>
625 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="info/legalnotice"/>
626 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/pubdate"/>
627 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/pubdate"/>
628 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="info/pubdate"/>
629 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/revision"/>
630 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/revision"/>
631 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="info/revision"/>
632 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/revhistory"/>
633 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/revhistory"/>
634 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="info/revhistory"/>
635 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/abstract"/>
636 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/abstract"/>
637 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="info/abstract"/>
640 <xsl:template name="part.titlepage.verso">
643 <xsl:template name="part.titlepage.separator">
646 <xsl:template name="part.titlepage.before.recto">
649 <xsl:template name="part.titlepage.before.verso">
652 <xsl:template name="part.titlepage">
653 <div class="titlepage">
654 <xsl:variable name="recto.content">
655 <xsl:call-template name="part.titlepage.before.recto"/>
656 <xsl:call-template name="part.titlepage.recto"/>
658 <xsl:variable name="recto.elements.count">
660 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
661 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
662 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
663 <xsl:otherwise>1</xsl:otherwise>
666 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
667 <div><xsl:copy-of select="$recto.content"/></div>
669 <xsl:variable name="verso.content">
670 <xsl:call-template name="part.titlepage.before.verso"/>
671 <xsl:call-template name="part.titlepage.verso"/>
673 <xsl:variable name="verso.elements.count">
675 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
676 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
677 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
678 <xsl:otherwise>1</xsl:otherwise>
681 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
682 <div><xsl:copy-of select="$verso.content"/></div>
684 <xsl:call-template name="part.titlepage.separator"/>
688 <xsl:template match="*" mode="part.titlepage.recto.mode">
689 <!-- if an element isn't found in this mode, -->
690 <!-- try the generic titlepage.mode -->
691 <xsl:apply-templates select="." mode="titlepage.mode"/>
694 <xsl:template match="*" mode="part.titlepage.verso.mode">
695 <!-- if an element isn't found in this mode, -->
696 <!-- try the generic titlepage.mode -->
697 <xsl:apply-templates select="." mode="titlepage.mode"/>
700 <xsl:template match="subtitle" mode="part.titlepage.recto.auto.mode">
701 <div xsl:use-attribute-sets="part.titlepage.recto.style">
702 <xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
706 <xsl:template match="corpauthor" mode="part.titlepage.recto.auto.mode">
707 <div xsl:use-attribute-sets="part.titlepage.recto.style">
708 <xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
712 <xsl:template match="authorgroup" mode="part.titlepage.recto.auto.mode">
713 <div xsl:use-attribute-sets="part.titlepage.recto.style">
714 <xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
718 <xsl:template match="author" mode="part.titlepage.recto.auto.mode">
719 <div xsl:use-attribute-sets="part.titlepage.recto.style">
720 <xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
724 <xsl:template match="othercredit" mode="part.titlepage.recto.auto.mode">
725 <div xsl:use-attribute-sets="part.titlepage.recto.style">
726 <xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
730 <xsl:template match="releaseinfo" mode="part.titlepage.recto.auto.mode">
731 <div xsl:use-attribute-sets="part.titlepage.recto.style">
732 <xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
736 <xsl:template match="copyright" mode="part.titlepage.recto.auto.mode">
737 <div xsl:use-attribute-sets="part.titlepage.recto.style">
738 <xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
742 <xsl:template match="legalnotice" mode="part.titlepage.recto.auto.mode">
743 <div xsl:use-attribute-sets="part.titlepage.recto.style">
744 <xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
748 <xsl:template match="pubdate" mode="part.titlepage.recto.auto.mode">
749 <div xsl:use-attribute-sets="part.titlepage.recto.style">
750 <xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
754 <xsl:template match="revision" mode="part.titlepage.recto.auto.mode">
755 <div xsl:use-attribute-sets="part.titlepage.recto.style">
756 <xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
760 <xsl:template match="revhistory" mode="part.titlepage.recto.auto.mode">
761 <div xsl:use-attribute-sets="part.titlepage.recto.style">
762 <xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
766 <xsl:template match="abstract" mode="part.titlepage.recto.auto.mode">
767 <div xsl:use-attribute-sets="part.titlepage.recto.style">
768 <xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
772 <xsl:template name="partintro.titlepage.recto">
774 <xsl:when test="partintroinfo/title">
775 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/title"/>
777 <xsl:when test="docinfo/title">
778 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/title"/>
780 <xsl:when test="info/title">
781 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/title"/>
783 <xsl:when test="title">
784 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="title"/>
789 <xsl:when test="partintroinfo/subtitle">
790 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/subtitle"/>
792 <xsl:when test="docinfo/subtitle">
793 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
795 <xsl:when test="info/subtitle">
796 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/subtitle"/>
798 <xsl:when test="subtitle">
799 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="subtitle"/>
803 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/corpauthor"/>
804 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/corpauthor"/>
805 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/corpauthor"/>
806 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/authorgroup"/>
807 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/authorgroup"/>
808 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/authorgroup"/>
809 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/author"/>
810 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/author"/>
811 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/author"/>
812 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/othercredit"/>
813 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/othercredit"/>
814 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/othercredit"/>
815 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/releaseinfo"/>
816 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/>
817 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/releaseinfo"/>
818 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/copyright"/>
819 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/copyright"/>
820 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/copyright"/>
821 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/legalnotice"/>
822 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/legalnotice"/>
823 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/legalnotice"/>
824 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/pubdate"/>
825 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/pubdate"/>
826 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/pubdate"/>
827 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/revision"/>
828 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/revision"/>
829 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/revision"/>
830 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/revhistory"/>
831 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/revhistory"/>
832 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/revhistory"/>
833 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/abstract"/>
834 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/abstract"/>
835 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/abstract"/>
838 <xsl:template name="partintro.titlepage.verso">
841 <xsl:template name="partintro.titlepage.separator">
844 <xsl:template name="partintro.titlepage.before.recto">
847 <xsl:template name="partintro.titlepage.before.verso">
850 <xsl:template name="partintro.titlepage">
852 <xsl:variable name="recto.content">
853 <xsl:call-template name="partintro.titlepage.before.recto"/>
854 <xsl:call-template name="partintro.titlepage.recto"/>
856 <xsl:variable name="recto.elements.count">
858 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
859 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
860 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
861 <xsl:otherwise>1</xsl:otherwise>
864 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
865 <div><xsl:copy-of select="$recto.content"/></div>
867 <xsl:variable name="verso.content">
868 <xsl:call-template name="partintro.titlepage.before.verso"/>
869 <xsl:call-template name="partintro.titlepage.verso"/>
871 <xsl:variable name="verso.elements.count">
873 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
874 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
875 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
876 <xsl:otherwise>1</xsl:otherwise>
879 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
880 <div><xsl:copy-of select="$verso.content"/></div>
882 <xsl:call-template name="partintro.titlepage.separator"/>
886 <xsl:template match="*" mode="partintro.titlepage.recto.mode">
887 <!-- if an element isn't found in this mode, -->
888 <!-- try the generic titlepage.mode -->
889 <xsl:apply-templates select="." mode="titlepage.mode"/>
892 <xsl:template match="*" mode="partintro.titlepage.verso.mode">
893 <!-- if an element isn't found in this mode, -->
894 <!-- try the generic titlepage.mode -->
895 <xsl:apply-templates select="." mode="titlepage.mode"/>
898 <xsl:template match="title" mode="partintro.titlepage.recto.auto.mode">
899 <div xsl:use-attribute-sets="partintro.titlepage.recto.style">
900 <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
904 <xsl:template match="subtitle" mode="partintro.titlepage.recto.auto.mode">
905 <div xsl:use-attribute-sets="partintro.titlepage.recto.style">
906 <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
910 <xsl:template match="corpauthor" mode="partintro.titlepage.recto.auto.mode">
911 <div xsl:use-attribute-sets="partintro.titlepage.recto.style">
912 <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
916 <xsl:template match="authorgroup" mode="partintro.titlepage.recto.auto.mode">
917 <div xsl:use-attribute-sets="partintro.titlepage.recto.style">
918 <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
922 <xsl:template match="author" mode="partintro.titlepage.recto.auto.mode">
923 <div xsl:use-attribute-sets="partintro.titlepage.recto.style">
924 <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
928 <xsl:template match="othercredit" mode="partintro.titlepage.recto.auto.mode">
929 <div xsl:use-attribute-sets="partintro.titlepage.recto.style">
930 <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
934 <xsl:template match="releaseinfo" mode="partintro.titlepage.recto.auto.mode">
935 <div xsl:use-attribute-sets="partintro.titlepage.recto.style">
936 <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
940 <xsl:template match="copyright" mode="partintro.titlepage.recto.auto.mode">
941 <div xsl:use-attribute-sets="partintro.titlepage.recto.style">
942 <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
946 <xsl:template match="legalnotice" mode="partintro.titlepage.recto.auto.mode">
947 <div xsl:use-attribute-sets="partintro.titlepage.recto.style">
948 <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
952 <xsl:template match="pubdate" mode="partintro.titlepage.recto.auto.mode">
953 <div xsl:use-attribute-sets="partintro.titlepage.recto.style">
954 <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
958 <xsl:template match="revision" mode="partintro.titlepage.recto.auto.mode">
959 <div xsl:use-attribute-sets="partintro.titlepage.recto.style">
960 <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
964 <xsl:template match="revhistory" mode="partintro.titlepage.recto.auto.mode">
965 <div xsl:use-attribute-sets="partintro.titlepage.recto.style">
966 <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
970 <xsl:template match="abstract" mode="partintro.titlepage.recto.auto.mode">
971 <div xsl:use-attribute-sets="partintro.titlepage.recto.style">
972 <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
976 <xsl:template name="reference.titlepage.recto">
978 <xsl:when test="referenceinfo/title">
979 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/title"/>
981 <xsl:when test="docinfo/title">
982 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/title"/>
984 <xsl:when test="info/title">
985 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/title"/>
987 <xsl:when test="title">
988 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="title"/>
993 <xsl:when test="referenceinfo/subtitle">
994 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/subtitle"/>
996 <xsl:when test="docinfo/subtitle">
997 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
999 <xsl:when test="info/subtitle">
1000 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/subtitle"/>
1002 <xsl:when test="subtitle">
1003 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="subtitle"/>
1007 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/corpauthor"/>
1008 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/corpauthor"/>
1009 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/corpauthor"/>
1010 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/authorgroup"/>
1011 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/authorgroup"/>
1012 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/authorgroup"/>
1013 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/author"/>
1014 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/author"/>
1015 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/author"/>
1016 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/othercredit"/>
1017 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/othercredit"/>
1018 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/othercredit"/>
1019 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/releaseinfo"/>
1020 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/>
1021 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/releaseinfo"/>
1022 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/copyright"/>
1023 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/copyright"/>
1024 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/copyright"/>
1025 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/legalnotice"/>
1026 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/legalnotice"/>
1027 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/legalnotice"/>
1028 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/pubdate"/>
1029 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/pubdate"/>
1030 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/pubdate"/>
1031 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/revision"/>
1032 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/revision"/>
1033 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/revision"/>
1034 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/revhistory"/>
1035 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/revhistory"/>
1036 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/revhistory"/>
1037 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/abstract"/>
1038 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/abstract"/>
1039 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/abstract"/>
1042 <xsl:template name="reference.titlepage.verso">
1045 <xsl:template name="reference.titlepage.separator"><hr/>
1048 <xsl:template name="reference.titlepage.before.recto">
1051 <xsl:template name="reference.titlepage.before.verso">
1054 <xsl:template name="reference.titlepage">
1055 <div class="titlepage">
1056 <xsl:variable name="recto.content">
1057 <xsl:call-template name="reference.titlepage.before.recto"/>
1058 <xsl:call-template name="reference.titlepage.recto"/>
1060 <xsl:variable name="recto.elements.count">
1062 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1063 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1064 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1065 <xsl:otherwise>1</xsl:otherwise>
1068 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
1069 <div><xsl:copy-of select="$recto.content"/></div>
1071 <xsl:variable name="verso.content">
1072 <xsl:call-template name="reference.titlepage.before.verso"/>
1073 <xsl:call-template name="reference.titlepage.verso"/>
1075 <xsl:variable name="verso.elements.count">
1077 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1078 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1079 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1080 <xsl:otherwise>1</xsl:otherwise>
1083 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
1084 <div><xsl:copy-of select="$verso.content"/></div>
1086 <xsl:call-template name="reference.titlepage.separator"/>
1090 <xsl:template match="*" mode="reference.titlepage.recto.mode">
1091 <!-- if an element isn't found in this mode, -->
1092 <!-- try the generic titlepage.mode -->
1093 <xsl:apply-templates select="." mode="titlepage.mode"/>
1096 <xsl:template match="*" mode="reference.titlepage.verso.mode">
1097 <!-- if an element isn't found in this mode, -->
1098 <!-- try the generic titlepage.mode -->
1099 <xsl:apply-templates select="." mode="titlepage.mode"/>
1102 <xsl:template match="title" mode="reference.titlepage.recto.auto.mode">
1103 <div xsl:use-attribute-sets="reference.titlepage.recto.style">
1104 <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1108 <xsl:template match="subtitle" mode="reference.titlepage.recto.auto.mode">
1109 <div xsl:use-attribute-sets="reference.titlepage.recto.style">
1110 <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1114 <xsl:template match="corpauthor" mode="reference.titlepage.recto.auto.mode">
1115 <div xsl:use-attribute-sets="reference.titlepage.recto.style">
1116 <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1120 <xsl:template match="authorgroup" mode="reference.titlepage.recto.auto.mode">
1121 <div xsl:use-attribute-sets="reference.titlepage.recto.style">
1122 <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1126 <xsl:template match="author" mode="reference.titlepage.recto.auto.mode">
1127 <div xsl:use-attribute-sets="reference.titlepage.recto.style">
1128 <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1132 <xsl:template match="othercredit" mode="reference.titlepage.recto.auto.mode">
1133 <div xsl:use-attribute-sets="reference.titlepage.recto.style">
1134 <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1138 <xsl:template match="releaseinfo" mode="reference.titlepage.recto.auto.mode">
1139 <div xsl:use-attribute-sets="reference.titlepage.recto.style">
1140 <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1144 <xsl:template match="copyright" mode="reference.titlepage.recto.auto.mode">
1145 <div xsl:use-attribute-sets="reference.titlepage.recto.style">
1146 <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1150 <xsl:template match="legalnotice" mode="reference.titlepage.recto.auto.mode">
1151 <div xsl:use-attribute-sets="reference.titlepage.recto.style">
1152 <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1156 <xsl:template match="pubdate" mode="reference.titlepage.recto.auto.mode">
1157 <div xsl:use-attribute-sets="reference.titlepage.recto.style">
1158 <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1162 <xsl:template match="revision" mode="reference.titlepage.recto.auto.mode">
1163 <div xsl:use-attribute-sets="reference.titlepage.recto.style">
1164 <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1168 <xsl:template match="revhistory" mode="reference.titlepage.recto.auto.mode">
1169 <div xsl:use-attribute-sets="reference.titlepage.recto.style">
1170 <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1174 <xsl:template match="abstract" mode="reference.titlepage.recto.auto.mode">
1175 <div xsl:use-attribute-sets="reference.titlepage.recto.style">
1176 <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1180 <xsl:template name="refentry.titlepage.recto">
1183 <xsl:template name="refentry.titlepage.verso">
1186 <xsl:template name="refentry.titlepage.separator">
1189 <xsl:template name="refentry.titlepage.before.recto">
1192 <xsl:template name="refentry.titlepage.before.verso">
1195 <xsl:template name="refentry.titlepage">
1196 <div class="titlepage">
1197 <xsl:variable name="recto.content">
1198 <xsl:call-template name="refentry.titlepage.before.recto"/>
1199 <xsl:call-template name="refentry.titlepage.recto"/>
1201 <xsl:variable name="recto.elements.count">
1203 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1204 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1205 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1206 <xsl:otherwise>1</xsl:otherwise>
1209 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
1210 <div><xsl:copy-of select="$recto.content"/></div>
1212 <xsl:variable name="verso.content">
1213 <xsl:call-template name="refentry.titlepage.before.verso"/>
1214 <xsl:call-template name="refentry.titlepage.verso"/>
1216 <xsl:variable name="verso.elements.count">
1218 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1219 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1220 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1221 <xsl:otherwise>1</xsl:otherwise>
1224 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
1225 <div><xsl:copy-of select="$verso.content"/></div>
1227 <xsl:call-template name="refentry.titlepage.separator"/>
1231 <xsl:template match="*" mode="refentry.titlepage.recto.mode">
1232 <!-- if an element isn't found in this mode, -->
1233 <!-- try the generic titlepage.mode -->
1234 <xsl:apply-templates select="." mode="titlepage.mode"/>
1237 <xsl:template match="*" mode="refentry.titlepage.verso.mode">
1238 <!-- if an element isn't found in this mode, -->
1239 <!-- try the generic titlepage.mode -->
1240 <xsl:apply-templates select="." mode="titlepage.mode"/>
1243 <xsl:template name="dedication.titlepage.recto">
1244 <div xsl:use-attribute-sets="dedication.titlepage.recto.style">
1245 <xsl:call-template name="component.title">
1246 <xsl:with-param name="node" select="ancestor-or-self::dedication[1]"/>
1247 </xsl:call-template></div>
1249 <xsl:when test="dedicationinfo/subtitle">
1250 <xsl:apply-templates mode="dedication.titlepage.recto.auto.mode" select="dedicationinfo/subtitle"/>
1252 <xsl:when test="docinfo/subtitle">
1253 <xsl:apply-templates mode="dedication.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
1255 <xsl:when test="info/subtitle">
1256 <xsl:apply-templates mode="dedication.titlepage.recto.auto.mode" select="info/subtitle"/>
1258 <xsl:when test="subtitle">
1259 <xsl:apply-templates mode="dedication.titlepage.recto.auto.mode" select="subtitle"/>
1265 <xsl:template name="dedication.titlepage.verso">
1268 <xsl:template name="dedication.titlepage.separator">
1271 <xsl:template name="dedication.titlepage.before.recto">
1274 <xsl:template name="dedication.titlepage.before.verso">
1277 <xsl:template name="dedication.titlepage">
1278 <div class="titlepage">
1279 <xsl:variable name="recto.content">
1280 <xsl:call-template name="dedication.titlepage.before.recto"/>
1281 <xsl:call-template name="dedication.titlepage.recto"/>
1283 <xsl:variable name="recto.elements.count">
1285 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1286 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1287 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1288 <xsl:otherwise>1</xsl:otherwise>
1291 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
1292 <div><xsl:copy-of select="$recto.content"/></div>
1294 <xsl:variable name="verso.content">
1295 <xsl:call-template name="dedication.titlepage.before.verso"/>
1296 <xsl:call-template name="dedication.titlepage.verso"/>
1298 <xsl:variable name="verso.elements.count">
1300 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1301 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1302 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1303 <xsl:otherwise>1</xsl:otherwise>
1306 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
1307 <div><xsl:copy-of select="$verso.content"/></div>
1309 <xsl:call-template name="dedication.titlepage.separator"/>
1313 <xsl:template match="*" mode="dedication.titlepage.recto.mode">
1314 <!-- if an element isn't found in this mode, -->
1315 <!-- try the generic titlepage.mode -->
1316 <xsl:apply-templates select="." mode="titlepage.mode"/>
1319 <xsl:template match="*" mode="dedication.titlepage.verso.mode">
1320 <!-- if an element isn't found in this mode, -->
1321 <!-- try the generic titlepage.mode -->
1322 <xsl:apply-templates select="." mode="titlepage.mode"/>
1325 <xsl:template match="subtitle" mode="dedication.titlepage.recto.auto.mode">
1326 <div xsl:use-attribute-sets="dedication.titlepage.recto.style">
1327 <xsl:apply-templates select="." mode="dedication.titlepage.recto.mode"/>
1331 <xsl:template name="acknowledgements.titlepage.recto">
1332 <div xsl:use-attribute-sets="acknowledgements.titlepage.recto.style">
1333 <xsl:call-template name="component.title">
1334 <xsl:with-param name="node" select="ancestor-or-self::acknowledgements[1]"/>
1335 </xsl:call-template></div>
1337 <xsl:when test="acknowledgementsinfo/subtitle">
1338 <xsl:apply-templates mode="acknowledgements.titlepage.recto.auto.mode" select="acknowledgementsinfo/subtitle"/>
1340 <xsl:when test="docinfo/subtitle">
1341 <xsl:apply-templates mode="acknowledgements.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
1343 <xsl:when test="info/subtitle">
1344 <xsl:apply-templates mode="acknowledgements.titlepage.recto.auto.mode" select="info/subtitle"/>
1346 <xsl:when test="subtitle">
1347 <xsl:apply-templates mode="acknowledgements.titlepage.recto.auto.mode" select="subtitle"/>
1353 <xsl:template name="acknowledgements.titlepage.verso">
1356 <xsl:template name="acknowledgements.titlepage.separator">
1359 <xsl:template name="acknowledgements.titlepage.before.recto">
1362 <xsl:template name="acknowledgements.titlepage.before.verso">
1365 <xsl:template name="acknowledgements.titlepage">
1366 <div class="titlepage">
1367 <xsl:variable name="recto.content">
1368 <xsl:call-template name="acknowledgements.titlepage.before.recto"/>
1369 <xsl:call-template name="acknowledgements.titlepage.recto"/>
1371 <xsl:variable name="recto.elements.count">
1373 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1374 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1375 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1376 <xsl:otherwise>1</xsl:otherwise>
1379 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
1380 <div><xsl:copy-of select="$recto.content"/></div>
1382 <xsl:variable name="verso.content">
1383 <xsl:call-template name="acknowledgements.titlepage.before.verso"/>
1384 <xsl:call-template name="acknowledgements.titlepage.verso"/>
1386 <xsl:variable name="verso.elements.count">
1388 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1389 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1390 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1391 <xsl:otherwise>1</xsl:otherwise>
1394 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
1395 <div><xsl:copy-of select="$verso.content"/></div>
1397 <xsl:call-template name="acknowledgements.titlepage.separator"/>
1401 <xsl:template match="*" mode="acknowledgements.titlepage.recto.mode">
1402 <!-- if an element isn't found in this mode, -->
1403 <!-- try the generic titlepage.mode -->
1404 <xsl:apply-templates select="." mode="titlepage.mode"/>
1407 <xsl:template match="*" mode="acknowledgements.titlepage.verso.mode">
1408 <!-- if an element isn't found in this mode, -->
1409 <!-- try the generic titlepage.mode -->
1410 <xsl:apply-templates select="." mode="titlepage.mode"/>
1413 <xsl:template match="subtitle" mode="acknowledgements.titlepage.recto.auto.mode">
1414 <div xsl:use-attribute-sets="acknowledgements.titlepage.recto.style">
1415 <xsl:apply-templates select="." mode="acknowledgements.titlepage.recto.mode"/>
1419 <xsl:template name="preface.titlepage.recto">
1421 <xsl:when test="prefaceinfo/title">
1422 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/title"/>
1424 <xsl:when test="docinfo/title">
1425 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/title"/>
1427 <xsl:when test="info/title">
1428 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/title"/>
1430 <xsl:when test="title">
1431 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="title"/>
1436 <xsl:when test="prefaceinfo/subtitle">
1437 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/subtitle"/>
1439 <xsl:when test="docinfo/subtitle">
1440 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
1442 <xsl:when test="info/subtitle">
1443 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/subtitle"/>
1445 <xsl:when test="subtitle">
1446 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="subtitle"/>
1450 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/corpauthor"/>
1451 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/corpauthor"/>
1452 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/corpauthor"/>
1453 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/authorgroup"/>
1454 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/authorgroup"/>
1455 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/authorgroup"/>
1456 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/author"/>
1457 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/author"/>
1458 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/author"/>
1459 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/othercredit"/>
1460 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/othercredit"/>
1461 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/othercredit"/>
1462 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/releaseinfo"/>
1463 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/>
1464 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/releaseinfo"/>
1465 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/copyright"/>
1466 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/copyright"/>
1467 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/copyright"/>
1468 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/legalnotice"/>
1469 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/legalnotice"/>
1470 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/legalnotice"/>
1471 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/pubdate"/>
1472 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/pubdate"/>
1473 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/pubdate"/>
1474 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/revision"/>
1475 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/revision"/>
1476 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/revision"/>
1477 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/revhistory"/>
1478 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/revhistory"/>
1479 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/revhistory"/>
1480 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/abstract"/>
1481 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/abstract"/>
1482 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/abstract"/>
1485 <xsl:template name="preface.titlepage.verso">
1488 <xsl:template name="preface.titlepage.separator">
1491 <xsl:template name="preface.titlepage.before.recto">
1494 <xsl:template name="preface.titlepage.before.verso">
1497 <xsl:template name="preface.titlepage">
1498 <div class="titlepage">
1499 <xsl:variable name="recto.content">
1500 <xsl:call-template name="preface.titlepage.before.recto"/>
1501 <xsl:call-template name="preface.titlepage.recto"/>
1503 <xsl:variable name="recto.elements.count">
1505 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1506 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1507 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1508 <xsl:otherwise>1</xsl:otherwise>
1511 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
1512 <div><xsl:copy-of select="$recto.content"/></div>
1514 <xsl:variable name="verso.content">
1515 <xsl:call-template name="preface.titlepage.before.verso"/>
1516 <xsl:call-template name="preface.titlepage.verso"/>
1518 <xsl:variable name="verso.elements.count">
1520 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1521 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1522 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1523 <xsl:otherwise>1</xsl:otherwise>
1526 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
1527 <div><xsl:copy-of select="$verso.content"/></div>
1529 <xsl:call-template name="preface.titlepage.separator"/>
1533 <xsl:template match="*" mode="preface.titlepage.recto.mode">
1534 <!-- if an element isn't found in this mode, -->
1535 <!-- try the generic titlepage.mode -->
1536 <xsl:apply-templates select="." mode="titlepage.mode"/>
1539 <xsl:template match="*" mode="preface.titlepage.verso.mode">
1540 <!-- if an element isn't found in this mode, -->
1541 <!-- try the generic titlepage.mode -->
1542 <xsl:apply-templates select="." mode="titlepage.mode"/>
1545 <xsl:template match="title" mode="preface.titlepage.recto.auto.mode">
1546 <div xsl:use-attribute-sets="preface.titlepage.recto.style">
1547 <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1551 <xsl:template match="subtitle" mode="preface.titlepage.recto.auto.mode">
1552 <div xsl:use-attribute-sets="preface.titlepage.recto.style">
1553 <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1557 <xsl:template match="corpauthor" mode="preface.titlepage.recto.auto.mode">
1558 <div xsl:use-attribute-sets="preface.titlepage.recto.style">
1559 <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1563 <xsl:template match="authorgroup" mode="preface.titlepage.recto.auto.mode">
1564 <div xsl:use-attribute-sets="preface.titlepage.recto.style">
1565 <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1569 <xsl:template match="author" mode="preface.titlepage.recto.auto.mode">
1570 <div xsl:use-attribute-sets="preface.titlepage.recto.style">
1571 <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1575 <xsl:template match="othercredit" mode="preface.titlepage.recto.auto.mode">
1576 <div xsl:use-attribute-sets="preface.titlepage.recto.style">
1577 <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1581 <xsl:template match="releaseinfo" mode="preface.titlepage.recto.auto.mode">
1582 <div xsl:use-attribute-sets="preface.titlepage.recto.style">
1583 <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1587 <xsl:template match="copyright" mode="preface.titlepage.recto.auto.mode">
1588 <div xsl:use-attribute-sets="preface.titlepage.recto.style">
1589 <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1593 <xsl:template match="legalnotice" mode="preface.titlepage.recto.auto.mode">
1594 <div xsl:use-attribute-sets="preface.titlepage.recto.style">
1595 <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1599 <xsl:template match="pubdate" mode="preface.titlepage.recto.auto.mode">
1600 <div xsl:use-attribute-sets="preface.titlepage.recto.style">
1601 <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1605 <xsl:template match="revision" mode="preface.titlepage.recto.auto.mode">
1606 <div xsl:use-attribute-sets="preface.titlepage.recto.style">
1607 <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1611 <xsl:template match="revhistory" mode="preface.titlepage.recto.auto.mode">
1612 <div xsl:use-attribute-sets="preface.titlepage.recto.style">
1613 <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1617 <xsl:template match="abstract" mode="preface.titlepage.recto.auto.mode">
1618 <div xsl:use-attribute-sets="preface.titlepage.recto.style">
1619 <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1623 <xsl:template name="chapter.titlepage.recto">
1625 <xsl:when test="chapterinfo/title">
1626 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/title"/>
1628 <xsl:when test="docinfo/title">
1629 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/title"/>
1631 <xsl:when test="info/title">
1632 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/title"/>
1634 <xsl:when test="title">
1635 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="title"/>
1640 <xsl:when test="chapterinfo/subtitle">
1641 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/subtitle"/>
1643 <xsl:when test="docinfo/subtitle">
1644 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
1646 <xsl:when test="info/subtitle">
1647 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/subtitle"/>
1649 <xsl:when test="subtitle">
1650 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="subtitle"/>
1654 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/corpauthor"/>
1655 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/corpauthor"/>
1656 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/corpauthor"/>
1657 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/authorgroup"/>
1658 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/authorgroup"/>
1659 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/authorgroup"/>
1660 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/author"/>
1661 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/author"/>
1662 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/author"/>
1663 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/othercredit"/>
1664 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/othercredit"/>
1665 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/othercredit"/>
1666 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/releaseinfo"/>
1667 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/>
1668 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/releaseinfo"/>
1669 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/copyright"/>
1670 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/copyright"/>
1671 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/copyright"/>
1672 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/legalnotice"/>
1673 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/legalnotice"/>
1674 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/legalnotice"/>
1675 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/pubdate"/>
1676 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/pubdate"/>
1677 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/pubdate"/>
1678 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/revision"/>
1679 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/revision"/>
1680 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/revision"/>
1681 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/revhistory"/>
1682 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/revhistory"/>
1683 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/revhistory"/>
1684 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/abstract"/>
1685 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/abstract"/>
1686 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/abstract"/>
1689 <xsl:template name="chapter.titlepage.verso">
1692 <xsl:template name="chapter.titlepage.separator">
1695 <xsl:template name="chapter.titlepage.before.recto">
1698 <xsl:template name="chapter.titlepage.before.verso">
1701 <xsl:template name="chapter.titlepage">
1702 <div class="titlepage">
1703 <xsl:variable name="recto.content">
1704 <xsl:call-template name="chapter.titlepage.before.recto"/>
1705 <xsl:call-template name="chapter.titlepage.recto"/>
1707 <xsl:variable name="recto.elements.count">
1709 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1710 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1711 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1712 <xsl:otherwise>1</xsl:otherwise>
1715 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
1716 <div><xsl:copy-of select="$recto.content"/></div>
1718 <xsl:variable name="verso.content">
1719 <xsl:call-template name="chapter.titlepage.before.verso"/>
1720 <xsl:call-template name="chapter.titlepage.verso"/>
1722 <xsl:variable name="verso.elements.count">
1724 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1725 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1726 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1727 <xsl:otherwise>1</xsl:otherwise>
1730 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
1731 <div><xsl:copy-of select="$verso.content"/></div>
1733 <xsl:call-template name="chapter.titlepage.separator"/>
1737 <xsl:template match="*" mode="chapter.titlepage.recto.mode">
1738 <!-- if an element isn't found in this mode, -->
1739 <!-- try the generic titlepage.mode -->
1740 <xsl:apply-templates select="." mode="titlepage.mode"/>
1743 <xsl:template match="*" mode="chapter.titlepage.verso.mode">
1744 <!-- if an element isn't found in this mode, -->
1745 <!-- try the generic titlepage.mode -->
1746 <xsl:apply-templates select="." mode="titlepage.mode"/>
1749 <xsl:template match="title" mode="chapter.titlepage.recto.auto.mode">
1750 <div xsl:use-attribute-sets="chapter.titlepage.recto.style">
1751 <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1755 <xsl:template match="subtitle" mode="chapter.titlepage.recto.auto.mode">
1756 <div xsl:use-attribute-sets="chapter.titlepage.recto.style">
1757 <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1761 <xsl:template match="corpauthor" mode="chapter.titlepage.recto.auto.mode">
1762 <div xsl:use-attribute-sets="chapter.titlepage.recto.style">
1763 <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1767 <xsl:template match="authorgroup" mode="chapter.titlepage.recto.auto.mode">
1768 <div xsl:use-attribute-sets="chapter.titlepage.recto.style">
1769 <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1773 <xsl:template match="author" mode="chapter.titlepage.recto.auto.mode">
1774 <div xsl:use-attribute-sets="chapter.titlepage.recto.style">
1775 <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1779 <xsl:template match="othercredit" mode="chapter.titlepage.recto.auto.mode">
1780 <div xsl:use-attribute-sets="chapter.titlepage.recto.style">
1781 <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1785 <xsl:template match="releaseinfo" mode="chapter.titlepage.recto.auto.mode">
1786 <div xsl:use-attribute-sets="chapter.titlepage.recto.style">
1787 <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1791 <xsl:template match="copyright" mode="chapter.titlepage.recto.auto.mode">
1792 <div xsl:use-attribute-sets="chapter.titlepage.recto.style">
1793 <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1797 <xsl:template match="legalnotice" mode="chapter.titlepage.recto.auto.mode">
1798 <div xsl:use-attribute-sets="chapter.titlepage.recto.style">
1799 <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1803 <xsl:template match="pubdate" mode="chapter.titlepage.recto.auto.mode">
1804 <div xsl:use-attribute-sets="chapter.titlepage.recto.style">
1805 <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1809 <xsl:template match="revision" mode="chapter.titlepage.recto.auto.mode">
1810 <div xsl:use-attribute-sets="chapter.titlepage.recto.style">
1811 <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1815 <xsl:template match="revhistory" mode="chapter.titlepage.recto.auto.mode">
1816 <div xsl:use-attribute-sets="chapter.titlepage.recto.style">
1817 <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1821 <xsl:template match="abstract" mode="chapter.titlepage.recto.auto.mode">
1822 <div xsl:use-attribute-sets="chapter.titlepage.recto.style">
1823 <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1827 <xsl:template name="appendix.titlepage.recto">
1829 <xsl:when test="appendixinfo/title">
1830 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/title"/>
1832 <xsl:when test="docinfo/title">
1833 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/title"/>
1835 <xsl:when test="info/title">
1836 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/title"/>
1838 <xsl:when test="title">
1839 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="title"/>
1844 <xsl:when test="appendixinfo/subtitle">
1845 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/subtitle"/>
1847 <xsl:when test="docinfo/subtitle">
1848 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
1850 <xsl:when test="info/subtitle">
1851 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/subtitle"/>
1853 <xsl:when test="subtitle">
1854 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="subtitle"/>
1858 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/corpauthor"/>
1859 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/corpauthor"/>
1860 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/corpauthor"/>
1861 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/authorgroup"/>
1862 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/authorgroup"/>
1863 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/authorgroup"/>
1864 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/author"/>
1865 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/author"/>
1866 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/author"/>
1867 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/othercredit"/>
1868 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/othercredit"/>
1869 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/othercredit"/>
1870 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/releaseinfo"/>
1871 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/>
1872 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/releaseinfo"/>
1873 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/copyright"/>
1874 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/copyright"/>
1875 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/copyright"/>
1876 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/legalnotice"/>
1877 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/legalnotice"/>
1878 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/legalnotice"/>
1879 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/pubdate"/>
1880 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/pubdate"/>
1881 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/pubdate"/>
1882 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/revision"/>
1883 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/revision"/>
1884 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/revision"/>
1885 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/revhistory"/>
1886 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/revhistory"/>
1887 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/revhistory"/>
1888 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/abstract"/>
1889 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/abstract"/>
1890 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/abstract"/>
1893 <xsl:template name="appendix.titlepage.verso">
1896 <xsl:template name="appendix.titlepage.separator">
1899 <xsl:template name="appendix.titlepage.before.recto">
1902 <xsl:template name="appendix.titlepage.before.verso">
1905 <xsl:template name="appendix.titlepage">
1906 <div class="titlepage">
1907 <xsl:variable name="recto.content">
1908 <xsl:call-template name="appendix.titlepage.before.recto"/>
1909 <xsl:call-template name="appendix.titlepage.recto"/>
1911 <xsl:variable name="recto.elements.count">
1913 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1914 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1915 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1916 <xsl:otherwise>1</xsl:otherwise>
1919 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
1920 <div><xsl:copy-of select="$recto.content"/></div>
1922 <xsl:variable name="verso.content">
1923 <xsl:call-template name="appendix.titlepage.before.verso"/>
1924 <xsl:call-template name="appendix.titlepage.verso"/>
1926 <xsl:variable name="verso.elements.count">
1928 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1929 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1930 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1931 <xsl:otherwise>1</xsl:otherwise>
1934 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
1935 <div><xsl:copy-of select="$verso.content"/></div>
1937 <xsl:call-template name="appendix.titlepage.separator"/>
1941 <xsl:template match="*" mode="appendix.titlepage.recto.mode">
1942 <!-- if an element isn't found in this mode, -->
1943 <!-- try the generic titlepage.mode -->
1944 <xsl:apply-templates select="." mode="titlepage.mode"/>
1947 <xsl:template match="*" mode="appendix.titlepage.verso.mode">
1948 <!-- if an element isn't found in this mode, -->
1949 <!-- try the generic titlepage.mode -->
1950 <xsl:apply-templates select="." mode="titlepage.mode"/>
1953 <xsl:template match="title" mode="appendix.titlepage.recto.auto.mode">
1954 <div xsl:use-attribute-sets="appendix.titlepage.recto.style">
1955 <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
1959 <xsl:template match="subtitle" mode="appendix.titlepage.recto.auto.mode">
1960 <div xsl:use-attribute-sets="appendix.titlepage.recto.style">
1961 <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
1965 <xsl:template match="corpauthor" mode="appendix.titlepage.recto.auto.mode">
1966 <div xsl:use-attribute-sets="appendix.titlepage.recto.style">
1967 <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
1971 <xsl:template match="authorgroup" mode="appendix.titlepage.recto.auto.mode">
1972 <div xsl:use-attribute-sets="appendix.titlepage.recto.style">
1973 <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
1977 <xsl:template match="author" mode="appendix.titlepage.recto.auto.mode">
1978 <div xsl:use-attribute-sets="appendix.titlepage.recto.style">
1979 <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
1983 <xsl:template match="othercredit" mode="appendix.titlepage.recto.auto.mode">
1984 <div xsl:use-attribute-sets="appendix.titlepage.recto.style">
1985 <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
1989 <xsl:template match="releaseinfo" mode="appendix.titlepage.recto.auto.mode">
1990 <div xsl:use-attribute-sets="appendix.titlepage.recto.style">
1991 <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
1995 <xsl:template match="copyright" mode="appendix.titlepage.recto.auto.mode">
1996 <div xsl:use-attribute-sets="appendix.titlepage.recto.style">
1997 <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
2001 <xsl:template match="legalnotice" mode="appendix.titlepage.recto.auto.mode">
2002 <div xsl:use-attribute-sets="appendix.titlepage.recto.style">
2003 <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
2007 <xsl:template match="pubdate" mode="appendix.titlepage.recto.auto.mode">
2008 <div xsl:use-attribute-sets="appendix.titlepage.recto.style">
2009 <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
2013 <xsl:template match="revision" mode="appendix.titlepage.recto.auto.mode">
2014 <div xsl:use-attribute-sets="appendix.titlepage.recto.style">
2015 <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
2019 <xsl:template match="revhistory" mode="appendix.titlepage.recto.auto.mode">
2020 <div xsl:use-attribute-sets="appendix.titlepage.recto.style">
2021 <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
2025 <xsl:template match="abstract" mode="appendix.titlepage.recto.auto.mode">
2026 <div xsl:use-attribute-sets="appendix.titlepage.recto.style">
2027 <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
2031 <xsl:template name="section.titlepage.recto">
2033 <xsl:when test="sectioninfo/title">
2034 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/title"/>
2036 <xsl:when test="info/title">
2037 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/title"/>
2039 <xsl:when test="title">
2040 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="title"/>
2045 <xsl:when test="sectioninfo/subtitle">
2046 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/subtitle"/>
2048 <xsl:when test="info/subtitle">
2049 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/subtitle"/>
2051 <xsl:when test="subtitle">
2052 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="subtitle"/>
2056 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/corpauthor"/>
2057 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/corpauthor"/>
2058 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/authorgroup"/>
2059 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/authorgroup"/>
2060 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/author"/>
2061 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/author"/>
2062 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/othercredit"/>
2063 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/othercredit"/>
2064 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/releaseinfo"/>
2065 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/releaseinfo"/>
2066 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/copyright"/>
2067 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/copyright"/>
2068 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/legalnotice"/>
2069 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/legalnotice"/>
2070 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/pubdate"/>
2071 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/pubdate"/>
2072 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/revision"/>
2073 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/revision"/>
2074 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/revhistory"/>
2075 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/revhistory"/>
2076 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/abstract"/>
2077 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/abstract"/>
2080 <xsl:template name="section.titlepage.verso">
2083 <xsl:template name="section.titlepage.separator"><xsl:if test="count(parent::*)='0'"><hr/></xsl:if>
2086 <xsl:template name="section.titlepage.before.recto">
2089 <xsl:template name="section.titlepage.before.verso">
2092 <xsl:template name="section.titlepage">
2093 <div class="titlepage">
2094 <xsl:variable name="recto.content">
2095 <xsl:call-template name="section.titlepage.before.recto"/>
2096 <xsl:call-template name="section.titlepage.recto"/>
2098 <xsl:variable name="recto.elements.count">
2100 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2101 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2102 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2103 <xsl:otherwise>1</xsl:otherwise>
2106 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
2107 <div><xsl:copy-of select="$recto.content"/></div>
2109 <xsl:variable name="verso.content">
2110 <xsl:call-template name="section.titlepage.before.verso"/>
2111 <xsl:call-template name="section.titlepage.verso"/>
2113 <xsl:variable name="verso.elements.count">
2115 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2116 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2117 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2118 <xsl:otherwise>1</xsl:otherwise>
2121 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
2122 <div><xsl:copy-of select="$verso.content"/></div>
2124 <xsl:call-template name="section.titlepage.separator"/>
2128 <xsl:template match="*" mode="section.titlepage.recto.mode">
2129 <!-- if an element isn't found in this mode, -->
2130 <!-- try the generic titlepage.mode -->
2131 <xsl:apply-templates select="." mode="titlepage.mode"/>
2134 <xsl:template match="*" mode="section.titlepage.verso.mode">
2135 <!-- if an element isn't found in this mode, -->
2136 <!-- try the generic titlepage.mode -->
2137 <xsl:apply-templates select="." mode="titlepage.mode"/>
2140 <xsl:template match="title" mode="section.titlepage.recto.auto.mode">
2141 <div xsl:use-attribute-sets="section.titlepage.recto.style">
2142 <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2146 <xsl:template match="subtitle" mode="section.titlepage.recto.auto.mode">
2147 <div xsl:use-attribute-sets="section.titlepage.recto.style">
2148 <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2152 <xsl:template match="corpauthor" mode="section.titlepage.recto.auto.mode">
2153 <div xsl:use-attribute-sets="section.titlepage.recto.style">
2154 <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2158 <xsl:template match="authorgroup" mode="section.titlepage.recto.auto.mode">
2159 <div xsl:use-attribute-sets="section.titlepage.recto.style">
2160 <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2164 <xsl:template match="author" mode="section.titlepage.recto.auto.mode">
2165 <div xsl:use-attribute-sets="section.titlepage.recto.style">
2166 <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2170 <xsl:template match="othercredit" mode="section.titlepage.recto.auto.mode">
2171 <div xsl:use-attribute-sets="section.titlepage.recto.style">
2172 <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2176 <xsl:template match="releaseinfo" mode="section.titlepage.recto.auto.mode">
2177 <div xsl:use-attribute-sets="section.titlepage.recto.style">
2178 <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2182 <xsl:template match="copyright" mode="section.titlepage.recto.auto.mode">
2183 <div xsl:use-attribute-sets="section.titlepage.recto.style">
2184 <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2188 <xsl:template match="legalnotice" mode="section.titlepage.recto.auto.mode">
2189 <div xsl:use-attribute-sets="section.titlepage.recto.style">
2190 <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2194 <xsl:template match="pubdate" mode="section.titlepage.recto.auto.mode">
2195 <div xsl:use-attribute-sets="section.titlepage.recto.style">
2196 <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2200 <xsl:template match="revision" mode="section.titlepage.recto.auto.mode">
2201 <div xsl:use-attribute-sets="section.titlepage.recto.style">
2202 <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2206 <xsl:template match="revhistory" mode="section.titlepage.recto.auto.mode">
2207 <div xsl:use-attribute-sets="section.titlepage.recto.style">
2208 <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2212 <xsl:template match="abstract" mode="section.titlepage.recto.auto.mode">
2213 <div xsl:use-attribute-sets="section.titlepage.recto.style">
2214 <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2218 <xsl:template name="sect1.titlepage.recto">
2220 <xsl:when test="sect1info/title">
2221 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/title"/>
2223 <xsl:when test="info/title">
2224 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/title"/>
2226 <xsl:when test="title">
2227 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="title"/>
2232 <xsl:when test="sect1info/subtitle">
2233 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/subtitle"/>
2235 <xsl:when test="info/subtitle">
2236 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/subtitle"/>
2238 <xsl:when test="subtitle">
2239 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="subtitle"/>
2243 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/corpauthor"/>
2244 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/corpauthor"/>
2245 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/authorgroup"/>
2246 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/authorgroup"/>
2247 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/author"/>
2248 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/author"/>
2249 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/othercredit"/>
2250 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/othercredit"/>
2251 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/releaseinfo"/>
2252 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/releaseinfo"/>
2253 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/copyright"/>
2254 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/copyright"/>
2255 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/legalnotice"/>
2256 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/legalnotice"/>
2257 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/pubdate"/>
2258 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/pubdate"/>
2259 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/revision"/>
2260 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/revision"/>
2261 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/revhistory"/>
2262 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/revhistory"/>
2263 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/abstract"/>
2264 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/abstract"/>
2267 <xsl:template name="sect1.titlepage.verso">
2270 <xsl:template name="sect1.titlepage.separator"><xsl:if test="count(parent::*)='0'"><hr/></xsl:if>
2273 <xsl:template name="sect1.titlepage.before.recto">
2276 <xsl:template name="sect1.titlepage.before.verso">
2279 <xsl:template name="sect1.titlepage">
2280 <div class="titlepage">
2281 <xsl:variable name="recto.content">
2282 <xsl:call-template name="sect1.titlepage.before.recto"/>
2283 <xsl:call-template name="sect1.titlepage.recto"/>
2285 <xsl:variable name="recto.elements.count">
2287 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2288 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2289 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2290 <xsl:otherwise>1</xsl:otherwise>
2293 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
2294 <div><xsl:copy-of select="$recto.content"/></div>
2296 <xsl:variable name="verso.content">
2297 <xsl:call-template name="sect1.titlepage.before.verso"/>
2298 <xsl:call-template name="sect1.titlepage.verso"/>
2300 <xsl:variable name="verso.elements.count">
2302 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2303 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2304 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2305 <xsl:otherwise>1</xsl:otherwise>
2308 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
2309 <div><xsl:copy-of select="$verso.content"/></div>
2311 <xsl:call-template name="sect1.titlepage.separator"/>
2315 <xsl:template match="*" mode="sect1.titlepage.recto.mode">
2316 <!-- if an element isn't found in this mode, -->
2317 <!-- try the generic titlepage.mode -->
2318 <xsl:apply-templates select="." mode="titlepage.mode"/>
2321 <xsl:template match="*" mode="sect1.titlepage.verso.mode">
2322 <!-- if an element isn't found in this mode, -->
2323 <!-- try the generic titlepage.mode -->
2324 <xsl:apply-templates select="." mode="titlepage.mode"/>
2327 <xsl:template match="title" mode="sect1.titlepage.recto.auto.mode">
2328 <div xsl:use-attribute-sets="sect1.titlepage.recto.style">
2329 <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2333 <xsl:template match="subtitle" mode="sect1.titlepage.recto.auto.mode">
2334 <div xsl:use-attribute-sets="sect1.titlepage.recto.style">
2335 <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2339 <xsl:template match="corpauthor" mode="sect1.titlepage.recto.auto.mode">
2340 <div xsl:use-attribute-sets="sect1.titlepage.recto.style">
2341 <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2345 <xsl:template match="authorgroup" mode="sect1.titlepage.recto.auto.mode">
2346 <div xsl:use-attribute-sets="sect1.titlepage.recto.style">
2347 <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2351 <xsl:template match="author" mode="sect1.titlepage.recto.auto.mode">
2352 <div xsl:use-attribute-sets="sect1.titlepage.recto.style">
2353 <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2357 <xsl:template match="othercredit" mode="sect1.titlepage.recto.auto.mode">
2358 <div xsl:use-attribute-sets="sect1.titlepage.recto.style">
2359 <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2363 <xsl:template match="releaseinfo" mode="sect1.titlepage.recto.auto.mode">
2364 <div xsl:use-attribute-sets="sect1.titlepage.recto.style">
2365 <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2369 <xsl:template match="copyright" mode="sect1.titlepage.recto.auto.mode">
2370 <div xsl:use-attribute-sets="sect1.titlepage.recto.style">
2371 <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2375 <xsl:template match="legalnotice" mode="sect1.titlepage.recto.auto.mode">
2376 <div xsl:use-attribute-sets="sect1.titlepage.recto.style">
2377 <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2381 <xsl:template match="pubdate" mode="sect1.titlepage.recto.auto.mode">
2382 <div xsl:use-attribute-sets="sect1.titlepage.recto.style">
2383 <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2387 <xsl:template match="revision" mode="sect1.titlepage.recto.auto.mode">
2388 <div xsl:use-attribute-sets="sect1.titlepage.recto.style">
2389 <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2393 <xsl:template match="revhistory" mode="sect1.titlepage.recto.auto.mode">
2394 <div xsl:use-attribute-sets="sect1.titlepage.recto.style">
2395 <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2399 <xsl:template match="abstract" mode="sect1.titlepage.recto.auto.mode">
2400 <div xsl:use-attribute-sets="sect1.titlepage.recto.style">
2401 <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2405 <xsl:template name="sect2.titlepage.recto">
2407 <xsl:when test="sect2info/title">
2408 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/title"/>
2410 <xsl:when test="info/title">
2411 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/title"/>
2413 <xsl:when test="title">
2414 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="title"/>
2419 <xsl:when test="sect2info/subtitle">
2420 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/subtitle"/>
2422 <xsl:when test="info/subtitle">
2423 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/subtitle"/>
2425 <xsl:when test="subtitle">
2426 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="subtitle"/>
2430 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/corpauthor"/>
2431 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/corpauthor"/>
2432 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/authorgroup"/>
2433 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/authorgroup"/>
2434 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/author"/>
2435 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/author"/>
2436 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/othercredit"/>
2437 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/othercredit"/>
2438 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/releaseinfo"/>
2439 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/releaseinfo"/>
2440 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/copyright"/>
2441 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/copyright"/>
2442 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/legalnotice"/>
2443 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/legalnotice"/>
2444 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/pubdate"/>
2445 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/pubdate"/>
2446 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/revision"/>
2447 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/revision"/>
2448 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/revhistory"/>
2449 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/revhistory"/>
2450 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/abstract"/>
2451 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/abstract"/>
2454 <xsl:template name="sect2.titlepage.verso">
2457 <xsl:template name="sect2.titlepage.separator"><xsl:if test="count(parent::*)='0'"><hr/></xsl:if>
2460 <xsl:template name="sect2.titlepage.before.recto">
2463 <xsl:template name="sect2.titlepage.before.verso">
2466 <xsl:template name="sect2.titlepage">
2467 <div class="titlepage">
2468 <xsl:variable name="recto.content">
2469 <xsl:call-template name="sect2.titlepage.before.recto"/>
2470 <xsl:call-template name="sect2.titlepage.recto"/>
2472 <xsl:variable name="recto.elements.count">
2474 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2475 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2476 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2477 <xsl:otherwise>1</xsl:otherwise>
2480 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
2481 <div><xsl:copy-of select="$recto.content"/></div>
2483 <xsl:variable name="verso.content">
2484 <xsl:call-template name="sect2.titlepage.before.verso"/>
2485 <xsl:call-template name="sect2.titlepage.verso"/>
2487 <xsl:variable name="verso.elements.count">
2489 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2490 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2491 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2492 <xsl:otherwise>1</xsl:otherwise>
2495 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
2496 <div><xsl:copy-of select="$verso.content"/></div>
2498 <xsl:call-template name="sect2.titlepage.separator"/>
2502 <xsl:template match="*" mode="sect2.titlepage.recto.mode">
2503 <!-- if an element isn't found in this mode, -->
2504 <!-- try the generic titlepage.mode -->
2505 <xsl:apply-templates select="." mode="titlepage.mode"/>
2508 <xsl:template match="*" mode="sect2.titlepage.verso.mode">
2509 <!-- if an element isn't found in this mode, -->
2510 <!-- try the generic titlepage.mode -->
2511 <xsl:apply-templates select="." mode="titlepage.mode"/>
2514 <xsl:template match="title" mode="sect2.titlepage.recto.auto.mode">
2515 <div xsl:use-attribute-sets="sect2.titlepage.recto.style">
2516 <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2520 <xsl:template match="subtitle" mode="sect2.titlepage.recto.auto.mode">
2521 <div xsl:use-attribute-sets="sect2.titlepage.recto.style">
2522 <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2526 <xsl:template match="corpauthor" mode="sect2.titlepage.recto.auto.mode">
2527 <div xsl:use-attribute-sets="sect2.titlepage.recto.style">
2528 <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2532 <xsl:template match="authorgroup" mode="sect2.titlepage.recto.auto.mode">
2533 <div xsl:use-attribute-sets="sect2.titlepage.recto.style">
2534 <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2538 <xsl:template match="author" mode="sect2.titlepage.recto.auto.mode">
2539 <div xsl:use-attribute-sets="sect2.titlepage.recto.style">
2540 <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2544 <xsl:template match="othercredit" mode="sect2.titlepage.recto.auto.mode">
2545 <div xsl:use-attribute-sets="sect2.titlepage.recto.style">
2546 <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2550 <xsl:template match="releaseinfo" mode="sect2.titlepage.recto.auto.mode">
2551 <div xsl:use-attribute-sets="sect2.titlepage.recto.style">
2552 <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2556 <xsl:template match="copyright" mode="sect2.titlepage.recto.auto.mode">
2557 <div xsl:use-attribute-sets="sect2.titlepage.recto.style">
2558 <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2562 <xsl:template match="legalnotice" mode="sect2.titlepage.recto.auto.mode">
2563 <div xsl:use-attribute-sets="sect2.titlepage.recto.style">
2564 <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2568 <xsl:template match="pubdate" mode="sect2.titlepage.recto.auto.mode">
2569 <div xsl:use-attribute-sets="sect2.titlepage.recto.style">
2570 <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2574 <xsl:template match="revision" mode="sect2.titlepage.recto.auto.mode">
2575 <div xsl:use-attribute-sets="sect2.titlepage.recto.style">
2576 <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2580 <xsl:template match="revhistory" mode="sect2.titlepage.recto.auto.mode">
2581 <div xsl:use-attribute-sets="sect2.titlepage.recto.style">
2582 <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2586 <xsl:template match="abstract" mode="sect2.titlepage.recto.auto.mode">
2587 <div xsl:use-attribute-sets="sect2.titlepage.recto.style">
2588 <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2592 <xsl:template name="sect3.titlepage.recto">
2594 <xsl:when test="sect3info/title">
2595 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/title"/>
2597 <xsl:when test="info/title">
2598 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/title"/>
2600 <xsl:when test="title">
2601 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="title"/>
2606 <xsl:when test="sect3info/subtitle">
2607 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/subtitle"/>
2609 <xsl:when test="info/subtitle">
2610 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/subtitle"/>
2612 <xsl:when test="subtitle">
2613 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="subtitle"/>
2617 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/corpauthor"/>
2618 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/corpauthor"/>
2619 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/authorgroup"/>
2620 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/authorgroup"/>
2621 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/author"/>
2622 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/author"/>
2623 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/othercredit"/>
2624 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/othercredit"/>
2625 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/releaseinfo"/>
2626 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/releaseinfo"/>
2627 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/copyright"/>
2628 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/copyright"/>
2629 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/legalnotice"/>
2630 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/legalnotice"/>
2631 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/pubdate"/>
2632 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/pubdate"/>
2633 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/revision"/>
2634 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/revision"/>
2635 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/revhistory"/>
2636 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/revhistory"/>
2637 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/abstract"/>
2638 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/abstract"/>
2641 <xsl:template name="sect3.titlepage.verso">
2644 <xsl:template name="sect3.titlepage.separator"><xsl:if test="count(parent::*)='0'"><hr/></xsl:if>
2647 <xsl:template name="sect3.titlepage.before.recto">
2650 <xsl:template name="sect3.titlepage.before.verso">
2653 <xsl:template name="sect3.titlepage">
2654 <div class="titlepage">
2655 <xsl:variable name="recto.content">
2656 <xsl:call-template name="sect3.titlepage.before.recto"/>
2657 <xsl:call-template name="sect3.titlepage.recto"/>
2659 <xsl:variable name="recto.elements.count">
2661 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2662 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2663 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2664 <xsl:otherwise>1</xsl:otherwise>
2667 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
2668 <div><xsl:copy-of select="$recto.content"/></div>
2670 <xsl:variable name="verso.content">
2671 <xsl:call-template name="sect3.titlepage.before.verso"/>
2672 <xsl:call-template name="sect3.titlepage.verso"/>
2674 <xsl:variable name="verso.elements.count">
2676 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2677 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2678 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2679 <xsl:otherwise>1</xsl:otherwise>
2682 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
2683 <div><xsl:copy-of select="$verso.content"/></div>
2685 <xsl:call-template name="sect3.titlepage.separator"/>
2689 <xsl:template match="*" mode="sect3.titlepage.recto.mode">
2690 <!-- if an element isn't found in this mode, -->
2691 <!-- try the generic titlepage.mode -->
2692 <xsl:apply-templates select="." mode="titlepage.mode"/>
2695 <xsl:template match="*" mode="sect3.titlepage.verso.mode">
2696 <!-- if an element isn't found in this mode, -->
2697 <!-- try the generic titlepage.mode -->
2698 <xsl:apply-templates select="." mode="titlepage.mode"/>
2701 <xsl:template match="title" mode="sect3.titlepage.recto.auto.mode">
2702 <div xsl:use-attribute-sets="sect3.titlepage.recto.style">
2703 <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2707 <xsl:template match="subtitle" mode="sect3.titlepage.recto.auto.mode">
2708 <div xsl:use-attribute-sets="sect3.titlepage.recto.style">
2709 <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2713 <xsl:template match="corpauthor" mode="sect3.titlepage.recto.auto.mode">
2714 <div xsl:use-attribute-sets="sect3.titlepage.recto.style">
2715 <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2719 <xsl:template match="authorgroup" mode="sect3.titlepage.recto.auto.mode">
2720 <div xsl:use-attribute-sets="sect3.titlepage.recto.style">
2721 <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2725 <xsl:template match="author" mode="sect3.titlepage.recto.auto.mode">
2726 <div xsl:use-attribute-sets="sect3.titlepage.recto.style">
2727 <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2731 <xsl:template match="othercredit" mode="sect3.titlepage.recto.auto.mode">
2732 <div xsl:use-attribute-sets="sect3.titlepage.recto.style">
2733 <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2737 <xsl:template match="releaseinfo" mode="sect3.titlepage.recto.auto.mode">
2738 <div xsl:use-attribute-sets="sect3.titlepage.recto.style">
2739 <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2743 <xsl:template match="copyright" mode="sect3.titlepage.recto.auto.mode">
2744 <div xsl:use-attribute-sets="sect3.titlepage.recto.style">
2745 <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2749 <xsl:template match="legalnotice" mode="sect3.titlepage.recto.auto.mode">
2750 <div xsl:use-attribute-sets="sect3.titlepage.recto.style">
2751 <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2755 <xsl:template match="pubdate" mode="sect3.titlepage.recto.auto.mode">
2756 <div xsl:use-attribute-sets="sect3.titlepage.recto.style">
2757 <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2761 <xsl:template match="revision" mode="sect3.titlepage.recto.auto.mode">
2762 <div xsl:use-attribute-sets="sect3.titlepage.recto.style">
2763 <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2767 <xsl:template match="revhistory" mode="sect3.titlepage.recto.auto.mode">
2768 <div xsl:use-attribute-sets="sect3.titlepage.recto.style">
2769 <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2773 <xsl:template match="abstract" mode="sect3.titlepage.recto.auto.mode">
2774 <div xsl:use-attribute-sets="sect3.titlepage.recto.style">
2775 <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2779 <xsl:template name="sect4.titlepage.recto">
2781 <xsl:when test="sect4info/title">
2782 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/title"/>
2784 <xsl:when test="info/title">
2785 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/title"/>
2787 <xsl:when test="title">
2788 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="title"/>
2793 <xsl:when test="sect4info/subtitle">
2794 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/subtitle"/>
2796 <xsl:when test="info/subtitle">
2797 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/subtitle"/>
2799 <xsl:when test="subtitle">
2800 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="subtitle"/>
2804 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/corpauthor"/>
2805 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/corpauthor"/>
2806 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/authorgroup"/>
2807 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/authorgroup"/>
2808 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/author"/>
2809 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/author"/>
2810 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/othercredit"/>
2811 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/othercredit"/>
2812 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/releaseinfo"/>
2813 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/releaseinfo"/>
2814 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/copyright"/>
2815 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/copyright"/>
2816 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/legalnotice"/>
2817 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/legalnotice"/>
2818 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/pubdate"/>
2819 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/pubdate"/>
2820 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/revision"/>
2821 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/revision"/>
2822 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/revhistory"/>
2823 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/revhistory"/>
2824 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/abstract"/>
2825 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/abstract"/>
2828 <xsl:template name="sect4.titlepage.verso">
2831 <xsl:template name="sect4.titlepage.separator"><xsl:if test="count(parent::*)='0'"><hr/></xsl:if>
2834 <xsl:template name="sect4.titlepage.before.recto">
2837 <xsl:template name="sect4.titlepage.before.verso">
2840 <xsl:template name="sect4.titlepage">
2841 <div class="titlepage">
2842 <xsl:variable name="recto.content">
2843 <xsl:call-template name="sect4.titlepage.before.recto"/>
2844 <xsl:call-template name="sect4.titlepage.recto"/>
2846 <xsl:variable name="recto.elements.count">
2848 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2849 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2850 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2851 <xsl:otherwise>1</xsl:otherwise>
2854 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
2855 <div><xsl:copy-of select="$recto.content"/></div>
2857 <xsl:variable name="verso.content">
2858 <xsl:call-template name="sect4.titlepage.before.verso"/>
2859 <xsl:call-template name="sect4.titlepage.verso"/>
2861 <xsl:variable name="verso.elements.count">
2863 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2864 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2865 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2866 <xsl:otherwise>1</xsl:otherwise>
2869 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
2870 <div><xsl:copy-of select="$verso.content"/></div>
2872 <xsl:call-template name="sect4.titlepage.separator"/>
2876 <xsl:template match="*" mode="sect4.titlepage.recto.mode">
2877 <!-- if an element isn't found in this mode, -->
2878 <!-- try the generic titlepage.mode -->
2879 <xsl:apply-templates select="." mode="titlepage.mode"/>
2882 <xsl:template match="*" mode="sect4.titlepage.verso.mode">
2883 <!-- if an element isn't found in this mode, -->
2884 <!-- try the generic titlepage.mode -->
2885 <xsl:apply-templates select="." mode="titlepage.mode"/>
2888 <xsl:template match="title" mode="sect4.titlepage.recto.auto.mode">
2889 <div xsl:use-attribute-sets="sect4.titlepage.recto.style">
2890 <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
2894 <xsl:template match="subtitle" mode="sect4.titlepage.recto.auto.mode">
2895 <div xsl:use-attribute-sets="sect4.titlepage.recto.style">
2896 <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
2900 <xsl:template match="corpauthor" mode="sect4.titlepage.recto.auto.mode">
2901 <div xsl:use-attribute-sets="sect4.titlepage.recto.style">
2902 <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
2906 <xsl:template match="authorgroup" mode="sect4.titlepage.recto.auto.mode">
2907 <div xsl:use-attribute-sets="sect4.titlepage.recto.style">
2908 <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
2912 <xsl:template match="author" mode="sect4.titlepage.recto.auto.mode">
2913 <div xsl:use-attribute-sets="sect4.titlepage.recto.style">
2914 <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
2918 <xsl:template match="othercredit" mode="sect4.titlepage.recto.auto.mode">
2919 <div xsl:use-attribute-sets="sect4.titlepage.recto.style">
2920 <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
2924 <xsl:template match="releaseinfo" mode="sect4.titlepage.recto.auto.mode">
2925 <div xsl:use-attribute-sets="sect4.titlepage.recto.style">
2926 <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
2930 <xsl:template match="copyright" mode="sect4.titlepage.recto.auto.mode">
2931 <div xsl:use-attribute-sets="sect4.titlepage.recto.style">
2932 <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
2936 <xsl:template match="legalnotice" mode="sect4.titlepage.recto.auto.mode">
2937 <div xsl:use-attribute-sets="sect4.titlepage.recto.style">
2938 <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
2942 <xsl:template match="pubdate" mode="sect4.titlepage.recto.auto.mode">
2943 <div xsl:use-attribute-sets="sect4.titlepage.recto.style">
2944 <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
2948 <xsl:template match="revision" mode="sect4.titlepage.recto.auto.mode">
2949 <div xsl:use-attribute-sets="sect4.titlepage.recto.style">
2950 <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
2954 <xsl:template match="revhistory" 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"/>
2960 <xsl:template match="abstract" 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"/>
2966 <xsl:template name="sect5.titlepage.recto">
2968 <xsl:when test="sect5info/title">
2969 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/title"/>
2971 <xsl:when test="info/title">
2972 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/title"/>
2974 <xsl:when test="title">
2975 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="title"/>
2980 <xsl:when test="sect5info/subtitle">
2981 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/subtitle"/>
2983 <xsl:when test="info/subtitle">
2984 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/subtitle"/>
2986 <xsl:when test="subtitle">
2987 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="subtitle"/>
2991 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/corpauthor"/>
2992 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/corpauthor"/>
2993 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/authorgroup"/>
2994 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/authorgroup"/>
2995 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/author"/>
2996 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/author"/>
2997 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/othercredit"/>
2998 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/othercredit"/>
2999 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/releaseinfo"/>
3000 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/releaseinfo"/>
3001 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/copyright"/>
3002 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/copyright"/>
3003 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/legalnotice"/>
3004 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/legalnotice"/>
3005 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/pubdate"/>
3006 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/pubdate"/>
3007 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/revision"/>
3008 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/revision"/>
3009 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/revhistory"/>
3010 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/revhistory"/>
3011 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/abstract"/>
3012 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/abstract"/>
3015 <xsl:template name="sect5.titlepage.verso">
3018 <xsl:template name="sect5.titlepage.separator"><xsl:if test="count(parent::*)='0'"><hr/></xsl:if>
3021 <xsl:template name="sect5.titlepage.before.recto">
3024 <xsl:template name="sect5.titlepage.before.verso">
3027 <xsl:template name="sect5.titlepage">
3028 <div class="titlepage">
3029 <xsl:variable name="recto.content">
3030 <xsl:call-template name="sect5.titlepage.before.recto"/>
3031 <xsl:call-template name="sect5.titlepage.recto"/>
3033 <xsl:variable name="recto.elements.count">
3035 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3036 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3037 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3038 <xsl:otherwise>1</xsl:otherwise>
3041 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
3042 <div><xsl:copy-of select="$recto.content"/></div>
3044 <xsl:variable name="verso.content">
3045 <xsl:call-template name="sect5.titlepage.before.verso"/>
3046 <xsl:call-template name="sect5.titlepage.verso"/>
3048 <xsl:variable name="verso.elements.count">
3050 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3051 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3052 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3053 <xsl:otherwise>1</xsl:otherwise>
3056 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
3057 <div><xsl:copy-of select="$verso.content"/></div>
3059 <xsl:call-template name="sect5.titlepage.separator"/>
3063 <xsl:template match="*" mode="sect5.titlepage.recto.mode">
3064 <!-- if an element isn't found in this mode, -->
3065 <!-- try the generic titlepage.mode -->
3066 <xsl:apply-templates select="." mode="titlepage.mode"/>
3069 <xsl:template match="*" mode="sect5.titlepage.verso.mode">
3070 <!-- if an element isn't found in this mode, -->
3071 <!-- try the generic titlepage.mode -->
3072 <xsl:apply-templates select="." mode="titlepage.mode"/>
3075 <xsl:template match="title" mode="sect5.titlepage.recto.auto.mode">
3076 <div xsl:use-attribute-sets="sect5.titlepage.recto.style">
3077 <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3081 <xsl:template match="subtitle" mode="sect5.titlepage.recto.auto.mode">
3082 <div xsl:use-attribute-sets="sect5.titlepage.recto.style">
3083 <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3087 <xsl:template match="corpauthor" mode="sect5.titlepage.recto.auto.mode">
3088 <div xsl:use-attribute-sets="sect5.titlepage.recto.style">
3089 <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3093 <xsl:template match="authorgroup" mode="sect5.titlepage.recto.auto.mode">
3094 <div xsl:use-attribute-sets="sect5.titlepage.recto.style">
3095 <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3099 <xsl:template match="author" mode="sect5.titlepage.recto.auto.mode">
3100 <div xsl:use-attribute-sets="sect5.titlepage.recto.style">
3101 <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3105 <xsl:template match="othercredit" mode="sect5.titlepage.recto.auto.mode">
3106 <div xsl:use-attribute-sets="sect5.titlepage.recto.style">
3107 <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3111 <xsl:template match="releaseinfo" mode="sect5.titlepage.recto.auto.mode">
3112 <div xsl:use-attribute-sets="sect5.titlepage.recto.style">
3113 <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3117 <xsl:template match="copyright" mode="sect5.titlepage.recto.auto.mode">
3118 <div xsl:use-attribute-sets="sect5.titlepage.recto.style">
3119 <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3123 <xsl:template match="legalnotice" mode="sect5.titlepage.recto.auto.mode">
3124 <div xsl:use-attribute-sets="sect5.titlepage.recto.style">
3125 <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3129 <xsl:template match="pubdate" mode="sect5.titlepage.recto.auto.mode">
3130 <div xsl:use-attribute-sets="sect5.titlepage.recto.style">
3131 <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3135 <xsl:template match="revision" mode="sect5.titlepage.recto.auto.mode">
3136 <div xsl:use-attribute-sets="sect5.titlepage.recto.style">
3137 <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3141 <xsl:template match="revhistory" mode="sect5.titlepage.recto.auto.mode">
3142 <div xsl:use-attribute-sets="sect5.titlepage.recto.style">
3143 <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3147 <xsl:template match="abstract" mode="sect5.titlepage.recto.auto.mode">
3148 <div xsl:use-attribute-sets="sect5.titlepage.recto.style">
3149 <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3153 <xsl:template name="simplesect.titlepage.recto">
3155 <xsl:when test="simplesectinfo/title">
3156 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/title"/>
3158 <xsl:when test="docinfo/title">
3159 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/title"/>
3161 <xsl:when test="info/title">
3162 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/title"/>
3164 <xsl:when test="title">
3165 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="title"/>
3170 <xsl:when test="simplesectinfo/subtitle">
3171 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/subtitle"/>
3173 <xsl:when test="docinfo/subtitle">
3174 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
3176 <xsl:when test="info/subtitle">
3177 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/subtitle"/>
3179 <xsl:when test="subtitle">
3180 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="subtitle"/>
3184 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/corpauthor"/>
3185 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/corpauthor"/>
3186 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/corpauthor"/>
3187 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/authorgroup"/>
3188 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/authorgroup"/>
3189 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/authorgroup"/>
3190 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/author"/>
3191 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/author"/>
3192 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/author"/>
3193 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/othercredit"/>
3194 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/othercredit"/>
3195 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/othercredit"/>
3196 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/releaseinfo"/>
3197 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/>
3198 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/releaseinfo"/>
3199 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/copyright"/>
3200 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/copyright"/>
3201 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/copyright"/>
3202 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/legalnotice"/>
3203 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/legalnotice"/>
3204 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/legalnotice"/>
3205 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/pubdate"/>
3206 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/pubdate"/>
3207 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/pubdate"/>
3208 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/revision"/>
3209 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/revision"/>
3210 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/revision"/>
3211 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/revhistory"/>
3212 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/revhistory"/>
3213 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/revhistory"/>
3214 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/abstract"/>
3215 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/abstract"/>
3216 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/abstract"/>
3219 <xsl:template name="simplesect.titlepage.verso">
3222 <xsl:template name="simplesect.titlepage.separator"><xsl:if test="count(parent::*)='0'"><hr/></xsl:if>
3225 <xsl:template name="simplesect.titlepage.before.recto">
3228 <xsl:template name="simplesect.titlepage.before.verso">
3231 <xsl:template name="simplesect.titlepage">
3232 <div class="titlepage">
3233 <xsl:variable name="recto.content">
3234 <xsl:call-template name="simplesect.titlepage.before.recto"/>
3235 <xsl:call-template name="simplesect.titlepage.recto"/>
3237 <xsl:variable name="recto.elements.count">
3239 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3240 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3241 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3242 <xsl:otherwise>1</xsl:otherwise>
3245 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
3246 <div><xsl:copy-of select="$recto.content"/></div>
3248 <xsl:variable name="verso.content">
3249 <xsl:call-template name="simplesect.titlepage.before.verso"/>
3250 <xsl:call-template name="simplesect.titlepage.verso"/>
3252 <xsl:variable name="verso.elements.count">
3254 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3255 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3256 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3257 <xsl:otherwise>1</xsl:otherwise>
3260 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
3261 <div><xsl:copy-of select="$verso.content"/></div>
3263 <xsl:call-template name="simplesect.titlepage.separator"/>
3267 <xsl:template match="*" mode="simplesect.titlepage.recto.mode">
3268 <!-- if an element isn't found in this mode, -->
3269 <!-- try the generic titlepage.mode -->
3270 <xsl:apply-templates select="." mode="titlepage.mode"/>
3273 <xsl:template match="*" mode="simplesect.titlepage.verso.mode">
3274 <!-- if an element isn't found in this mode, -->
3275 <!-- try the generic titlepage.mode -->
3276 <xsl:apply-templates select="." mode="titlepage.mode"/>
3279 <xsl:template match="title" mode="simplesect.titlepage.recto.auto.mode">
3280 <div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3281 <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3285 <xsl:template match="subtitle" mode="simplesect.titlepage.recto.auto.mode">
3286 <div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3287 <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3291 <xsl:template match="corpauthor" mode="simplesect.titlepage.recto.auto.mode">
3292 <div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3293 <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3297 <xsl:template match="authorgroup" mode="simplesect.titlepage.recto.auto.mode">
3298 <div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3299 <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3303 <xsl:template match="author" mode="simplesect.titlepage.recto.auto.mode">
3304 <div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3305 <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3309 <xsl:template match="othercredit" mode="simplesect.titlepage.recto.auto.mode">
3310 <div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3311 <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3315 <xsl:template match="releaseinfo" mode="simplesect.titlepage.recto.auto.mode">
3316 <div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3317 <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3321 <xsl:template match="copyright" mode="simplesect.titlepage.recto.auto.mode">
3322 <div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3323 <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3327 <xsl:template match="legalnotice" mode="simplesect.titlepage.recto.auto.mode">
3328 <div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3329 <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3333 <xsl:template match="pubdate" mode="simplesect.titlepage.recto.auto.mode">
3334 <div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3335 <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3339 <xsl:template match="revision" mode="simplesect.titlepage.recto.auto.mode">
3340 <div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3341 <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3345 <xsl:template match="revhistory" mode="simplesect.titlepage.recto.auto.mode">
3346 <div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3347 <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3351 <xsl:template match="abstract" mode="simplesect.titlepage.recto.auto.mode">
3352 <div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3353 <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3357 <xsl:template name="bibliography.titlepage.recto">
3358 <div xsl:use-attribute-sets="bibliography.titlepage.recto.style">
3359 <xsl:call-template name="component.title">
3360 <xsl:with-param name="node" select="ancestor-or-self::bibliography[1]"/>
3361 </xsl:call-template></div>
3363 <xsl:when test="bibliographyinfo/subtitle">
3364 <xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="bibliographyinfo/subtitle"/>
3366 <xsl:when test="docinfo/subtitle">
3367 <xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
3369 <xsl:when test="info/subtitle">
3370 <xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="info/subtitle"/>
3372 <xsl:when test="subtitle">
3373 <xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="subtitle"/>
3379 <xsl:template name="bibliography.titlepage.verso">
3382 <xsl:template name="bibliography.titlepage.separator">
3385 <xsl:template name="bibliography.titlepage.before.recto">
3388 <xsl:template name="bibliography.titlepage.before.verso">
3391 <xsl:template name="bibliography.titlepage">
3392 <div class="titlepage">
3393 <xsl:variable name="recto.content">
3394 <xsl:call-template name="bibliography.titlepage.before.recto"/>
3395 <xsl:call-template name="bibliography.titlepage.recto"/>
3397 <xsl:variable name="recto.elements.count">
3399 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3400 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3401 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3402 <xsl:otherwise>1</xsl:otherwise>
3405 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
3406 <div><xsl:copy-of select="$recto.content"/></div>
3408 <xsl:variable name="verso.content">
3409 <xsl:call-template name="bibliography.titlepage.before.verso"/>
3410 <xsl:call-template name="bibliography.titlepage.verso"/>
3412 <xsl:variable name="verso.elements.count">
3414 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3415 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3416 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3417 <xsl:otherwise>1</xsl:otherwise>
3420 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
3421 <div><xsl:copy-of select="$verso.content"/></div>
3423 <xsl:call-template name="bibliography.titlepage.separator"/>
3427 <xsl:template match="*" mode="bibliography.titlepage.recto.mode">
3428 <!-- if an element isn't found in this mode, -->
3429 <!-- try the generic titlepage.mode -->
3430 <xsl:apply-templates select="." mode="titlepage.mode"/>
3433 <xsl:template match="*" mode="bibliography.titlepage.verso.mode">
3434 <!-- if an element isn't found in this mode, -->
3435 <!-- try the generic titlepage.mode -->
3436 <xsl:apply-templates select="." mode="titlepage.mode"/>
3439 <xsl:template match="subtitle" mode="bibliography.titlepage.recto.auto.mode">
3440 <div xsl:use-attribute-sets="bibliography.titlepage.recto.style">
3441 <xsl:apply-templates select="." mode="bibliography.titlepage.recto.mode"/>
3445 <xsl:template name="glossary.titlepage.recto">
3446 <div xsl:use-attribute-sets="glossary.titlepage.recto.style">
3447 <xsl:call-template name="component.title">
3448 <xsl:with-param name="node" select="ancestor-or-self::glossary[1]"/>
3449 </xsl:call-template></div>
3451 <xsl:when test="glossaryinfo/subtitle">
3452 <xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="glossaryinfo/subtitle"/>
3454 <xsl:when test="docinfo/subtitle">
3455 <xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
3457 <xsl:when test="info/subtitle">
3458 <xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="info/subtitle"/>
3460 <xsl:when test="subtitle">
3461 <xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="subtitle"/>
3467 <xsl:template name="glossary.titlepage.verso">
3470 <xsl:template name="glossary.titlepage.separator">
3473 <xsl:template name="glossary.titlepage.before.recto">
3476 <xsl:template name="glossary.titlepage.before.verso">
3479 <xsl:template name="glossary.titlepage">
3480 <div class="titlepage">
3481 <xsl:variable name="recto.content">
3482 <xsl:call-template name="glossary.titlepage.before.recto"/>
3483 <xsl:call-template name="glossary.titlepage.recto"/>
3485 <xsl:variable name="recto.elements.count">
3487 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3488 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3489 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3490 <xsl:otherwise>1</xsl:otherwise>
3493 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
3494 <div><xsl:copy-of select="$recto.content"/></div>
3496 <xsl:variable name="verso.content">
3497 <xsl:call-template name="glossary.titlepage.before.verso"/>
3498 <xsl:call-template name="glossary.titlepage.verso"/>
3500 <xsl:variable name="verso.elements.count">
3502 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3503 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3504 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3505 <xsl:otherwise>1</xsl:otherwise>
3508 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
3509 <div><xsl:copy-of select="$verso.content"/></div>
3511 <xsl:call-template name="glossary.titlepage.separator"/>
3515 <xsl:template match="*" mode="glossary.titlepage.recto.mode">
3516 <!-- if an element isn't found in this mode, -->
3517 <!-- try the generic titlepage.mode -->
3518 <xsl:apply-templates select="." mode="titlepage.mode"/>
3521 <xsl:template match="*" mode="glossary.titlepage.verso.mode">
3522 <!-- if an element isn't found in this mode, -->
3523 <!-- try the generic titlepage.mode -->
3524 <xsl:apply-templates select="." mode="titlepage.mode"/>
3527 <xsl:template match="subtitle" mode="glossary.titlepage.recto.auto.mode">
3528 <div xsl:use-attribute-sets="glossary.titlepage.recto.style">
3529 <xsl:apply-templates select="." mode="glossary.titlepage.recto.mode"/>
3533 <xsl:template name="index.titlepage.recto">
3534 <div xsl:use-attribute-sets="index.titlepage.recto.style">
3535 <xsl:call-template name="component.title">
3536 <xsl:with-param name="node" select="ancestor-or-self::index[1]"/>
3537 </xsl:call-template></div>
3539 <xsl:when test="indexinfo/subtitle">
3540 <xsl:apply-templates mode="index.titlepage.recto.auto.mode" select="indexinfo/subtitle"/>
3542 <xsl:when test="docinfo/subtitle">
3543 <xsl:apply-templates mode="index.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
3545 <xsl:when test="info/subtitle">
3546 <xsl:apply-templates mode="index.titlepage.recto.auto.mode" select="info/subtitle"/>
3548 <xsl:when test="subtitle">
3549 <xsl:apply-templates mode="index.titlepage.recto.auto.mode" select="subtitle"/>
3555 <xsl:template name="index.titlepage.verso">
3558 <xsl:template name="index.titlepage.separator">
3561 <xsl:template name="index.titlepage.before.recto">
3564 <xsl:template name="index.titlepage.before.verso">
3567 <xsl:template name="index.titlepage">
3568 <div class="titlepage">
3569 <xsl:variable name="recto.content">
3570 <xsl:call-template name="index.titlepage.before.recto"/>
3571 <xsl:call-template name="index.titlepage.recto"/>
3573 <xsl:variable name="recto.elements.count">
3575 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3576 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3577 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3578 <xsl:otherwise>1</xsl:otherwise>
3581 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
3582 <div><xsl:copy-of select="$recto.content"/></div>
3584 <xsl:variable name="verso.content">
3585 <xsl:call-template name="index.titlepage.before.verso"/>
3586 <xsl:call-template name="index.titlepage.verso"/>
3588 <xsl:variable name="verso.elements.count">
3590 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3591 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3592 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3593 <xsl:otherwise>1</xsl:otherwise>
3596 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
3597 <div><xsl:copy-of select="$verso.content"/></div>
3599 <xsl:call-template name="index.titlepage.separator"/>
3603 <xsl:template match="*" mode="index.titlepage.recto.mode">
3604 <!-- if an element isn't found in this mode, -->
3605 <!-- try the generic titlepage.mode -->
3606 <xsl:apply-templates select="." mode="titlepage.mode"/>
3609 <xsl:template match="*" mode="index.titlepage.verso.mode">
3610 <!-- if an element isn't found in this mode, -->
3611 <!-- try the generic titlepage.mode -->
3612 <xsl:apply-templates select="." mode="titlepage.mode"/>
3615 <xsl:template match="subtitle" mode="index.titlepage.recto.auto.mode">
3616 <div xsl:use-attribute-sets="index.titlepage.recto.style">
3617 <xsl:apply-templates select="." mode="index.titlepage.recto.mode"/>
3621 <xsl:template name="setindex.titlepage.recto">
3622 <div xsl:use-attribute-sets="setindex.titlepage.recto.style">
3623 <xsl:call-template name="component.title">
3624 <xsl:with-param name="node" select="ancestor-or-self::setindex[1]"/>
3625 </xsl:call-template></div>
3627 <xsl:when test="setindexinfo/subtitle">
3628 <xsl:apply-templates mode="setindex.titlepage.recto.auto.mode" select="setindexinfo/subtitle"/>
3630 <xsl:when test="docinfo/subtitle">
3631 <xsl:apply-templates mode="setindex.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
3633 <xsl:when test="info/subtitle">
3634 <xsl:apply-templates mode="setindex.titlepage.recto.auto.mode" select="info/subtitle"/>
3636 <xsl:when test="subtitle">
3637 <xsl:apply-templates mode="setindex.titlepage.recto.auto.mode" select="subtitle"/>
3643 <xsl:template name="setindex.titlepage.verso">
3646 <xsl:template name="setindex.titlepage.separator">
3649 <xsl:template name="setindex.titlepage.before.recto">
3652 <xsl:template name="setindex.titlepage.before.verso">
3655 <xsl:template name="setindex.titlepage">
3656 <div class="titlepage">
3657 <xsl:variable name="recto.content">
3658 <xsl:call-template name="setindex.titlepage.before.recto"/>
3659 <xsl:call-template name="setindex.titlepage.recto"/>
3661 <xsl:variable name="recto.elements.count">
3663 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3664 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3665 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3666 <xsl:otherwise>1</xsl:otherwise>
3669 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
3670 <div><xsl:copy-of select="$recto.content"/></div>
3672 <xsl:variable name="verso.content">
3673 <xsl:call-template name="setindex.titlepage.before.verso"/>
3674 <xsl:call-template name="setindex.titlepage.verso"/>
3676 <xsl:variable name="verso.elements.count">
3678 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3679 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3680 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3681 <xsl:otherwise>1</xsl:otherwise>
3684 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
3685 <div><xsl:copy-of select="$verso.content"/></div>
3687 <xsl:call-template name="setindex.titlepage.separator"/>
3691 <xsl:template match="*" mode="setindex.titlepage.recto.mode">
3692 <!-- if an element isn't found in this mode, -->
3693 <!-- try the generic titlepage.mode -->
3694 <xsl:apply-templates select="." mode="titlepage.mode"/>
3697 <xsl:template match="*" mode="setindex.titlepage.verso.mode">
3698 <!-- if an element isn't found in this mode, -->
3699 <!-- try the generic titlepage.mode -->
3700 <xsl:apply-templates select="." mode="titlepage.mode"/>
3703 <xsl:template match="subtitle" mode="setindex.titlepage.recto.auto.mode">
3704 <div xsl:use-attribute-sets="setindex.titlepage.recto.style">
3705 <xsl:apply-templates select="." mode="setindex.titlepage.recto.mode"/>
3709 <xsl:template name="sidebar.titlepage.recto">
3711 <xsl:when test="sidebarinfo/title">
3712 <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="sidebarinfo/title"/>
3714 <xsl:when test="docinfo/title">
3715 <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="docinfo/title"/>
3717 <xsl:when test="info/title">
3718 <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="info/title"/>
3720 <xsl:when test="title">
3721 <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="title"/>
3726 <xsl:when test="sidebarinfo/subtitle">
3727 <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="sidebarinfo/subtitle"/>
3729 <xsl:when test="docinfo/subtitle">
3730 <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
3732 <xsl:when test="info/subtitle">
3733 <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="info/subtitle"/>
3735 <xsl:when test="subtitle">
3736 <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="subtitle"/>
3742 <xsl:template name="sidebar.titlepage.verso">
3745 <xsl:template name="sidebar.titlepage.separator">
3748 <xsl:template name="sidebar.titlepage.before.recto">
3751 <xsl:template name="sidebar.titlepage.before.verso">
3754 <xsl:template name="sidebar.titlepage">
3755 <div class="titlepage">
3756 <xsl:variable name="recto.content">
3757 <xsl:call-template name="sidebar.titlepage.before.recto"/>
3758 <xsl:call-template name="sidebar.titlepage.recto"/>
3760 <xsl:variable name="recto.elements.count">
3762 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3763 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3764 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3765 <xsl:otherwise>1</xsl:otherwise>
3768 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
3769 <div><xsl:copy-of select="$recto.content"/></div>
3771 <xsl:variable name="verso.content">
3772 <xsl:call-template name="sidebar.titlepage.before.verso"/>
3773 <xsl:call-template name="sidebar.titlepage.verso"/>
3775 <xsl:variable name="verso.elements.count">
3777 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3778 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3779 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3780 <xsl:otherwise>1</xsl:otherwise>
3783 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
3784 <div><xsl:copy-of select="$verso.content"/></div>
3786 <xsl:call-template name="sidebar.titlepage.separator"/>
3790 <xsl:template match="*" mode="sidebar.titlepage.recto.mode">
3791 <!-- if an element isn't found in this mode, -->
3792 <!-- try the generic titlepage.mode -->
3793 <xsl:apply-templates select="." mode="titlepage.mode"/>
3796 <xsl:template match="*" mode="sidebar.titlepage.verso.mode">
3797 <!-- if an element isn't found in this mode, -->
3798 <!-- try the generic titlepage.mode -->
3799 <xsl:apply-templates select="." mode="titlepage.mode"/>
3802 <xsl:template match="title" mode="sidebar.titlepage.recto.auto.mode">
3803 <div xsl:use-attribute-sets="sidebar.titlepage.recto.style">
3804 <xsl:call-template name="formal.object.heading">
3805 <xsl:with-param name="object" select="ancestor-or-self::sidebar[1]"/>
3806 </xsl:call-template>
3810 <xsl:template match="subtitle" mode="sidebar.titlepage.recto.auto.mode">
3811 <div xsl:use-attribute-sets="sidebar.titlepage.recto.style">
3812 <xsl:apply-templates select="." mode="sidebar.titlepage.recto.mode"/>