1
<?xml version="1.0" encoding="UTF-8"?>
2
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exsl="http://exslt.org/common" xmlns:d="http://docbook.org/ns/docbook" version="1.0" exclude-result-prefixes="exsl">
4
<!-- This stylesheet was created by template/titlepage.xsl; do not edit it by hand. -->
6
<xsl:template name="article.titlepage.recto">
8
<xsl:when test="d:articleinfo/d:title">
9
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:articleinfo/d:title"/>
11
<xsl:when test="d:artheader/d:title">
12
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:artheader/d:title"/>
14
<xsl:when test="d:info/d:title">
15
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:info/d:title"/>
17
<xsl:when test="d:title">
18
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:title"/>
23
<xsl:when test="d:articleinfo/d:subtitle">
24
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:articleinfo/d:subtitle"/>
26
<xsl:when test="d:artheader/d:subtitle">
27
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:artheader/d:subtitle"/>
29
<xsl:when test="d:info/d:subtitle">
30
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
32
<xsl:when test="d:subtitle">
33
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:subtitle"/>
37
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:articleinfo/d:corpauthor"/>
38
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:artheader/d:corpauthor"/>
39
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
40
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:articleinfo/d:authorgroup"/>
41
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:artheader/d:authorgroup"/>
42
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
43
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:articleinfo/d:author"/>
44
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:artheader/d:author"/>
45
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:info/d:author"/>
46
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:articleinfo/d:othercredit"/>
47
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:artheader/d:othercredit"/>
48
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
49
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:articleinfo/d:copyright"/>
50
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:artheader/d:copyright"/>
51
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
52
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:articleinfo/d:legalnotice"/>
53
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:artheader/d:legalnotice"/>
54
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
55
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:articleinfo/d:revision"/>
56
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:artheader/d:revision"/>
57
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:info/d:revision"/>
58
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:articleinfo/d:revhistory"/>
59
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:artheader/d:revhistory"/>
60
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
61
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:articleinfo/d:abstract"/>
62
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:artheader/d:abstract"/>
63
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
66
<xsl:template name="article.titlepage.verso">
69
<xsl:template name="article.titlepage.separator">
72
<xsl:template name="article.titlepage.before.recto">
75
<xsl:template name="article.titlepage.before.verso">
78
<xsl:template name="article.titlepage">
79
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" font-family="{$title.fontset}">
80
<xsl:variable name="recto.content">
81
<xsl:call-template name="article.titlepage.before.recto"/>
82
<xsl:call-template name="article.titlepage.recto"/>
84
<xsl:variable name="recto.elements.count">
86
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
87
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
88
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
89
<xsl:otherwise>1</xsl:otherwise>
92
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
93
<fo:block start-indent="0pt" text-align="center"><xsl:copy-of select="$recto.content"/></fo:block>
95
<xsl:variable name="verso.content">
96
<xsl:call-template name="article.titlepage.before.verso"/>
97
<xsl:call-template name="article.titlepage.verso"/>
99
<xsl:variable name="verso.elements.count">
101
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
102
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
103
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
104
<xsl:otherwise>1</xsl:otherwise>
107
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
108
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
110
<xsl:call-template name="article.titlepage.separator"/>
114
<xsl:template match="*" mode="article.titlepage.recto.mode">
115
<!-- if an element isn't found in this mode, -->
116
<!-- try the generic titlepage.mode -->
117
<xsl:apply-templates select="." mode="titlepage.mode"/>
120
<xsl:template match="*" mode="article.titlepage.verso.mode">
121
<!-- if an element isn't found in this mode, -->
122
<!-- try the generic titlepage.mode -->
123
<xsl:apply-templates select="." mode="titlepage.mode"/>
126
<xsl:template match="d:title" mode="article.titlepage.recto.auto.mode">
127
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style" keep-with-next.within-column="always" font-size="24.8832pt" font-weight="bold">
128
<xsl:call-template name="component.title">
129
<xsl:with-param name="node" select="ancestor-or-self::d:article[1]"/>
134
<xsl:template match="d:subtitle" mode="article.titlepage.recto.auto.mode">
135
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style">
136
<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
140
<xsl:template match="d:corpauthor" mode="article.titlepage.recto.auto.mode">
141
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style" font-size="12pt">
142
<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
146
<xsl:template match="d:authorgroup" mode="article.titlepage.recto.auto.mode">
147
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style" font-size="12pt">
148
<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
152
<xsl:template match="d:author" mode="article.titlepage.recto.auto.mode">
153
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style" font-size="12pt">
154
<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
158
<xsl:template match="d:othercredit" mode="article.titlepage.recto.auto.mode">
159
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style" space-before="0.5em">
160
<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
164
<xsl:template match="d:copyright" mode="article.titlepage.recto.auto.mode">
165
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style" space-before="0.5em">
166
<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
170
<xsl:template match="d:legalnotice" mode="article.titlepage.recto.auto.mode">
171
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style" text-align="start" margin-left="0.5in" margin-right="0.5in" font-family="{$body.fontset}">
172
<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
176
<xsl:template match="d:revision" mode="article.titlepage.recto.auto.mode">
177
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style" space-before="0.5em">
178
<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
182
<xsl:template match="d:revhistory" mode="article.titlepage.recto.auto.mode">
183
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style" space-before="0.5em">
184
<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
188
<xsl:template match="d:abstract" mode="article.titlepage.recto.auto.mode">
189
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style" space-before="0.5em" text-align="start" margin-left="0.5in" margin-right="0.5in" font-family="{$body.fontset}">
190
<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
194
<xsl:template name="set.titlepage.recto">
196
<xsl:when test="d:setinfo/d:title">
197
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:title"/>
199
<xsl:when test="d:info/d:title">
200
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:title"/>
202
<xsl:when test="d:title">
203
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:title"/>
208
<xsl:when test="d:setinfo/d:subtitle">
209
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:subtitle"/>
211
<xsl:when test="d:info/d:subtitle">
212
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
214
<xsl:when test="d:subtitle">
215
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:subtitle"/>
219
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:corpauthor"/>
220
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
221
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:authorgroup"/>
222
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
223
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:author"/>
224
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:author"/>
225
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:othercredit"/>
226
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
227
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:releaseinfo"/>
228
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
229
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:copyright"/>
230
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
231
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:legalnotice"/>
232
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
233
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:pubdate"/>
234
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
235
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:revision"/>
236
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:revision"/>
237
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:revhistory"/>
238
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
239
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:abstract"/>
240
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
243
<xsl:template name="set.titlepage.verso">
246
<xsl:template name="set.titlepage.separator">
249
<xsl:template name="set.titlepage.before.recto">
252
<xsl:template name="set.titlepage.before.verso">
255
<xsl:template name="set.titlepage">
256
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
257
<xsl:variable name="recto.content">
258
<xsl:call-template name="set.titlepage.before.recto"/>
259
<xsl:call-template name="set.titlepage.recto"/>
261
<xsl:variable name="recto.elements.count">
263
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
264
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
265
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
266
<xsl:otherwise>1</xsl:otherwise>
269
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
270
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
272
<xsl:variable name="verso.content">
273
<xsl:call-template name="set.titlepage.before.verso"/>
274
<xsl:call-template name="set.titlepage.verso"/>
276
<xsl:variable name="verso.elements.count">
278
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
279
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
280
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
281
<xsl:otherwise>1</xsl:otherwise>
284
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
285
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
287
<xsl:call-template name="set.titlepage.separator"/>
291
<xsl:template match="*" mode="set.titlepage.recto.mode">
292
<!-- if an element isn't found in this mode, -->
293
<!-- try the generic titlepage.mode -->
294
<xsl:apply-templates select="." mode="titlepage.mode"/>
297
<xsl:template match="*" mode="set.titlepage.verso.mode">
298
<!-- if an element isn't found in this mode, -->
299
<!-- try the generic titlepage.mode -->
300
<xsl:apply-templates select="." mode="titlepage.mode"/>
303
<xsl:template match="d:title" mode="set.titlepage.recto.auto.mode">
304
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style" text-align="center" font-size="24.8832pt" space-before="18.6624pt" font-weight="bold" font-family="{$title.fontset}">
305
<xsl:call-template name="division.title">
306
<xsl:with-param name="node" select="ancestor-or-self::d:set[1]"/>
311
<xsl:template match="d:subtitle" mode="set.titlepage.recto.auto.mode">
312
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style" font-family="{$title.fontset}" text-align="center">
313
<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
317
<xsl:template match="d:corpauthor" mode="set.titlepage.recto.auto.mode">
318
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style">
319
<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
323
<xsl:template match="d:authorgroup" mode="set.titlepage.recto.auto.mode">
324
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style">
325
<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
329
<xsl:template match="d:author" mode="set.titlepage.recto.auto.mode">
330
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style">
331
<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
335
<xsl:template match="d:othercredit" mode="set.titlepage.recto.auto.mode">
336
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style">
337
<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
341
<xsl:template match="d:releaseinfo" mode="set.titlepage.recto.auto.mode">
342
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style">
343
<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
347
<xsl:template match="d:copyright" mode="set.titlepage.recto.auto.mode">
348
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style">
349
<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
353
<xsl:template match="d:legalnotice" mode="set.titlepage.recto.auto.mode">
354
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style">
355
<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
359
<xsl:template match="d:pubdate" mode="set.titlepage.recto.auto.mode">
360
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style">
361
<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
365
<xsl:template match="d:revision" mode="set.titlepage.recto.auto.mode">
366
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style">
367
<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
371
<xsl:template match="d:revhistory" mode="set.titlepage.recto.auto.mode">
372
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style">
373
<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
377
<xsl:template match="d:abstract" mode="set.titlepage.recto.auto.mode">
378
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style">
379
<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
383
<xsl:template name="book.titlepage.recto">
386
<xsl:template name="book.titlepage.verso">
388
<xsl:when test="d:bookinfo/d:title">
389
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:bookinfo/d:title"/>
391
<xsl:when test="d:info/d:title">
392
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:info/d:title"/>
394
<xsl:when test="d:title">
395
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:title"/>
399
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:bookinfo/d:corpauthor"/>
400
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:info/d:corpauthor"/>
401
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:bookinfo/d:authorgroup"/>
402
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:info/d:authorgroup"/>
403
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:bookinfo/d:author"/>
404
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:info/d:author"/>
405
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:bookinfo/d:othercredit"/>
406
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:info/d:othercredit"/>
407
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:bookinfo/d:releaseinfo"/>
408
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:info/d:releaseinfo"/>
409
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:bookinfo/d:copyright"/>
410
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:info/d:copyright"/>
411
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:bookinfo/d:abstract"/>
412
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:info/d:abstract"/>
413
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:bookinfo/d:legalnotice"/>
414
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:info/d:legalnotice"/>
417
<xsl:template name="book.titlepage.separator"><fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" break-after="page"/>
420
<xsl:template name="book.titlepage.before.recto">
423
<xsl:template name="book.titlepage.before.verso"><fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" break-after="page"/>
426
<xsl:template name="book.titlepage">
427
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
428
<xsl:variable name="recto.content">
429
<xsl:call-template name="book.titlepage.before.recto"/>
430
<xsl:call-template name="book.titlepage.recto"/>
432
<xsl:variable name="recto.elements.count">
434
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
435
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
436
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
437
<xsl:otherwise>1</xsl:otherwise>
440
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
441
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
443
<xsl:variable name="verso.content">
444
<xsl:call-template name="book.titlepage.before.verso"/>
445
<xsl:call-template name="book.titlepage.verso"/>
447
<xsl:variable name="verso.elements.count">
449
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
450
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
451
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
452
<xsl:otherwise>1</xsl:otherwise>
455
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
456
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
458
<xsl:call-template name="book.titlepage.separator"/>
462
<xsl:template match="*" mode="book.titlepage.recto.mode">
463
<!-- if an element isn't found in this mode, -->
464
<!-- try the generic titlepage.mode -->
465
<xsl:apply-templates select="." mode="titlepage.mode"/>
468
<xsl:template match="*" mode="book.titlepage.verso.mode">
469
<!-- if an element isn't found in this mode, -->
470
<!-- try the generic titlepage.mode -->
471
<xsl:apply-templates select="." mode="titlepage.mode"/>
474
<xsl:template match="d:title" mode="book.titlepage.verso.auto.mode">
475
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style" font-size="14.4pt" font-weight="bold" font-family="{$title.fontset}">
476
<xsl:call-template name="book.verso.title">
481
<xsl:template match="d:corpauthor" mode="book.titlepage.verso.auto.mode">
482
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style">
483
<xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
487
<xsl:template match="d:authorgroup" mode="book.titlepage.verso.auto.mode">
488
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style">
489
<xsl:call-template name="verso.authorgroup">
494
<xsl:template match="d:author" mode="book.titlepage.verso.auto.mode">
495
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style">
496
<xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
500
<xsl:template match="d:othercredit" mode="book.titlepage.verso.auto.mode">
501
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style">
502
<xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
506
<xsl:template match="d:releaseinfo" mode="book.titlepage.verso.auto.mode">
507
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style" space-before="0.5em">
508
<xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
512
<xsl:template match="d:copyright" mode="book.titlepage.verso.auto.mode">
513
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style">
514
<xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
518
<xsl:template match="d:abstract" mode="book.titlepage.verso.auto.mode">
519
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style">
520
<xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
524
<xsl:template match="d:legalnotice" mode="book.titlepage.verso.auto.mode">
525
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style" space-before="1.0em" font-size="8pt">
526
<xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
530
<xsl:template name="part.titlepage.recto">
532
<xsl:when test="d:partinfo/d:title">
533
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:partinfo/d:title"/>
535
<xsl:when test="d:docinfo/d:title">
536
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
538
<xsl:when test="d:info/d:title">
539
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:info/d:title"/>
541
<xsl:when test="d:title">
542
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:title"/>
547
<xsl:when test="d:partinfo/d:subtitle">
548
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:partinfo/d:subtitle"/>
550
<xsl:when test="d:docinfo/d:subtitle">
551
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
553
<xsl:when test="d:info/d:subtitle">
554
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
556
<xsl:when test="d:subtitle">
557
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:subtitle"/>
563
<xsl:template name="part.titlepage.verso">
566
<xsl:template name="part.titlepage.separator">
569
<xsl:template name="part.titlepage.before.recto">
572
<xsl:template name="part.titlepage.before.verso">
575
<xsl:template name="part.titlepage">
576
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
577
<xsl:variable name="recto.content">
578
<xsl:call-template name="part.titlepage.before.recto"/>
579
<xsl:call-template name="part.titlepage.recto"/>
581
<xsl:variable name="recto.elements.count">
583
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
584
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
585
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
586
<xsl:otherwise>1</xsl:otherwise>
589
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
590
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
592
<xsl:variable name="verso.content">
593
<xsl:call-template name="part.titlepage.before.verso"/>
594
<xsl:call-template name="part.titlepage.verso"/>
596
<xsl:variable name="verso.elements.count">
598
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
599
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
600
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
601
<xsl:otherwise>1</xsl:otherwise>
604
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
605
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
607
<xsl:call-template name="part.titlepage.separator"/>
611
<xsl:template match="*" mode="part.titlepage.recto.mode">
612
<!-- if an element isn't found in this mode, -->
613
<!-- try the generic titlepage.mode -->
614
<xsl:apply-templates select="." mode="titlepage.mode"/>
617
<xsl:template match="*" mode="part.titlepage.verso.mode">
618
<!-- if an element isn't found in this mode, -->
619
<!-- try the generic titlepage.mode -->
620
<xsl:apply-templates select="." mode="titlepage.mode"/>
623
<xsl:template match="d:title" mode="part.titlepage.recto.auto.mode">
624
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="part.titlepage.recto.style" text-align="center" font-size="24.8832pt" space-before="18.6624pt" font-weight="bold" font-family="{$title.fontset}">
625
<xsl:call-template name="division.title">
626
<xsl:with-param name="node" select="ancestor-or-self::d:part[1]"/>
631
<xsl:template match="d:subtitle" mode="part.titlepage.recto.auto.mode">
632
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="part.titlepage.recto.style" text-align="center" font-size="20.736pt" space-before="15.552pt" font-weight="bold" font-style="italic" font-family="{$title.fontset}">
633
<xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
637
<xsl:template name="partintro.titlepage.recto">
639
<xsl:when test="d:partintroinfo/d:title">
640
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:title"/>
642
<xsl:when test="d:docinfo/d:title">
643
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
645
<xsl:when test="d:info/d:title">
646
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:title"/>
648
<xsl:when test="d:title">
649
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:title"/>
654
<xsl:when test="d:partintroinfo/d:subtitle">
655
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:subtitle"/>
657
<xsl:when test="d:docinfo/d:subtitle">
658
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
660
<xsl:when test="d:info/d:subtitle">
661
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
663
<xsl:when test="d:subtitle">
664
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:subtitle"/>
668
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:corpauthor"/>
669
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:corpauthor"/>
670
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
671
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:authorgroup"/>
672
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:authorgroup"/>
673
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
674
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:author"/>
675
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:author"/>
676
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:author"/>
677
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:othercredit"/>
678
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:othercredit"/>
679
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
680
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:releaseinfo"/>
681
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:releaseinfo"/>
682
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
683
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:copyright"/>
684
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:copyright"/>
685
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
686
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:legalnotice"/>
687
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:legalnotice"/>
688
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
689
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:pubdate"/>
690
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:pubdate"/>
691
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
692
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:revision"/>
693
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:revision"/>
694
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:revision"/>
695
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:revhistory"/>
696
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:revhistory"/>
697
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
698
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:abstract"/>
699
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:abstract"/>
700
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
703
<xsl:template name="partintro.titlepage.verso">
706
<xsl:template name="partintro.titlepage.separator">
709
<xsl:template name="partintro.titlepage.before.recto">
712
<xsl:template name="partintro.titlepage.before.verso">
715
<xsl:template name="partintro.titlepage">
716
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
717
<xsl:variable name="recto.content">
718
<xsl:call-template name="partintro.titlepage.before.recto"/>
719
<xsl:call-template name="partintro.titlepage.recto"/>
721
<xsl:variable name="recto.elements.count">
723
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
724
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
725
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
726
<xsl:otherwise>1</xsl:otherwise>
729
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
730
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
732
<xsl:variable name="verso.content">
733
<xsl:call-template name="partintro.titlepage.before.verso"/>
734
<xsl:call-template name="partintro.titlepage.verso"/>
736
<xsl:variable name="verso.elements.count">
738
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
739
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
740
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
741
<xsl:otherwise>1</xsl:otherwise>
744
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
745
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
747
<xsl:call-template name="partintro.titlepage.separator"/>
751
<xsl:template match="*" mode="partintro.titlepage.recto.mode">
752
<!-- if an element isn't found in this mode, -->
753
<!-- try the generic titlepage.mode -->
754
<xsl:apply-templates select="." mode="titlepage.mode"/>
757
<xsl:template match="*" mode="partintro.titlepage.verso.mode">
758
<!-- if an element isn't found in this mode, -->
759
<!-- try the generic titlepage.mode -->
760
<xsl:apply-templates select="." mode="titlepage.mode"/>
763
<xsl:template match="d:title" mode="partintro.titlepage.recto.auto.mode">
764
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style" text-align="center" font-size="24.8832pt" font-weight="bold" space-before="1em" font-family="{$title.fontset}">
765
<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
769
<xsl:template match="d:subtitle" mode="partintro.titlepage.recto.auto.mode">
770
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style" text-align="center" font-size="14.4pt" font-weight="bold" font-style="italic" font-family="{$title.fontset}">
771
<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
775
<xsl:template match="d:corpauthor" mode="partintro.titlepage.recto.auto.mode">
776
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style">
777
<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
781
<xsl:template match="d:authorgroup" mode="partintro.titlepage.recto.auto.mode">
782
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style">
783
<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
787
<xsl:template match="d:author" mode="partintro.titlepage.recto.auto.mode">
788
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style">
789
<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
793
<xsl:template match="d:othercredit" mode="partintro.titlepage.recto.auto.mode">
794
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style">
795
<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
799
<xsl:template match="d:releaseinfo" mode="partintro.titlepage.recto.auto.mode">
800
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style">
801
<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
805
<xsl:template match="d:copyright" mode="partintro.titlepage.recto.auto.mode">
806
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style">
807
<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
811
<xsl:template match="d:legalnotice" mode="partintro.titlepage.recto.auto.mode">
812
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style">
813
<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
817
<xsl:template match="d:pubdate" mode="partintro.titlepage.recto.auto.mode">
818
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style">
819
<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
823
<xsl:template match="d:revision" mode="partintro.titlepage.recto.auto.mode">
824
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style">
825
<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
829
<xsl:template match="d:revhistory" mode="partintro.titlepage.recto.auto.mode">
830
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style">
831
<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
835
<xsl:template match="d:abstract" mode="partintro.titlepage.recto.auto.mode">
836
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style">
837
<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
841
<xsl:template name="reference.titlepage.recto">
843
<xsl:when test="d:referenceinfo/d:title">
844
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:title"/>
846
<xsl:when test="d:docinfo/d:title">
847
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
849
<xsl:when test="d:info/d:title">
850
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:title"/>
852
<xsl:when test="d:title">
853
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:title"/>
858
<xsl:when test="d:referenceinfo/d:subtitle">
859
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:subtitle"/>
861
<xsl:when test="d:docinfo/d:subtitle">
862
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
864
<xsl:when test="d:info/d:subtitle">
865
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
867
<xsl:when test="d:subtitle">
868
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:subtitle"/>
872
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:corpauthor"/>
873
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:corpauthor"/>
874
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
875
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:authorgroup"/>
876
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:authorgroup"/>
877
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
878
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:author"/>
879
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:author"/>
880
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:author"/>
881
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:othercredit"/>
882
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:othercredit"/>
883
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
884
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:releaseinfo"/>
885
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:releaseinfo"/>
886
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
887
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:copyright"/>
888
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:copyright"/>
889
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
890
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:legalnotice"/>
891
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:legalnotice"/>
892
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
893
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:pubdate"/>
894
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:pubdate"/>
895
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
896
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:revision"/>
897
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:revision"/>
898
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:revision"/>
899
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:revhistory"/>
900
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:revhistory"/>
901
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
902
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:abstract"/>
903
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:abstract"/>
904
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
907
<xsl:template name="reference.titlepage.verso">
910
<xsl:template name="reference.titlepage.separator">
913
<xsl:template name="reference.titlepage.before.recto">
916
<xsl:template name="reference.titlepage.before.verso">
919
<xsl:template name="reference.titlepage">
920
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
921
<xsl:variable name="recto.content">
922
<xsl:call-template name="reference.titlepage.before.recto"/>
923
<xsl:call-template name="reference.titlepage.recto"/>
925
<xsl:variable name="recto.elements.count">
927
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
928
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
929
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
930
<xsl:otherwise>1</xsl:otherwise>
933
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
934
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
936
<xsl:variable name="verso.content">
937
<xsl:call-template name="reference.titlepage.before.verso"/>
938
<xsl:call-template name="reference.titlepage.verso"/>
940
<xsl:variable name="verso.elements.count">
942
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
943
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
944
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
945
<xsl:otherwise>1</xsl:otherwise>
948
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
949
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
951
<xsl:call-template name="reference.titlepage.separator"/>
955
<xsl:template match="*" mode="reference.titlepage.recto.mode">
956
<!-- if an element isn't found in this mode, -->
957
<!-- try the generic titlepage.mode -->
958
<xsl:apply-templates select="." mode="titlepage.mode"/>
961
<xsl:template match="*" mode="reference.titlepage.verso.mode">
962
<!-- if an element isn't found in this mode, -->
963
<!-- try the generic titlepage.mode -->
964
<xsl:apply-templates select="." mode="titlepage.mode"/>
967
<xsl:template match="d:title" mode="reference.titlepage.recto.auto.mode">
968
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style" text-align="center" font-size="24.8832pt" space-before="18.6624pt" font-weight="bold" font-family="{$title.fontset}">
969
<xsl:call-template name="division.title">
970
<xsl:with-param name="node" select="ancestor-or-self::d:reference[1]"/>
975
<xsl:template match="d:subtitle" mode="reference.titlepage.recto.auto.mode">
976
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style" font-family="{$title.fontset}" text-align="center">
977
<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
981
<xsl:template match="d:corpauthor" mode="reference.titlepage.recto.auto.mode">
982
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style">
983
<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
987
<xsl:template match="d:authorgroup" mode="reference.titlepage.recto.auto.mode">
988
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style">
989
<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
993
<xsl:template match="d:author" mode="reference.titlepage.recto.auto.mode">
994
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style">
995
<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
999
<xsl:template match="d:othercredit" mode="reference.titlepage.recto.auto.mode">
1000
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style">
1001
<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1005
<xsl:template match="d:releaseinfo" mode="reference.titlepage.recto.auto.mode">
1006
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style">
1007
<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1011
<xsl:template match="d:copyright" mode="reference.titlepage.recto.auto.mode">
1012
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style">
1013
<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1017
<xsl:template match="d:legalnotice" mode="reference.titlepage.recto.auto.mode">
1018
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style">
1019
<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1023
<xsl:template match="d:pubdate" mode="reference.titlepage.recto.auto.mode">
1024
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style">
1025
<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1029
<xsl:template match="d:revision" mode="reference.titlepage.recto.auto.mode">
1030
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style">
1031
<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1035
<xsl:template match="d:revhistory" mode="reference.titlepage.recto.auto.mode">
1036
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style">
1037
<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1041
<xsl:template match="d:abstract" mode="reference.titlepage.recto.auto.mode">
1042
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style">
1043
<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1047
<xsl:template name="refsynopsisdiv.titlepage.recto">
1049
<xsl:when test="d:refsynopsisdivinfo/d:title">
1050
<xsl:apply-templates mode="refsynopsisdiv.titlepage.recto.auto.mode" select="d:refsynopsisdivinfo/d:title"/>
1052
<xsl:when test="d:docinfo/d:title">
1053
<xsl:apply-templates mode="refsynopsisdiv.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
1055
<xsl:when test="d:info/d:title">
1056
<xsl:apply-templates mode="refsynopsisdiv.titlepage.recto.auto.mode" select="d:info/d:title"/>
1058
<xsl:when test="d:title">
1059
<xsl:apply-templates mode="refsynopsisdiv.titlepage.recto.auto.mode" select="d:title"/>
1065
<xsl:template name="refsynopsisdiv.titlepage.verso">
1068
<xsl:template name="refsynopsisdiv.titlepage.separator">
1071
<xsl:template name="refsynopsisdiv.titlepage.before.recto">
1074
<xsl:template name="refsynopsisdiv.titlepage.before.verso">
1077
<xsl:template name="refsynopsisdiv.titlepage">
1078
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
1079
<xsl:variable name="recto.content">
1080
<xsl:call-template name="refsynopsisdiv.titlepage.before.recto"/>
1081
<xsl:call-template name="refsynopsisdiv.titlepage.recto"/>
1083
<xsl:variable name="recto.elements.count">
1085
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1086
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1087
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1088
<xsl:otherwise>1</xsl:otherwise>
1091
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
1092
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
1094
<xsl:variable name="verso.content">
1095
<xsl:call-template name="refsynopsisdiv.titlepage.before.verso"/>
1096
<xsl:call-template name="refsynopsisdiv.titlepage.verso"/>
1098
<xsl:variable name="verso.elements.count">
1100
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1101
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1102
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1103
<xsl:otherwise>1</xsl:otherwise>
1106
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
1107
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
1109
<xsl:call-template name="refsynopsisdiv.titlepage.separator"/>
1113
<xsl:template match="*" mode="refsynopsisdiv.titlepage.recto.mode">
1114
<!-- if an element isn't found in this mode, -->
1115
<!-- try the generic titlepage.mode -->
1116
<xsl:apply-templates select="." mode="titlepage.mode"/>
1119
<xsl:template match="*" mode="refsynopsisdiv.titlepage.verso.mode">
1120
<!-- if an element isn't found in this mode, -->
1121
<!-- try the generic titlepage.mode -->
1122
<xsl:apply-templates select="." mode="titlepage.mode"/>
1125
<xsl:template match="d:title" mode="refsynopsisdiv.titlepage.recto.auto.mode">
1126
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="refsynopsisdiv.titlepage.recto.style" font-family="{$title.fontset}">
1127
<xsl:apply-templates select="." mode="refsynopsisdiv.titlepage.recto.mode"/>
1131
<xsl:template name="refsection.titlepage.recto">
1133
<xsl:when test="d:refsectioninfo/d:title">
1134
<xsl:apply-templates mode="refsection.titlepage.recto.auto.mode" select="d:refsectioninfo/d:title"/>
1136
<xsl:when test="d:docinfo/d:title">
1137
<xsl:apply-templates mode="refsection.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
1139
<xsl:when test="d:info/d:title">
1140
<xsl:apply-templates mode="refsection.titlepage.recto.auto.mode" select="d:info/d:title"/>
1142
<xsl:when test="d:title">
1143
<xsl:apply-templates mode="refsection.titlepage.recto.auto.mode" select="d:title"/>
1149
<xsl:template name="refsection.titlepage.verso">
1152
<xsl:template name="refsection.titlepage.separator">
1155
<xsl:template name="refsection.titlepage.before.recto">
1158
<xsl:template name="refsection.titlepage.before.verso">
1161
<xsl:template name="refsection.titlepage">
1162
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
1163
<xsl:variable name="recto.content">
1164
<xsl:call-template name="refsection.titlepage.before.recto"/>
1165
<xsl:call-template name="refsection.titlepage.recto"/>
1167
<xsl:variable name="recto.elements.count">
1169
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1170
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1171
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1172
<xsl:otherwise>1</xsl:otherwise>
1175
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
1176
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
1178
<xsl:variable name="verso.content">
1179
<xsl:call-template name="refsection.titlepage.before.verso"/>
1180
<xsl:call-template name="refsection.titlepage.verso"/>
1182
<xsl:variable name="verso.elements.count">
1184
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1185
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1186
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1187
<xsl:otherwise>1</xsl:otherwise>
1190
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
1191
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
1193
<xsl:call-template name="refsection.titlepage.separator"/>
1197
<xsl:template match="*" mode="refsection.titlepage.recto.mode">
1198
<!-- if an element isn't found in this mode, -->
1199
<!-- try the generic titlepage.mode -->
1200
<xsl:apply-templates select="." mode="titlepage.mode"/>
1203
<xsl:template match="*" mode="refsection.titlepage.verso.mode">
1204
<!-- if an element isn't found in this mode, -->
1205
<!-- try the generic titlepage.mode -->
1206
<xsl:apply-templates select="." mode="titlepage.mode"/>
1209
<xsl:template match="d:title" mode="refsection.titlepage.recto.auto.mode">
1210
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="refsection.titlepage.recto.style" font-family="{$title.fontset}">
1211
<xsl:apply-templates select="." mode="refsection.titlepage.recto.mode"/>
1215
<xsl:template name="refsect1.titlepage.recto">
1217
<xsl:when test="d:refsect1info/d:title">
1218
<xsl:apply-templates mode="refsect1.titlepage.recto.auto.mode" select="d:refsect1info/d:title"/>
1220
<xsl:when test="d:docinfo/d:title">
1221
<xsl:apply-templates mode="refsect1.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
1223
<xsl:when test="d:info/d:title">
1224
<xsl:apply-templates mode="refsect1.titlepage.recto.auto.mode" select="d:info/d:title"/>
1226
<xsl:when test="d:title">
1227
<xsl:apply-templates mode="refsect1.titlepage.recto.auto.mode" select="d:title"/>
1233
<xsl:template name="refsect1.titlepage.verso">
1236
<xsl:template name="refsect1.titlepage.separator">
1239
<xsl:template name="refsect1.titlepage.before.recto">
1242
<xsl:template name="refsect1.titlepage.before.verso">
1245
<xsl:template name="refsect1.titlepage">
1246
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
1247
<xsl:variable name="recto.content">
1248
<xsl:call-template name="refsect1.titlepage.before.recto"/>
1249
<xsl:call-template name="refsect1.titlepage.recto"/>
1251
<xsl:variable name="recto.elements.count">
1253
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1254
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1255
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1256
<xsl:otherwise>1</xsl:otherwise>
1259
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
1260
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
1262
<xsl:variable name="verso.content">
1263
<xsl:call-template name="refsect1.titlepage.before.verso"/>
1264
<xsl:call-template name="refsect1.titlepage.verso"/>
1266
<xsl:variable name="verso.elements.count">
1268
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1269
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1270
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1271
<xsl:otherwise>1</xsl:otherwise>
1274
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
1275
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
1277
<xsl:call-template name="refsect1.titlepage.separator"/>
1281
<xsl:template match="*" mode="refsect1.titlepage.recto.mode">
1282
<!-- if an element isn't found in this mode, -->
1283
<!-- try the generic titlepage.mode -->
1284
<xsl:apply-templates select="." mode="titlepage.mode"/>
1287
<xsl:template match="*" mode="refsect1.titlepage.verso.mode">
1288
<!-- if an element isn't found in this mode, -->
1289
<!-- try the generic titlepage.mode -->
1290
<xsl:apply-templates select="." mode="titlepage.mode"/>
1293
<xsl:template match="d:title" mode="refsect1.titlepage.recto.auto.mode">
1294
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="refsect1.titlepage.recto.style" font-family="{$title.fontset}">
1295
<xsl:apply-templates select="." mode="refsect1.titlepage.recto.mode"/>
1299
<xsl:template name="refsect2.titlepage.recto">
1301
<xsl:when test="d:refsect2info/d:title">
1302
<xsl:apply-templates mode="refsect2.titlepage.recto.auto.mode" select="d:refsect2info/d:title"/>
1304
<xsl:when test="d:docinfo/d:title">
1305
<xsl:apply-templates mode="refsect2.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
1307
<xsl:when test="d:info/d:title">
1308
<xsl:apply-templates mode="refsect2.titlepage.recto.auto.mode" select="d:info/d:title"/>
1310
<xsl:when test="d:title">
1311
<xsl:apply-templates mode="refsect2.titlepage.recto.auto.mode" select="d:title"/>
1317
<xsl:template name="refsect2.titlepage.verso">
1320
<xsl:template name="refsect2.titlepage.separator">
1323
<xsl:template name="refsect2.titlepage.before.recto">
1326
<xsl:template name="refsect2.titlepage.before.verso">
1329
<xsl:template name="refsect2.titlepage">
1330
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
1331
<xsl:variable name="recto.content">
1332
<xsl:call-template name="refsect2.titlepage.before.recto"/>
1333
<xsl:call-template name="refsect2.titlepage.recto"/>
1335
<xsl:variable name="recto.elements.count">
1337
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1338
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1339
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1340
<xsl:otherwise>1</xsl:otherwise>
1343
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
1344
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
1346
<xsl:variable name="verso.content">
1347
<xsl:call-template name="refsect2.titlepage.before.verso"/>
1348
<xsl:call-template name="refsect2.titlepage.verso"/>
1350
<xsl:variable name="verso.elements.count">
1352
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1353
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1354
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1355
<xsl:otherwise>1</xsl:otherwise>
1358
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
1359
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
1361
<xsl:call-template name="refsect2.titlepage.separator"/>
1365
<xsl:template match="*" mode="refsect2.titlepage.recto.mode">
1366
<!-- if an element isn't found in this mode, -->
1367
<!-- try the generic titlepage.mode -->
1368
<xsl:apply-templates select="." mode="titlepage.mode"/>
1371
<xsl:template match="*" mode="refsect2.titlepage.verso.mode">
1372
<!-- if an element isn't found in this mode, -->
1373
<!-- try the generic titlepage.mode -->
1374
<xsl:apply-templates select="." mode="titlepage.mode"/>
1377
<xsl:template match="d:title" mode="refsect2.titlepage.recto.auto.mode">
1378
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="refsect2.titlepage.recto.style" font-family="{$title.fontset}">
1379
<xsl:apply-templates select="." mode="refsect2.titlepage.recto.mode"/>
1383
<xsl:template name="refsect3.titlepage.recto">
1385
<xsl:when test="d:refsect3info/d:title">
1386
<xsl:apply-templates mode="refsect3.titlepage.recto.auto.mode" select="d:refsect3info/d:title"/>
1388
<xsl:when test="d:docinfo/d:title">
1389
<xsl:apply-templates mode="refsect3.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
1391
<xsl:when test="d:info/d:title">
1392
<xsl:apply-templates mode="refsect3.titlepage.recto.auto.mode" select="d:info/d:title"/>
1394
<xsl:when test="d:title">
1395
<xsl:apply-templates mode="refsect3.titlepage.recto.auto.mode" select="d:title"/>
1401
<xsl:template name="refsect3.titlepage.verso">
1404
<xsl:template name="refsect3.titlepage.separator">
1407
<xsl:template name="refsect3.titlepage.before.recto">
1410
<xsl:template name="refsect3.titlepage.before.verso">
1413
<xsl:template name="refsect3.titlepage">
1414
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
1415
<xsl:variable name="recto.content">
1416
<xsl:call-template name="refsect3.titlepage.before.recto"/>
1417
<xsl:call-template name="refsect3.titlepage.recto"/>
1419
<xsl:variable name="recto.elements.count">
1421
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1422
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1423
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1424
<xsl:otherwise>1</xsl:otherwise>
1427
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
1428
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
1430
<xsl:variable name="verso.content">
1431
<xsl:call-template name="refsect3.titlepage.before.verso"/>
1432
<xsl:call-template name="refsect3.titlepage.verso"/>
1434
<xsl:variable name="verso.elements.count">
1436
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1437
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1438
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1439
<xsl:otherwise>1</xsl:otherwise>
1442
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
1443
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
1445
<xsl:call-template name="refsect3.titlepage.separator"/>
1449
<xsl:template match="*" mode="refsect3.titlepage.recto.mode">
1450
<!-- if an element isn't found in this mode, -->
1451
<!-- try the generic titlepage.mode -->
1452
<xsl:apply-templates select="." mode="titlepage.mode"/>
1455
<xsl:template match="*" mode="refsect3.titlepage.verso.mode">
1456
<!-- if an element isn't found in this mode, -->
1457
<!-- try the generic titlepage.mode -->
1458
<xsl:apply-templates select="." mode="titlepage.mode"/>
1461
<xsl:template match="d:title" mode="refsect3.titlepage.recto.auto.mode">
1462
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="refsect3.titlepage.recto.style" font-family="{$title.fontset}">
1463
<xsl:apply-templates select="." mode="refsect3.titlepage.recto.mode"/>
1467
<xsl:template name="dedication.titlepage.recto">
1468
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="dedication.titlepage.recto.style" margin-left="{$title.margin.left}" font-size="24.8832pt" font-family="{$title.fontset}" font-weight="bold">
1469
<xsl:call-template name="component.title">
1470
<xsl:with-param name="node" select="ancestor-or-self::d:dedication[1]"/>
1471
</xsl:call-template></fo:block>
1473
<xsl:when test="d:dedicationinfo/d:subtitle">
1474
<xsl:apply-templates mode="dedication.titlepage.recto.auto.mode" select="d:dedicationinfo/d:subtitle"/>
1476
<xsl:when test="d:docinfo/d:subtitle">
1477
<xsl:apply-templates mode="dedication.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
1479
<xsl:when test="d:info/d:subtitle">
1480
<xsl:apply-templates mode="dedication.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
1482
<xsl:when test="d:subtitle">
1483
<xsl:apply-templates mode="dedication.titlepage.recto.auto.mode" select="d:subtitle"/>
1489
<xsl:template name="dedication.titlepage.verso">
1492
<xsl:template name="dedication.titlepage.separator">
1495
<xsl:template name="dedication.titlepage.before.recto">
1498
<xsl:template name="dedication.titlepage.before.verso">
1501
<xsl:template name="dedication.titlepage">
1502
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
1503
<xsl:variable name="recto.content">
1504
<xsl:call-template name="dedication.titlepage.before.recto"/>
1505
<xsl:call-template name="dedication.titlepage.recto"/>
1507
<xsl:variable name="recto.elements.count">
1509
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1510
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1511
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1512
<xsl:otherwise>1</xsl:otherwise>
1515
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
1516
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
1518
<xsl:variable name="verso.content">
1519
<xsl:call-template name="dedication.titlepage.before.verso"/>
1520
<xsl:call-template name="dedication.titlepage.verso"/>
1522
<xsl:variable name="verso.elements.count">
1524
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1525
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1526
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1527
<xsl:otherwise>1</xsl:otherwise>
1530
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
1531
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
1533
<xsl:call-template name="dedication.titlepage.separator"/>
1537
<xsl:template match="*" mode="dedication.titlepage.recto.mode">
1538
<!-- if an element isn't found in this mode, -->
1539
<!-- try the generic titlepage.mode -->
1540
<xsl:apply-templates select="." mode="titlepage.mode"/>
1543
<xsl:template match="*" mode="dedication.titlepage.verso.mode">
1544
<!-- if an element isn't found in this mode, -->
1545
<!-- try the generic titlepage.mode -->
1546
<xsl:apply-templates select="." mode="titlepage.mode"/>
1549
<xsl:template match="d:subtitle" mode="dedication.titlepage.recto.auto.mode">
1550
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="dedication.titlepage.recto.style" font-family="{$title.fontset}">
1551
<xsl:apply-templates select="." mode="dedication.titlepage.recto.mode"/>
1555
<xsl:template name="acknowledgements.titlepage.recto">
1556
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="acknowledgements.titlepage.recto.style" margin-left="{$title.margin.left}" font-size="24.8832pt" font-family="{$title.fontset}" font-weight="bold">
1557
<xsl:call-template name="component.title">
1558
<xsl:with-param name="node" select="ancestor-or-self::d:acknowledgements[1]"/>
1559
</xsl:call-template></fo:block>
1561
<xsl:when test="d:acknowledgementsinfo/d:subtitle">
1562
<xsl:apply-templates mode="acknowledgements.titlepage.recto.auto.mode" select="d:acknowledgementsinfo/d:subtitle"/>
1564
<xsl:when test="d:docinfo/d:subtitle">
1565
<xsl:apply-templates mode="acknowledgements.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
1567
<xsl:when test="d:info/d:subtitle">
1568
<xsl:apply-templates mode="acknowledgements.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
1570
<xsl:when test="d:subtitle">
1571
<xsl:apply-templates mode="acknowledgements.titlepage.recto.auto.mode" select="d:subtitle"/>
1577
<xsl:template name="acknowledgements.titlepage.verso">
1580
<xsl:template name="acknowledgements.titlepage.separator">
1583
<xsl:template name="acknowledgements.titlepage.before.recto">
1586
<xsl:template name="acknowledgements.titlepage.before.verso">
1589
<xsl:template name="acknowledgements.titlepage">
1590
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
1591
<xsl:variable name="recto.content">
1592
<xsl:call-template name="acknowledgements.titlepage.before.recto"/>
1593
<xsl:call-template name="acknowledgements.titlepage.recto"/>
1595
<xsl:variable name="recto.elements.count">
1597
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1598
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1599
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1600
<xsl:otherwise>1</xsl:otherwise>
1603
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
1604
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
1606
<xsl:variable name="verso.content">
1607
<xsl:call-template name="acknowledgements.titlepage.before.verso"/>
1608
<xsl:call-template name="acknowledgements.titlepage.verso"/>
1610
<xsl:variable name="verso.elements.count">
1612
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1613
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1614
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1615
<xsl:otherwise>1</xsl:otherwise>
1618
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
1619
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
1621
<xsl:call-template name="acknowledgements.titlepage.separator"/>
1625
<xsl:template match="*" mode="acknowledgements.titlepage.recto.mode">
1626
<!-- if an element isn't found in this mode, -->
1627
<!-- try the generic titlepage.mode -->
1628
<xsl:apply-templates select="." mode="titlepage.mode"/>
1631
<xsl:template match="*" mode="acknowledgements.titlepage.verso.mode">
1632
<!-- if an element isn't found in this mode, -->
1633
<!-- try the generic titlepage.mode -->
1634
<xsl:apply-templates select="." mode="titlepage.mode"/>
1637
<xsl:template match="d:subtitle" mode="acknowledgements.titlepage.recto.auto.mode">
1638
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="acknowledgements.titlepage.recto.style" font-family="{$title.fontset}">
1639
<xsl:apply-templates select="." mode="acknowledgements.titlepage.recto.mode"/>
1643
<xsl:template name="preface.titlepage.recto">
1644
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style" margin-left="{$title.margin.left}" font-size="24.8832pt" font-family="{$title.fontset}" font-weight="bold">
1645
<xsl:call-template name="component.title">
1646
<xsl:with-param name="node" select="ancestor-or-self::d:preface[1]"/>
1647
</xsl:call-template></fo:block>
1649
<xsl:when test="d:prefaceinfo/d:subtitle">
1650
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:subtitle"/>
1652
<xsl:when test="d:docinfo/d:subtitle">
1653
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
1655
<xsl:when test="d:info/d:subtitle">
1656
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
1658
<xsl:when test="d:subtitle">
1659
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:subtitle"/>
1663
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:corpauthor"/>
1664
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:corpauthor"/>
1665
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
1666
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:authorgroup"/>
1667
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:authorgroup"/>
1668
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
1669
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:author"/>
1670
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:author"/>
1671
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:author"/>
1672
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:othercredit"/>
1673
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:othercredit"/>
1674
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
1675
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:releaseinfo"/>
1676
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:releaseinfo"/>
1677
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
1678
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:copyright"/>
1679
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:copyright"/>
1680
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
1681
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:legalnotice"/>
1682
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:legalnotice"/>
1683
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
1684
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:pubdate"/>
1685
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:pubdate"/>
1686
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
1687
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:revision"/>
1688
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:revision"/>
1689
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:revision"/>
1690
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:revhistory"/>
1691
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:revhistory"/>
1692
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
1693
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:abstract"/>
1694
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:abstract"/>
1695
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
1698
<xsl:template name="preface.titlepage.verso">
1701
<xsl:template name="preface.titlepage.separator">
1704
<xsl:template name="preface.titlepage.before.recto">
1707
<xsl:template name="preface.titlepage.before.verso">
1710
<xsl:template name="preface.titlepage">
1711
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
1712
<xsl:variable name="recto.content">
1713
<xsl:call-template name="preface.titlepage.before.recto"/>
1714
<xsl:call-template name="preface.titlepage.recto"/>
1716
<xsl:variable name="recto.elements.count">
1718
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1719
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1720
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1721
<xsl:otherwise>1</xsl:otherwise>
1724
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
1725
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
1727
<xsl:variable name="verso.content">
1728
<xsl:call-template name="preface.titlepage.before.verso"/>
1729
<xsl:call-template name="preface.titlepage.verso"/>
1731
<xsl:variable name="verso.elements.count">
1733
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1734
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1735
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1736
<xsl:otherwise>1</xsl:otherwise>
1739
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
1740
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
1742
<xsl:call-template name="preface.titlepage.separator"/>
1746
<xsl:template match="*" mode="preface.titlepage.recto.mode">
1747
<!-- if an element isn't found in this mode, -->
1748
<!-- try the generic titlepage.mode -->
1749
<xsl:apply-templates select="." mode="titlepage.mode"/>
1752
<xsl:template match="*" mode="preface.titlepage.verso.mode">
1753
<!-- if an element isn't found in this mode, -->
1754
<!-- try the generic titlepage.mode -->
1755
<xsl:apply-templates select="." mode="titlepage.mode"/>
1758
<xsl:template match="d:subtitle" mode="preface.titlepage.recto.auto.mode">
1759
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style" font-family="{$title.fontset}">
1760
<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1764
<xsl:template match="d:corpauthor" mode="preface.titlepage.recto.auto.mode">
1765
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style">
1766
<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1770
<xsl:template match="d:authorgroup" mode="preface.titlepage.recto.auto.mode">
1771
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style">
1772
<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1776
<xsl:template match="d:author" mode="preface.titlepage.recto.auto.mode">
1777
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style">
1778
<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1782
<xsl:template match="d:othercredit" mode="preface.titlepage.recto.auto.mode">
1783
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style">
1784
<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1788
<xsl:template match="d:releaseinfo" mode="preface.titlepage.recto.auto.mode">
1789
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style">
1790
<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1794
<xsl:template match="d:copyright" mode="preface.titlepage.recto.auto.mode">
1795
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style">
1796
<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1800
<xsl:template match="d:legalnotice" mode="preface.titlepage.recto.auto.mode">
1801
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style">
1802
<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1806
<xsl:template match="d:pubdate" mode="preface.titlepage.recto.auto.mode">
1807
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style">
1808
<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1812
<xsl:template match="d:revision" mode="preface.titlepage.recto.auto.mode">
1813
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style">
1814
<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1818
<xsl:template match="d:revhistory" mode="preface.titlepage.recto.auto.mode">
1819
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style">
1820
<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1824
<xsl:template match="d:abstract" mode="preface.titlepage.recto.auto.mode">
1825
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style">
1826
<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1830
<xsl:template name="chapter.titlepage.recto">
1832
<xsl:when test="d:chapterinfo/d:title">
1833
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:title"/>
1835
<xsl:when test="d:docinfo/d:title">
1836
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
1838
<xsl:when test="d:info/d:title">
1839
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:title"/>
1841
<xsl:when test="d:title">
1842
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:title"/>
1847
<xsl:when test="d:chapterinfo/d:subtitle">
1848
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:subtitle"/>
1850
<xsl:when test="d:docinfo/d:subtitle">
1851
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
1853
<xsl:when test="d:info/d:subtitle">
1854
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
1856
<xsl:when test="d:subtitle">
1857
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:subtitle"/>
1861
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:corpauthor"/>
1862
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:corpauthor"/>
1863
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
1864
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:authorgroup"/>
1865
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:authorgroup"/>
1866
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
1867
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:author"/>
1868
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:author"/>
1869
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:author"/>
1870
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:othercredit"/>
1871
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:othercredit"/>
1872
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
1873
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:releaseinfo"/>
1874
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:releaseinfo"/>
1875
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
1876
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:copyright"/>
1877
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:copyright"/>
1878
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
1879
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:legalnotice"/>
1880
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:legalnotice"/>
1881
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
1882
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:pubdate"/>
1883
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:pubdate"/>
1884
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
1885
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:revision"/>
1886
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:revision"/>
1887
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:revision"/>
1888
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:revhistory"/>
1889
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:revhistory"/>
1890
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
1891
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:abstract"/>
1892
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:abstract"/>
1893
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
1896
<xsl:template name="chapter.titlepage.verso">
1899
<xsl:template name="chapter.titlepage.separator">
1902
<xsl:template name="chapter.titlepage.before.recto">
1905
<xsl:template name="chapter.titlepage.before.verso">
1908
<xsl:template name="chapter.titlepage">
1909
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" font-family="{$title.fontset}">
1910
<xsl:variable name="recto.content">
1911
<xsl:call-template name="chapter.titlepage.before.recto"/>
1912
<xsl:call-template name="chapter.titlepage.recto"/>
1914
<xsl:variable name="recto.elements.count">
1916
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1917
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1918
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1919
<xsl:otherwise>1</xsl:otherwise>
1922
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
1923
<fo:block margin-left="{$title.margin.left}"><xsl:copy-of select="$recto.content"/></fo:block>
1925
<xsl:variable name="verso.content">
1926
<xsl:call-template name="chapter.titlepage.before.verso"/>
1927
<xsl:call-template name="chapter.titlepage.verso"/>
1929
<xsl:variable name="verso.elements.count">
1931
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1932
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1933
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1934
<xsl:otherwise>1</xsl:otherwise>
1937
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
1938
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
1940
<xsl:call-template name="chapter.titlepage.separator"/>
1944
<xsl:template match="*" mode="chapter.titlepage.recto.mode">
1945
<!-- if an element isn't found in this mode, -->
1946
<!-- try the generic titlepage.mode -->
1947
<xsl:apply-templates select="." mode="titlepage.mode"/>
1950
<xsl:template match="*" mode="chapter.titlepage.verso.mode">
1951
<!-- if an element isn't found in this mode, -->
1952
<!-- try the generic titlepage.mode -->
1953
<xsl:apply-templates select="." mode="titlepage.mode"/>
1956
<xsl:template match="d:title" mode="chapter.titlepage.recto.auto.mode">
1957
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style" font-size="24.8832pt" font-weight="bold">
1958
<xsl:call-template name="component.title">
1959
<xsl:with-param name="node" select="ancestor-or-self::d:chapter[1]"/>
1960
</xsl:call-template>
1964
<xsl:template match="d:subtitle" mode="chapter.titlepage.recto.auto.mode">
1965
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style" space-before="0.5em" font-style="italic" font-size="14.4pt" font-weight="bold">
1966
<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1970
<xsl:template match="d:corpauthor" mode="chapter.titlepage.recto.auto.mode">
1971
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style" space-before="0.5em" space-after="0.5em" font-size="14.4pt">
1972
<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1976
<xsl:template match="d:authorgroup" mode="chapter.titlepage.recto.auto.mode">
1977
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style" space-before="0.5em" space-after="0.5em" font-size="14.4pt">
1978
<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1982
<xsl:template match="d:author" mode="chapter.titlepage.recto.auto.mode">
1983
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style" space-before="0.5em" space-after="0.5em" font-size="14.4pt">
1984
<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1988
<xsl:template match="d:othercredit" mode="chapter.titlepage.recto.auto.mode">
1989
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style">
1990
<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1994
<xsl:template match="d:releaseinfo" mode="chapter.titlepage.recto.auto.mode">
1995
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style">
1996
<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
2000
<xsl:template match="d:copyright" mode="chapter.titlepage.recto.auto.mode">
2001
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style">
2002
<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
2006
<xsl:template match="d:legalnotice" mode="chapter.titlepage.recto.auto.mode">
2007
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style">
2008
<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
2012
<xsl:template match="d:pubdate" mode="chapter.titlepage.recto.auto.mode">
2013
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style">
2014
<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
2018
<xsl:template match="d:revision" mode="chapter.titlepage.recto.auto.mode">
2019
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style">
2020
<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
2024
<xsl:template match="d:revhistory" mode="chapter.titlepage.recto.auto.mode">
2025
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style">
2026
<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
2030
<xsl:template match="d:abstract" mode="chapter.titlepage.recto.auto.mode">
2031
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style">
2032
<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
2036
<xsl:template name="appendix.titlepage.recto">
2038
<xsl:when test="d:appendixinfo/d:title">
2039
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:title"/>
2041
<xsl:when test="d:docinfo/d:title">
2042
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
2044
<xsl:when test="d:info/d:title">
2045
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:title"/>
2047
<xsl:when test="d:title">
2048
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:title"/>
2053
<xsl:when test="d:appendixinfo/d:subtitle">
2054
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:subtitle"/>
2056
<xsl:when test="d:docinfo/d:subtitle">
2057
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
2059
<xsl:when test="d:info/d:subtitle">
2060
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
2062
<xsl:when test="d:subtitle">
2063
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:subtitle"/>
2067
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:corpauthor"/>
2068
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:corpauthor"/>
2069
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
2070
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:authorgroup"/>
2071
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:authorgroup"/>
2072
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
2073
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:author"/>
2074
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:author"/>
2075
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:author"/>
2076
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:othercredit"/>
2077
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:othercredit"/>
2078
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
2079
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:releaseinfo"/>
2080
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:releaseinfo"/>
2081
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
2082
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:copyright"/>
2083
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:copyright"/>
2084
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
2085
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:legalnotice"/>
2086
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:legalnotice"/>
2087
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
2088
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:pubdate"/>
2089
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:pubdate"/>
2090
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
2091
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:revision"/>
2092
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:revision"/>
2093
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:revision"/>
2094
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:revhistory"/>
2095
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:revhistory"/>
2096
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
2097
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:abstract"/>
2098
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:abstract"/>
2099
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
2102
<xsl:template name="appendix.titlepage.verso">
2105
<xsl:template name="appendix.titlepage.separator">
2108
<xsl:template name="appendix.titlepage.before.recto">
2111
<xsl:template name="appendix.titlepage.before.verso">
2114
<xsl:template name="appendix.titlepage">
2115
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
2116
<xsl:variable name="recto.content">
2117
<xsl:call-template name="appendix.titlepage.before.recto"/>
2118
<xsl:call-template name="appendix.titlepage.recto"/>
2120
<xsl:variable name="recto.elements.count">
2122
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2123
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2124
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2125
<xsl:otherwise>1</xsl:otherwise>
2128
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
2129
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
2131
<xsl:variable name="verso.content">
2132
<xsl:call-template name="appendix.titlepage.before.verso"/>
2133
<xsl:call-template name="appendix.titlepage.verso"/>
2135
<xsl:variable name="verso.elements.count">
2137
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2138
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2139
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2140
<xsl:otherwise>1</xsl:otherwise>
2143
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
2144
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
2146
<xsl:call-template name="appendix.titlepage.separator"/>
2150
<xsl:template match="*" mode="appendix.titlepage.recto.mode">
2151
<!-- if an element isn't found in this mode, -->
2152
<!-- try the generic titlepage.mode -->
2153
<xsl:apply-templates select="." mode="titlepage.mode"/>
2156
<xsl:template match="*" mode="appendix.titlepage.verso.mode">
2157
<!-- if an element isn't found in this mode, -->
2158
<!-- try the generic titlepage.mode -->
2159
<xsl:apply-templates select="." mode="titlepage.mode"/>
2162
<xsl:template match="d:title" mode="appendix.titlepage.recto.auto.mode">
2163
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style" margin-left="{$title.margin.left}" font-size="24.8832pt" font-weight="bold" font-family="{$title.fontset}">
2164
<xsl:call-template name="component.title">
2165
<xsl:with-param name="node" select="ancestor-or-self::d:appendix[1]"/>
2166
</xsl:call-template>
2170
<xsl:template match="d:subtitle" mode="appendix.titlepage.recto.auto.mode">
2171
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style" font-family="{$title.fontset}">
2172
<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
2176
<xsl:template match="d:corpauthor" mode="appendix.titlepage.recto.auto.mode">
2177
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style">
2178
<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
2182
<xsl:template match="d:authorgroup" mode="appendix.titlepage.recto.auto.mode">
2183
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style">
2184
<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
2188
<xsl:template match="d:author" mode="appendix.titlepage.recto.auto.mode">
2189
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style">
2190
<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
2194
<xsl:template match="d:othercredit" mode="appendix.titlepage.recto.auto.mode">
2195
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style">
2196
<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
2200
<xsl:template match="d:releaseinfo" mode="appendix.titlepage.recto.auto.mode">
2201
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style">
2202
<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
2206
<xsl:template match="d:copyright" mode="appendix.titlepage.recto.auto.mode">
2207
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style">
2208
<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
2212
<xsl:template match="d:legalnotice" mode="appendix.titlepage.recto.auto.mode">
2213
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style">
2214
<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
2218
<xsl:template match="d:pubdate" mode="appendix.titlepage.recto.auto.mode">
2219
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style">
2220
<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
2224
<xsl:template match="d:revision" mode="appendix.titlepage.recto.auto.mode">
2225
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style">
2226
<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
2230
<xsl:template match="d:revhistory" mode="appendix.titlepage.recto.auto.mode">
2231
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style">
2232
<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
2236
<xsl:template match="d:abstract" mode="appendix.titlepage.recto.auto.mode">
2237
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style">
2238
<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
2242
<xsl:template name="section.titlepage.recto">
2244
<xsl:when test="d:sectioninfo/d:title">
2245
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:title"/>
2247
<xsl:when test="d:info/d:title">
2248
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:title"/>
2250
<xsl:when test="d:title">
2251
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:title"/>
2256
<xsl:when test="d:sectioninfo/d:subtitle">
2257
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:subtitle"/>
2259
<xsl:when test="d:info/d:subtitle">
2260
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
2262
<xsl:when test="d:subtitle">
2263
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:subtitle"/>
2267
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:corpauthor"/>
2268
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
2269
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:authorgroup"/>
2270
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
2271
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:author"/>
2272
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:author"/>
2273
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:othercredit"/>
2274
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
2275
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:releaseinfo"/>
2276
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
2277
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:copyright"/>
2278
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
2279
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:legalnotice"/>
2280
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
2281
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:pubdate"/>
2282
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
2283
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:revision"/>
2284
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:revision"/>
2285
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:revhistory"/>
2286
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
2287
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:abstract"/>
2288
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
2291
<xsl:template name="section.titlepage.verso">
2294
<xsl:template name="section.titlepage.separator">
2297
<xsl:template name="section.titlepage.before.recto">
2300
<xsl:template name="section.titlepage.before.verso">
2303
<xsl:template name="section.titlepage">
2304
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
2305
<xsl:variable name="recto.content">
2306
<xsl:call-template name="section.titlepage.before.recto"/>
2307
<xsl:call-template name="section.titlepage.recto"/>
2309
<xsl:variable name="recto.elements.count">
2311
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2312
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2313
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2314
<xsl:otherwise>1</xsl:otherwise>
2317
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
2318
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
2320
<xsl:variable name="verso.content">
2321
<xsl:call-template name="section.titlepage.before.verso"/>
2322
<xsl:call-template name="section.titlepage.verso"/>
2324
<xsl:variable name="verso.elements.count">
2326
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2327
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2328
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2329
<xsl:otherwise>1</xsl:otherwise>
2332
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
2333
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
2335
<xsl:call-template name="section.titlepage.separator"/>
2339
<xsl:template match="*" mode="section.titlepage.recto.mode">
2340
<!-- if an element isn't found in this mode, -->
2341
<!-- try the generic titlepage.mode -->
2342
<xsl:apply-templates select="." mode="titlepage.mode"/>
2345
<xsl:template match="*" mode="section.titlepage.verso.mode">
2346
<!-- if an element isn't found in this mode, -->
2347
<!-- try the generic titlepage.mode -->
2348
<xsl:apply-templates select="." mode="titlepage.mode"/>
2351
<xsl:template match="d:title" mode="section.titlepage.recto.auto.mode">
2352
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style" margin-left="{$title.margin.left}" font-family="{$title.fontset}">
2353
<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2357
<xsl:template match="d:subtitle" mode="section.titlepage.recto.auto.mode">
2358
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style" font-family="{$title.fontset}">
2359
<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2363
<xsl:template match="d:corpauthor" mode="section.titlepage.recto.auto.mode">
2364
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style">
2365
<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2369
<xsl:template match="d:authorgroup" mode="section.titlepage.recto.auto.mode">
2370
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style">
2371
<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2375
<xsl:template match="d:author" mode="section.titlepage.recto.auto.mode">
2376
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style">
2377
<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2381
<xsl:template match="d:othercredit" mode="section.titlepage.recto.auto.mode">
2382
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style">
2383
<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2387
<xsl:template match="d:releaseinfo" mode="section.titlepage.recto.auto.mode">
2388
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style">
2389
<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2393
<xsl:template match="d:copyright" mode="section.titlepage.recto.auto.mode">
2394
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style">
2395
<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2399
<xsl:template match="d:legalnotice" mode="section.titlepage.recto.auto.mode">
2400
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style">
2401
<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2405
<xsl:template match="d:pubdate" mode="section.titlepage.recto.auto.mode">
2406
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style">
2407
<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2411
<xsl:template match="d:revision" mode="section.titlepage.recto.auto.mode">
2412
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style">
2413
<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2417
<xsl:template match="d:revhistory" mode="section.titlepage.recto.auto.mode">
2418
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style">
2419
<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2423
<xsl:template match="d:abstract" mode="section.titlepage.recto.auto.mode">
2424
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style">
2425
<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2429
<xsl:template name="sect1.titlepage.recto">
2431
<xsl:when test="d:sect1info/d:title">
2432
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:title"/>
2434
<xsl:when test="d:info/d:title">
2435
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:title"/>
2437
<xsl:when test="d:title">
2438
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:title"/>
2443
<xsl:when test="d:sect1info/d:subtitle">
2444
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:subtitle"/>
2446
<xsl:when test="d:info/d:subtitle">
2447
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
2449
<xsl:when test="d:subtitle">
2450
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:subtitle"/>
2454
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:corpauthor"/>
2455
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
2456
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:authorgroup"/>
2457
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
2458
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:author"/>
2459
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:author"/>
2460
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:othercredit"/>
2461
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
2462
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:releaseinfo"/>
2463
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
2464
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:copyright"/>
2465
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
2466
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:legalnotice"/>
2467
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
2468
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:pubdate"/>
2469
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
2470
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:revision"/>
2471
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:revision"/>
2472
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:revhistory"/>
2473
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
2474
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:abstract"/>
2475
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
2478
<xsl:template name="sect1.titlepage.verso">
2481
<xsl:template name="sect1.titlepage.separator">
2484
<xsl:template name="sect1.titlepage.before.recto">
2487
<xsl:template name="sect1.titlepage.before.verso">
2490
<xsl:template name="sect1.titlepage">
2491
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
2492
<xsl:variable name="recto.content">
2493
<xsl:call-template name="sect1.titlepage.before.recto"/>
2494
<xsl:call-template name="sect1.titlepage.recto"/>
2496
<xsl:variable name="recto.elements.count">
2498
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2499
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2500
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2501
<xsl:otherwise>1</xsl:otherwise>
2504
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
2505
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
2507
<xsl:variable name="verso.content">
2508
<xsl:call-template name="sect1.titlepage.before.verso"/>
2509
<xsl:call-template name="sect1.titlepage.verso"/>
2511
<xsl:variable name="verso.elements.count">
2513
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2514
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2515
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2516
<xsl:otherwise>1</xsl:otherwise>
2519
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
2520
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
2522
<xsl:call-template name="sect1.titlepage.separator"/>
2526
<xsl:template match="*" mode="sect1.titlepage.recto.mode">
2527
<!-- if an element isn't found in this mode, -->
2528
<!-- try the generic titlepage.mode -->
2529
<xsl:apply-templates select="." mode="titlepage.mode"/>
2532
<xsl:template match="*" mode="sect1.titlepage.verso.mode">
2533
<!-- if an element isn't found in this mode, -->
2534
<!-- try the generic titlepage.mode -->
2535
<xsl:apply-templates select="." mode="titlepage.mode"/>
2538
<xsl:template match="d:title" mode="sect1.titlepage.recto.auto.mode">
2539
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style" margin-left="{$title.margin.left}" font-family="{$title.fontset}">
2540
<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2544
<xsl:template match="d:subtitle" mode="sect1.titlepage.recto.auto.mode">
2545
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style" font-family="{$title.fontset}">
2546
<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2550
<xsl:template match="d:corpauthor" mode="sect1.titlepage.recto.auto.mode">
2551
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style">
2552
<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2556
<xsl:template match="d:authorgroup" mode="sect1.titlepage.recto.auto.mode">
2557
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style">
2558
<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2562
<xsl:template match="d:author" mode="sect1.titlepage.recto.auto.mode">
2563
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style">
2564
<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2568
<xsl:template match="d:othercredit" mode="sect1.titlepage.recto.auto.mode">
2569
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style">
2570
<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2574
<xsl:template match="d:releaseinfo" mode="sect1.titlepage.recto.auto.mode">
2575
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style">
2576
<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2580
<xsl:template match="d:copyright" mode="sect1.titlepage.recto.auto.mode">
2581
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style">
2582
<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2586
<xsl:template match="d:legalnotice" mode="sect1.titlepage.recto.auto.mode">
2587
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style">
2588
<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2592
<xsl:template match="d:pubdate" mode="sect1.titlepage.recto.auto.mode">
2593
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style">
2594
<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2598
<xsl:template match="d:revision" mode="sect1.titlepage.recto.auto.mode">
2599
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style">
2600
<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2604
<xsl:template match="d:revhistory" mode="sect1.titlepage.recto.auto.mode">
2605
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style">
2606
<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2610
<xsl:template match="d:abstract" mode="sect1.titlepage.recto.auto.mode">
2611
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style">
2612
<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2616
<xsl:template name="sect2.titlepage.recto">
2618
<xsl:when test="d:sect2info/d:title">
2619
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:title"/>
2621
<xsl:when test="d:info/d:title">
2622
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:title"/>
2624
<xsl:when test="d:title">
2625
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:title"/>
2630
<xsl:when test="d:sect2info/d:subtitle">
2631
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:subtitle"/>
2633
<xsl:when test="d:info/d:subtitle">
2634
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
2636
<xsl:when test="d:subtitle">
2637
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:subtitle"/>
2641
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:corpauthor"/>
2642
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
2643
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:authorgroup"/>
2644
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
2645
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:author"/>
2646
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:author"/>
2647
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:othercredit"/>
2648
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
2649
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:releaseinfo"/>
2650
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
2651
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:copyright"/>
2652
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
2653
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:legalnotice"/>
2654
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
2655
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:pubdate"/>
2656
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
2657
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:revision"/>
2658
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:revision"/>
2659
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:revhistory"/>
2660
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
2661
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:abstract"/>
2662
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
2665
<xsl:template name="sect2.titlepage.verso">
2668
<xsl:template name="sect2.titlepage.separator">
2671
<xsl:template name="sect2.titlepage.before.recto">
2674
<xsl:template name="sect2.titlepage.before.verso">
2677
<xsl:template name="sect2.titlepage">
2678
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
2679
<xsl:variable name="recto.content">
2680
<xsl:call-template name="sect2.titlepage.before.recto"/>
2681
<xsl:call-template name="sect2.titlepage.recto"/>
2683
<xsl:variable name="recto.elements.count">
2685
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2686
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2687
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2688
<xsl:otherwise>1</xsl:otherwise>
2691
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
2692
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
2694
<xsl:variable name="verso.content">
2695
<xsl:call-template name="sect2.titlepage.before.verso"/>
2696
<xsl:call-template name="sect2.titlepage.verso"/>
2698
<xsl:variable name="verso.elements.count">
2700
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2701
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2702
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2703
<xsl:otherwise>1</xsl:otherwise>
2706
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
2707
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
2709
<xsl:call-template name="sect2.titlepage.separator"/>
2713
<xsl:template match="*" mode="sect2.titlepage.recto.mode">
2714
<!-- if an element isn't found in this mode, -->
2715
<!-- try the generic titlepage.mode -->
2716
<xsl:apply-templates select="." mode="titlepage.mode"/>
2719
<xsl:template match="*" mode="sect2.titlepage.verso.mode">
2720
<!-- if an element isn't found in this mode, -->
2721
<!-- try the generic titlepage.mode -->
2722
<xsl:apply-templates select="." mode="titlepage.mode"/>
2725
<xsl:template match="d:title" mode="sect2.titlepage.recto.auto.mode">
2726
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style" margin-left="{$title.margin.left}" font-family="{$title.fontset}">
2727
<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2731
<xsl:template match="d:subtitle" mode="sect2.titlepage.recto.auto.mode">
2732
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style" font-family="{$title.fontset}">
2733
<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2737
<xsl:template match="d:corpauthor" mode="sect2.titlepage.recto.auto.mode">
2738
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style">
2739
<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2743
<xsl:template match="d:authorgroup" mode="sect2.titlepage.recto.auto.mode">
2744
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style">
2745
<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2749
<xsl:template match="d:author" mode="sect2.titlepage.recto.auto.mode">
2750
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style">
2751
<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2755
<xsl:template match="d:othercredit" mode="sect2.titlepage.recto.auto.mode">
2756
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style">
2757
<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2761
<xsl:template match="d:releaseinfo" mode="sect2.titlepage.recto.auto.mode">
2762
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style">
2763
<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2767
<xsl:template match="d:copyright" mode="sect2.titlepage.recto.auto.mode">
2768
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style">
2769
<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2773
<xsl:template match="d:legalnotice" mode="sect2.titlepage.recto.auto.mode">
2774
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style">
2775
<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2779
<xsl:template match="d:pubdate" mode="sect2.titlepage.recto.auto.mode">
2780
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style">
2781
<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2785
<xsl:template match="d:revision" mode="sect2.titlepage.recto.auto.mode">
2786
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style">
2787
<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2791
<xsl:template match="d:revhistory" mode="sect2.titlepage.recto.auto.mode">
2792
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style">
2793
<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2797
<xsl:template match="d:abstract" mode="sect2.titlepage.recto.auto.mode">
2798
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style">
2799
<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2803
<xsl:template name="sect3.titlepage.recto">
2805
<xsl:when test="d:sect3info/d:title">
2806
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:title"/>
2808
<xsl:when test="d:info/d:title">
2809
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:title"/>
2811
<xsl:when test="d:title">
2812
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:title"/>
2817
<xsl:when test="d:sect3info/d:subtitle">
2818
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:subtitle"/>
2820
<xsl:when test="d:info/d:subtitle">
2821
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
2823
<xsl:when test="d:subtitle">
2824
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:subtitle"/>
2828
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:corpauthor"/>
2829
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
2830
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:authorgroup"/>
2831
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
2832
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:author"/>
2833
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:author"/>
2834
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:othercredit"/>
2835
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
2836
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:releaseinfo"/>
2837
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
2838
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:copyright"/>
2839
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
2840
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:legalnotice"/>
2841
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
2842
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:pubdate"/>
2843
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
2844
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:revision"/>
2845
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:revision"/>
2846
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:revhistory"/>
2847
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
2848
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:abstract"/>
2849
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
2852
<xsl:template name="sect3.titlepage.verso">
2855
<xsl:template name="sect3.titlepage.separator">
2858
<xsl:template name="sect3.titlepage.before.recto">
2861
<xsl:template name="sect3.titlepage.before.verso">
2864
<xsl:template name="sect3.titlepage">
2865
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
2866
<xsl:variable name="recto.content">
2867
<xsl:call-template name="sect3.titlepage.before.recto"/>
2868
<xsl:call-template name="sect3.titlepage.recto"/>
2870
<xsl:variable name="recto.elements.count">
2872
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2873
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2874
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2875
<xsl:otherwise>1</xsl:otherwise>
2878
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
2879
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
2881
<xsl:variable name="verso.content">
2882
<xsl:call-template name="sect3.titlepage.before.verso"/>
2883
<xsl:call-template name="sect3.titlepage.verso"/>
2885
<xsl:variable name="verso.elements.count">
2887
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2888
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2889
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2890
<xsl:otherwise>1</xsl:otherwise>
2893
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
2894
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
2896
<xsl:call-template name="sect3.titlepage.separator"/>
2900
<xsl:template match="*" mode="sect3.titlepage.recto.mode">
2901
<!-- if an element isn't found in this mode, -->
2902
<!-- try the generic titlepage.mode -->
2903
<xsl:apply-templates select="." mode="titlepage.mode"/>
2906
<xsl:template match="*" mode="sect3.titlepage.verso.mode">
2907
<!-- if an element isn't found in this mode, -->
2908
<!-- try the generic titlepage.mode -->
2909
<xsl:apply-templates select="." mode="titlepage.mode"/>
2912
<xsl:template match="d:title" mode="sect3.titlepage.recto.auto.mode">
2913
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style" margin-left="{$title.margin.left}" font-family="{$title.fontset}">
2914
<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2918
<xsl:template match="d:subtitle" mode="sect3.titlepage.recto.auto.mode">
2919
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style" font-family="{$title.fontset}">
2920
<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2924
<xsl:template match="d:corpauthor" mode="sect3.titlepage.recto.auto.mode">
2925
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style">
2926
<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2930
<xsl:template match="d:authorgroup" mode="sect3.titlepage.recto.auto.mode">
2931
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style">
2932
<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2936
<xsl:template match="d:author" mode="sect3.titlepage.recto.auto.mode">
2937
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style">
2938
<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2942
<xsl:template match="d:othercredit" mode="sect3.titlepage.recto.auto.mode">
2943
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style">
2944
<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2948
<xsl:template match="d:releaseinfo" mode="sect3.titlepage.recto.auto.mode">
2949
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style">
2950
<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2954
<xsl:template match="d:copyright" mode="sect3.titlepage.recto.auto.mode">
2955
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style">
2956
<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2960
<xsl:template match="d:legalnotice" mode="sect3.titlepage.recto.auto.mode">
2961
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style">
2962
<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2966
<xsl:template match="d:pubdate" mode="sect3.titlepage.recto.auto.mode">
2967
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style">
2968
<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2972
<xsl:template match="d:revision" mode="sect3.titlepage.recto.auto.mode">
2973
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style">
2974
<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2978
<xsl:template match="d:revhistory" mode="sect3.titlepage.recto.auto.mode">
2979
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style">
2980
<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2984
<xsl:template match="d:abstract" mode="sect3.titlepage.recto.auto.mode">
2985
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style">
2986
<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2990
<xsl:template name="sect4.titlepage.recto">
2992
<xsl:when test="d:sect4info/d:title">
2993
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:title"/>
2995
<xsl:when test="d:info/d:title">
2996
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:title"/>
2998
<xsl:when test="d:title">
2999
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:title"/>
3004
<xsl:when test="d:sect4info/d:subtitle">
3005
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:subtitle"/>
3007
<xsl:when test="d:info/d:subtitle">
3008
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
3010
<xsl:when test="d:subtitle">
3011
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:subtitle"/>
3015
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:corpauthor"/>
3016
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
3017
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:authorgroup"/>
3018
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
3019
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:author"/>
3020
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:author"/>
3021
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:othercredit"/>
3022
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
3023
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:releaseinfo"/>
3024
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
3025
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:copyright"/>
3026
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
3027
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:legalnotice"/>
3028
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
3029
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:pubdate"/>
3030
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
3031
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:revision"/>
3032
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:revision"/>
3033
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:revhistory"/>
3034
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
3035
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:abstract"/>
3036
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
3039
<xsl:template name="sect4.titlepage.verso">
3042
<xsl:template name="sect4.titlepage.separator">
3045
<xsl:template name="sect4.titlepage.before.recto">
3048
<xsl:template name="sect4.titlepage.before.verso">
3051
<xsl:template name="sect4.titlepage">
3052
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
3053
<xsl:variable name="recto.content">
3054
<xsl:call-template name="sect4.titlepage.before.recto"/>
3055
<xsl:call-template name="sect4.titlepage.recto"/>
3057
<xsl:variable name="recto.elements.count">
3059
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3060
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3061
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3062
<xsl:otherwise>1</xsl:otherwise>
3065
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
3066
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
3068
<xsl:variable name="verso.content">
3069
<xsl:call-template name="sect4.titlepage.before.verso"/>
3070
<xsl:call-template name="sect4.titlepage.verso"/>
3072
<xsl:variable name="verso.elements.count">
3074
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3075
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3076
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3077
<xsl:otherwise>1</xsl:otherwise>
3080
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
3081
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
3083
<xsl:call-template name="sect4.titlepage.separator"/>
3087
<xsl:template match="*" mode="sect4.titlepage.recto.mode">
3088
<!-- if an element isn't found in this mode, -->
3089
<!-- try the generic titlepage.mode -->
3090
<xsl:apply-templates select="." mode="titlepage.mode"/>
3093
<xsl:template match="*" mode="sect4.titlepage.verso.mode">
3094
<!-- if an element isn't found in this mode, -->
3095
<!-- try the generic titlepage.mode -->
3096
<xsl:apply-templates select="." mode="titlepage.mode"/>
3099
<xsl:template match="d:title" mode="sect4.titlepage.recto.auto.mode">
3100
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style" margin-left="{$title.margin.left}" font-family="{$title.fontset}">
3101
<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
3105
<xsl:template match="d:subtitle" mode="sect4.titlepage.recto.auto.mode">
3106
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style" font-family="{$title.fontset}">
3107
<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
3111
<xsl:template match="d:corpauthor" mode="sect4.titlepage.recto.auto.mode">
3112
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style">
3113
<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
3117
<xsl:template match="d:authorgroup" mode="sect4.titlepage.recto.auto.mode">
3118
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style">
3119
<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
3123
<xsl:template match="d:author" mode="sect4.titlepage.recto.auto.mode">
3124
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style">
3125
<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
3129
<xsl:template match="d:othercredit" mode="sect4.titlepage.recto.auto.mode">
3130
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style">
3131
<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
3135
<xsl:template match="d:releaseinfo" mode="sect4.titlepage.recto.auto.mode">
3136
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style">
3137
<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
3141
<xsl:template match="d:copyright" mode="sect4.titlepage.recto.auto.mode">
3142
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style">
3143
<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
3147
<xsl:template match="d:legalnotice" mode="sect4.titlepage.recto.auto.mode">
3148
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style">
3149
<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
3153
<xsl:template match="d:pubdate" mode="sect4.titlepage.recto.auto.mode">
3154
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style">
3155
<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
3159
<xsl:template match="d:revision" mode="sect4.titlepage.recto.auto.mode">
3160
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style">
3161
<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
3165
<xsl:template match="d:revhistory" mode="sect4.titlepage.recto.auto.mode">
3166
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style">
3167
<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
3171
<xsl:template match="d:abstract" mode="sect4.titlepage.recto.auto.mode">
3172
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style">
3173
<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
3177
<xsl:template name="sect5.titlepage.recto">
3179
<xsl:when test="d:sect5info/d:title">
3180
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:title"/>
3182
<xsl:when test="d:info/d:title">
3183
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:title"/>
3185
<xsl:when test="d:title">
3186
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:title"/>
3191
<xsl:when test="d:sect5info/d:subtitle">
3192
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:subtitle"/>
3194
<xsl:when test="d:info/d:subtitle">
3195
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
3197
<xsl:when test="d:subtitle">
3198
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:subtitle"/>
3202
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:corpauthor"/>
3203
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
3204
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:authorgroup"/>
3205
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
3206
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:author"/>
3207
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:author"/>
3208
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:othercredit"/>
3209
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
3210
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:releaseinfo"/>
3211
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
3212
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:copyright"/>
3213
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
3214
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:legalnotice"/>
3215
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
3216
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:pubdate"/>
3217
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
3218
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:revision"/>
3219
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:revision"/>
3220
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:revhistory"/>
3221
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
3222
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:abstract"/>
3223
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
3226
<xsl:template name="sect5.titlepage.verso">
3229
<xsl:template name="sect5.titlepage.separator">
3232
<xsl:template name="sect5.titlepage.before.recto">
3235
<xsl:template name="sect5.titlepage.before.verso">
3238
<xsl:template name="sect5.titlepage">
3239
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
3240
<xsl:variable name="recto.content">
3241
<xsl:call-template name="sect5.titlepage.before.recto"/>
3242
<xsl:call-template name="sect5.titlepage.recto"/>
3244
<xsl:variable name="recto.elements.count">
3246
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3247
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3248
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3249
<xsl:otherwise>1</xsl:otherwise>
3252
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
3253
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
3255
<xsl:variable name="verso.content">
3256
<xsl:call-template name="sect5.titlepage.before.verso"/>
3257
<xsl:call-template name="sect5.titlepage.verso"/>
3259
<xsl:variable name="verso.elements.count">
3261
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3262
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3263
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3264
<xsl:otherwise>1</xsl:otherwise>
3267
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
3268
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
3270
<xsl:call-template name="sect5.titlepage.separator"/>
3274
<xsl:template match="*" mode="sect5.titlepage.recto.mode">
3275
<!-- if an element isn't found in this mode, -->
3276
<!-- try the generic titlepage.mode -->
3277
<xsl:apply-templates select="." mode="titlepage.mode"/>
3280
<xsl:template match="*" mode="sect5.titlepage.verso.mode">
3281
<!-- if an element isn't found in this mode, -->
3282
<!-- try the generic titlepage.mode -->
3283
<xsl:apply-templates select="." mode="titlepage.mode"/>
3286
<xsl:template match="d:title" mode="sect5.titlepage.recto.auto.mode">
3287
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style" margin-left="{$title.margin.left}" font-family="{$title.fontset}">
3288
<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3292
<xsl:template match="d:subtitle" mode="sect5.titlepage.recto.auto.mode">
3293
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style" font-family="{$title.fontset}">
3294
<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3298
<xsl:template match="d:corpauthor" mode="sect5.titlepage.recto.auto.mode">
3299
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style">
3300
<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3304
<xsl:template match="d:authorgroup" mode="sect5.titlepage.recto.auto.mode">
3305
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style">
3306
<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3310
<xsl:template match="d:author" mode="sect5.titlepage.recto.auto.mode">
3311
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style">
3312
<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3316
<xsl:template match="d:othercredit" mode="sect5.titlepage.recto.auto.mode">
3317
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style">
3318
<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3322
<xsl:template match="d:releaseinfo" mode="sect5.titlepage.recto.auto.mode">
3323
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style">
3324
<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3328
<xsl:template match="d:copyright" mode="sect5.titlepage.recto.auto.mode">
3329
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style">
3330
<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3334
<xsl:template match="d:legalnotice" mode="sect5.titlepage.recto.auto.mode">
3335
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style">
3336
<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3340
<xsl:template match="d:pubdate" mode="sect5.titlepage.recto.auto.mode">
3341
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style">
3342
<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3346
<xsl:template match="d:revision" mode="sect5.titlepage.recto.auto.mode">
3347
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style">
3348
<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3352
<xsl:template match="d:revhistory" mode="sect5.titlepage.recto.auto.mode">
3353
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style">
3354
<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3358
<xsl:template match="d:abstract" mode="sect5.titlepage.recto.auto.mode">
3359
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style">
3360
<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3364
<xsl:template name="simplesect.titlepage.recto">
3366
<xsl:when test="d:simplesectinfo/d:title">
3367
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:title"/>
3369
<xsl:when test="d:docinfo/d:title">
3370
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
3372
<xsl:when test="d:info/d:title">
3373
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:title"/>
3375
<xsl:when test="d:title">
3376
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:title"/>
3381
<xsl:when test="d:simplesectinfo/d:subtitle">
3382
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:subtitle"/>
3384
<xsl:when test="d:docinfo/d:subtitle">
3385
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
3387
<xsl:when test="d:info/d:subtitle">
3388
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
3390
<xsl:when test="d:subtitle">
3391
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:subtitle"/>
3395
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:corpauthor"/>
3396
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:corpauthor"/>
3397
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
3398
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:authorgroup"/>
3399
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:authorgroup"/>
3400
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
3401
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:author"/>
3402
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:author"/>
3403
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:author"/>
3404
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:othercredit"/>
3405
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:othercredit"/>
3406
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
3407
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:releaseinfo"/>
3408
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:releaseinfo"/>
3409
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
3410
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:copyright"/>
3411
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:copyright"/>
3412
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
3413
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:legalnotice"/>
3414
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:legalnotice"/>
3415
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
3416
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:pubdate"/>
3417
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:pubdate"/>
3418
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
3419
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:revision"/>
3420
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:revision"/>
3421
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:revision"/>
3422
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:revhistory"/>
3423
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:revhistory"/>
3424
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
3425
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:abstract"/>
3426
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:abstract"/>
3427
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
3430
<xsl:template name="simplesect.titlepage.verso">
3433
<xsl:template name="simplesect.titlepage.separator">
3436
<xsl:template name="simplesect.titlepage.before.recto">
3439
<xsl:template name="simplesect.titlepage.before.verso">
3442
<xsl:template name="simplesect.titlepage">
3443
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
3444
<xsl:variable name="recto.content">
3445
<xsl:call-template name="simplesect.titlepage.before.recto"/>
3446
<xsl:call-template name="simplesect.titlepage.recto"/>
3448
<xsl:variable name="recto.elements.count">
3450
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3451
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3452
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3453
<xsl:otherwise>1</xsl:otherwise>
3456
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
3457
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
3459
<xsl:variable name="verso.content">
3460
<xsl:call-template name="simplesect.titlepage.before.verso"/>
3461
<xsl:call-template name="simplesect.titlepage.verso"/>
3463
<xsl:variable name="verso.elements.count">
3465
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3466
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3467
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3468
<xsl:otherwise>1</xsl:otherwise>
3471
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
3472
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
3474
<xsl:call-template name="simplesect.titlepage.separator"/>
3478
<xsl:template match="*" mode="simplesect.titlepage.recto.mode">
3479
<!-- if an element isn't found in this mode, -->
3480
<!-- try the generic titlepage.mode -->
3481
<xsl:apply-templates select="." mode="titlepage.mode"/>
3484
<xsl:template match="*" mode="simplesect.titlepage.verso.mode">
3485
<!-- if an element isn't found in this mode, -->
3486
<!-- try the generic titlepage.mode -->
3487
<xsl:apply-templates select="." mode="titlepage.mode"/>
3490
<xsl:template match="d:title" mode="simplesect.titlepage.recto.auto.mode">
3491
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style" margin-left="{$title.margin.left}" font-family="{$title.fontset}">
3492
<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3496
<xsl:template match="d:subtitle" mode="simplesect.titlepage.recto.auto.mode">
3497
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style" font-family="{$title.fontset}">
3498
<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3502
<xsl:template match="d:corpauthor" mode="simplesect.titlepage.recto.auto.mode">
3503
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3504
<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3508
<xsl:template match="d:authorgroup" mode="simplesect.titlepage.recto.auto.mode">
3509
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3510
<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3514
<xsl:template match="d:author" mode="simplesect.titlepage.recto.auto.mode">
3515
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3516
<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3520
<xsl:template match="d:othercredit" mode="simplesect.titlepage.recto.auto.mode">
3521
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3522
<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3526
<xsl:template match="d:releaseinfo" mode="simplesect.titlepage.recto.auto.mode">
3527
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3528
<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3532
<xsl:template match="d:copyright" mode="simplesect.titlepage.recto.auto.mode">
3533
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3534
<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3538
<xsl:template match="d:legalnotice" mode="simplesect.titlepage.recto.auto.mode">
3539
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3540
<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3544
<xsl:template match="d:pubdate" mode="simplesect.titlepage.recto.auto.mode">
3545
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3546
<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3550
<xsl:template match="d:revision" mode="simplesect.titlepage.recto.auto.mode">
3551
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3552
<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3556
<xsl:template match="d:revhistory" mode="simplesect.titlepage.recto.auto.mode">
3557
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3558
<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3562
<xsl:template match="d:abstract" mode="simplesect.titlepage.recto.auto.mode">
3563
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3564
<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3568
<xsl:template name="bibliography.titlepage.recto">
3569
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="bibliography.titlepage.recto.style" margin-left="{$title.margin.left}" font-size="24.8832pt" font-family="{$title.fontset}" font-weight="bold">
3570
<xsl:call-template name="component.title">
3571
<xsl:with-param name="node" select="ancestor-or-self::d:bibliography[1]"/>
3572
</xsl:call-template></fo:block>
3574
<xsl:when test="d:bibliographyinfo/d:subtitle">
3575
<xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="d:bibliographyinfo/d:subtitle"/>
3577
<xsl:when test="d:docinfo/d:subtitle">
3578
<xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
3580
<xsl:when test="d:info/d:subtitle">
3581
<xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
3583
<xsl:when test="d:subtitle">
3584
<xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="d:subtitle"/>
3590
<xsl:template name="bibliography.titlepage.verso">
3593
<xsl:template name="bibliography.titlepage.separator">
3596
<xsl:template name="bibliography.titlepage.before.recto">
3599
<xsl:template name="bibliography.titlepage.before.verso">
3602
<xsl:template name="bibliography.titlepage">
3603
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
3604
<xsl:variable name="recto.content">
3605
<xsl:call-template name="bibliography.titlepage.before.recto"/>
3606
<xsl:call-template name="bibliography.titlepage.recto"/>
3608
<xsl:variable name="recto.elements.count">
3610
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3611
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3612
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3613
<xsl:otherwise>1</xsl:otherwise>
3616
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
3617
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
3619
<xsl:variable name="verso.content">
3620
<xsl:call-template name="bibliography.titlepage.before.verso"/>
3621
<xsl:call-template name="bibliography.titlepage.verso"/>
3623
<xsl:variable name="verso.elements.count">
3625
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3626
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3627
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3628
<xsl:otherwise>1</xsl:otherwise>
3631
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
3632
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
3634
<xsl:call-template name="bibliography.titlepage.separator"/>
3638
<xsl:template match="*" mode="bibliography.titlepage.recto.mode">
3639
<!-- if an element isn't found in this mode, -->
3640
<!-- try the generic titlepage.mode -->
3641
<xsl:apply-templates select="." mode="titlepage.mode"/>
3644
<xsl:template match="*" mode="bibliography.titlepage.verso.mode">
3645
<!-- if an element isn't found in this mode, -->
3646
<!-- try the generic titlepage.mode -->
3647
<xsl:apply-templates select="." mode="titlepage.mode"/>
3650
<xsl:template match="d:subtitle" mode="bibliography.titlepage.recto.auto.mode">
3651
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="bibliography.titlepage.recto.style" font-family="{$title.fontset}">
3652
<xsl:apply-templates select="." mode="bibliography.titlepage.recto.mode"/>
3656
<xsl:template name="bibliodiv.titlepage.recto">
3658
<xsl:when test="d:bibliodivinfo/d:title">
3659
<xsl:apply-templates mode="bibliodiv.titlepage.recto.auto.mode" select="d:bibliodivinfo/d:title"/>
3661
<xsl:when test="d:docinfo/d:title">
3662
<xsl:apply-templates mode="bibliodiv.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
3664
<xsl:when test="d:info/d:title">
3665
<xsl:apply-templates mode="bibliodiv.titlepage.recto.auto.mode" select="d:info/d:title"/>
3667
<xsl:when test="d:title">
3668
<xsl:apply-templates mode="bibliodiv.titlepage.recto.auto.mode" select="d:title"/>
3673
<xsl:when test="d:bibliodivinfo/d:subtitle">
3674
<xsl:apply-templates mode="bibliodiv.titlepage.recto.auto.mode" select="d:bibliodivinfo/d:subtitle"/>
3676
<xsl:when test="d:docinfo/d:subtitle">
3677
<xsl:apply-templates mode="bibliodiv.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
3679
<xsl:when test="d:info/d:subtitle">
3680
<xsl:apply-templates mode="bibliodiv.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
3682
<xsl:when test="d:subtitle">
3683
<xsl:apply-templates mode="bibliodiv.titlepage.recto.auto.mode" select="d:subtitle"/>
3689
<xsl:template name="bibliodiv.titlepage.verso">
3692
<xsl:template name="bibliodiv.titlepage.separator">
3695
<xsl:template name="bibliodiv.titlepage.before.recto">
3698
<xsl:template name="bibliodiv.titlepage.before.verso">
3701
<xsl:template name="bibliodiv.titlepage">
3702
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
3703
<xsl:variable name="recto.content">
3704
<xsl:call-template name="bibliodiv.titlepage.before.recto"/>
3705
<xsl:call-template name="bibliodiv.titlepage.recto"/>
3707
<xsl:variable name="recto.elements.count">
3709
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3710
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3711
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3712
<xsl:otherwise>1</xsl:otherwise>
3715
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
3716
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
3718
<xsl:variable name="verso.content">
3719
<xsl:call-template name="bibliodiv.titlepage.before.verso"/>
3720
<xsl:call-template name="bibliodiv.titlepage.verso"/>
3722
<xsl:variable name="verso.elements.count">
3724
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3725
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3726
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3727
<xsl:otherwise>1</xsl:otherwise>
3730
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
3731
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
3733
<xsl:call-template name="bibliodiv.titlepage.separator"/>
3737
<xsl:template match="*" mode="bibliodiv.titlepage.recto.mode">
3738
<!-- if an element isn't found in this mode, -->
3739
<!-- try the generic titlepage.mode -->
3740
<xsl:apply-templates select="." mode="titlepage.mode"/>
3743
<xsl:template match="*" mode="bibliodiv.titlepage.verso.mode">
3744
<!-- if an element isn't found in this mode, -->
3745
<!-- try the generic titlepage.mode -->
3746
<xsl:apply-templates select="." mode="titlepage.mode"/>
3749
<xsl:template match="d:title" mode="bibliodiv.titlepage.recto.auto.mode">
3750
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="bibliodiv.titlepage.recto.style" margin-left="{$title.margin.left}" font-size="20.736pt" font-family="{$title.fontset}" font-weight="bold">
3751
<xsl:call-template name="component.title">
3752
<xsl:with-param name="node" select="ancestor-or-self::d:bibliodiv[1]"/>
3753
</xsl:call-template>
3757
<xsl:template match="d:subtitle" mode="bibliodiv.titlepage.recto.auto.mode">
3758
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="bibliodiv.titlepage.recto.style" font-family="{$title.fontset}">
3759
<xsl:apply-templates select="." mode="bibliodiv.titlepage.recto.mode"/>
3763
<xsl:template name="glossary.titlepage.recto">
3764
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="glossary.titlepage.recto.style" margin-left="{$title.margin.left}" font-size="24.8832pt" font-family="{$title.fontset}" font-weight="bold">
3765
<xsl:call-template name="component.title">
3766
<xsl:with-param name="node" select="ancestor-or-self::d:glossary[1]"/>
3767
</xsl:call-template></fo:block>
3769
<xsl:when test="d:glossaryinfo/d:subtitle">
3770
<xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="d:glossaryinfo/d:subtitle"/>
3772
<xsl:when test="d:docinfo/d:subtitle">
3773
<xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
3775
<xsl:when test="d:info/d:subtitle">
3776
<xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
3778
<xsl:when test="d:subtitle">
3779
<xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="d:subtitle"/>
3785
<xsl:template name="glossary.titlepage.verso">
3788
<xsl:template name="glossary.titlepage.separator">
3791
<xsl:template name="glossary.titlepage.before.recto">
3794
<xsl:template name="glossary.titlepage.before.verso">
3797
<xsl:template name="glossary.titlepage">
3798
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
3799
<xsl:variable name="recto.content">
3800
<xsl:call-template name="glossary.titlepage.before.recto"/>
3801
<xsl:call-template name="glossary.titlepage.recto"/>
3803
<xsl:variable name="recto.elements.count">
3805
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3806
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3807
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3808
<xsl:otherwise>1</xsl:otherwise>
3811
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
3812
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
3814
<xsl:variable name="verso.content">
3815
<xsl:call-template name="glossary.titlepage.before.verso"/>
3816
<xsl:call-template name="glossary.titlepage.verso"/>
3818
<xsl:variable name="verso.elements.count">
3820
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3821
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3822
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3823
<xsl:otherwise>1</xsl:otherwise>
3826
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
3827
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
3829
<xsl:call-template name="glossary.titlepage.separator"/>
3833
<xsl:template match="*" mode="glossary.titlepage.recto.mode">
3834
<!-- if an element isn't found in this mode, -->
3835
<!-- try the generic titlepage.mode -->
3836
<xsl:apply-templates select="." mode="titlepage.mode"/>
3839
<xsl:template match="*" mode="glossary.titlepage.verso.mode">
3840
<!-- if an element isn't found in this mode, -->
3841
<!-- try the generic titlepage.mode -->
3842
<xsl:apply-templates select="." mode="titlepage.mode"/>
3845
<xsl:template match="d:subtitle" mode="glossary.titlepage.recto.auto.mode">
3846
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="glossary.titlepage.recto.style" font-family="{$title.fontset}">
3847
<xsl:apply-templates select="." mode="glossary.titlepage.recto.mode"/>
3851
<xsl:template name="glossdiv.titlepage.recto">
3853
<xsl:when test="d:glossdivinfo/d:title">
3854
<xsl:apply-templates mode="glossdiv.titlepage.recto.auto.mode" select="d:glossdivinfo/d:title"/>
3856
<xsl:when test="d:docinfo/d:title">
3857
<xsl:apply-templates mode="glossdiv.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
3859
<xsl:when test="d:info/d:title">
3860
<xsl:apply-templates mode="glossdiv.titlepage.recto.auto.mode" select="d:info/d:title"/>
3862
<xsl:when test="d:title">
3863
<xsl:apply-templates mode="glossdiv.titlepage.recto.auto.mode" select="d:title"/>
3868
<xsl:when test="d:glossdivinfo/d:subtitle">
3869
<xsl:apply-templates mode="glossdiv.titlepage.recto.auto.mode" select="d:glossdivinfo/d:subtitle"/>
3871
<xsl:when test="d:docinfo/d:subtitle">
3872
<xsl:apply-templates mode="glossdiv.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
3874
<xsl:when test="d:info/d:subtitle">
3875
<xsl:apply-templates mode="glossdiv.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
3877
<xsl:when test="d:subtitle">
3878
<xsl:apply-templates mode="glossdiv.titlepage.recto.auto.mode" select="d:subtitle"/>
3884
<xsl:template name="glossdiv.titlepage.verso">
3887
<xsl:template name="glossdiv.titlepage.separator">
3890
<xsl:template name="glossdiv.titlepage.before.recto">
3893
<xsl:template name="glossdiv.titlepage.before.verso">
3896
<xsl:template name="glossdiv.titlepage">
3897
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
3898
<xsl:variable name="recto.content">
3899
<xsl:call-template name="glossdiv.titlepage.before.recto"/>
3900
<xsl:call-template name="glossdiv.titlepage.recto"/>
3902
<xsl:variable name="recto.elements.count">
3904
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3905
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3906
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3907
<xsl:otherwise>1</xsl:otherwise>
3910
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
3911
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
3913
<xsl:variable name="verso.content">
3914
<xsl:call-template name="glossdiv.titlepage.before.verso"/>
3915
<xsl:call-template name="glossdiv.titlepage.verso"/>
3917
<xsl:variable name="verso.elements.count">
3919
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3920
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3921
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3922
<xsl:otherwise>1</xsl:otherwise>
3925
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
3926
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
3928
<xsl:call-template name="glossdiv.titlepage.separator"/>
3932
<xsl:template match="*" mode="glossdiv.titlepage.recto.mode">
3933
<!-- if an element isn't found in this mode, -->
3934
<!-- try the generic titlepage.mode -->
3935
<xsl:apply-templates select="." mode="titlepage.mode"/>
3938
<xsl:template match="*" mode="glossdiv.titlepage.verso.mode">
3939
<!-- if an element isn't found in this mode, -->
3940
<!-- try the generic titlepage.mode -->
3941
<xsl:apply-templates select="." mode="titlepage.mode"/>
3944
<xsl:template match="d:title" mode="glossdiv.titlepage.recto.auto.mode">
3945
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="glossdiv.titlepage.recto.style" margin-left="{$title.margin.left}" font-size="20.736pt" font-family="{$title.fontset}" font-weight="bold">
3946
<xsl:call-template name="component.title">
3947
<xsl:with-param name="node" select="ancestor-or-self::d:glossdiv[1]"/>
3948
</xsl:call-template>
3952
<xsl:template match="d:subtitle" mode="glossdiv.titlepage.recto.auto.mode">
3953
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="glossdiv.titlepage.recto.style" font-family="{$title.fontset}">
3954
<xsl:apply-templates select="." mode="glossdiv.titlepage.recto.mode"/>
3958
<xsl:template name="index.titlepage.recto">
3959
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="index.titlepage.recto.style" margin-left="0pt" font-size="24.8832pt" font-family="{$title.fontset}" font-weight="bold">
3960
<xsl:call-template name="component.title">
3961
<xsl:with-param name="node" select="ancestor-or-self::d:index[1]"/>
3962
<xsl:with-param name="pagewide" select="1"/>
3963
</xsl:call-template></fo:block>
3965
<xsl:when test="d:indexinfo/d:subtitle">
3966
<xsl:apply-templates mode="index.titlepage.recto.auto.mode" select="d:indexinfo/d:subtitle"/>
3968
<xsl:when test="d:docinfo/d:subtitle">
3969
<xsl:apply-templates mode="index.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
3971
<xsl:when test="d:info/d:subtitle">
3972
<xsl:apply-templates mode="index.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
3974
<xsl:when test="d:subtitle">
3975
<xsl:apply-templates mode="index.titlepage.recto.auto.mode" select="d:subtitle"/>
3981
<xsl:template name="index.titlepage.verso">
3984
<xsl:template name="index.titlepage.separator">
3987
<xsl:template name="index.titlepage.before.recto">
3990
<xsl:template name="index.titlepage.before.verso">
3993
<xsl:template name="index.titlepage">
3994
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
3995
<xsl:variable name="recto.content">
3996
<xsl:call-template name="index.titlepage.before.recto"/>
3997
<xsl:call-template name="index.titlepage.recto"/>
3999
<xsl:variable name="recto.elements.count">
4001
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4002
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4003
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4004
<xsl:otherwise>1</xsl:otherwise>
4007
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
4008
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
4010
<xsl:variable name="verso.content">
4011
<xsl:call-template name="index.titlepage.before.verso"/>
4012
<xsl:call-template name="index.titlepage.verso"/>
4014
<xsl:variable name="verso.elements.count">
4016
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4017
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4018
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4019
<xsl:otherwise>1</xsl:otherwise>
4022
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
4023
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
4025
<xsl:call-template name="index.titlepage.separator"/>
4029
<xsl:template match="*" mode="index.titlepage.recto.mode">
4030
<!-- if an element isn't found in this mode, -->
4031
<!-- try the generic titlepage.mode -->
4032
<xsl:apply-templates select="." mode="titlepage.mode"/>
4035
<xsl:template match="*" mode="index.titlepage.verso.mode">
4036
<!-- if an element isn't found in this mode, -->
4037
<!-- try the generic titlepage.mode -->
4038
<xsl:apply-templates select="." mode="titlepage.mode"/>
4041
<xsl:template match="d:subtitle" mode="index.titlepage.recto.auto.mode">
4042
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="index.titlepage.recto.style" font-family="{$title.fontset}">
4043
<xsl:apply-templates select="." mode="index.titlepage.recto.mode"/>
4047
<xsl:template name="indexdiv.titlepage.recto">
4048
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="indexdiv.titlepage.recto.style">
4049
<xsl:call-template name="indexdiv.title">
4050
<xsl:with-param name="title" select="d:title"/>
4051
</xsl:call-template></fo:block>
4053
<xsl:when test="d:indexdivinfo/d:subtitle">
4054
<xsl:apply-templates mode="indexdiv.titlepage.recto.auto.mode" select="d:indexdivinfo/d:subtitle"/>
4056
<xsl:when test="d:docinfo/d:subtitle">
4057
<xsl:apply-templates mode="indexdiv.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
4059
<xsl:when test="d:info/d:subtitle">
4060
<xsl:apply-templates mode="indexdiv.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
4062
<xsl:when test="d:subtitle">
4063
<xsl:apply-templates mode="indexdiv.titlepage.recto.auto.mode" select="d:subtitle"/>
4069
<xsl:template name="indexdiv.titlepage.verso">
4072
<xsl:template name="indexdiv.titlepage.separator">
4075
<xsl:template name="indexdiv.titlepage.before.recto">
4078
<xsl:template name="indexdiv.titlepage.before.verso">
4081
<xsl:template name="indexdiv.titlepage">
4082
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
4083
<xsl:variable name="recto.content">
4084
<xsl:call-template name="indexdiv.titlepage.before.recto"/>
4085
<xsl:call-template name="indexdiv.titlepage.recto"/>
4087
<xsl:variable name="recto.elements.count">
4089
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4090
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4091
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4092
<xsl:otherwise>1</xsl:otherwise>
4095
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
4096
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
4098
<xsl:variable name="verso.content">
4099
<xsl:call-template name="indexdiv.titlepage.before.verso"/>
4100
<xsl:call-template name="indexdiv.titlepage.verso"/>
4102
<xsl:variable name="verso.elements.count">
4104
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4105
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4106
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4107
<xsl:otherwise>1</xsl:otherwise>
4110
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
4111
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
4113
<xsl:call-template name="indexdiv.titlepage.separator"/>
4117
<xsl:template match="*" mode="indexdiv.titlepage.recto.mode">
4118
<!-- if an element isn't found in this mode, -->
4119
<!-- try the generic titlepage.mode -->
4120
<xsl:apply-templates select="." mode="titlepage.mode"/>
4123
<xsl:template match="*" mode="indexdiv.titlepage.verso.mode">
4124
<!-- if an element isn't found in this mode, -->
4125
<!-- try the generic titlepage.mode -->
4126
<xsl:apply-templates select="." mode="titlepage.mode"/>
4129
<xsl:template match="d:subtitle" mode="indexdiv.titlepage.recto.auto.mode">
4130
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="indexdiv.titlepage.recto.style" font-family="{$title.fontset}">
4131
<xsl:apply-templates select="." mode="indexdiv.titlepage.recto.mode"/>
4135
<xsl:template name="setindex.titlepage.recto">
4136
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="setindex.titlepage.recto.style" margin-left="0pt" font-size="24.8832pt" font-family="{$title.fontset}" font-weight="bold">
4137
<xsl:call-template name="component.title">
4138
<xsl:with-param name="node" select="ancestor-or-self::d:setindex[1]"/>
4139
<xsl:with-param name="pagewide" select="1"/>
4140
</xsl:call-template></fo:block>
4142
<xsl:when test="d:setindexinfo/d:subtitle">
4143
<xsl:apply-templates mode="setindex.titlepage.recto.auto.mode" select="d:setindexinfo/d:subtitle"/>
4145
<xsl:when test="d:docinfo/d:subtitle">
4146
<xsl:apply-templates mode="setindex.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
4148
<xsl:when test="d:info/d:subtitle">
4149
<xsl:apply-templates mode="setindex.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
4151
<xsl:when test="d:subtitle">
4152
<xsl:apply-templates mode="setindex.titlepage.recto.auto.mode" select="d:subtitle"/>
4158
<xsl:template name="setindex.titlepage.verso">
4161
<xsl:template name="setindex.titlepage.separator">
4164
<xsl:template name="setindex.titlepage.before.recto">
4167
<xsl:template name="setindex.titlepage.before.verso">
4170
<xsl:template name="setindex.titlepage">
4171
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
4172
<xsl:variable name="recto.content">
4173
<xsl:call-template name="setindex.titlepage.before.recto"/>
4174
<xsl:call-template name="setindex.titlepage.recto"/>
4176
<xsl:variable name="recto.elements.count">
4178
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4179
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4180
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4181
<xsl:otherwise>1</xsl:otherwise>
4184
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
4185
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
4187
<xsl:variable name="verso.content">
4188
<xsl:call-template name="setindex.titlepage.before.verso"/>
4189
<xsl:call-template name="setindex.titlepage.verso"/>
4191
<xsl:variable name="verso.elements.count">
4193
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4194
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4195
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4196
<xsl:otherwise>1</xsl:otherwise>
4199
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
4200
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
4202
<xsl:call-template name="setindex.titlepage.separator"/>
4206
<xsl:template match="*" mode="setindex.titlepage.recto.mode">
4207
<!-- if an element isn't found in this mode, -->
4208
<!-- try the generic titlepage.mode -->
4209
<xsl:apply-templates select="." mode="titlepage.mode"/>
4212
<xsl:template match="*" mode="setindex.titlepage.verso.mode">
4213
<!-- if an element isn't found in this mode, -->
4214
<!-- try the generic titlepage.mode -->
4215
<xsl:apply-templates select="." mode="titlepage.mode"/>
4218
<xsl:template match="d:subtitle" mode="setindex.titlepage.recto.auto.mode">
4219
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="setindex.titlepage.recto.style" font-family="{$title.fontset}">
4220
<xsl:apply-templates select="." mode="setindex.titlepage.recto.mode"/>
4224
<xsl:template name="colophon.titlepage.recto">
4225
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="colophon.titlepage.recto.style" margin-left="{$title.margin.left}" font-size="24.8832pt" font-family="{$title.fontset}" font-weight="bold">
4226
<xsl:call-template name="component.title">
4227
<xsl:with-param name="node" select="ancestor-or-self::d:colophon[1]"/>
4228
</xsl:call-template></fo:block>
4230
<xsl:when test="d:colophoninfo/d:subtitle">
4231
<xsl:apply-templates mode="colophon.titlepage.recto.auto.mode" select="d:colophoninfo/d:subtitle"/>
4233
<xsl:when test="d:docinfo/d:subtitle">
4234
<xsl:apply-templates mode="colophon.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
4236
<xsl:when test="d:info/d:subtitle">
4237
<xsl:apply-templates mode="colophon.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
4239
<xsl:when test="d:subtitle">
4240
<xsl:apply-templates mode="colophon.titlepage.recto.auto.mode" select="d:subtitle"/>
4246
<xsl:template name="colophon.titlepage.verso">
4249
<xsl:template name="colophon.titlepage.separator">
4252
<xsl:template name="colophon.titlepage.before.recto">
4255
<xsl:template name="colophon.titlepage.before.verso">
4258
<xsl:template name="colophon.titlepage">
4259
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
4260
<xsl:variable name="recto.content">
4261
<xsl:call-template name="colophon.titlepage.before.recto"/>
4262
<xsl:call-template name="colophon.titlepage.recto"/>
4264
<xsl:variable name="recto.elements.count">
4266
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4267
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4268
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4269
<xsl:otherwise>1</xsl:otherwise>
4272
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
4273
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
4275
<xsl:variable name="verso.content">
4276
<xsl:call-template name="colophon.titlepage.before.verso"/>
4277
<xsl:call-template name="colophon.titlepage.verso"/>
4279
<xsl:variable name="verso.elements.count">
4281
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4282
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4283
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4284
<xsl:otherwise>1</xsl:otherwise>
4287
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
4288
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
4290
<xsl:call-template name="colophon.titlepage.separator"/>
4294
<xsl:template match="*" mode="colophon.titlepage.recto.mode">
4295
<!-- if an element isn't found in this mode, -->
4296
<!-- try the generic titlepage.mode -->
4297
<xsl:apply-templates select="." mode="titlepage.mode"/>
4300
<xsl:template match="*" mode="colophon.titlepage.verso.mode">
4301
<!-- if an element isn't found in this mode, -->
4302
<!-- try the generic titlepage.mode -->
4303
<xsl:apply-templates select="." mode="titlepage.mode"/>
4306
<xsl:template match="d:subtitle" mode="colophon.titlepage.recto.auto.mode">
4307
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="colophon.titlepage.recto.style" font-family="{$title.fontset}">
4308
<xsl:apply-templates select="." mode="colophon.titlepage.recto.mode"/>
4312
<xsl:template name="sidebar.titlepage.recto">
4314
<xsl:when test="d:sidebarinfo/d:title">
4315
<xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="d:sidebarinfo/d:title"/>
4317
<xsl:when test="d:docinfo/d:title">
4318
<xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
4320
<xsl:when test="d:info/d:title">
4321
<xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="d:info/d:title"/>
4323
<xsl:when test="d:title">
4324
<xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="d:title"/>
4329
<xsl:when test="d:sidebarinfo/d:subtitle">
4330
<xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="d:sidebarinfo/d:subtitle"/>
4332
<xsl:when test="d:docinfo/d:subtitle">
4333
<xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
4335
<xsl:when test="d:info/d:subtitle">
4336
<xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
4338
<xsl:when test="d:subtitle">
4339
<xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="d:subtitle"/>
4345
<xsl:template name="sidebar.titlepage.verso">
4348
<xsl:template name="sidebar.titlepage.separator">
4351
<xsl:template name="sidebar.titlepage.before.recto">
4354
<xsl:template name="sidebar.titlepage.before.verso">
4357
<xsl:template name="sidebar.titlepage">
4358
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
4359
<xsl:variable name="recto.content">
4360
<xsl:call-template name="sidebar.titlepage.before.recto"/>
4361
<xsl:call-template name="sidebar.titlepage.recto"/>
4363
<xsl:variable name="recto.elements.count">
4365
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4366
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4367
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4368
<xsl:otherwise>1</xsl:otherwise>
4371
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
4372
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
4374
<xsl:variable name="verso.content">
4375
<xsl:call-template name="sidebar.titlepage.before.verso"/>
4376
<xsl:call-template name="sidebar.titlepage.verso"/>
4378
<xsl:variable name="verso.elements.count">
4380
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4381
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4382
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4383
<xsl:otherwise>1</xsl:otherwise>
4386
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
4387
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
4389
<xsl:call-template name="sidebar.titlepage.separator"/>
4393
<xsl:template match="*" mode="sidebar.titlepage.recto.mode">
4394
<!-- if an element isn't found in this mode, -->
4395
<!-- try the generic titlepage.mode -->
4396
<xsl:apply-templates select="." mode="titlepage.mode"/>
4399
<xsl:template match="*" mode="sidebar.titlepage.verso.mode">
4400
<!-- if an element isn't found in this mode, -->
4401
<!-- try the generic titlepage.mode -->
4402
<xsl:apply-templates select="." mode="titlepage.mode"/>
4405
<xsl:template match="d:title" mode="sidebar.titlepage.recto.auto.mode">
4406
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sidebar.titlepage.recto.style" font-family="{$title.fontset}" font-weight="bold">
4407
<xsl:apply-templates select="." mode="sidebar.titlepage.recto.mode"/>
4411
<xsl:template match="d:subtitle" mode="sidebar.titlepage.recto.auto.mode">
4412
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sidebar.titlepage.recto.style" font-family="{$title.fontset}">
4413
<xsl:apply-templates select="." mode="sidebar.titlepage.recto.mode"/>
4417
<xsl:template name="qandaset.titlepage.recto">
4419
<xsl:when test="d:qandasetinfo/d:title">
4420
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:qandasetinfo/d:title"/>
4422
<xsl:when test="d:blockinfo/d:title">
4423
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:blockinfo/d:title"/>
4425
<xsl:when test="d:info/d:title">
4426
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:info/d:title"/>
4428
<xsl:when test="d:title">
4429
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:title"/>
4434
<xsl:when test="d:qandasetinfo/d:subtitle">
4435
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:qandasetinfo/d:subtitle"/>
4437
<xsl:when test="d:blockinfo/d:subtitle">
4438
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:blockinfo/d:subtitle"/>
4440
<xsl:when test="d:info/d:subtitle">
4441
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
4443
<xsl:when test="d:subtitle">
4444
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:subtitle"/>
4448
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:qandasetinfo/d:corpauthor"/>
4449
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:blockinfo/d:corpauthor"/>
4450
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
4451
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:qandasetinfo/d:authorgroup"/>
4452
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:blockinfo/d:authorgroup"/>
4453
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
4454
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:qandasetinfo/d:author"/>
4455
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:blockinfo/d:author"/>
4456
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:info/d:author"/>
4457
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:qandasetinfo/d:othercredit"/>
4458
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:blockinfo/d:othercredit"/>
4459
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
4460
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:qandasetinfo/d:releaseinfo"/>
4461
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:blockinfo/d:releaseinfo"/>
4462
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
4463
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:qandasetinfo/d:copyright"/>
4464
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:blockinfo/d:copyright"/>
4465
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
4466
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:qandasetinfo/d:legalnotice"/>
4467
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:blockinfo/d:legalnotice"/>
4468
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
4469
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:qandasetinfo/d:pubdate"/>
4470
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:blockinfo/d:pubdate"/>
4471
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
4472
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:qandasetinfo/d:revision"/>
4473
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:blockinfo/d:revision"/>
4474
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:info/d:revision"/>
4475
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:qandasetinfo/d:revhistory"/>
4476
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:blockinfo/d:revhistory"/>
4477
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
4478
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:qandasetinfo/d:abstract"/>
4479
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:blockinfo/d:abstract"/>
4480
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
4483
<xsl:template name="qandaset.titlepage.verso">
4486
<xsl:template name="qandaset.titlepage.separator">
4489
<xsl:template name="qandaset.titlepage.before.recto">
4492
<xsl:template name="qandaset.titlepage.before.verso">
4495
<xsl:template name="qandaset.titlepage">
4496
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" font-family="{$title.fontset}">
4497
<xsl:variable name="recto.content">
4498
<xsl:call-template name="qandaset.titlepage.before.recto"/>
4499
<xsl:call-template name="qandaset.titlepage.recto"/>
4501
<xsl:variable name="recto.elements.count">
4503
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4504
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4505
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4506
<xsl:otherwise>1</xsl:otherwise>
4509
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
4510
<fo:block start-indent="0pt" text-align="center"><xsl:copy-of select="$recto.content"/></fo:block>
4512
<xsl:variable name="verso.content">
4513
<xsl:call-template name="qandaset.titlepage.before.verso"/>
4514
<xsl:call-template name="qandaset.titlepage.verso"/>
4516
<xsl:variable name="verso.elements.count">
4518
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4519
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4520
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4521
<xsl:otherwise>1</xsl:otherwise>
4524
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
4525
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
4527
<xsl:call-template name="qandaset.titlepage.separator"/>
4531
<xsl:template match="*" mode="qandaset.titlepage.recto.mode">
4532
<!-- if an element isn't found in this mode, -->
4533
<!-- try the generic titlepage.mode -->
4534
<xsl:apply-templates select="." mode="titlepage.mode"/>
4537
<xsl:template match="*" mode="qandaset.titlepage.verso.mode">
4538
<!-- if an element isn't found in this mode, -->
4539
<!-- try the generic titlepage.mode -->
4540
<xsl:apply-templates select="." mode="titlepage.mode"/>
4543
<xsl:template match="d:title" mode="qandaset.titlepage.recto.auto.mode">
4544
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="qandaset.titlepage.recto.style" keep-with-next.within-column="always" font-size="24.8832pt" font-weight="bold">
4545
<xsl:call-template name="component.title">
4546
<xsl:with-param name="node" select="ancestor-or-self::d:qandaset[1]"/>
4547
</xsl:call-template>
4551
<xsl:template match="d:subtitle" mode="qandaset.titlepage.recto.auto.mode">
4552
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="qandaset.titlepage.recto.style">
4553
<xsl:apply-templates select="." mode="qandaset.titlepage.recto.mode"/>
4557
<xsl:template match="d:corpauthor" mode="qandaset.titlepage.recto.auto.mode">
4558
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="qandaset.titlepage.recto.style" space-before="0.5em" font-size="14.4pt">
4559
<xsl:apply-templates select="." mode="qandaset.titlepage.recto.mode"/>
4563
<xsl:template match="d:authorgroup" mode="qandaset.titlepage.recto.auto.mode">
4564
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="qandaset.titlepage.recto.style" space-before="0.5em" font-size="14.4pt">
4565
<xsl:apply-templates select="." mode="qandaset.titlepage.recto.mode"/>
4569
<xsl:template match="d:author" mode="qandaset.titlepage.recto.auto.mode">
4570
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="qandaset.titlepage.recto.style" space-before="0.5em" font-size="14.4pt">
4571
<xsl:apply-templates select="." mode="qandaset.titlepage.recto.mode"/>
4575
<xsl:template match="d:othercredit" mode="qandaset.titlepage.recto.auto.mode">
4576
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="qandaset.titlepage.recto.style" space-before="0.5em">
4577
<xsl:apply-templates select="." mode="qandaset.titlepage.recto.mode"/>
4581
<xsl:template match="d:releaseinfo" mode="qandaset.titlepage.recto.auto.mode">
4582
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="qandaset.titlepage.recto.style" space-before="0.5em">
4583
<xsl:apply-templates select="." mode="qandaset.titlepage.recto.mode"/>
4587
<xsl:template match="d:copyright" mode="qandaset.titlepage.recto.auto.mode">
4588
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="qandaset.titlepage.recto.style" space-before="0.5em">
4589
<xsl:apply-templates select="." mode="qandaset.titlepage.recto.mode"/>
4593
<xsl:template match="d:legalnotice" mode="qandaset.titlepage.recto.auto.mode">
4594
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="qandaset.titlepage.recto.style" text-align="start" margin-left="0.5in" margin-right="0.5in" font-family="{$body.fontset}">
4595
<xsl:apply-templates select="." mode="qandaset.titlepage.recto.mode"/>
4599
<xsl:template match="d:pubdate" mode="qandaset.titlepage.recto.auto.mode">
4600
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="qandaset.titlepage.recto.style" space-before="0.5em">
4601
<xsl:apply-templates select="." mode="qandaset.titlepage.recto.mode"/>
4605
<xsl:template match="d:revision" mode="qandaset.titlepage.recto.auto.mode">
4606
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="qandaset.titlepage.recto.style" space-before="0.5em">
4607
<xsl:apply-templates select="." mode="qandaset.titlepage.recto.mode"/>
4611
<xsl:template match="d:revhistory" mode="qandaset.titlepage.recto.auto.mode">
4612
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="qandaset.titlepage.recto.style" space-before="0.5em">
4613
<xsl:apply-templates select="." mode="qandaset.titlepage.recto.mode"/>
4617
<xsl:template match="d:abstract" mode="qandaset.titlepage.recto.auto.mode">
4618
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="qandaset.titlepage.recto.style" space-before="0.5em" text-align="start" margin-left="0.5in" margin-right="0.5in" font-family="{$body.fontset}">
4619
<xsl:apply-templates select="." mode="qandaset.titlepage.recto.mode"/>
4623
<xsl:template name="table.of.contents.titlepage.recto">
4624
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="table.of.contents.titlepage.recto.style" space-before.minimum="1em" space-before.optimum="1.5em" space-before.maximum="2em" space-after="0.5em" margin-left="{$title.margin.left}" start-indent="0pt" font-size="20.736pt" font-weight="bold" color="rgb(196,0,34)" font-family="{$title.fontset}">
4625
<xsl:call-template name="gentext">
4626
<xsl:with-param name="key" select="'TableofContents'"/>
4627
</xsl:call-template></fo:block>
4630
<xsl:template name="table.of.contents.titlepage.verso">
4633
<xsl:template name="table.of.contents.titlepage.separator">
4636
<xsl:template name="table.of.contents.titlepage.before.recto">
4639
<xsl:template name="table.of.contents.titlepage.before.verso">
4642
<xsl:template name="table.of.contents.titlepage">
4643
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
4644
<xsl:variable name="recto.content">
4645
<xsl:call-template name="table.of.contents.titlepage.before.recto"/>
4646
<xsl:call-template name="table.of.contents.titlepage.recto"/>
4648
<xsl:variable name="recto.elements.count">
4650
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4651
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4652
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4653
<xsl:otherwise>1</xsl:otherwise>
4656
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
4657
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
4659
<xsl:variable name="verso.content">
4660
<xsl:call-template name="table.of.contents.titlepage.before.verso"/>
4661
<xsl:call-template name="table.of.contents.titlepage.verso"/>
4663
<xsl:variable name="verso.elements.count">
4665
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4666
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4667
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4668
<xsl:otherwise>1</xsl:otherwise>
4671
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
4672
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
4674
<xsl:call-template name="table.of.contents.titlepage.separator"/>
4678
<xsl:template match="*" mode="table.of.contents.titlepage.recto.mode">
4679
<!-- if an element isn't found in this mode, -->
4680
<!-- try the generic titlepage.mode -->
4681
<xsl:apply-templates select="." mode="titlepage.mode"/>
4684
<xsl:template match="*" mode="table.of.contents.titlepage.verso.mode">
4685
<!-- if an element isn't found in this mode, -->
4686
<!-- try the generic titlepage.mode -->
4687
<xsl:apply-templates select="." mode="titlepage.mode"/>
4690
<xsl:template name="list.of.tables.titlepage.recto">
4691
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="list.of.tables.titlepage.recto.style" space-before.minimum="1em" space-before.optimum="1.5em" space-before.maximum="2em" space-after="0.5em" margin-left="{$title.margin.left}" start-indent="0pt" font-size="20.736pt" font-weight="bold" color="rgb(196,0,34)" font-family="{$title.fontset}">
4692
<xsl:call-template name="gentext">
4693
<xsl:with-param name="key" select="'ListofTables'"/>
4694
</xsl:call-template></fo:block>
4697
<xsl:template name="list.of.tables.titlepage.verso">
4700
<xsl:template name="list.of.tables.titlepage.separator">
4703
<xsl:template name="list.of.tables.titlepage.before.recto">
4706
<xsl:template name="list.of.tables.titlepage.before.verso">
4709
<xsl:template name="list.of.tables.titlepage">
4710
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
4711
<xsl:variable name="recto.content">
4712
<xsl:call-template name="list.of.tables.titlepage.before.recto"/>
4713
<xsl:call-template name="list.of.tables.titlepage.recto"/>
4715
<xsl:variable name="recto.elements.count">
4717
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4718
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4719
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4720
<xsl:otherwise>1</xsl:otherwise>
4723
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
4724
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
4726
<xsl:variable name="verso.content">
4727
<xsl:call-template name="list.of.tables.titlepage.before.verso"/>
4728
<xsl:call-template name="list.of.tables.titlepage.verso"/>
4730
<xsl:variable name="verso.elements.count">
4732
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4733
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4734
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4735
<xsl:otherwise>1</xsl:otherwise>
4738
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
4739
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
4741
<xsl:call-template name="list.of.tables.titlepage.separator"/>
4745
<xsl:template match="*" mode="list.of.tables.titlepage.recto.mode">
4746
<!-- if an element isn't found in this mode, -->
4747
<!-- try the generic titlepage.mode -->
4748
<xsl:apply-templates select="." mode="titlepage.mode"/>
4751
<xsl:template match="*" mode="list.of.tables.titlepage.verso.mode">
4752
<!-- if an element isn't found in this mode, -->
4753
<!-- try the generic titlepage.mode -->
4754
<xsl:apply-templates select="." mode="titlepage.mode"/>
4757
<xsl:template name="list.of.figures.titlepage.recto">
4758
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="list.of.figures.titlepage.recto.style" space-before.minimum="1em" space-before.optimum="1.5em" space-before.maximum="2em" space-after="0.5em" margin-left="{$title.margin.left}" start-indent="0pt" font-size="20.736pt" font-weight="bold" color="rgb(196,0,34)" font-family="{$title.fontset}">
4759
<xsl:call-template name="gentext">
4760
<xsl:with-param name="key" select="'ListofFigures'"/>
4761
</xsl:call-template></fo:block>
4764
<xsl:template name="list.of.figures.titlepage.verso">
4767
<xsl:template name="list.of.figures.titlepage.separator">
4770
<xsl:template name="list.of.figures.titlepage.before.recto">
4773
<xsl:template name="list.of.figures.titlepage.before.verso">
4776
<xsl:template name="list.of.figures.titlepage">
4777
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
4778
<xsl:variable name="recto.content">
4779
<xsl:call-template name="list.of.figures.titlepage.before.recto"/>
4780
<xsl:call-template name="list.of.figures.titlepage.recto"/>
4782
<xsl:variable name="recto.elements.count">
4784
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4785
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4786
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4787
<xsl:otherwise>1</xsl:otherwise>
4790
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
4791
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
4793
<xsl:variable name="verso.content">
4794
<xsl:call-template name="list.of.figures.titlepage.before.verso"/>
4795
<xsl:call-template name="list.of.figures.titlepage.verso"/>
4797
<xsl:variable name="verso.elements.count">
4799
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4800
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4801
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4802
<xsl:otherwise>1</xsl:otherwise>
4805
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
4806
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
4808
<xsl:call-template name="list.of.figures.titlepage.separator"/>
4812
<xsl:template match="*" mode="list.of.figures.titlepage.recto.mode">
4813
<!-- if an element isn't found in this mode, -->
4814
<!-- try the generic titlepage.mode -->
4815
<xsl:apply-templates select="." mode="titlepage.mode"/>
4818
<xsl:template match="*" mode="list.of.figures.titlepage.verso.mode">
4819
<!-- if an element isn't found in this mode, -->
4820
<!-- try the generic titlepage.mode -->
4821
<xsl:apply-templates select="." mode="titlepage.mode"/>
4824
<xsl:template name="list.of.examples.titlepage.recto">
4825
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="list.of.examples.titlepage.recto.style" space-before.minimum="1em" space-before.optimum="1.5em" space-before.maximum="2em" space-after="0.5em" margin-left="{$title.margin.left}" start-indent="0pt" font-size="20.736pt" font-weight="bold" color="rgb(196,0,34)" font-family="{$title.fontset}">
4826
<xsl:call-template name="gentext">
4827
<xsl:with-param name="key" select="'ListofExamples'"/>
4828
</xsl:call-template></fo:block>
4831
<xsl:template name="list.of.examples.titlepage.verso">
4834
<xsl:template name="list.of.examples.titlepage.separator">
4837
<xsl:template name="list.of.examples.titlepage.before.recto">
4840
<xsl:template name="list.of.examples.titlepage.before.verso">
4843
<xsl:template name="list.of.examples.titlepage">
4844
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
4845
<xsl:variable name="recto.content">
4846
<xsl:call-template name="list.of.examples.titlepage.before.recto"/>
4847
<xsl:call-template name="list.of.examples.titlepage.recto"/>
4849
<xsl:variable name="recto.elements.count">
4851
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4852
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4853
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4854
<xsl:otherwise>1</xsl:otherwise>
4857
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
4858
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
4860
<xsl:variable name="verso.content">
4861
<xsl:call-template name="list.of.examples.titlepage.before.verso"/>
4862
<xsl:call-template name="list.of.examples.titlepage.verso"/>
4864
<xsl:variable name="verso.elements.count">
4866
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4867
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4868
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4869
<xsl:otherwise>1</xsl:otherwise>
4872
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
4873
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
4875
<xsl:call-template name="list.of.examples.titlepage.separator"/>
4879
<xsl:template match="*" mode="list.of.examples.titlepage.recto.mode">
4880
<!-- if an element isn't found in this mode, -->
4881
<!-- try the generic titlepage.mode -->
4882
<xsl:apply-templates select="." mode="titlepage.mode"/>
4885
<xsl:template match="*" mode="list.of.examples.titlepage.verso.mode">
4886
<!-- if an element isn't found in this mode, -->
4887
<!-- try the generic titlepage.mode -->
4888
<xsl:apply-templates select="." mode="titlepage.mode"/>
4891
<xsl:template name="list.of.equations.titlepage.recto">
4892
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="list.of.equations.titlepage.recto.style" space-before.minimum="1em" space-before.optimum="1.5em" space-before.maximum="2em" space-after="0.5em" margin-left="{$title.margin.left}" start-indent="0pt" font-size="20.736pt" font-weight="bold" color="rgb(196,0,34)" font-family="{$title.fontset}">
4893
<xsl:call-template name="gentext">
4894
<xsl:with-param name="key" select="'ListofEquations'"/>
4895
</xsl:call-template></fo:block>
4898
<xsl:template name="list.of.equations.titlepage.verso">
4901
<xsl:template name="list.of.equations.titlepage.separator">
4904
<xsl:template name="list.of.equations.titlepage.before.recto">
4907
<xsl:template name="list.of.equations.titlepage.before.verso">
4910
<xsl:template name="list.of.equations.titlepage">
4911
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
4912
<xsl:variable name="recto.content">
4913
<xsl:call-template name="list.of.equations.titlepage.before.recto"/>
4914
<xsl:call-template name="list.of.equations.titlepage.recto"/>
4916
<xsl:variable name="recto.elements.count">
4918
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4919
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4920
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4921
<xsl:otherwise>1</xsl:otherwise>
4924
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
4925
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
4927
<xsl:variable name="verso.content">
4928
<xsl:call-template name="list.of.equations.titlepage.before.verso"/>
4929
<xsl:call-template name="list.of.equations.titlepage.verso"/>
4931
<xsl:variable name="verso.elements.count">
4933
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4934
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4935
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4936
<xsl:otherwise>1</xsl:otherwise>
4939
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
4940
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
4942
<xsl:call-template name="list.of.equations.titlepage.separator"/>
4946
<xsl:template match="*" mode="list.of.equations.titlepage.recto.mode">
4947
<!-- if an element isn't found in this mode, -->
4948
<!-- try the generic titlepage.mode -->
4949
<xsl:apply-templates select="." mode="titlepage.mode"/>
4952
<xsl:template match="*" mode="list.of.equations.titlepage.verso.mode">
4953
<!-- if an element isn't found in this mode, -->
4954
<!-- try the generic titlepage.mode -->
4955
<xsl:apply-templates select="." mode="titlepage.mode"/>
4958
<xsl:template name="list.of.procedures.titlepage.recto">
4959
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="list.of.procedures.titlepage.recto.style" space-before.minimum="1em" space-before.optimum="1.5em" space-before.maximum="2em" space-after="0.5em" margin-left="{$title.margin.left}" start-indent="0pt" font-size="20.736pt" font-weight="bold" color="rgb(196,0,34)" font-family="{$title.fontset}">
4960
<xsl:call-template name="gentext">
4961
<xsl:with-param name="key" select="'ListofProcedures'"/>
4962
</xsl:call-template></fo:block>
4965
<xsl:template name="list.of.procedures.titlepage.verso">
4968
<xsl:template name="list.of.procedures.titlepage.separator">
4971
<xsl:template name="list.of.procedures.titlepage.before.recto">
4974
<xsl:template name="list.of.procedures.titlepage.before.verso">
4977
<xsl:template name="list.of.procedures.titlepage">
4978
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
4979
<xsl:variable name="recto.content">
4980
<xsl:call-template name="list.of.procedures.titlepage.before.recto"/>
4981
<xsl:call-template name="list.of.procedures.titlepage.recto"/>
4983
<xsl:variable name="recto.elements.count">
4985
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4986
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4987
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4988
<xsl:otherwise>1</xsl:otherwise>
4991
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
4992
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
4994
<xsl:variable name="verso.content">
4995
<xsl:call-template name="list.of.procedures.titlepage.before.verso"/>
4996
<xsl:call-template name="list.of.procedures.titlepage.verso"/>
4998
<xsl:variable name="verso.elements.count">
5000
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
5001
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
5002
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
5003
<xsl:otherwise>1</xsl:otherwise>
5006
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
5007
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
5009
<xsl:call-template name="list.of.procedures.titlepage.separator"/>
5013
<xsl:template match="*" mode="list.of.procedures.titlepage.recto.mode">
5014
<!-- if an element isn't found in this mode, -->
5015
<!-- try the generic titlepage.mode -->
5016
<xsl:apply-templates select="." mode="titlepage.mode"/>
5019
<xsl:template match="*" mode="list.of.procedures.titlepage.verso.mode">
5020
<!-- if an element isn't found in this mode, -->
5021
<!-- try the generic titlepage.mode -->
5022
<xsl:apply-templates select="." mode="titlepage.mode"/>
5025
<xsl:template name="list.of.unknowns.titlepage.recto">
5026
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="list.of.unknowns.titlepage.recto.style" space-before.minimum="1em" space-before.optimum="1.5em" space-before.maximum="2em" space-after="0.5em" margin-left="{$title.margin.left}" start-indent="0pt" font-size="20.736pt" font-weight="bold" color="rgb(196,0,34)" font-family="{$title.fontset}">
5027
<xsl:call-template name="gentext">
5028
<xsl:with-param name="key" select="'ListofUnknown'"/>
5029
</xsl:call-template></fo:block>
5032
<xsl:template name="list.of.unknowns.titlepage.verso">
5035
<xsl:template name="list.of.unknowns.titlepage.separator">
5038
<xsl:template name="list.of.unknowns.titlepage.before.recto">
5041
<xsl:template name="list.of.unknowns.titlepage.before.verso">
5044
<xsl:template name="list.of.unknowns.titlepage">
5045
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
5046
<xsl:variable name="recto.content">
5047
<xsl:call-template name="list.of.unknowns.titlepage.before.recto"/>
5048
<xsl:call-template name="list.of.unknowns.titlepage.recto"/>
5050
<xsl:variable name="recto.elements.count">
5052
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
5053
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
5054
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
5055
<xsl:otherwise>1</xsl:otherwise>
5058
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
5059
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
5061
<xsl:variable name="verso.content">
5062
<xsl:call-template name="list.of.unknowns.titlepage.before.verso"/>
5063
<xsl:call-template name="list.of.unknowns.titlepage.verso"/>
5065
<xsl:variable name="verso.elements.count">
5067
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
5068
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
5069
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
5070
<xsl:otherwise>1</xsl:otherwise>
5073
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
5074
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
5076
<xsl:call-template name="list.of.unknowns.titlepage.separator"/>
5080
<xsl:template match="*" mode="list.of.unknowns.titlepage.recto.mode">
5081
<!-- if an element isn't found in this mode, -->
5082
<!-- try the generic titlepage.mode -->
5083
<xsl:apply-templates select="." mode="titlepage.mode"/>
5086
<xsl:template match="*" mode="list.of.unknowns.titlepage.verso.mode">
5087
<!-- if an element isn't found in this mode, -->
5088
<!-- try the generic titlepage.mode -->
5089
<xsl:apply-templates select="." mode="titlepage.mode"/>