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:releaseinfo"/>
50
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:artheader/d:releaseinfo"/>
51
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
52
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:articleinfo/d:copyright"/>
53
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:artheader/d:copyright"/>
54
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
55
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:articleinfo/d:legalnotice"/>
56
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:artheader/d:legalnotice"/>
57
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
58
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:articleinfo/d:pubdate"/>
59
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:artheader/d:pubdate"/>
60
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
61
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:articleinfo/d:revision"/>
62
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:artheader/d:revision"/>
63
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:info/d:revision"/>
64
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:articleinfo/d:revhistory"/>
65
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:artheader/d:revhistory"/>
66
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
67
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:articleinfo/d:abstract"/>
68
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:artheader/d:abstract"/>
69
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
72
<xsl:template name="article.titlepage.verso">
75
<xsl:template name="article.titlepage.separator">
78
<xsl:template name="article.titlepage.before.recto">
81
<xsl:template name="article.titlepage.before.verso">
84
<xsl:template name="article.titlepage">
85
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" font-family="{$title.fontset}">
86
<xsl:variable name="recto.content">
87
<xsl:call-template name="article.titlepage.before.recto"/>
88
<xsl:call-template name="article.titlepage.recto"/>
90
<xsl:variable name="recto.elements.count">
92
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
93
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
94
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
95
<xsl:otherwise>1</xsl:otherwise>
98
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
99
<fo:block start-indent="0pt" text-align="center"><xsl:copy-of select="$recto.content"/></fo:block>
101
<xsl:variable name="verso.content">
102
<xsl:call-template name="article.titlepage.before.verso"/>
103
<xsl:call-template name="article.titlepage.verso"/>
105
<xsl:variable name="verso.elements.count">
107
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
108
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
109
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
110
<xsl:otherwise>1</xsl:otherwise>
113
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
114
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
116
<xsl:call-template name="article.titlepage.separator"/>
120
<xsl:template match="*" mode="article.titlepage.recto.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="*" mode="article.titlepage.verso.mode">
127
<!-- if an element isn't found in this mode, -->
128
<!-- try the generic titlepage.mode -->
129
<xsl:apply-templates select="." mode="titlepage.mode"/>
132
<xsl:template match="d:title" mode="article.titlepage.recto.auto.mode">
133
<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">
134
<xsl:call-template name="component.title">
135
<xsl:with-param name="node" select="ancestor-or-self::d:article[1]"/>
140
<xsl:template match="d:subtitle" 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">
142
<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
146
<xsl:template match="d:corpauthor" 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" space-before="0.5em" font-size="14.4pt">
148
<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
152
<xsl:template match="d:authorgroup" 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" space-before="0.5em" font-size="14.4pt">
154
<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
158
<xsl:template match="d:author" 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" font-size="14.4pt">
160
<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
164
<xsl:template match="d:othercredit" 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:releaseinfo" 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" space-before="0.5em">
172
<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
176
<xsl:template match="d:copyright" 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:legalnotice" 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" text-align="start" margin-left="0.5in" margin-right="0.5in" font-family="{$body.fontset}">
184
<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
188
<xsl:template match="d:pubdate" 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">
190
<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
194
<xsl:template match="d:revision" mode="article.titlepage.recto.auto.mode">
195
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style" space-before="0.5em">
196
<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
200
<xsl:template match="d:revhistory" mode="article.titlepage.recto.auto.mode">
201
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style" space-before="0.5em">
202
<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
206
<xsl:template match="d:abstract" mode="article.titlepage.recto.auto.mode">
207
<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}">
208
<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
212
<xsl:template name="set.titlepage.recto">
214
<xsl:when test="d:setinfo/d:title">
215
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:title"/>
217
<xsl:when test="d:info/d:title">
218
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:title"/>
220
<xsl:when test="d:title">
221
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:title"/>
226
<xsl:when test="d:setinfo/d:subtitle">
227
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:subtitle"/>
229
<xsl:when test="d:info/d:subtitle">
230
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
232
<xsl:when test="d:subtitle">
233
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:subtitle"/>
237
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:corpauthor"/>
238
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
239
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:authorgroup"/>
240
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
241
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:author"/>
242
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:author"/>
243
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:othercredit"/>
244
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
245
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:releaseinfo"/>
246
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
247
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:copyright"/>
248
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
249
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:legalnotice"/>
250
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
251
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:pubdate"/>
252
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
253
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:revision"/>
254
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:revision"/>
255
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:revhistory"/>
256
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
257
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:abstract"/>
258
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
261
<xsl:template name="set.titlepage.verso">
264
<xsl:template name="set.titlepage.separator">
267
<xsl:template name="set.titlepage.before.recto">
270
<xsl:template name="set.titlepage.before.verso">
273
<xsl:template name="set.titlepage">
274
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
275
<xsl:variable name="recto.content">
276
<xsl:call-template name="set.titlepage.before.recto"/>
277
<xsl:call-template name="set.titlepage.recto"/>
279
<xsl:variable name="recto.elements.count">
281
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
282
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
283
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
284
<xsl:otherwise>1</xsl:otherwise>
287
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
288
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
290
<xsl:variable name="verso.content">
291
<xsl:call-template name="set.titlepage.before.verso"/>
292
<xsl:call-template name="set.titlepage.verso"/>
294
<xsl:variable name="verso.elements.count">
296
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
297
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
298
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
299
<xsl:otherwise>1</xsl:otherwise>
302
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
303
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
305
<xsl:call-template name="set.titlepage.separator"/>
309
<xsl:template match="*" mode="set.titlepage.recto.mode">
310
<!-- if an element isn't found in this mode, -->
311
<!-- try the generic titlepage.mode -->
312
<xsl:apply-templates select="." mode="titlepage.mode"/>
315
<xsl:template match="*" mode="set.titlepage.verso.mode">
316
<!-- if an element isn't found in this mode, -->
317
<!-- try the generic titlepage.mode -->
318
<xsl:apply-templates select="." mode="titlepage.mode"/>
321
<xsl:template match="d:title" mode="set.titlepage.recto.auto.mode">
322
<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}">
323
<xsl:call-template name="division.title">
324
<xsl:with-param name="node" select="ancestor-or-self::d:set[1]"/>
329
<xsl:template match="d:subtitle" 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" font-family="{$title.fontset}" text-align="center">
331
<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
335
<xsl:template match="d:corpauthor" 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:authorgroup" 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:author" 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:othercredit" 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:releaseinfo" 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:copyright" 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:legalnotice" 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:pubdate" 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 match="d:revision" mode="set.titlepage.recto.auto.mode">
384
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style">
385
<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
389
<xsl:template match="d:revhistory" mode="set.titlepage.recto.auto.mode">
390
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style">
391
<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
395
<xsl:template match="d:abstract" mode="set.titlepage.recto.auto.mode">
396
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style">
397
<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
401
<xsl:template name="book.titlepage.recto">
404
<xsl:template name="book.titlepage.verso">
406
<xsl:when test="d:bookinfo/d:title">
407
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:bookinfo/d:title"/>
409
<xsl:when test="d:info/d:title">
410
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:info/d:title"/>
412
<xsl:when test="d:title">
413
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:title"/>
417
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:bookinfo/d:corpauthor"/>
418
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:info/d:corpauthor"/>
419
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:bookinfo/d:authorgroup"/>
420
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:info/d:authorgroup"/>
421
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:bookinfo/d:author"/>
422
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:info/d:author"/>
423
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:bookinfo/d:othercredit"/>
424
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:info/d:othercredit"/>
425
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:bookinfo/d:releaseinfo"/>
426
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:info/d:releaseinfo"/>
427
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:bookinfo/d:copyright"/>
428
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:info/d:copyright"/>
429
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:bookinfo/d:abstract"/>
430
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:info/d:abstract"/>
431
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:bookinfo/d:legalnotice"/>
432
<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:info/d:legalnotice"/>
435
<xsl:template name="book.titlepage.separator"><fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" break-after="page"/>
438
<xsl:template name="book.titlepage.before.recto">
441
<xsl:template name="book.titlepage.before.verso"><fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" break-after="page"/>
444
<xsl:template name="book.titlepage">
445
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
446
<xsl:variable name="recto.content">
447
<xsl:call-template name="book.titlepage.before.recto"/>
448
<xsl:call-template name="book.titlepage.recto"/>
450
<xsl:variable name="recto.elements.count">
452
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
453
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
454
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
455
<xsl:otherwise>1</xsl:otherwise>
458
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
459
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
461
<xsl:variable name="verso.content">
462
<xsl:call-template name="book.titlepage.before.verso"/>
463
<xsl:call-template name="book.titlepage.verso"/>
465
<xsl:variable name="verso.elements.count">
467
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
468
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
469
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
470
<xsl:otherwise>1</xsl:otherwise>
473
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
474
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
476
<xsl:call-template name="book.titlepage.separator"/>
480
<xsl:template match="*" mode="book.titlepage.recto.mode">
481
<!-- if an element isn't found in this mode, -->
482
<!-- try the generic titlepage.mode -->
483
<xsl:apply-templates select="." mode="titlepage.mode"/>
486
<xsl:template match="*" mode="book.titlepage.verso.mode">
487
<!-- if an element isn't found in this mode, -->
488
<!-- try the generic titlepage.mode -->
489
<xsl:apply-templates select="." mode="titlepage.mode"/>
492
<xsl:template match="d:title" mode="book.titlepage.verso.auto.mode">
493
<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}">
494
<xsl:call-template name="book.verso.title">
499
<xsl:template match="d:corpauthor" mode="book.titlepage.verso.auto.mode">
500
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style">
501
<xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
505
<xsl:template match="d:authorgroup" mode="book.titlepage.verso.auto.mode">
506
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style">
507
<xsl:call-template name="verso.authorgroup">
512
<xsl:template match="d:author" 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:othercredit" 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:releaseinfo" 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="0.5em">
526
<xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
530
<xsl:template match="d:copyright" mode="book.titlepage.verso.auto.mode">
531
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style">
532
<xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
536
<xsl:template match="d:abstract" mode="book.titlepage.verso.auto.mode">
537
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style">
538
<xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
542
<xsl:template match="d:legalnotice" mode="book.titlepage.verso.auto.mode">
543
<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">
544
<xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
548
<xsl:template name="part.titlepage.recto">
550
<xsl:when test="d:partinfo/d:title">
551
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:partinfo/d:title"/>
553
<xsl:when test="d:docinfo/d:title">
554
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
556
<xsl:when test="d:info/d:title">
557
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:info/d:title"/>
559
<xsl:when test="d:title">
560
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:title"/>
565
<xsl:when test="d:partinfo/d:subtitle">
566
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:partinfo/d:subtitle"/>
568
<xsl:when test="d:docinfo/d:subtitle">
569
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
571
<xsl:when test="d:info/d:subtitle">
572
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
574
<xsl:when test="d:subtitle">
575
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:subtitle"/>
581
<xsl:template name="part.titlepage.verso">
584
<xsl:template name="part.titlepage.separator">
587
<xsl:template name="part.titlepage.before.recto">
590
<xsl:template name="part.titlepage.before.verso">
593
<xsl:template name="part.titlepage">
594
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
595
<xsl:variable name="recto.content">
596
<xsl:call-template name="part.titlepage.before.recto"/>
597
<xsl:call-template name="part.titlepage.recto"/>
599
<xsl:variable name="recto.elements.count">
601
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
602
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
603
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
604
<xsl:otherwise>1</xsl:otherwise>
607
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
608
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
610
<xsl:variable name="verso.content">
611
<xsl:call-template name="part.titlepage.before.verso"/>
612
<xsl:call-template name="part.titlepage.verso"/>
614
<xsl:variable name="verso.elements.count">
616
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
617
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
618
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
619
<xsl:otherwise>1</xsl:otherwise>
622
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
623
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
625
<xsl:call-template name="part.titlepage.separator"/>
629
<xsl:template match="*" mode="part.titlepage.recto.mode">
630
<!-- if an element isn't found in this mode, -->
631
<!-- try the generic titlepage.mode -->
632
<xsl:apply-templates select="." mode="titlepage.mode"/>
635
<xsl:template match="*" mode="part.titlepage.verso.mode">
636
<!-- if an element isn't found in this mode, -->
637
<!-- try the generic titlepage.mode -->
638
<xsl:apply-templates select="." mode="titlepage.mode"/>
641
<xsl:template match="d:title" mode="part.titlepage.recto.auto.mode">
642
<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}">
643
<xsl:call-template name="division.title">
644
<xsl:with-param name="node" select="ancestor-or-self::d:part[1]"/>
649
<xsl:template match="d:subtitle" mode="part.titlepage.recto.auto.mode">
650
<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}">
651
<xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
655
<xsl:template name="partintro.titlepage.recto">
657
<xsl:when test="d:partintroinfo/d:title">
658
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:title"/>
660
<xsl:when test="d:docinfo/d:title">
661
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
663
<xsl:when test="d:info/d:title">
664
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:title"/>
666
<xsl:when test="d:title">
667
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:title"/>
672
<xsl:when test="d:partintroinfo/d:subtitle">
673
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:subtitle"/>
675
<xsl:when test="d:docinfo/d:subtitle">
676
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
678
<xsl:when test="d:info/d:subtitle">
679
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
681
<xsl:when test="d:subtitle">
682
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:subtitle"/>
686
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:corpauthor"/>
687
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:corpauthor"/>
688
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
689
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:authorgroup"/>
690
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:authorgroup"/>
691
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
692
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:author"/>
693
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:author"/>
694
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:author"/>
695
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:othercredit"/>
696
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:othercredit"/>
697
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
698
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:releaseinfo"/>
699
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:releaseinfo"/>
700
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
701
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:copyright"/>
702
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:copyright"/>
703
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
704
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:legalnotice"/>
705
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:legalnotice"/>
706
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
707
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:pubdate"/>
708
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:pubdate"/>
709
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
710
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:revision"/>
711
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:revision"/>
712
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:revision"/>
713
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:revhistory"/>
714
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:revhistory"/>
715
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
716
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:abstract"/>
717
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:abstract"/>
718
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
721
<xsl:template name="partintro.titlepage.verso">
724
<xsl:template name="partintro.titlepage.separator">
727
<xsl:template name="partintro.titlepage.before.recto">
730
<xsl:template name="partintro.titlepage.before.verso">
733
<xsl:template name="partintro.titlepage">
734
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
735
<xsl:variable name="recto.content">
736
<xsl:call-template name="partintro.titlepage.before.recto"/>
737
<xsl:call-template name="partintro.titlepage.recto"/>
739
<xsl:variable name="recto.elements.count">
741
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
742
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
743
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
744
<xsl:otherwise>1</xsl:otherwise>
747
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
748
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
750
<xsl:variable name="verso.content">
751
<xsl:call-template name="partintro.titlepage.before.verso"/>
752
<xsl:call-template name="partintro.titlepage.verso"/>
754
<xsl:variable name="verso.elements.count">
756
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
757
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
758
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
759
<xsl:otherwise>1</xsl:otherwise>
762
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
763
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
765
<xsl:call-template name="partintro.titlepage.separator"/>
769
<xsl:template match="*" mode="partintro.titlepage.recto.mode">
770
<!-- if an element isn't found in this mode, -->
771
<!-- try the generic titlepage.mode -->
772
<xsl:apply-templates select="." mode="titlepage.mode"/>
775
<xsl:template match="*" mode="partintro.titlepage.verso.mode">
776
<!-- if an element isn't found in this mode, -->
777
<!-- try the generic titlepage.mode -->
778
<xsl:apply-templates select="." mode="titlepage.mode"/>
781
<xsl:template match="d:title" 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" text-align="center" font-size="24.8832pt" font-weight="bold" space-before="1em" font-family="{$title.fontset}">
783
<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
787
<xsl:template match="d:subtitle" 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" text-align="center" font-size="14.4pt" font-weight="bold" font-style="italic" font-family="{$title.fontset}">
789
<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
793
<xsl:template match="d:corpauthor" 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:authorgroup" 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:author" 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:othercredit" 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:releaseinfo" 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:copyright" 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:legalnotice" 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:pubdate" 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 match="d:revision" mode="partintro.titlepage.recto.auto.mode">
842
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style">
843
<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
847
<xsl:template match="d:revhistory" mode="partintro.titlepage.recto.auto.mode">
848
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style">
849
<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
853
<xsl:template match="d:abstract" mode="partintro.titlepage.recto.auto.mode">
854
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style">
855
<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
859
<xsl:template name="reference.titlepage.recto">
861
<xsl:when test="d:referenceinfo/d:title">
862
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:title"/>
864
<xsl:when test="d:docinfo/d:title">
865
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
867
<xsl:when test="d:info/d:title">
868
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:title"/>
870
<xsl:when test="d:title">
871
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:title"/>
876
<xsl:when test="d:referenceinfo/d:subtitle">
877
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:subtitle"/>
879
<xsl:when test="d:docinfo/d:subtitle">
880
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
882
<xsl:when test="d:info/d:subtitle">
883
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
885
<xsl:when test="d:subtitle">
886
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:subtitle"/>
890
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:corpauthor"/>
891
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:corpauthor"/>
892
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
893
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:authorgroup"/>
894
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:authorgroup"/>
895
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
896
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:author"/>
897
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:author"/>
898
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:author"/>
899
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:othercredit"/>
900
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:othercredit"/>
901
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
902
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:releaseinfo"/>
903
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:releaseinfo"/>
904
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
905
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:copyright"/>
906
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:copyright"/>
907
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
908
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:legalnotice"/>
909
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:legalnotice"/>
910
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
911
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:pubdate"/>
912
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:pubdate"/>
913
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
914
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:revision"/>
915
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:revision"/>
916
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:revision"/>
917
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:revhistory"/>
918
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:revhistory"/>
919
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
920
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:abstract"/>
921
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:abstract"/>
922
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
925
<xsl:template name="reference.titlepage.verso">
928
<xsl:template name="reference.titlepage.separator">
931
<xsl:template name="reference.titlepage.before.recto">
934
<xsl:template name="reference.titlepage.before.verso">
937
<xsl:template name="reference.titlepage">
938
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
939
<xsl:variable name="recto.content">
940
<xsl:call-template name="reference.titlepage.before.recto"/>
941
<xsl:call-template name="reference.titlepage.recto"/>
943
<xsl:variable name="recto.elements.count">
945
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
946
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
947
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
948
<xsl:otherwise>1</xsl:otherwise>
951
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
952
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
954
<xsl:variable name="verso.content">
955
<xsl:call-template name="reference.titlepage.before.verso"/>
956
<xsl:call-template name="reference.titlepage.verso"/>
958
<xsl:variable name="verso.elements.count">
960
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
961
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
962
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
963
<xsl:otherwise>1</xsl:otherwise>
966
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
967
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
969
<xsl:call-template name="reference.titlepage.separator"/>
973
<xsl:template match="*" mode="reference.titlepage.recto.mode">
974
<!-- if an element isn't found in this mode, -->
975
<!-- try the generic titlepage.mode -->
976
<xsl:apply-templates select="." mode="titlepage.mode"/>
979
<xsl:template match="*" mode="reference.titlepage.verso.mode">
980
<!-- if an element isn't found in this mode, -->
981
<!-- try the generic titlepage.mode -->
982
<xsl:apply-templates select="." mode="titlepage.mode"/>
985
<xsl:template match="d:title" mode="reference.titlepage.recto.auto.mode">
986
<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}">
987
<xsl:call-template name="division.title">
988
<xsl:with-param name="node" select="ancestor-or-self::d:reference[1]"/>
993
<xsl:template match="d:subtitle" 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" font-family="{$title.fontset}" text-align="center">
995
<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
999
<xsl:template match="d:corpauthor" 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:authorgroup" 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:author" 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:othercredit" 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:releaseinfo" 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:copyright" 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:legalnotice" 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:pubdate" 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 match="d:revision" mode="reference.titlepage.recto.auto.mode">
1048
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style">
1049
<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1053
<xsl:template match="d:revhistory" mode="reference.titlepage.recto.auto.mode">
1054
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style">
1055
<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1059
<xsl:template match="d:abstract" mode="reference.titlepage.recto.auto.mode">
1060
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style">
1061
<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1065
<xsl:template name="refsynopsisdiv.titlepage.recto">
1067
<xsl:when test="d:refsynopsisdivinfo/d:title">
1068
<xsl:apply-templates mode="refsynopsisdiv.titlepage.recto.auto.mode" select="d:refsynopsisdivinfo/d:title"/>
1070
<xsl:when test="d:docinfo/d:title">
1071
<xsl:apply-templates mode="refsynopsisdiv.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
1073
<xsl:when test="d:info/d:title">
1074
<xsl:apply-templates mode="refsynopsisdiv.titlepage.recto.auto.mode" select="d:info/d:title"/>
1076
<xsl:when test="d:title">
1077
<xsl:apply-templates mode="refsynopsisdiv.titlepage.recto.auto.mode" select="d:title"/>
1083
<xsl:template name="refsynopsisdiv.titlepage.verso">
1086
<xsl:template name="refsynopsisdiv.titlepage.separator">
1089
<xsl:template name="refsynopsisdiv.titlepage.before.recto">
1092
<xsl:template name="refsynopsisdiv.titlepage.before.verso">
1095
<xsl:template name="refsynopsisdiv.titlepage">
1096
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
1097
<xsl:variable name="recto.content">
1098
<xsl:call-template name="refsynopsisdiv.titlepage.before.recto"/>
1099
<xsl:call-template name="refsynopsisdiv.titlepage.recto"/>
1101
<xsl:variable name="recto.elements.count">
1103
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1104
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1105
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1106
<xsl:otherwise>1</xsl:otherwise>
1109
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
1110
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
1112
<xsl:variable name="verso.content">
1113
<xsl:call-template name="refsynopsisdiv.titlepage.before.verso"/>
1114
<xsl:call-template name="refsynopsisdiv.titlepage.verso"/>
1116
<xsl:variable name="verso.elements.count">
1118
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1119
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1120
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1121
<xsl:otherwise>1</xsl:otherwise>
1124
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
1125
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
1127
<xsl:call-template name="refsynopsisdiv.titlepage.separator"/>
1131
<xsl:template match="*" mode="refsynopsisdiv.titlepage.recto.mode">
1132
<!-- if an element isn't found in this mode, -->
1133
<!-- try the generic titlepage.mode -->
1134
<xsl:apply-templates select="." mode="titlepage.mode"/>
1137
<xsl:template match="*" mode="refsynopsisdiv.titlepage.verso.mode">
1138
<!-- if an element isn't found in this mode, -->
1139
<!-- try the generic titlepage.mode -->
1140
<xsl:apply-templates select="." mode="titlepage.mode"/>
1143
<xsl:template match="d:title" mode="refsynopsisdiv.titlepage.recto.auto.mode">
1144
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="refsynopsisdiv.titlepage.recto.style" font-family="{$title.fontset}">
1145
<xsl:apply-templates select="." mode="refsynopsisdiv.titlepage.recto.mode"/>
1149
<xsl:template name="refsection.titlepage.recto">
1151
<xsl:when test="d:refsectioninfo/d:title">
1152
<xsl:apply-templates mode="refsection.titlepage.recto.auto.mode" select="d:refsectioninfo/d:title"/>
1154
<xsl:when test="d:docinfo/d:title">
1155
<xsl:apply-templates mode="refsection.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
1157
<xsl:when test="d:info/d:title">
1158
<xsl:apply-templates mode="refsection.titlepage.recto.auto.mode" select="d:info/d:title"/>
1160
<xsl:when test="d:title">
1161
<xsl:apply-templates mode="refsection.titlepage.recto.auto.mode" select="d:title"/>
1167
<xsl:template name="refsection.titlepage.verso">
1170
<xsl:template name="refsection.titlepage.separator">
1173
<xsl:template name="refsection.titlepage.before.recto">
1176
<xsl:template name="refsection.titlepage.before.verso">
1179
<xsl:template name="refsection.titlepage">
1180
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
1181
<xsl:variable name="recto.content">
1182
<xsl:call-template name="refsection.titlepage.before.recto"/>
1183
<xsl:call-template name="refsection.titlepage.recto"/>
1185
<xsl:variable name="recto.elements.count">
1187
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1188
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1189
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1190
<xsl:otherwise>1</xsl:otherwise>
1193
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
1194
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
1196
<xsl:variable name="verso.content">
1197
<xsl:call-template name="refsection.titlepage.before.verso"/>
1198
<xsl:call-template name="refsection.titlepage.verso"/>
1200
<xsl:variable name="verso.elements.count">
1202
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1203
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1204
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1205
<xsl:otherwise>1</xsl:otherwise>
1208
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
1209
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
1211
<xsl:call-template name="refsection.titlepage.separator"/>
1215
<xsl:template match="*" mode="refsection.titlepage.recto.mode">
1216
<!-- if an element isn't found in this mode, -->
1217
<!-- try the generic titlepage.mode -->
1218
<xsl:apply-templates select="." mode="titlepage.mode"/>
1221
<xsl:template match="*" mode="refsection.titlepage.verso.mode">
1222
<!-- if an element isn't found in this mode, -->
1223
<!-- try the generic titlepage.mode -->
1224
<xsl:apply-templates select="." mode="titlepage.mode"/>
1227
<xsl:template match="d:title" mode="refsection.titlepage.recto.auto.mode">
1228
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="refsection.titlepage.recto.style" font-family="{$title.fontset}">
1229
<xsl:apply-templates select="." mode="refsection.titlepage.recto.mode"/>
1233
<xsl:template name="refsect1.titlepage.recto">
1235
<xsl:when test="d:refsect1info/d:title">
1236
<xsl:apply-templates mode="refsect1.titlepage.recto.auto.mode" select="d:refsect1info/d:title"/>
1238
<xsl:when test="d:docinfo/d:title">
1239
<xsl:apply-templates mode="refsect1.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
1241
<xsl:when test="d:info/d:title">
1242
<xsl:apply-templates mode="refsect1.titlepage.recto.auto.mode" select="d:info/d:title"/>
1244
<xsl:when test="d:title">
1245
<xsl:apply-templates mode="refsect1.titlepage.recto.auto.mode" select="d:title"/>
1251
<xsl:template name="refsect1.titlepage.verso">
1254
<xsl:template name="refsect1.titlepage.separator">
1257
<xsl:template name="refsect1.titlepage.before.recto">
1260
<xsl:template name="refsect1.titlepage.before.verso">
1263
<xsl:template name="refsect1.titlepage">
1264
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
1265
<xsl:variable name="recto.content">
1266
<xsl:call-template name="refsect1.titlepage.before.recto"/>
1267
<xsl:call-template name="refsect1.titlepage.recto"/>
1269
<xsl:variable name="recto.elements.count">
1271
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1272
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1273
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1274
<xsl:otherwise>1</xsl:otherwise>
1277
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
1278
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
1280
<xsl:variable name="verso.content">
1281
<xsl:call-template name="refsect1.titlepage.before.verso"/>
1282
<xsl:call-template name="refsect1.titlepage.verso"/>
1284
<xsl:variable name="verso.elements.count">
1286
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1287
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1288
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1289
<xsl:otherwise>1</xsl:otherwise>
1292
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
1293
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
1295
<xsl:call-template name="refsect1.titlepage.separator"/>
1299
<xsl:template match="*" mode="refsect1.titlepage.recto.mode">
1300
<!-- if an element isn't found in this mode, -->
1301
<!-- try the generic titlepage.mode -->
1302
<xsl:apply-templates select="." mode="titlepage.mode"/>
1305
<xsl:template match="*" mode="refsect1.titlepage.verso.mode">
1306
<!-- if an element isn't found in this mode, -->
1307
<!-- try the generic titlepage.mode -->
1308
<xsl:apply-templates select="." mode="titlepage.mode"/>
1311
<xsl:template match="d:title" mode="refsect1.titlepage.recto.auto.mode">
1312
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="refsect1.titlepage.recto.style" font-family="{$title.fontset}">
1313
<xsl:apply-templates select="." mode="refsect1.titlepage.recto.mode"/>
1317
<xsl:template name="refsect2.titlepage.recto">
1319
<xsl:when test="d:refsect2info/d:title">
1320
<xsl:apply-templates mode="refsect2.titlepage.recto.auto.mode" select="d:refsect2info/d:title"/>
1322
<xsl:when test="d:docinfo/d:title">
1323
<xsl:apply-templates mode="refsect2.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
1325
<xsl:when test="d:info/d:title">
1326
<xsl:apply-templates mode="refsect2.titlepage.recto.auto.mode" select="d:info/d:title"/>
1328
<xsl:when test="d:title">
1329
<xsl:apply-templates mode="refsect2.titlepage.recto.auto.mode" select="d:title"/>
1335
<xsl:template name="refsect2.titlepage.verso">
1338
<xsl:template name="refsect2.titlepage.separator">
1341
<xsl:template name="refsect2.titlepage.before.recto">
1344
<xsl:template name="refsect2.titlepage.before.verso">
1347
<xsl:template name="refsect2.titlepage">
1348
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
1349
<xsl:variable name="recto.content">
1350
<xsl:call-template name="refsect2.titlepage.before.recto"/>
1351
<xsl:call-template name="refsect2.titlepage.recto"/>
1353
<xsl:variable name="recto.elements.count">
1355
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1356
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1357
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1358
<xsl:otherwise>1</xsl:otherwise>
1361
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
1362
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
1364
<xsl:variable name="verso.content">
1365
<xsl:call-template name="refsect2.titlepage.before.verso"/>
1366
<xsl:call-template name="refsect2.titlepage.verso"/>
1368
<xsl:variable name="verso.elements.count">
1370
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1371
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1372
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1373
<xsl:otherwise>1</xsl:otherwise>
1376
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
1377
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
1379
<xsl:call-template name="refsect2.titlepage.separator"/>
1383
<xsl:template match="*" mode="refsect2.titlepage.recto.mode">
1384
<!-- if an element isn't found in this mode, -->
1385
<!-- try the generic titlepage.mode -->
1386
<xsl:apply-templates select="." mode="titlepage.mode"/>
1389
<xsl:template match="*" mode="refsect2.titlepage.verso.mode">
1390
<!-- if an element isn't found in this mode, -->
1391
<!-- try the generic titlepage.mode -->
1392
<xsl:apply-templates select="." mode="titlepage.mode"/>
1395
<xsl:template match="d:title" mode="refsect2.titlepage.recto.auto.mode">
1396
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="refsect2.titlepage.recto.style" font-family="{$title.fontset}">
1397
<xsl:apply-templates select="." mode="refsect2.titlepage.recto.mode"/>
1401
<xsl:template name="refsect3.titlepage.recto">
1403
<xsl:when test="d:refsect3info/d:title">
1404
<xsl:apply-templates mode="refsect3.titlepage.recto.auto.mode" select="d:refsect3info/d:title"/>
1406
<xsl:when test="d:docinfo/d:title">
1407
<xsl:apply-templates mode="refsect3.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
1409
<xsl:when test="d:info/d:title">
1410
<xsl:apply-templates mode="refsect3.titlepage.recto.auto.mode" select="d:info/d:title"/>
1412
<xsl:when test="d:title">
1413
<xsl:apply-templates mode="refsect3.titlepage.recto.auto.mode" select="d:title"/>
1419
<xsl:template name="refsect3.titlepage.verso">
1422
<xsl:template name="refsect3.titlepage.separator">
1425
<xsl:template name="refsect3.titlepage.before.recto">
1428
<xsl:template name="refsect3.titlepage.before.verso">
1431
<xsl:template name="refsect3.titlepage">
1432
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
1433
<xsl:variable name="recto.content">
1434
<xsl:call-template name="refsect3.titlepage.before.recto"/>
1435
<xsl:call-template name="refsect3.titlepage.recto"/>
1437
<xsl:variable name="recto.elements.count">
1439
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1440
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1441
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1442
<xsl:otherwise>1</xsl:otherwise>
1445
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
1446
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
1448
<xsl:variable name="verso.content">
1449
<xsl:call-template name="refsect3.titlepage.before.verso"/>
1450
<xsl:call-template name="refsect3.titlepage.verso"/>
1452
<xsl:variable name="verso.elements.count">
1454
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1455
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1456
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1457
<xsl:otherwise>1</xsl:otherwise>
1460
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
1461
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
1463
<xsl:call-template name="refsect3.titlepage.separator"/>
1467
<xsl:template match="*" mode="refsect3.titlepage.recto.mode">
1468
<!-- if an element isn't found in this mode, -->
1469
<!-- try the generic titlepage.mode -->
1470
<xsl:apply-templates select="." mode="titlepage.mode"/>
1473
<xsl:template match="*" mode="refsect3.titlepage.verso.mode">
1474
<!-- if an element isn't found in this mode, -->
1475
<!-- try the generic titlepage.mode -->
1476
<xsl:apply-templates select="." mode="titlepage.mode"/>
1479
<xsl:template match="d:title" mode="refsect3.titlepage.recto.auto.mode">
1480
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="refsect3.titlepage.recto.style" font-family="{$title.fontset}">
1481
<xsl:apply-templates select="." mode="refsect3.titlepage.recto.mode"/>
1485
<xsl:template name="dedication.titlepage.recto">
1486
<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">
1487
<xsl:call-template name="component.title">
1488
<xsl:with-param name="node" select="ancestor-or-self::d:dedication[1]"/>
1489
</xsl:call-template></fo:block>
1491
<xsl:when test="d:dedicationinfo/d:subtitle">
1492
<xsl:apply-templates mode="dedication.titlepage.recto.auto.mode" select="d:dedicationinfo/d:subtitle"/>
1494
<xsl:when test="d:docinfo/d:subtitle">
1495
<xsl:apply-templates mode="dedication.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
1497
<xsl:when test="d:info/d:subtitle">
1498
<xsl:apply-templates mode="dedication.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
1500
<xsl:when test="d:subtitle">
1501
<xsl:apply-templates mode="dedication.titlepage.recto.auto.mode" select="d:subtitle"/>
1507
<xsl:template name="dedication.titlepage.verso">
1510
<xsl:template name="dedication.titlepage.separator">
1513
<xsl:template name="dedication.titlepage.before.recto">
1516
<xsl:template name="dedication.titlepage.before.verso">
1519
<xsl:template name="dedication.titlepage">
1520
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
1521
<xsl:variable name="recto.content">
1522
<xsl:call-template name="dedication.titlepage.before.recto"/>
1523
<xsl:call-template name="dedication.titlepage.recto"/>
1525
<xsl:variable name="recto.elements.count">
1527
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1528
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1529
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1530
<xsl:otherwise>1</xsl:otherwise>
1533
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
1534
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
1536
<xsl:variable name="verso.content">
1537
<xsl:call-template name="dedication.titlepage.before.verso"/>
1538
<xsl:call-template name="dedication.titlepage.verso"/>
1540
<xsl:variable name="verso.elements.count">
1542
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1543
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1544
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1545
<xsl:otherwise>1</xsl:otherwise>
1548
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
1549
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
1551
<xsl:call-template name="dedication.titlepage.separator"/>
1555
<xsl:template match="*" mode="dedication.titlepage.recto.mode">
1556
<!-- if an element isn't found in this mode, -->
1557
<!-- try the generic titlepage.mode -->
1558
<xsl:apply-templates select="." mode="titlepage.mode"/>
1561
<xsl:template match="*" mode="dedication.titlepage.verso.mode">
1562
<!-- if an element isn't found in this mode, -->
1563
<!-- try the generic titlepage.mode -->
1564
<xsl:apply-templates select="." mode="titlepage.mode"/>
1567
<xsl:template match="d:subtitle" mode="dedication.titlepage.recto.auto.mode">
1568
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="dedication.titlepage.recto.style" font-family="{$title.fontset}">
1569
<xsl:apply-templates select="." mode="dedication.titlepage.recto.mode"/>
1573
<xsl:template name="acknowledgements.titlepage.recto">
1574
<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">
1575
<xsl:call-template name="component.title">
1576
<xsl:with-param name="node" select="ancestor-or-self::d:acknowledgements[1]"/>
1577
</xsl:call-template></fo:block>
1579
<xsl:when test="d:acknowledgementsinfo/d:subtitle">
1580
<xsl:apply-templates mode="acknowledgements.titlepage.recto.auto.mode" select="d:acknowledgementsinfo/d:subtitle"/>
1582
<xsl:when test="d:docinfo/d:subtitle">
1583
<xsl:apply-templates mode="acknowledgements.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
1585
<xsl:when test="d:info/d:subtitle">
1586
<xsl:apply-templates mode="acknowledgements.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
1588
<xsl:when test="d:subtitle">
1589
<xsl:apply-templates mode="acknowledgements.titlepage.recto.auto.mode" select="d:subtitle"/>
1595
<xsl:template name="acknowledgements.titlepage.verso">
1598
<xsl:template name="acknowledgements.titlepage.separator">
1601
<xsl:template name="acknowledgements.titlepage.before.recto">
1604
<xsl:template name="acknowledgements.titlepage.before.verso">
1607
<xsl:template name="acknowledgements.titlepage">
1608
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
1609
<xsl:variable name="recto.content">
1610
<xsl:call-template name="acknowledgements.titlepage.before.recto"/>
1611
<xsl:call-template name="acknowledgements.titlepage.recto"/>
1613
<xsl:variable name="recto.elements.count">
1615
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1616
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1617
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1618
<xsl:otherwise>1</xsl:otherwise>
1621
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
1622
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
1624
<xsl:variable name="verso.content">
1625
<xsl:call-template name="acknowledgements.titlepage.before.verso"/>
1626
<xsl:call-template name="acknowledgements.titlepage.verso"/>
1628
<xsl:variable name="verso.elements.count">
1630
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1631
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1632
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1633
<xsl:otherwise>1</xsl:otherwise>
1636
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
1637
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
1639
<xsl:call-template name="acknowledgements.titlepage.separator"/>
1643
<xsl:template match="*" mode="acknowledgements.titlepage.recto.mode">
1644
<!-- if an element isn't found in this mode, -->
1645
<!-- try the generic titlepage.mode -->
1646
<xsl:apply-templates select="." mode="titlepage.mode"/>
1649
<xsl:template match="*" mode="acknowledgements.titlepage.verso.mode">
1650
<!-- if an element isn't found in this mode, -->
1651
<!-- try the generic titlepage.mode -->
1652
<xsl:apply-templates select="." mode="titlepage.mode"/>
1655
<xsl:template match="d:subtitle" mode="acknowledgements.titlepage.recto.auto.mode">
1656
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="acknowledgements.titlepage.recto.style" font-family="{$title.fontset}">
1657
<xsl:apply-templates select="." mode="acknowledgements.titlepage.recto.mode"/>
1661
<xsl:template name="preface.titlepage.recto">
1662
<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">
1663
<xsl:call-template name="component.title">
1664
<xsl:with-param name="node" select="ancestor-or-self::d:preface[1]"/>
1665
</xsl:call-template></fo:block>
1667
<xsl:when test="d:prefaceinfo/d:subtitle">
1668
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:subtitle"/>
1670
<xsl:when test="d:docinfo/d:subtitle">
1671
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
1673
<xsl:when test="d:info/d:subtitle">
1674
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
1676
<xsl:when test="d:subtitle">
1677
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:subtitle"/>
1681
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:corpauthor"/>
1682
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:corpauthor"/>
1683
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
1684
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:authorgroup"/>
1685
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:authorgroup"/>
1686
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
1687
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:author"/>
1688
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:author"/>
1689
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:author"/>
1690
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:othercredit"/>
1691
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:othercredit"/>
1692
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
1693
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:releaseinfo"/>
1694
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:releaseinfo"/>
1695
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
1696
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:copyright"/>
1697
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:copyright"/>
1698
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
1699
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:legalnotice"/>
1700
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:legalnotice"/>
1701
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
1702
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:pubdate"/>
1703
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:pubdate"/>
1704
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
1705
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:revision"/>
1706
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:revision"/>
1707
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:revision"/>
1708
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:revhistory"/>
1709
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:revhistory"/>
1710
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
1711
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:abstract"/>
1712
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:abstract"/>
1713
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
1716
<xsl:template name="preface.titlepage.verso">
1719
<xsl:template name="preface.titlepage.separator">
1722
<xsl:template name="preface.titlepage.before.recto">
1725
<xsl:template name="preface.titlepage.before.verso">
1728
<xsl:template name="preface.titlepage">
1729
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
1730
<xsl:variable name="recto.content">
1731
<xsl:call-template name="preface.titlepage.before.recto"/>
1732
<xsl:call-template name="preface.titlepage.recto"/>
1734
<xsl:variable name="recto.elements.count">
1736
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1737
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1738
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1739
<xsl:otherwise>1</xsl:otherwise>
1742
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
1743
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
1745
<xsl:variable name="verso.content">
1746
<xsl:call-template name="preface.titlepage.before.verso"/>
1747
<xsl:call-template name="preface.titlepage.verso"/>
1749
<xsl:variable name="verso.elements.count">
1751
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1752
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1753
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1754
<xsl:otherwise>1</xsl:otherwise>
1757
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
1758
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
1760
<xsl:call-template name="preface.titlepage.separator"/>
1764
<xsl:template match="*" mode="preface.titlepage.recto.mode">
1765
<!-- if an element isn't found in this mode, -->
1766
<!-- try the generic titlepage.mode -->
1767
<xsl:apply-templates select="." mode="titlepage.mode"/>
1770
<xsl:template match="*" mode="preface.titlepage.verso.mode">
1771
<!-- if an element isn't found in this mode, -->
1772
<!-- try the generic titlepage.mode -->
1773
<xsl:apply-templates select="." mode="titlepage.mode"/>
1776
<xsl:template match="d:subtitle" 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" font-family="{$title.fontset}">
1778
<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1782
<xsl:template match="d:corpauthor" 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:authorgroup" 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:author" 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:othercredit" 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:releaseinfo" 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:copyright" 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:legalnotice" 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:pubdate" 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 match="d:revision" mode="preface.titlepage.recto.auto.mode">
1831
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style">
1832
<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1836
<xsl:template match="d:revhistory" mode="preface.titlepage.recto.auto.mode">
1837
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style">
1838
<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1842
<xsl:template match="d:abstract" mode="preface.titlepage.recto.auto.mode">
1843
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style">
1844
<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1848
<xsl:template name="chapter.titlepage.recto">
1850
<xsl:when test="d:chapterinfo/d:title">
1851
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:title"/>
1853
<xsl:when test="d:docinfo/d:title">
1854
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
1856
<xsl:when test="d:info/d:title">
1857
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:title"/>
1859
<xsl:when test="d:title">
1860
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:title"/>
1865
<xsl:when test="d:chapterinfo/d:subtitle">
1866
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:subtitle"/>
1868
<xsl:when test="d:docinfo/d:subtitle">
1869
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
1871
<xsl:when test="d:info/d:subtitle">
1872
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
1874
<xsl:when test="d:subtitle">
1875
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:subtitle"/>
1879
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:corpauthor"/>
1880
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:corpauthor"/>
1881
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
1882
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:authorgroup"/>
1883
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:authorgroup"/>
1884
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
1885
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:author"/>
1886
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:author"/>
1887
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:author"/>
1888
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:othercredit"/>
1889
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:othercredit"/>
1890
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
1891
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:releaseinfo"/>
1892
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:releaseinfo"/>
1893
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
1894
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:copyright"/>
1895
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:copyright"/>
1896
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
1897
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:legalnotice"/>
1898
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:legalnotice"/>
1899
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
1900
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:pubdate"/>
1901
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:pubdate"/>
1902
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
1903
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:revision"/>
1904
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:revision"/>
1905
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:revision"/>
1906
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:revhistory"/>
1907
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:revhistory"/>
1908
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
1909
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:abstract"/>
1910
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:abstract"/>
1911
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
1914
<xsl:template name="chapter.titlepage.verso">
1917
<xsl:template name="chapter.titlepage.separator">
1920
<xsl:template name="chapter.titlepage.before.recto">
1923
<xsl:template name="chapter.titlepage.before.verso">
1926
<xsl:template name="chapter.titlepage">
1927
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" font-family="{$title.fontset}">
1928
<xsl:variable name="recto.content">
1929
<xsl:call-template name="chapter.titlepage.before.recto"/>
1930
<xsl:call-template name="chapter.titlepage.recto"/>
1932
<xsl:variable name="recto.elements.count">
1934
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1935
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1936
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1937
<xsl:otherwise>1</xsl:otherwise>
1940
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
1941
<fo:block margin-left="{$title.margin.left}"><xsl:copy-of select="$recto.content"/></fo:block>
1943
<xsl:variable name="verso.content">
1944
<xsl:call-template name="chapter.titlepage.before.verso"/>
1945
<xsl:call-template name="chapter.titlepage.verso"/>
1947
<xsl:variable name="verso.elements.count">
1949
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1950
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1951
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1952
<xsl:otherwise>1</xsl:otherwise>
1955
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
1956
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
1958
<xsl:call-template name="chapter.titlepage.separator"/>
1962
<xsl:template match="*" mode="chapter.titlepage.recto.mode">
1963
<!-- if an element isn't found in this mode, -->
1964
<!-- try the generic titlepage.mode -->
1965
<xsl:apply-templates select="." mode="titlepage.mode"/>
1968
<xsl:template match="*" mode="chapter.titlepage.verso.mode">
1969
<!-- if an element isn't found in this mode, -->
1970
<!-- try the generic titlepage.mode -->
1971
<xsl:apply-templates select="." mode="titlepage.mode"/>
1974
<xsl:template match="d:title" mode="chapter.titlepage.recto.auto.mode">
1975
<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">
1976
<xsl:call-template name="component.title">
1977
<xsl:with-param name="node" select="ancestor-or-self::d:chapter[1]"/>
1978
</xsl:call-template>
1982
<xsl:template match="d:subtitle" 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" font-style="italic" font-size="14.4pt" font-weight="bold">
1984
<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1988
<xsl:template match="d:corpauthor" 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" space-before="0.5em" space-after="0.5em" font-size="14.4pt">
1990
<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1994
<xsl:template match="d:authorgroup" 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" space-before="0.5em" space-after="0.5em" font-size="14.4pt">
1996
<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
2000
<xsl:template match="d:author" 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" space-before="0.5em" space-after="0.5em" font-size="14.4pt">
2002
<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
2006
<xsl:template match="d:othercredit" 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:releaseinfo" 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:copyright" 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:legalnotice" 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:pubdate" 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 match="d:revision" mode="chapter.titlepage.recto.auto.mode">
2037
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style">
2038
<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
2042
<xsl:template match="d:revhistory" mode="chapter.titlepage.recto.auto.mode">
2043
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style">
2044
<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
2048
<xsl:template match="d:abstract" mode="chapter.titlepage.recto.auto.mode">
2049
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style">
2050
<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
2054
<xsl:template name="appendix.titlepage.recto">
2056
<xsl:when test="d:appendixinfo/d:title">
2057
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:title"/>
2059
<xsl:when test="d:docinfo/d:title">
2060
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
2062
<xsl:when test="d:info/d:title">
2063
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:title"/>
2065
<xsl:when test="d:title">
2066
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:title"/>
2071
<xsl:when test="d:appendixinfo/d:subtitle">
2072
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:subtitle"/>
2074
<xsl:when test="d:docinfo/d:subtitle">
2075
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
2077
<xsl:when test="d:info/d:subtitle">
2078
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
2080
<xsl:when test="d:subtitle">
2081
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:subtitle"/>
2085
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:corpauthor"/>
2086
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:corpauthor"/>
2087
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
2088
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:authorgroup"/>
2089
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:authorgroup"/>
2090
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
2091
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:author"/>
2092
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:author"/>
2093
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:author"/>
2094
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:othercredit"/>
2095
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:othercredit"/>
2096
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
2097
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:releaseinfo"/>
2098
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:releaseinfo"/>
2099
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
2100
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:copyright"/>
2101
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:copyright"/>
2102
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
2103
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:legalnotice"/>
2104
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:legalnotice"/>
2105
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
2106
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:pubdate"/>
2107
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:pubdate"/>
2108
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
2109
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:revision"/>
2110
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:revision"/>
2111
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:revision"/>
2112
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:revhistory"/>
2113
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:revhistory"/>
2114
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
2115
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:abstract"/>
2116
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:abstract"/>
2117
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
2120
<xsl:template name="appendix.titlepage.verso">
2123
<xsl:template name="appendix.titlepage.separator">
2126
<xsl:template name="appendix.titlepage.before.recto">
2129
<xsl:template name="appendix.titlepage.before.verso">
2132
<xsl:template name="appendix.titlepage">
2133
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
2134
<xsl:variable name="recto.content">
2135
<xsl:call-template name="appendix.titlepage.before.recto"/>
2136
<xsl:call-template name="appendix.titlepage.recto"/>
2138
<xsl:variable name="recto.elements.count">
2140
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2141
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2142
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2143
<xsl:otherwise>1</xsl:otherwise>
2146
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
2147
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
2149
<xsl:variable name="verso.content">
2150
<xsl:call-template name="appendix.titlepage.before.verso"/>
2151
<xsl:call-template name="appendix.titlepage.verso"/>
2153
<xsl:variable name="verso.elements.count">
2155
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2156
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2157
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2158
<xsl:otherwise>1</xsl:otherwise>
2161
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
2162
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
2164
<xsl:call-template name="appendix.titlepage.separator"/>
2168
<xsl:template match="*" mode="appendix.titlepage.recto.mode">
2169
<!-- if an element isn't found in this mode, -->
2170
<!-- try the generic titlepage.mode -->
2171
<xsl:apply-templates select="." mode="titlepage.mode"/>
2174
<xsl:template match="*" mode="appendix.titlepage.verso.mode">
2175
<!-- if an element isn't found in this mode, -->
2176
<!-- try the generic titlepage.mode -->
2177
<xsl:apply-templates select="." mode="titlepage.mode"/>
2180
<xsl:template match="d:title" mode="appendix.titlepage.recto.auto.mode">
2181
<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}">
2182
<xsl:call-template name="component.title">
2183
<xsl:with-param name="node" select="ancestor-or-self::d:appendix[1]"/>
2184
</xsl:call-template>
2188
<xsl:template match="d:subtitle" 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" font-family="{$title.fontset}">
2190
<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
2194
<xsl:template match="d:corpauthor" 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:authorgroup" 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:author" 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:othercredit" 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:releaseinfo" 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:copyright" 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:legalnotice" 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:pubdate" 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 match="d:revision" mode="appendix.titlepage.recto.auto.mode">
2243
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style">
2244
<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
2248
<xsl:template match="d:revhistory" mode="appendix.titlepage.recto.auto.mode">
2249
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style">
2250
<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
2254
<xsl:template match="d:abstract" mode="appendix.titlepage.recto.auto.mode">
2255
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style">
2256
<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
2260
<xsl:template name="section.titlepage.recto">
2262
<xsl:when test="d:sectioninfo/d:title">
2263
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:title"/>
2265
<xsl:when test="d:info/d:title">
2266
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:title"/>
2268
<xsl:when test="d:title">
2269
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:title"/>
2274
<xsl:when test="d:sectioninfo/d:subtitle">
2275
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:subtitle"/>
2277
<xsl:when test="d:info/d:subtitle">
2278
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
2280
<xsl:when test="d:subtitle">
2281
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:subtitle"/>
2285
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:corpauthor"/>
2286
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
2287
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:authorgroup"/>
2288
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
2289
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:author"/>
2290
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:author"/>
2291
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:othercredit"/>
2292
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
2293
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:releaseinfo"/>
2294
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
2295
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:copyright"/>
2296
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
2297
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:legalnotice"/>
2298
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
2299
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:pubdate"/>
2300
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
2301
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:revision"/>
2302
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:revision"/>
2303
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:revhistory"/>
2304
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
2305
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:abstract"/>
2306
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
2309
<xsl:template name="section.titlepage.verso">
2312
<xsl:template name="section.titlepage.separator">
2315
<xsl:template name="section.titlepage.before.recto">
2318
<xsl:template name="section.titlepage.before.verso">
2321
<xsl:template name="section.titlepage">
2322
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
2323
<xsl:variable name="recto.content">
2324
<xsl:call-template name="section.titlepage.before.recto"/>
2325
<xsl:call-template name="section.titlepage.recto"/>
2327
<xsl:variable name="recto.elements.count">
2329
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2330
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2331
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2332
<xsl:otherwise>1</xsl:otherwise>
2335
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
2336
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
2338
<xsl:variable name="verso.content">
2339
<xsl:call-template name="section.titlepage.before.verso"/>
2340
<xsl:call-template name="section.titlepage.verso"/>
2342
<xsl:variable name="verso.elements.count">
2344
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2345
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2346
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2347
<xsl:otherwise>1</xsl:otherwise>
2350
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
2351
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
2353
<xsl:call-template name="section.titlepage.separator"/>
2357
<xsl:template match="*" mode="section.titlepage.recto.mode">
2358
<!-- if an element isn't found in this mode, -->
2359
<!-- try the generic titlepage.mode -->
2360
<xsl:apply-templates select="." mode="titlepage.mode"/>
2363
<xsl:template match="*" mode="section.titlepage.verso.mode">
2364
<!-- if an element isn't found in this mode, -->
2365
<!-- try the generic titlepage.mode -->
2366
<xsl:apply-templates select="." mode="titlepage.mode"/>
2369
<xsl:template match="d:title" 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" margin-left="{$title.margin.left}" font-family="{$title.fontset}">
2371
<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2375
<xsl:template match="d:subtitle" 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" font-family="{$title.fontset}">
2377
<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2381
<xsl:template match="d:corpauthor" 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:authorgroup" 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:author" 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:othercredit" 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:releaseinfo" 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:copyright" 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:legalnotice" 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:pubdate" 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 match="d:revision" mode="section.titlepage.recto.auto.mode">
2430
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style">
2431
<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2435
<xsl:template match="d:revhistory" mode="section.titlepage.recto.auto.mode">
2436
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style">
2437
<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2441
<xsl:template match="d:abstract" mode="section.titlepage.recto.auto.mode">
2442
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style">
2443
<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2447
<xsl:template name="sect1.titlepage.recto">
2449
<xsl:when test="d:sect1info/d:title">
2450
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:title"/>
2452
<xsl:when test="d:info/d:title">
2453
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:title"/>
2455
<xsl:when test="d:title">
2456
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:title"/>
2461
<xsl:when test="d:sect1info/d:subtitle">
2462
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:subtitle"/>
2464
<xsl:when test="d:info/d:subtitle">
2465
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
2467
<xsl:when test="d:subtitle">
2468
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:subtitle"/>
2472
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:corpauthor"/>
2473
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
2474
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:authorgroup"/>
2475
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
2476
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:author"/>
2477
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:author"/>
2478
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:othercredit"/>
2479
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
2480
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:releaseinfo"/>
2481
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
2482
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:copyright"/>
2483
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
2484
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:legalnotice"/>
2485
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
2486
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:pubdate"/>
2487
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
2488
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:revision"/>
2489
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:revision"/>
2490
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:revhistory"/>
2491
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
2492
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:abstract"/>
2493
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
2496
<xsl:template name="sect1.titlepage.verso">
2499
<xsl:template name="sect1.titlepage.separator">
2502
<xsl:template name="sect1.titlepage.before.recto">
2505
<xsl:template name="sect1.titlepage.before.verso">
2508
<xsl:template name="sect1.titlepage">
2509
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
2510
<xsl:variable name="recto.content">
2511
<xsl:call-template name="sect1.titlepage.before.recto"/>
2512
<xsl:call-template name="sect1.titlepage.recto"/>
2514
<xsl:variable name="recto.elements.count">
2516
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2517
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2518
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2519
<xsl:otherwise>1</xsl:otherwise>
2522
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
2523
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
2525
<xsl:variable name="verso.content">
2526
<xsl:call-template name="sect1.titlepage.before.verso"/>
2527
<xsl:call-template name="sect1.titlepage.verso"/>
2529
<xsl:variable name="verso.elements.count">
2531
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2532
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2533
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2534
<xsl:otherwise>1</xsl:otherwise>
2537
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
2538
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
2540
<xsl:call-template name="sect1.titlepage.separator"/>
2544
<xsl:template match="*" mode="sect1.titlepage.recto.mode">
2545
<!-- if an element isn't found in this mode, -->
2546
<!-- try the generic titlepage.mode -->
2547
<xsl:apply-templates select="." mode="titlepage.mode"/>
2550
<xsl:template match="*" mode="sect1.titlepage.verso.mode">
2551
<!-- if an element isn't found in this mode, -->
2552
<!-- try the generic titlepage.mode -->
2553
<xsl:apply-templates select="." mode="titlepage.mode"/>
2556
<xsl:template match="d:title" 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" margin-left="{$title.margin.left}" font-family="{$title.fontset}">
2558
<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2562
<xsl:template match="d:subtitle" 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" font-family="{$title.fontset}">
2564
<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2568
<xsl:template match="d:corpauthor" 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:authorgroup" 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:author" 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:othercredit" 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:releaseinfo" 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:copyright" 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:legalnotice" 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:pubdate" 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 match="d:revision" mode="sect1.titlepage.recto.auto.mode">
2617
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style">
2618
<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2622
<xsl:template match="d:revhistory" mode="sect1.titlepage.recto.auto.mode">
2623
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style">
2624
<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2628
<xsl:template match="d:abstract" mode="sect1.titlepage.recto.auto.mode">
2629
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style">
2630
<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2634
<xsl:template name="sect2.titlepage.recto">
2636
<xsl:when test="d:sect2info/d:title">
2637
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:title"/>
2639
<xsl:when test="d:info/d:title">
2640
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:title"/>
2642
<xsl:when test="d:title">
2643
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:title"/>
2648
<xsl:when test="d:sect2info/d:subtitle">
2649
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:subtitle"/>
2651
<xsl:when test="d:info/d:subtitle">
2652
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
2654
<xsl:when test="d:subtitle">
2655
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:subtitle"/>
2659
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:corpauthor"/>
2660
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
2661
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:authorgroup"/>
2662
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
2663
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:author"/>
2664
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:author"/>
2665
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:othercredit"/>
2666
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
2667
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:releaseinfo"/>
2668
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
2669
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:copyright"/>
2670
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
2671
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:legalnotice"/>
2672
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
2673
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:pubdate"/>
2674
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
2675
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:revision"/>
2676
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:revision"/>
2677
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:revhistory"/>
2678
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
2679
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:abstract"/>
2680
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
2683
<xsl:template name="sect2.titlepage.verso">
2686
<xsl:template name="sect2.titlepage.separator">
2689
<xsl:template name="sect2.titlepage.before.recto">
2692
<xsl:template name="sect2.titlepage.before.verso">
2695
<xsl:template name="sect2.titlepage">
2696
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
2697
<xsl:variable name="recto.content">
2698
<xsl:call-template name="sect2.titlepage.before.recto"/>
2699
<xsl:call-template name="sect2.titlepage.recto"/>
2701
<xsl:variable name="recto.elements.count">
2703
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2704
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2705
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2706
<xsl:otherwise>1</xsl:otherwise>
2709
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
2710
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
2712
<xsl:variable name="verso.content">
2713
<xsl:call-template name="sect2.titlepage.before.verso"/>
2714
<xsl:call-template name="sect2.titlepage.verso"/>
2716
<xsl:variable name="verso.elements.count">
2718
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2719
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2720
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2721
<xsl:otherwise>1</xsl:otherwise>
2724
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
2725
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
2727
<xsl:call-template name="sect2.titlepage.separator"/>
2731
<xsl:template match="*" mode="sect2.titlepage.recto.mode">
2732
<!-- if an element isn't found in this mode, -->
2733
<!-- try the generic titlepage.mode -->
2734
<xsl:apply-templates select="." mode="titlepage.mode"/>
2737
<xsl:template match="*" mode="sect2.titlepage.verso.mode">
2738
<!-- if an element isn't found in this mode, -->
2739
<!-- try the generic titlepage.mode -->
2740
<xsl:apply-templates select="." mode="titlepage.mode"/>
2743
<xsl:template match="d:title" 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" margin-left="{$title.margin.left}" font-family="{$title.fontset}">
2745
<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2749
<xsl:template match="d:subtitle" 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" font-family="{$title.fontset}">
2751
<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2755
<xsl:template match="d:corpauthor" 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:authorgroup" 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:author" 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:othercredit" 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:releaseinfo" 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:copyright" 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:legalnotice" 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:pubdate" 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 match="d:revision" mode="sect2.titlepage.recto.auto.mode">
2804
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style">
2805
<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2809
<xsl:template match="d:revhistory" mode="sect2.titlepage.recto.auto.mode">
2810
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style">
2811
<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2815
<xsl:template match="d:abstract" mode="sect2.titlepage.recto.auto.mode">
2816
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style">
2817
<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2821
<xsl:template name="sect3.titlepage.recto">
2823
<xsl:when test="d:sect3info/d:title">
2824
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:title"/>
2826
<xsl:when test="d:info/d:title">
2827
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:title"/>
2829
<xsl:when test="d:title">
2830
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:title"/>
2835
<xsl:when test="d:sect3info/d:subtitle">
2836
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:subtitle"/>
2838
<xsl:when test="d:info/d:subtitle">
2839
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
2841
<xsl:when test="d:subtitle">
2842
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:subtitle"/>
2846
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:corpauthor"/>
2847
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
2848
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:authorgroup"/>
2849
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
2850
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:author"/>
2851
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:author"/>
2852
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:othercredit"/>
2853
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
2854
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:releaseinfo"/>
2855
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
2856
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:copyright"/>
2857
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
2858
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:legalnotice"/>
2859
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
2860
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:pubdate"/>
2861
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
2862
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:revision"/>
2863
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:revision"/>
2864
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:revhistory"/>
2865
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
2866
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:abstract"/>
2867
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
2870
<xsl:template name="sect3.titlepage.verso">
2873
<xsl:template name="sect3.titlepage.separator">
2876
<xsl:template name="sect3.titlepage.before.recto">
2879
<xsl:template name="sect3.titlepage.before.verso">
2882
<xsl:template name="sect3.titlepage">
2883
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
2884
<xsl:variable name="recto.content">
2885
<xsl:call-template name="sect3.titlepage.before.recto"/>
2886
<xsl:call-template name="sect3.titlepage.recto"/>
2888
<xsl:variable name="recto.elements.count">
2890
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2891
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2892
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2893
<xsl:otherwise>1</xsl:otherwise>
2896
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
2897
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
2899
<xsl:variable name="verso.content">
2900
<xsl:call-template name="sect3.titlepage.before.verso"/>
2901
<xsl:call-template name="sect3.titlepage.verso"/>
2903
<xsl:variable name="verso.elements.count">
2905
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2906
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2907
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2908
<xsl:otherwise>1</xsl:otherwise>
2911
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
2912
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
2914
<xsl:call-template name="sect3.titlepage.separator"/>
2918
<xsl:template match="*" mode="sect3.titlepage.recto.mode">
2919
<!-- if an element isn't found in this mode, -->
2920
<!-- try the generic titlepage.mode -->
2921
<xsl:apply-templates select="." mode="titlepage.mode"/>
2924
<xsl:template match="*" mode="sect3.titlepage.verso.mode">
2925
<!-- if an element isn't found in this mode, -->
2926
<!-- try the generic titlepage.mode -->
2927
<xsl:apply-templates select="." mode="titlepage.mode"/>
2930
<xsl:template match="d:title" 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" margin-left="{$title.margin.left}" font-family="{$title.fontset}">
2932
<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2936
<xsl:template match="d:subtitle" 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" font-family="{$title.fontset}">
2938
<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2942
<xsl:template match="d:corpauthor" 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:authorgroup" 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:author" 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:othercredit" 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:releaseinfo" 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:copyright" 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:legalnotice" 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:pubdate" 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 match="d:revision" mode="sect3.titlepage.recto.auto.mode">
2991
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style">
2992
<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2996
<xsl:template match="d:revhistory" mode="sect3.titlepage.recto.auto.mode">
2997
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style">
2998
<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
3002
<xsl:template match="d:abstract" mode="sect3.titlepage.recto.auto.mode">
3003
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style">
3004
<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
3008
<xsl:template name="sect4.titlepage.recto">
3010
<xsl:when test="d:sect4info/d:title">
3011
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:title"/>
3013
<xsl:when test="d:info/d:title">
3014
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:title"/>
3016
<xsl:when test="d:title">
3017
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:title"/>
3022
<xsl:when test="d:sect4info/d:subtitle">
3023
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:subtitle"/>
3025
<xsl:when test="d:info/d:subtitle">
3026
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
3028
<xsl:when test="d:subtitle">
3029
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:subtitle"/>
3033
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:corpauthor"/>
3034
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
3035
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:authorgroup"/>
3036
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
3037
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:author"/>
3038
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:author"/>
3039
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:othercredit"/>
3040
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
3041
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:releaseinfo"/>
3042
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
3043
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:copyright"/>
3044
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
3045
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:legalnotice"/>
3046
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
3047
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:pubdate"/>
3048
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
3049
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:revision"/>
3050
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:revision"/>
3051
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:revhistory"/>
3052
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
3053
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:abstract"/>
3054
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
3057
<xsl:template name="sect4.titlepage.verso">
3060
<xsl:template name="sect4.titlepage.separator">
3063
<xsl:template name="sect4.titlepage.before.recto">
3066
<xsl:template name="sect4.titlepage.before.verso">
3069
<xsl:template name="sect4.titlepage">
3070
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
3071
<xsl:variable name="recto.content">
3072
<xsl:call-template name="sect4.titlepage.before.recto"/>
3073
<xsl:call-template name="sect4.titlepage.recto"/>
3075
<xsl:variable name="recto.elements.count">
3077
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3078
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3079
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3080
<xsl:otherwise>1</xsl:otherwise>
3083
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
3084
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
3086
<xsl:variable name="verso.content">
3087
<xsl:call-template name="sect4.titlepage.before.verso"/>
3088
<xsl:call-template name="sect4.titlepage.verso"/>
3090
<xsl:variable name="verso.elements.count">
3092
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3093
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3094
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3095
<xsl:otherwise>1</xsl:otherwise>
3098
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
3099
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
3101
<xsl:call-template name="sect4.titlepage.separator"/>
3105
<xsl:template match="*" mode="sect4.titlepage.recto.mode">
3106
<!-- if an element isn't found in this mode, -->
3107
<!-- try the generic titlepage.mode -->
3108
<xsl:apply-templates select="." mode="titlepage.mode"/>
3111
<xsl:template match="*" mode="sect4.titlepage.verso.mode">
3112
<!-- if an element isn't found in this mode, -->
3113
<!-- try the generic titlepage.mode -->
3114
<xsl:apply-templates select="." mode="titlepage.mode"/>
3117
<xsl:template match="d:title" 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" margin-left="{$title.margin.left}" font-family="{$title.fontset}">
3119
<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
3123
<xsl:template match="d:subtitle" 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" font-family="{$title.fontset}">
3125
<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
3129
<xsl:template match="d:corpauthor" 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:authorgroup" 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:author" 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:othercredit" 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:releaseinfo" 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:copyright" 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:legalnotice" 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:pubdate" 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 match="d:revision" mode="sect4.titlepage.recto.auto.mode">
3178
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style">
3179
<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
3183
<xsl:template match="d:revhistory" mode="sect4.titlepage.recto.auto.mode">
3184
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style">
3185
<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
3189
<xsl:template match="d:abstract" mode="sect4.titlepage.recto.auto.mode">
3190
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style">
3191
<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
3195
<xsl:template name="sect5.titlepage.recto">
3197
<xsl:when test="d:sect5info/d:title">
3198
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:title"/>
3200
<xsl:when test="d:info/d:title">
3201
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:title"/>
3203
<xsl:when test="d:title">
3204
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:title"/>
3209
<xsl:when test="d:sect5info/d:subtitle">
3210
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:subtitle"/>
3212
<xsl:when test="d:info/d:subtitle">
3213
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
3215
<xsl:when test="d:subtitle">
3216
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:subtitle"/>
3220
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:corpauthor"/>
3221
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
3222
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:authorgroup"/>
3223
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
3224
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:author"/>
3225
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:author"/>
3226
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:othercredit"/>
3227
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
3228
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:releaseinfo"/>
3229
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
3230
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:copyright"/>
3231
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
3232
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:legalnotice"/>
3233
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
3234
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:pubdate"/>
3235
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
3236
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:revision"/>
3237
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:revision"/>
3238
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:revhistory"/>
3239
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
3240
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:abstract"/>
3241
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
3244
<xsl:template name="sect5.titlepage.verso">
3247
<xsl:template name="sect5.titlepage.separator">
3250
<xsl:template name="sect5.titlepage.before.recto">
3253
<xsl:template name="sect5.titlepage.before.verso">
3256
<xsl:template name="sect5.titlepage">
3257
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
3258
<xsl:variable name="recto.content">
3259
<xsl:call-template name="sect5.titlepage.before.recto"/>
3260
<xsl:call-template name="sect5.titlepage.recto"/>
3262
<xsl:variable name="recto.elements.count">
3264
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3265
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3266
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3267
<xsl:otherwise>1</xsl:otherwise>
3270
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
3271
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
3273
<xsl:variable name="verso.content">
3274
<xsl:call-template name="sect5.titlepage.before.verso"/>
3275
<xsl:call-template name="sect5.titlepage.verso"/>
3277
<xsl:variable name="verso.elements.count">
3279
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3280
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3281
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3282
<xsl:otherwise>1</xsl:otherwise>
3285
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
3286
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
3288
<xsl:call-template name="sect5.titlepage.separator"/>
3292
<xsl:template match="*" mode="sect5.titlepage.recto.mode">
3293
<!-- if an element isn't found in this mode, -->
3294
<!-- try the generic titlepage.mode -->
3295
<xsl:apply-templates select="." mode="titlepage.mode"/>
3298
<xsl:template match="*" mode="sect5.titlepage.verso.mode">
3299
<!-- if an element isn't found in this mode, -->
3300
<!-- try the generic titlepage.mode -->
3301
<xsl:apply-templates select="." mode="titlepage.mode"/>
3304
<xsl:template match="d:title" 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" margin-left="{$title.margin.left}" font-family="{$title.fontset}">
3306
<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3310
<xsl:template match="d:subtitle" 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" font-family="{$title.fontset}">
3312
<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3316
<xsl:template match="d:corpauthor" 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:authorgroup" 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:author" 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:othercredit" 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:releaseinfo" 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:copyright" 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:legalnotice" 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:pubdate" 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 match="d:revision" mode="sect5.titlepage.recto.auto.mode">
3365
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style">
3366
<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3370
<xsl:template match="d:revhistory" mode="sect5.titlepage.recto.auto.mode">
3371
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style">
3372
<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3376
<xsl:template match="d:abstract" mode="sect5.titlepage.recto.auto.mode">
3377
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style">
3378
<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3382
<xsl:template name="simplesect.titlepage.recto">
3384
<xsl:when test="d:simplesectinfo/d:title">
3385
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:title"/>
3387
<xsl:when test="d:docinfo/d:title">
3388
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
3390
<xsl:when test="d:info/d:title">
3391
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:title"/>
3393
<xsl:when test="d:title">
3394
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:title"/>
3399
<xsl:when test="d:simplesectinfo/d:subtitle">
3400
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:subtitle"/>
3402
<xsl:when test="d:docinfo/d:subtitle">
3403
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
3405
<xsl:when test="d:info/d:subtitle">
3406
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
3408
<xsl:when test="d:subtitle">
3409
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:subtitle"/>
3413
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:corpauthor"/>
3414
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:corpauthor"/>
3415
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
3416
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:authorgroup"/>
3417
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:authorgroup"/>
3418
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
3419
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:author"/>
3420
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:author"/>
3421
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:author"/>
3422
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:othercredit"/>
3423
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:othercredit"/>
3424
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
3425
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:releaseinfo"/>
3426
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:releaseinfo"/>
3427
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
3428
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:copyright"/>
3429
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:copyright"/>
3430
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
3431
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:legalnotice"/>
3432
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:legalnotice"/>
3433
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
3434
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:pubdate"/>
3435
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:pubdate"/>
3436
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
3437
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:revision"/>
3438
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:revision"/>
3439
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:revision"/>
3440
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:revhistory"/>
3441
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:revhistory"/>
3442
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
3443
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:abstract"/>
3444
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:abstract"/>
3445
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
3448
<xsl:template name="simplesect.titlepage.verso">
3451
<xsl:template name="simplesect.titlepage.separator">
3454
<xsl:template name="simplesect.titlepage.before.recto">
3457
<xsl:template name="simplesect.titlepage.before.verso">
3460
<xsl:template name="simplesect.titlepage">
3461
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
3462
<xsl:variable name="recto.content">
3463
<xsl:call-template name="simplesect.titlepage.before.recto"/>
3464
<xsl:call-template name="simplesect.titlepage.recto"/>
3466
<xsl:variable name="recto.elements.count">
3468
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3469
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3470
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3471
<xsl:otherwise>1</xsl:otherwise>
3474
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
3475
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
3477
<xsl:variable name="verso.content">
3478
<xsl:call-template name="simplesect.titlepage.before.verso"/>
3479
<xsl:call-template name="simplesect.titlepage.verso"/>
3481
<xsl:variable name="verso.elements.count">
3483
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3484
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3485
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3486
<xsl:otherwise>1</xsl:otherwise>
3489
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
3490
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
3492
<xsl:call-template name="simplesect.titlepage.separator"/>
3496
<xsl:template match="*" mode="simplesect.titlepage.recto.mode">
3497
<!-- if an element isn't found in this mode, -->
3498
<!-- try the generic titlepage.mode -->
3499
<xsl:apply-templates select="." mode="titlepage.mode"/>
3502
<xsl:template match="*" mode="simplesect.titlepage.verso.mode">
3503
<!-- if an element isn't found in this mode, -->
3504
<!-- try the generic titlepage.mode -->
3505
<xsl:apply-templates select="." mode="titlepage.mode"/>
3508
<xsl:template match="d:title" 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" margin-left="{$title.margin.left}" font-family="{$title.fontset}">
3510
<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3514
<xsl:template match="d:subtitle" 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" font-family="{$title.fontset}">
3516
<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3520
<xsl:template match="d:corpauthor" 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:authorgroup" 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:author" 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:othercredit" 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:releaseinfo" 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:copyright" 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:legalnotice" 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:pubdate" 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 match="d:revision" mode="simplesect.titlepage.recto.auto.mode">
3569
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3570
<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3574
<xsl:template match="d:revhistory" mode="simplesect.titlepage.recto.auto.mode">
3575
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3576
<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3580
<xsl:template match="d:abstract" mode="simplesect.titlepage.recto.auto.mode">
3581
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3582
<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3586
<xsl:template name="bibliography.titlepage.recto">
3587
<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">
3588
<xsl:call-template name="component.title">
3589
<xsl:with-param name="node" select="ancestor-or-self::d:bibliography[1]"/>
3590
</xsl:call-template></fo:block>
3592
<xsl:when test="d:bibliographyinfo/d:subtitle">
3593
<xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="d:bibliographyinfo/d:subtitle"/>
3595
<xsl:when test="d:docinfo/d:subtitle">
3596
<xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
3598
<xsl:when test="d:info/d:subtitle">
3599
<xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
3601
<xsl:when test="d:subtitle">
3602
<xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="d:subtitle"/>
3608
<xsl:template name="bibliography.titlepage.verso">
3611
<xsl:template name="bibliography.titlepage.separator">
3614
<xsl:template name="bibliography.titlepage.before.recto">
3617
<xsl:template name="bibliography.titlepage.before.verso">
3620
<xsl:template name="bibliography.titlepage">
3621
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
3622
<xsl:variable name="recto.content">
3623
<xsl:call-template name="bibliography.titlepage.before.recto"/>
3624
<xsl:call-template name="bibliography.titlepage.recto"/>
3626
<xsl:variable name="recto.elements.count">
3628
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3629
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3630
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3631
<xsl:otherwise>1</xsl:otherwise>
3634
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
3635
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
3637
<xsl:variable name="verso.content">
3638
<xsl:call-template name="bibliography.titlepage.before.verso"/>
3639
<xsl:call-template name="bibliography.titlepage.verso"/>
3641
<xsl:variable name="verso.elements.count">
3643
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3644
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3645
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3646
<xsl:otherwise>1</xsl:otherwise>
3649
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
3650
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
3652
<xsl:call-template name="bibliography.titlepage.separator"/>
3656
<xsl:template match="*" mode="bibliography.titlepage.recto.mode">
3657
<!-- if an element isn't found in this mode, -->
3658
<!-- try the generic titlepage.mode -->
3659
<xsl:apply-templates select="." mode="titlepage.mode"/>
3662
<xsl:template match="*" mode="bibliography.titlepage.verso.mode">
3663
<!-- if an element isn't found in this mode, -->
3664
<!-- try the generic titlepage.mode -->
3665
<xsl:apply-templates select="." mode="titlepage.mode"/>
3668
<xsl:template match="d:subtitle" mode="bibliography.titlepage.recto.auto.mode">
3669
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="bibliography.titlepage.recto.style" font-family="{$title.fontset}">
3670
<xsl:apply-templates select="." mode="bibliography.titlepage.recto.mode"/>
3674
<xsl:template name="bibliodiv.titlepage.recto">
3676
<xsl:when test="d:bibliodivinfo/d:title">
3677
<xsl:apply-templates mode="bibliodiv.titlepage.recto.auto.mode" select="d:bibliodivinfo/d:title"/>
3679
<xsl:when test="d:docinfo/d:title">
3680
<xsl:apply-templates mode="bibliodiv.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
3682
<xsl:when test="d:info/d:title">
3683
<xsl:apply-templates mode="bibliodiv.titlepage.recto.auto.mode" select="d:info/d:title"/>
3685
<xsl:when test="d:title">
3686
<xsl:apply-templates mode="bibliodiv.titlepage.recto.auto.mode" select="d:title"/>
3691
<xsl:when test="d:bibliodivinfo/d:subtitle">
3692
<xsl:apply-templates mode="bibliodiv.titlepage.recto.auto.mode" select="d:bibliodivinfo/d:subtitle"/>
3694
<xsl:when test="d:docinfo/d:subtitle">
3695
<xsl:apply-templates mode="bibliodiv.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
3697
<xsl:when test="d:info/d:subtitle">
3698
<xsl:apply-templates mode="bibliodiv.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
3700
<xsl:when test="d:subtitle">
3701
<xsl:apply-templates mode="bibliodiv.titlepage.recto.auto.mode" select="d:subtitle"/>
3707
<xsl:template name="bibliodiv.titlepage.verso">
3710
<xsl:template name="bibliodiv.titlepage.separator">
3713
<xsl:template name="bibliodiv.titlepage.before.recto">
3716
<xsl:template name="bibliodiv.titlepage.before.verso">
3719
<xsl:template name="bibliodiv.titlepage">
3720
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
3721
<xsl:variable name="recto.content">
3722
<xsl:call-template name="bibliodiv.titlepage.before.recto"/>
3723
<xsl:call-template name="bibliodiv.titlepage.recto"/>
3725
<xsl:variable name="recto.elements.count">
3727
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3728
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3729
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3730
<xsl:otherwise>1</xsl:otherwise>
3733
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
3734
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
3736
<xsl:variable name="verso.content">
3737
<xsl:call-template name="bibliodiv.titlepage.before.verso"/>
3738
<xsl:call-template name="bibliodiv.titlepage.verso"/>
3740
<xsl:variable name="verso.elements.count">
3742
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3743
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3744
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3745
<xsl:otherwise>1</xsl:otherwise>
3748
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
3749
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
3751
<xsl:call-template name="bibliodiv.titlepage.separator"/>
3755
<xsl:template match="*" mode="bibliodiv.titlepage.recto.mode">
3756
<!-- if an element isn't found in this mode, -->
3757
<!-- try the generic titlepage.mode -->
3758
<xsl:apply-templates select="." mode="titlepage.mode"/>
3761
<xsl:template match="*" mode="bibliodiv.titlepage.verso.mode">
3762
<!-- if an element isn't found in this mode, -->
3763
<!-- try the generic titlepage.mode -->
3764
<xsl:apply-templates select="." mode="titlepage.mode"/>
3767
<xsl:template match="d:title" mode="bibliodiv.titlepage.recto.auto.mode">
3768
<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">
3769
<xsl:call-template name="component.title">
3770
<xsl:with-param name="node" select="ancestor-or-self::d:bibliodiv[1]"/>
3771
</xsl:call-template>
3775
<xsl:template match="d:subtitle" mode="bibliodiv.titlepage.recto.auto.mode">
3776
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="bibliodiv.titlepage.recto.style" font-family="{$title.fontset}">
3777
<xsl:apply-templates select="." mode="bibliodiv.titlepage.recto.mode"/>
3781
<xsl:template name="glossary.titlepage.recto">
3782
<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">
3783
<xsl:call-template name="component.title">
3784
<xsl:with-param name="node" select="ancestor-or-self::d:glossary[1]"/>
3785
</xsl:call-template></fo:block>
3787
<xsl:when test="d:glossaryinfo/d:subtitle">
3788
<xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="d:glossaryinfo/d:subtitle"/>
3790
<xsl:when test="d:docinfo/d:subtitle">
3791
<xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
3793
<xsl:when test="d:info/d:subtitle">
3794
<xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
3796
<xsl:when test="d:subtitle">
3797
<xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="d:subtitle"/>
3803
<xsl:template name="glossary.titlepage.verso">
3806
<xsl:template name="glossary.titlepage.separator">
3809
<xsl:template name="glossary.titlepage.before.recto">
3812
<xsl:template name="glossary.titlepage.before.verso">
3815
<xsl:template name="glossary.titlepage">
3816
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
3817
<xsl:variable name="recto.content">
3818
<xsl:call-template name="glossary.titlepage.before.recto"/>
3819
<xsl:call-template name="glossary.titlepage.recto"/>
3821
<xsl:variable name="recto.elements.count">
3823
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3824
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3825
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3826
<xsl:otherwise>1</xsl:otherwise>
3829
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
3830
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
3832
<xsl:variable name="verso.content">
3833
<xsl:call-template name="glossary.titlepage.before.verso"/>
3834
<xsl:call-template name="glossary.titlepage.verso"/>
3836
<xsl:variable name="verso.elements.count">
3838
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3839
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3840
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3841
<xsl:otherwise>1</xsl:otherwise>
3844
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
3845
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
3847
<xsl:call-template name="glossary.titlepage.separator"/>
3851
<xsl:template match="*" mode="glossary.titlepage.recto.mode">
3852
<!-- if an element isn't found in this mode, -->
3853
<!-- try the generic titlepage.mode -->
3854
<xsl:apply-templates select="." mode="titlepage.mode"/>
3857
<xsl:template match="*" mode="glossary.titlepage.verso.mode">
3858
<!-- if an element isn't found in this mode, -->
3859
<!-- try the generic titlepage.mode -->
3860
<xsl:apply-templates select="." mode="titlepage.mode"/>
3863
<xsl:template match="d:subtitle" mode="glossary.titlepage.recto.auto.mode">
3864
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="glossary.titlepage.recto.style" font-family="{$title.fontset}">
3865
<xsl:apply-templates select="." mode="glossary.titlepage.recto.mode"/>
3869
<xsl:template name="glossdiv.titlepage.recto">
3871
<xsl:when test="d:glossdivinfo/d:title">
3872
<xsl:apply-templates mode="glossdiv.titlepage.recto.auto.mode" select="d:glossdivinfo/d:title"/>
3874
<xsl:when test="d:docinfo/d:title">
3875
<xsl:apply-templates mode="glossdiv.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
3877
<xsl:when test="d:info/d:title">
3878
<xsl:apply-templates mode="glossdiv.titlepage.recto.auto.mode" select="d:info/d:title"/>
3880
<xsl:when test="d:title">
3881
<xsl:apply-templates mode="glossdiv.titlepage.recto.auto.mode" select="d:title"/>
3886
<xsl:when test="d:glossdivinfo/d:subtitle">
3887
<xsl:apply-templates mode="glossdiv.titlepage.recto.auto.mode" select="d:glossdivinfo/d:subtitle"/>
3889
<xsl:when test="d:docinfo/d:subtitle">
3890
<xsl:apply-templates mode="glossdiv.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
3892
<xsl:when test="d:info/d:subtitle">
3893
<xsl:apply-templates mode="glossdiv.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
3895
<xsl:when test="d:subtitle">
3896
<xsl:apply-templates mode="glossdiv.titlepage.recto.auto.mode" select="d:subtitle"/>
3902
<xsl:template name="glossdiv.titlepage.verso">
3905
<xsl:template name="glossdiv.titlepage.separator">
3908
<xsl:template name="glossdiv.titlepage.before.recto">
3911
<xsl:template name="glossdiv.titlepage.before.verso">
3914
<xsl:template name="glossdiv.titlepage">
3915
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
3916
<xsl:variable name="recto.content">
3917
<xsl:call-template name="glossdiv.titlepage.before.recto"/>
3918
<xsl:call-template name="glossdiv.titlepage.recto"/>
3920
<xsl:variable name="recto.elements.count">
3922
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3923
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3924
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3925
<xsl:otherwise>1</xsl:otherwise>
3928
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
3929
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
3931
<xsl:variable name="verso.content">
3932
<xsl:call-template name="glossdiv.titlepage.before.verso"/>
3933
<xsl:call-template name="glossdiv.titlepage.verso"/>
3935
<xsl:variable name="verso.elements.count">
3937
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3938
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3939
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3940
<xsl:otherwise>1</xsl:otherwise>
3943
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
3944
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
3946
<xsl:call-template name="glossdiv.titlepage.separator"/>
3950
<xsl:template match="*" mode="glossdiv.titlepage.recto.mode">
3951
<!-- if an element isn't found in this mode, -->
3952
<!-- try the generic titlepage.mode -->
3953
<xsl:apply-templates select="." mode="titlepage.mode"/>
3956
<xsl:template match="*" mode="glossdiv.titlepage.verso.mode">
3957
<!-- if an element isn't found in this mode, -->
3958
<!-- try the generic titlepage.mode -->
3959
<xsl:apply-templates select="." mode="titlepage.mode"/>
3962
<xsl:template match="d:title" mode="glossdiv.titlepage.recto.auto.mode">
3963
<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">
3964
<xsl:call-template name="component.title">
3965
<xsl:with-param name="node" select="ancestor-or-self::d:glossdiv[1]"/>
3966
</xsl:call-template>
3970
<xsl:template match="d:subtitle" mode="glossdiv.titlepage.recto.auto.mode">
3971
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="glossdiv.titlepage.recto.style" font-family="{$title.fontset}">
3972
<xsl:apply-templates select="." mode="glossdiv.titlepage.recto.mode"/>
3976
<xsl:template name="index.titlepage.recto">
3977
<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">
3978
<xsl:call-template name="component.title">
3979
<xsl:with-param name="node" select="ancestor-or-self::d:index[1]"/>
3980
<xsl:with-param name="pagewide" select="1"/>
3981
</xsl:call-template></fo:block>
3983
<xsl:when test="d:indexinfo/d:subtitle">
3984
<xsl:apply-templates mode="index.titlepage.recto.auto.mode" select="d:indexinfo/d:subtitle"/>
3986
<xsl:when test="d:docinfo/d:subtitle">
3987
<xsl:apply-templates mode="index.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
3989
<xsl:when test="d:info/d:subtitle">
3990
<xsl:apply-templates mode="index.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
3992
<xsl:when test="d:subtitle">
3993
<xsl:apply-templates mode="index.titlepage.recto.auto.mode" select="d:subtitle"/>
3999
<xsl:template name="index.titlepage.verso">
4002
<xsl:template name="index.titlepage.separator">
4005
<xsl:template name="index.titlepage.before.recto">
4008
<xsl:template name="index.titlepage.before.verso">
4011
<xsl:template name="index.titlepage">
4012
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
4013
<xsl:variable name="recto.content">
4014
<xsl:call-template name="index.titlepage.before.recto"/>
4015
<xsl:call-template name="index.titlepage.recto"/>
4017
<xsl:variable name="recto.elements.count">
4019
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4020
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4021
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4022
<xsl:otherwise>1</xsl:otherwise>
4025
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
4026
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
4028
<xsl:variable name="verso.content">
4029
<xsl:call-template name="index.titlepage.before.verso"/>
4030
<xsl:call-template name="index.titlepage.verso"/>
4032
<xsl:variable name="verso.elements.count">
4034
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4035
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4036
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4037
<xsl:otherwise>1</xsl:otherwise>
4040
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
4041
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
4043
<xsl:call-template name="index.titlepage.separator"/>
4047
<xsl:template match="*" mode="index.titlepage.recto.mode">
4048
<!-- if an element isn't found in this mode, -->
4049
<!-- try the generic titlepage.mode -->
4050
<xsl:apply-templates select="." mode="titlepage.mode"/>
4053
<xsl:template match="*" mode="index.titlepage.verso.mode">
4054
<!-- if an element isn't found in this mode, -->
4055
<!-- try the generic titlepage.mode -->
4056
<xsl:apply-templates select="." mode="titlepage.mode"/>
4059
<xsl:template match="d:subtitle" mode="index.titlepage.recto.auto.mode">
4060
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="index.titlepage.recto.style" font-family="{$title.fontset}">
4061
<xsl:apply-templates select="." mode="index.titlepage.recto.mode"/>
4065
<xsl:template name="indexdiv.titlepage.recto">
4066
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="indexdiv.titlepage.recto.style">
4067
<xsl:call-template name="indexdiv.title">
4068
<xsl:with-param name="title" select="d:title"/>
4069
</xsl:call-template></fo:block>
4071
<xsl:when test="d:indexdivinfo/d:subtitle">
4072
<xsl:apply-templates mode="indexdiv.titlepage.recto.auto.mode" select="d:indexdivinfo/d:subtitle"/>
4074
<xsl:when test="d:docinfo/d:subtitle">
4075
<xsl:apply-templates mode="indexdiv.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
4077
<xsl:when test="d:info/d:subtitle">
4078
<xsl:apply-templates mode="indexdiv.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
4080
<xsl:when test="d:subtitle">
4081
<xsl:apply-templates mode="indexdiv.titlepage.recto.auto.mode" select="d:subtitle"/>
4087
<xsl:template name="indexdiv.titlepage.verso">
4090
<xsl:template name="indexdiv.titlepage.separator">
4093
<xsl:template name="indexdiv.titlepage.before.recto">
4096
<xsl:template name="indexdiv.titlepage.before.verso">
4099
<xsl:template name="indexdiv.titlepage">
4100
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
4101
<xsl:variable name="recto.content">
4102
<xsl:call-template name="indexdiv.titlepage.before.recto"/>
4103
<xsl:call-template name="indexdiv.titlepage.recto"/>
4105
<xsl:variable name="recto.elements.count">
4107
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4108
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4109
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4110
<xsl:otherwise>1</xsl:otherwise>
4113
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
4114
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
4116
<xsl:variable name="verso.content">
4117
<xsl:call-template name="indexdiv.titlepage.before.verso"/>
4118
<xsl:call-template name="indexdiv.titlepage.verso"/>
4120
<xsl:variable name="verso.elements.count">
4122
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4123
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4124
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4125
<xsl:otherwise>1</xsl:otherwise>
4128
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
4129
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
4131
<xsl:call-template name="indexdiv.titlepage.separator"/>
4135
<xsl:template match="*" mode="indexdiv.titlepage.recto.mode">
4136
<!-- if an element isn't found in this mode, -->
4137
<!-- try the generic titlepage.mode -->
4138
<xsl:apply-templates select="." mode="titlepage.mode"/>
4141
<xsl:template match="*" mode="indexdiv.titlepage.verso.mode">
4142
<!-- if an element isn't found in this mode, -->
4143
<!-- try the generic titlepage.mode -->
4144
<xsl:apply-templates select="." mode="titlepage.mode"/>
4147
<xsl:template match="d:subtitle" mode="indexdiv.titlepage.recto.auto.mode">
4148
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="indexdiv.titlepage.recto.style" font-family="{$title.fontset}">
4149
<xsl:apply-templates select="." mode="indexdiv.titlepage.recto.mode"/>
4153
<xsl:template name="setindex.titlepage.recto">
4154
<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">
4155
<xsl:call-template name="component.title">
4156
<xsl:with-param name="node" select="ancestor-or-self::d:setindex[1]"/>
4157
<xsl:with-param name="pagewide" select="1"/>
4158
</xsl:call-template></fo:block>
4160
<xsl:when test="d:setindexinfo/d:subtitle">
4161
<xsl:apply-templates mode="setindex.titlepage.recto.auto.mode" select="d:setindexinfo/d:subtitle"/>
4163
<xsl:when test="d:docinfo/d:subtitle">
4164
<xsl:apply-templates mode="setindex.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
4166
<xsl:when test="d:info/d:subtitle">
4167
<xsl:apply-templates mode="setindex.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
4169
<xsl:when test="d:subtitle">
4170
<xsl:apply-templates mode="setindex.titlepage.recto.auto.mode" select="d:subtitle"/>
4176
<xsl:template name="setindex.titlepage.verso">
4179
<xsl:template name="setindex.titlepage.separator">
4182
<xsl:template name="setindex.titlepage.before.recto">
4185
<xsl:template name="setindex.titlepage.before.verso">
4188
<xsl:template name="setindex.titlepage">
4189
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
4190
<xsl:variable name="recto.content">
4191
<xsl:call-template name="setindex.titlepage.before.recto"/>
4192
<xsl:call-template name="setindex.titlepage.recto"/>
4194
<xsl:variable name="recto.elements.count">
4196
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4197
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4198
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4199
<xsl:otherwise>1</xsl:otherwise>
4202
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
4203
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
4205
<xsl:variable name="verso.content">
4206
<xsl:call-template name="setindex.titlepage.before.verso"/>
4207
<xsl:call-template name="setindex.titlepage.verso"/>
4209
<xsl:variable name="verso.elements.count">
4211
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4212
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4213
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4214
<xsl:otherwise>1</xsl:otherwise>
4217
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
4218
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
4220
<xsl:call-template name="setindex.titlepage.separator"/>
4224
<xsl:template match="*" mode="setindex.titlepage.recto.mode">
4225
<!-- if an element isn't found in this mode, -->
4226
<!-- try the generic titlepage.mode -->
4227
<xsl:apply-templates select="." mode="titlepage.mode"/>
4230
<xsl:template match="*" mode="setindex.titlepage.verso.mode">
4231
<!-- if an element isn't found in this mode, -->
4232
<!-- try the generic titlepage.mode -->
4233
<xsl:apply-templates select="." mode="titlepage.mode"/>
4236
<xsl:template match="d:subtitle" mode="setindex.titlepage.recto.auto.mode">
4237
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="setindex.titlepage.recto.style" font-family="{$title.fontset}">
4238
<xsl:apply-templates select="." mode="setindex.titlepage.recto.mode"/>
4242
<xsl:template name="colophon.titlepage.recto">
4243
<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">
4244
<xsl:call-template name="component.title">
4245
<xsl:with-param name="node" select="ancestor-or-self::d:colophon[1]"/>
4246
</xsl:call-template></fo:block>
4248
<xsl:when test="d:colophoninfo/d:subtitle">
4249
<xsl:apply-templates mode="colophon.titlepage.recto.auto.mode" select="d:colophoninfo/d:subtitle"/>
4251
<xsl:when test="d:docinfo/d:subtitle">
4252
<xsl:apply-templates mode="colophon.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
4254
<xsl:when test="d:info/d:subtitle">
4255
<xsl:apply-templates mode="colophon.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
4257
<xsl:when test="d:subtitle">
4258
<xsl:apply-templates mode="colophon.titlepage.recto.auto.mode" select="d:subtitle"/>
4264
<xsl:template name="colophon.titlepage.verso">
4267
<xsl:template name="colophon.titlepage.separator">
4270
<xsl:template name="colophon.titlepage.before.recto">
4273
<xsl:template name="colophon.titlepage.before.verso">
4276
<xsl:template name="colophon.titlepage">
4277
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
4278
<xsl:variable name="recto.content">
4279
<xsl:call-template name="colophon.titlepage.before.recto"/>
4280
<xsl:call-template name="colophon.titlepage.recto"/>
4282
<xsl:variable name="recto.elements.count">
4284
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4285
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4286
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4287
<xsl:otherwise>1</xsl:otherwise>
4290
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
4291
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
4293
<xsl:variable name="verso.content">
4294
<xsl:call-template name="colophon.titlepage.before.verso"/>
4295
<xsl:call-template name="colophon.titlepage.verso"/>
4297
<xsl:variable name="verso.elements.count">
4299
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4300
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4301
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4302
<xsl:otherwise>1</xsl:otherwise>
4305
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
4306
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
4308
<xsl:call-template name="colophon.titlepage.separator"/>
4312
<xsl:template match="*" mode="colophon.titlepage.recto.mode">
4313
<!-- if an element isn't found in this mode, -->
4314
<!-- try the generic titlepage.mode -->
4315
<xsl:apply-templates select="." mode="titlepage.mode"/>
4318
<xsl:template match="*" mode="colophon.titlepage.verso.mode">
4319
<!-- if an element isn't found in this mode, -->
4320
<!-- try the generic titlepage.mode -->
4321
<xsl:apply-templates select="." mode="titlepage.mode"/>
4324
<xsl:template match="d:subtitle" mode="colophon.titlepage.recto.auto.mode">
4325
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="colophon.titlepage.recto.style" font-family="{$title.fontset}">
4326
<xsl:apply-templates select="." mode="colophon.titlepage.recto.mode"/>
4330
<xsl:template name="sidebar.titlepage.recto">
4332
<xsl:when test="d:sidebarinfo/d:title">
4333
<xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="d:sidebarinfo/d:title"/>
4335
<xsl:when test="d:docinfo/d:title">
4336
<xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
4338
<xsl:when test="d:info/d:title">
4339
<xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="d:info/d:title"/>
4341
<xsl:when test="d:title">
4342
<xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="d:title"/>
4347
<xsl:when test="d:sidebarinfo/d:subtitle">
4348
<xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="d:sidebarinfo/d:subtitle"/>
4350
<xsl:when test="d:docinfo/d:subtitle">
4351
<xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
4353
<xsl:when test="d:info/d:subtitle">
4354
<xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
4356
<xsl:when test="d:subtitle">
4357
<xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="d:subtitle"/>
4363
<xsl:template name="sidebar.titlepage.verso">
4366
<xsl:template name="sidebar.titlepage.separator">
4369
<xsl:template name="sidebar.titlepage.before.recto">
4372
<xsl:template name="sidebar.titlepage.before.verso">
4375
<xsl:template name="sidebar.titlepage">
4376
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
4377
<xsl:variable name="recto.content">
4378
<xsl:call-template name="sidebar.titlepage.before.recto"/>
4379
<xsl:call-template name="sidebar.titlepage.recto"/>
4381
<xsl:variable name="recto.elements.count">
4383
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4384
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4385
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4386
<xsl:otherwise>1</xsl:otherwise>
4389
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
4390
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
4392
<xsl:variable name="verso.content">
4393
<xsl:call-template name="sidebar.titlepage.before.verso"/>
4394
<xsl:call-template name="sidebar.titlepage.verso"/>
4396
<xsl:variable name="verso.elements.count">
4398
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4399
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4400
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4401
<xsl:otherwise>1</xsl:otherwise>
4404
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
4405
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
4407
<xsl:call-template name="sidebar.titlepage.separator"/>
4411
<xsl:template match="*" mode="sidebar.titlepage.recto.mode">
4412
<!-- if an element isn't found in this mode, -->
4413
<!-- try the generic titlepage.mode -->
4414
<xsl:apply-templates select="." mode="titlepage.mode"/>
4417
<xsl:template match="*" mode="sidebar.titlepage.verso.mode">
4418
<!-- if an element isn't found in this mode, -->
4419
<!-- try the generic titlepage.mode -->
4420
<xsl:apply-templates select="." mode="titlepage.mode"/>
4423
<xsl:template match="d:title" mode="sidebar.titlepage.recto.auto.mode">
4424
<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">
4425
<xsl:apply-templates select="." mode="sidebar.titlepage.recto.mode"/>
4429
<xsl:template match="d:subtitle" mode="sidebar.titlepage.recto.auto.mode">
4430
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sidebar.titlepage.recto.style" font-family="{$title.fontset}">
4431
<xsl:apply-templates select="." mode="sidebar.titlepage.recto.mode"/>
4435
<xsl:template name="qandaset.titlepage.recto">
4437
<xsl:when test="d:qandasetinfo/d:title">
4438
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:qandasetinfo/d:title"/>
4440
<xsl:when test="d:blockinfo/d:title">
4441
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:blockinfo/d:title"/>
4443
<xsl:when test="d:info/d:title">
4444
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:info/d:title"/>
4446
<xsl:when test="d:title">
4447
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:title"/>
4452
<xsl:when test="d:qandasetinfo/d:subtitle">
4453
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:qandasetinfo/d:subtitle"/>
4455
<xsl:when test="d:blockinfo/d:subtitle">
4456
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:blockinfo/d:subtitle"/>
4458
<xsl:when test="d:info/d:subtitle">
4459
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
4461
<xsl:when test="d:subtitle">
4462
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:subtitle"/>
4466
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:qandasetinfo/d:corpauthor"/>
4467
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:blockinfo/d:corpauthor"/>
4468
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
4469
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:qandasetinfo/d:authorgroup"/>
4470
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:blockinfo/d:authorgroup"/>
4471
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
4472
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:qandasetinfo/d:author"/>
4473
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:blockinfo/d:author"/>
4474
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:info/d:author"/>
4475
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:qandasetinfo/d:othercredit"/>
4476
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:blockinfo/d:othercredit"/>
4477
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
4478
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:qandasetinfo/d:releaseinfo"/>
4479
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:blockinfo/d:releaseinfo"/>
4480
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
4481
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:qandasetinfo/d:copyright"/>
4482
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:blockinfo/d:copyright"/>
4483
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
4484
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:qandasetinfo/d:legalnotice"/>
4485
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:blockinfo/d:legalnotice"/>
4486
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
4487
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:qandasetinfo/d:pubdate"/>
4488
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:blockinfo/d:pubdate"/>
4489
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
4490
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:qandasetinfo/d:revision"/>
4491
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:blockinfo/d:revision"/>
4492
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:info/d:revision"/>
4493
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:qandasetinfo/d:revhistory"/>
4494
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:blockinfo/d:revhistory"/>
4495
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
4496
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:qandasetinfo/d:abstract"/>
4497
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:blockinfo/d:abstract"/>
4498
<xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
4501
<xsl:template name="qandaset.titlepage.verso">
4504
<xsl:template name="qandaset.titlepage.separator">
4507
<xsl:template name="qandaset.titlepage.before.recto">
4510
<xsl:template name="qandaset.titlepage.before.verso">
4513
<xsl:template name="qandaset.titlepage">
4514
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" font-family="{$title.fontset}">
4515
<xsl:variable name="recto.content">
4516
<xsl:call-template name="qandaset.titlepage.before.recto"/>
4517
<xsl:call-template name="qandaset.titlepage.recto"/>
4519
<xsl:variable name="recto.elements.count">
4521
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4522
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4523
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4524
<xsl:otherwise>1</xsl:otherwise>
4527
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
4528
<fo:block start-indent="0pt" text-align="center"><xsl:copy-of select="$recto.content"/></fo:block>
4530
<xsl:variable name="verso.content">
4531
<xsl:call-template name="qandaset.titlepage.before.verso"/>
4532
<xsl:call-template name="qandaset.titlepage.verso"/>
4534
<xsl:variable name="verso.elements.count">
4536
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4537
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4538
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4539
<xsl:otherwise>1</xsl:otherwise>
4542
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
4543
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
4545
<xsl:call-template name="qandaset.titlepage.separator"/>
4549
<xsl:template match="*" mode="qandaset.titlepage.recto.mode">
4550
<!-- if an element isn't found in this mode, -->
4551
<!-- try the generic titlepage.mode -->
4552
<xsl:apply-templates select="." mode="titlepage.mode"/>
4555
<xsl:template match="*" mode="qandaset.titlepage.verso.mode">
4556
<!-- if an element isn't found in this mode, -->
4557
<!-- try the generic titlepage.mode -->
4558
<xsl:apply-templates select="." mode="titlepage.mode"/>
4561
<xsl:template match="d:title" mode="qandaset.titlepage.recto.auto.mode">
4562
<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">
4563
<xsl:call-template name="component.title">
4564
<xsl:with-param name="node" select="ancestor-or-self::d:qandaset[1]"/>
4565
</xsl:call-template>
4569
<xsl:template match="d:subtitle" 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">
4571
<xsl:apply-templates select="." mode="qandaset.titlepage.recto.mode"/>
4575
<xsl:template match="d:corpauthor" 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" font-size="14.4pt">
4577
<xsl:apply-templates select="." mode="qandaset.titlepage.recto.mode"/>
4581
<xsl:template match="d:authorgroup" 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" font-size="14.4pt">
4583
<xsl:apply-templates select="." mode="qandaset.titlepage.recto.mode"/>
4587
<xsl:template match="d:author" 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" font-size="14.4pt">
4589
<xsl:apply-templates select="." mode="qandaset.titlepage.recto.mode"/>
4593
<xsl:template match="d:othercredit" 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" space-before="0.5em">
4595
<xsl:apply-templates select="." mode="qandaset.titlepage.recto.mode"/>
4599
<xsl:template match="d:releaseinfo" 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:copyright" 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:legalnotice" 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" text-align="start" margin-left="0.5in" margin-right="0.5in" font-family="{$body.fontset}">
4613
<xsl:apply-templates select="." mode="qandaset.titlepage.recto.mode"/>
4617
<xsl:template match="d:pubdate" 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">
4619
<xsl:apply-templates select="." mode="qandaset.titlepage.recto.mode"/>
4623
<xsl:template match="d:revision" mode="qandaset.titlepage.recto.auto.mode">
4624
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="qandaset.titlepage.recto.style" space-before="0.5em">
4625
<xsl:apply-templates select="." mode="qandaset.titlepage.recto.mode"/>
4629
<xsl:template match="d:revhistory" mode="qandaset.titlepage.recto.auto.mode">
4630
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="qandaset.titlepage.recto.style" space-before="0.5em">
4631
<xsl:apply-templates select="." mode="qandaset.titlepage.recto.mode"/>
4635
<xsl:template match="d:abstract" mode="qandaset.titlepage.recto.auto.mode">
4636
<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}">
4637
<xsl:apply-templates select="." mode="qandaset.titlepage.recto.mode"/>
4641
<xsl:template name="table.of.contents.titlepage.recto">
4642
<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}">
4643
<xsl:call-template name="gentext">
4644
<xsl:with-param name="key" select="'TableofContents'"/>
4645
</xsl:call-template></fo:block>
4648
<xsl:template name="table.of.contents.titlepage.verso">
4651
<xsl:template name="table.of.contents.titlepage.separator">
4654
<xsl:template name="table.of.contents.titlepage.before.recto">
4657
<xsl:template name="table.of.contents.titlepage.before.verso">
4660
<xsl:template name="table.of.contents.titlepage">
4661
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
4662
<xsl:variable name="recto.content">
4663
<xsl:call-template name="table.of.contents.titlepage.before.recto"/>
4664
<xsl:call-template name="table.of.contents.titlepage.recto"/>
4666
<xsl:variable name="recto.elements.count">
4668
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4669
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4670
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4671
<xsl:otherwise>1</xsl:otherwise>
4674
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
4675
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
4677
<xsl:variable name="verso.content">
4678
<xsl:call-template name="table.of.contents.titlepage.before.verso"/>
4679
<xsl:call-template name="table.of.contents.titlepage.verso"/>
4681
<xsl:variable name="verso.elements.count">
4683
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4684
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4685
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4686
<xsl:otherwise>1</xsl:otherwise>
4689
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
4690
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
4692
<xsl:call-template name="table.of.contents.titlepage.separator"/>
4696
<xsl:template match="*" mode="table.of.contents.titlepage.recto.mode">
4697
<!-- if an element isn't found in this mode, -->
4698
<!-- try the generic titlepage.mode -->
4699
<xsl:apply-templates select="." mode="titlepage.mode"/>
4702
<xsl:template match="*" mode="table.of.contents.titlepage.verso.mode">
4703
<!-- if an element isn't found in this mode, -->
4704
<!-- try the generic titlepage.mode -->
4705
<xsl:apply-templates select="." mode="titlepage.mode"/>
4708
<xsl:template name="list.of.tables.titlepage.recto">
4709
<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}">
4710
<xsl:call-template name="gentext">
4711
<xsl:with-param name="key" select="'ListofTables'"/>
4712
</xsl:call-template></fo:block>
4715
<xsl:template name="list.of.tables.titlepage.verso">
4718
<xsl:template name="list.of.tables.titlepage.separator">
4721
<xsl:template name="list.of.tables.titlepage.before.recto">
4724
<xsl:template name="list.of.tables.titlepage.before.verso">
4727
<xsl:template name="list.of.tables.titlepage">
4728
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
4729
<xsl:variable name="recto.content">
4730
<xsl:call-template name="list.of.tables.titlepage.before.recto"/>
4731
<xsl:call-template name="list.of.tables.titlepage.recto"/>
4733
<xsl:variable name="recto.elements.count">
4735
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4736
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4737
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4738
<xsl:otherwise>1</xsl:otherwise>
4741
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
4742
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
4744
<xsl:variable name="verso.content">
4745
<xsl:call-template name="list.of.tables.titlepage.before.verso"/>
4746
<xsl:call-template name="list.of.tables.titlepage.verso"/>
4748
<xsl:variable name="verso.elements.count">
4750
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4751
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4752
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4753
<xsl:otherwise>1</xsl:otherwise>
4756
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
4757
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
4759
<xsl:call-template name="list.of.tables.titlepage.separator"/>
4763
<xsl:template match="*" mode="list.of.tables.titlepage.recto.mode">
4764
<!-- if an element isn't found in this mode, -->
4765
<!-- try the generic titlepage.mode -->
4766
<xsl:apply-templates select="." mode="titlepage.mode"/>
4769
<xsl:template match="*" mode="list.of.tables.titlepage.verso.mode">
4770
<!-- if an element isn't found in this mode, -->
4771
<!-- try the generic titlepage.mode -->
4772
<xsl:apply-templates select="." mode="titlepage.mode"/>
4775
<xsl:template name="list.of.figures.titlepage.recto">
4776
<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}">
4777
<xsl:call-template name="gentext">
4778
<xsl:with-param name="key" select="'ListofFigures'"/>
4779
</xsl:call-template></fo:block>
4782
<xsl:template name="list.of.figures.titlepage.verso">
4785
<xsl:template name="list.of.figures.titlepage.separator">
4788
<xsl:template name="list.of.figures.titlepage.before.recto">
4791
<xsl:template name="list.of.figures.titlepage.before.verso">
4794
<xsl:template name="list.of.figures.titlepage">
4795
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
4796
<xsl:variable name="recto.content">
4797
<xsl:call-template name="list.of.figures.titlepage.before.recto"/>
4798
<xsl:call-template name="list.of.figures.titlepage.recto"/>
4800
<xsl:variable name="recto.elements.count">
4802
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4803
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4804
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4805
<xsl:otherwise>1</xsl:otherwise>
4808
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
4809
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
4811
<xsl:variable name="verso.content">
4812
<xsl:call-template name="list.of.figures.titlepage.before.verso"/>
4813
<xsl:call-template name="list.of.figures.titlepage.verso"/>
4815
<xsl:variable name="verso.elements.count">
4817
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4818
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4819
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4820
<xsl:otherwise>1</xsl:otherwise>
4823
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
4824
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
4826
<xsl:call-template name="list.of.figures.titlepage.separator"/>
4830
<xsl:template match="*" mode="list.of.figures.titlepage.recto.mode">
4831
<!-- if an element isn't found in this mode, -->
4832
<!-- try the generic titlepage.mode -->
4833
<xsl:apply-templates select="." mode="titlepage.mode"/>
4836
<xsl:template match="*" mode="list.of.figures.titlepage.verso.mode">
4837
<!-- if an element isn't found in this mode, -->
4838
<!-- try the generic titlepage.mode -->
4839
<xsl:apply-templates select="." mode="titlepage.mode"/>
4842
<xsl:template name="list.of.examples.titlepage.recto">
4843
<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}">
4844
<xsl:call-template name="gentext">
4845
<xsl:with-param name="key" select="'ListofExamples'"/>
4846
</xsl:call-template></fo:block>
4849
<xsl:template name="list.of.examples.titlepage.verso">
4852
<xsl:template name="list.of.examples.titlepage.separator">
4855
<xsl:template name="list.of.examples.titlepage.before.recto">
4858
<xsl:template name="list.of.examples.titlepage.before.verso">
4861
<xsl:template name="list.of.examples.titlepage">
4862
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
4863
<xsl:variable name="recto.content">
4864
<xsl:call-template name="list.of.examples.titlepage.before.recto"/>
4865
<xsl:call-template name="list.of.examples.titlepage.recto"/>
4867
<xsl:variable name="recto.elements.count">
4869
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4870
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4871
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4872
<xsl:otherwise>1</xsl:otherwise>
4875
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
4876
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
4878
<xsl:variable name="verso.content">
4879
<xsl:call-template name="list.of.examples.titlepage.before.verso"/>
4880
<xsl:call-template name="list.of.examples.titlepage.verso"/>
4882
<xsl:variable name="verso.elements.count">
4884
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4885
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4886
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4887
<xsl:otherwise>1</xsl:otherwise>
4890
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
4891
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
4893
<xsl:call-template name="list.of.examples.titlepage.separator"/>
4897
<xsl:template match="*" mode="list.of.examples.titlepage.recto.mode">
4898
<!-- if an element isn't found in this mode, -->
4899
<!-- try the generic titlepage.mode -->
4900
<xsl:apply-templates select="." mode="titlepage.mode"/>
4903
<xsl:template match="*" mode="list.of.examples.titlepage.verso.mode">
4904
<!-- if an element isn't found in this mode, -->
4905
<!-- try the generic titlepage.mode -->
4906
<xsl:apply-templates select="." mode="titlepage.mode"/>
4909
<xsl:template name="list.of.equations.titlepage.recto">
4910
<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}">
4911
<xsl:call-template name="gentext">
4912
<xsl:with-param name="key" select="'ListofEquations'"/>
4913
</xsl:call-template></fo:block>
4916
<xsl:template name="list.of.equations.titlepage.verso">
4919
<xsl:template name="list.of.equations.titlepage.separator">
4922
<xsl:template name="list.of.equations.titlepage.before.recto">
4925
<xsl:template name="list.of.equations.titlepage.before.verso">
4928
<xsl:template name="list.of.equations.titlepage">
4929
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
4930
<xsl:variable name="recto.content">
4931
<xsl:call-template name="list.of.equations.titlepage.before.recto"/>
4932
<xsl:call-template name="list.of.equations.titlepage.recto"/>
4934
<xsl:variable name="recto.elements.count">
4936
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4937
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4938
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4939
<xsl:otherwise>1</xsl:otherwise>
4942
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
4943
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
4945
<xsl:variable name="verso.content">
4946
<xsl:call-template name="list.of.equations.titlepage.before.verso"/>
4947
<xsl:call-template name="list.of.equations.titlepage.verso"/>
4949
<xsl:variable name="verso.elements.count">
4951
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4952
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4953
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4954
<xsl:otherwise>1</xsl:otherwise>
4957
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
4958
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
4960
<xsl:call-template name="list.of.equations.titlepage.separator"/>
4964
<xsl:template match="*" mode="list.of.equations.titlepage.recto.mode">
4965
<!-- if an element isn't found in this mode, -->
4966
<!-- try the generic titlepage.mode -->
4967
<xsl:apply-templates select="." mode="titlepage.mode"/>
4970
<xsl:template match="*" mode="list.of.equations.titlepage.verso.mode">
4971
<!-- if an element isn't found in this mode, -->
4972
<!-- try the generic titlepage.mode -->
4973
<xsl:apply-templates select="." mode="titlepage.mode"/>
4976
<xsl:template name="list.of.procedures.titlepage.recto">
4977
<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}">
4978
<xsl:call-template name="gentext">
4979
<xsl:with-param name="key" select="'ListofProcedures'"/>
4980
</xsl:call-template></fo:block>
4983
<xsl:template name="list.of.procedures.titlepage.verso">
4986
<xsl:template name="list.of.procedures.titlepage.separator">
4989
<xsl:template name="list.of.procedures.titlepage.before.recto">
4992
<xsl:template name="list.of.procedures.titlepage.before.verso">
4995
<xsl:template name="list.of.procedures.titlepage">
4996
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
4997
<xsl:variable name="recto.content">
4998
<xsl:call-template name="list.of.procedures.titlepage.before.recto"/>
4999
<xsl:call-template name="list.of.procedures.titlepage.recto"/>
5001
<xsl:variable name="recto.elements.count">
5003
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
5004
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
5005
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
5006
<xsl:otherwise>1</xsl:otherwise>
5009
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
5010
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
5012
<xsl:variable name="verso.content">
5013
<xsl:call-template name="list.of.procedures.titlepage.before.verso"/>
5014
<xsl:call-template name="list.of.procedures.titlepage.verso"/>
5016
<xsl:variable name="verso.elements.count">
5018
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
5019
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
5020
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
5021
<xsl:otherwise>1</xsl:otherwise>
5024
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
5025
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
5027
<xsl:call-template name="list.of.procedures.titlepage.separator"/>
5031
<xsl:template match="*" mode="list.of.procedures.titlepage.recto.mode">
5032
<!-- if an element isn't found in this mode, -->
5033
<!-- try the generic titlepage.mode -->
5034
<xsl:apply-templates select="." mode="titlepage.mode"/>
5037
<xsl:template match="*" mode="list.of.procedures.titlepage.verso.mode">
5038
<!-- if an element isn't found in this mode, -->
5039
<!-- try the generic titlepage.mode -->
5040
<xsl:apply-templates select="." mode="titlepage.mode"/>
5043
<xsl:template name="list.of.unknowns.titlepage.recto">
5044
<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}">
5045
<xsl:call-template name="gentext">
5046
<xsl:with-param name="key" select="'ListofUnknown'"/>
5047
</xsl:call-template></fo:block>
5050
<xsl:template name="list.of.unknowns.titlepage.verso">
5053
<xsl:template name="list.of.unknowns.titlepage.separator">
5056
<xsl:template name="list.of.unknowns.titlepage.before.recto">
5059
<xsl:template name="list.of.unknowns.titlepage.before.verso">
5062
<xsl:template name="list.of.unknowns.titlepage">
5063
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
5064
<xsl:variable name="recto.content">
5065
<xsl:call-template name="list.of.unknowns.titlepage.before.recto"/>
5066
<xsl:call-template name="list.of.unknowns.titlepage.recto"/>
5068
<xsl:variable name="recto.elements.count">
5070
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
5071
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
5072
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
5073
<xsl:otherwise>1</xsl:otherwise>
5076
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
5077
<fo:block><xsl:copy-of select="$recto.content"/></fo:block>
5079
<xsl:variable name="verso.content">
5080
<xsl:call-template name="list.of.unknowns.titlepage.before.verso"/>
5081
<xsl:call-template name="list.of.unknowns.titlepage.verso"/>
5083
<xsl:variable name="verso.elements.count">
5085
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
5086
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
5087
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
5088
<xsl:otherwise>1</xsl:otherwise>
5091
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
5092
<fo:block><xsl:copy-of select="$verso.content"/></fo:block>
5094
<xsl:call-template name="list.of.unknowns.titlepage.separator"/>
5098
<xsl:template match="*" mode="list.of.unknowns.titlepage.recto.mode">
5099
<!-- if an element isn't found in this mode, -->
5100
<!-- try the generic titlepage.mode -->
5101
<xsl:apply-templates select="." mode="titlepage.mode"/>
5104
<xsl:template match="*" mode="list.of.unknowns.titlepage.verso.mode">
5105
<!-- if an element isn't found in this mode, -->
5106
<!-- try the generic titlepage.mode -->
5107
<xsl:apply-templates select="." mode="titlepage.mode"/>