Debian Codegraph @

docbook-xsl-ns/fo/titlepage.templates.xsl

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:d="http://docbook.org/ns/docbook" xmlns:exsl="http://exslt.org/common" xmlns:fo="http://www.w3.org/1999/XSL/Format" version="1.0" exclude-result-prefixes="exsl d">
3
4 <!-- This stylesheet was created by template/titlepage.xsl-->
5
6 <xsl:template name="article.titlepage.recto">
7 <xsl:choose>
8 <xsl:when test="d:articleinfo/d:title">
9 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:articleinfo/d:title"/>
10 </xsl:when>
11 <xsl:when test="d:artheader/d:title">
12 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:artheader/d:title"/>
13 </xsl:when>
14 <xsl:when test="d:info/d:title">
15 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:info/d:title"/>
16 </xsl:when>
17 <xsl:when test="d:title">
18 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:title"/>
19 </xsl:when>
20 </xsl:choose>
21
22 <xsl:choose>
23 <xsl:when test="d:articleinfo/d:subtitle">
24 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:articleinfo/d:subtitle"/>
25 </xsl:when>
26 <xsl:when test="d:artheader/d:subtitle">
27 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:artheader/d:subtitle"/>
28 </xsl:when>
29 <xsl:when test="d:info/d:subtitle">
30 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
31 </xsl:when>
32 <xsl:when test="d:subtitle">
33 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:subtitle"/>
34 </xsl:when>
35 </xsl:choose>
36
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"/>
70 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:articleinfo/d:itermset"/>
71 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:artheader/d:itermset"/>
72 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:info/d:itermset"/>
73 </xsl:template>
74
75 <xsl:template name="article.titlepage.verso">
76 </xsl:template>
77
78 <xsl:template name="article.titlepage.separator">
79 </xsl:template>
80
81 <xsl:template name="article.titlepage.before.recto">
82 </xsl:template>
83
84 <xsl:template name="article.titlepage.before.verso">
85 </xsl:template>
86
87 <xsl:template name="article.titlepage">
88 <fo:block font-family="{$title.fontset}">
89 <xsl:variable name="recto.content">
90 <xsl:call-template name="article.titlepage.before.recto"/>
91 <xsl:call-template name="article.titlepage.recto"/>
92 </xsl:variable>
93 <xsl:variable name="recto.elements.count">
94 <xsl:choose>
95 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
96 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
97 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
98 <xsl:otherwise>1</xsl:otherwise>
99 </xsl:choose>
100 </xsl:variable>
101 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
102 <fo:block start-indent="0pt" text-align="center"><xsl:copy-of select="$recto.content"/></fo:block>
103 </xsl:if>
104 <xsl:variable name="verso.content">
105 <xsl:call-template name="article.titlepage.before.verso"/>
106 <xsl:call-template name="article.titlepage.verso"/>
107 </xsl:variable>
108 <xsl:variable name="verso.elements.count">
109 <xsl:choose>
110 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
111 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
112 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
113 <xsl:otherwise>1</xsl:otherwise>
114 </xsl:choose>
115 </xsl:variable>
116 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
117 <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
118 </xsl:if>
119 <xsl:call-template name="article.titlepage.separator"/>
120 </fo:block>
121 </xsl:template>
122
123 <xsl:template match="*" mode="article.titlepage.recto.mode">
124 <!-- if an element isn't found in this mode, -->
125 <!-- try the generic titlepage.mode -->
126 <xsl:apply-templates select="." mode="titlepage.mode"/>
127 </xsl:template>
128
129 <xsl:template match="*" mode="article.titlepage.verso.mode">
130 <!-- if an element isn't found in this mode, -->
131 <!-- try the generic titlepage.mode -->
132 <xsl:apply-templates select="." mode="titlepage.mode"/>
133 </xsl:template>
134
135 <xsl:template match="d:title" mode="article.titlepage.recto.auto.mode">
136 <fo:block xsl:use-attribute-sets="article.titlepage.recto.style" keep-with-next.within-column="always" font-size="24.8832pt" font-weight="bold">
137 <xsl:call-template name="component.title">
138 <xsl:with-param name="node" select="ancestor-or-self::d:article[1]"/>
139 </xsl:call-template>
140 </fo:block>
141 </xsl:template>
142
143 <xsl:template match="d:subtitle" mode="article.titlepage.recto.auto.mode">
144 <fo:block xsl:use-attribute-sets="article.titlepage.recto.style">
145 <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
146 </fo:block>
147 </xsl:template>
148
149 <xsl:template match="d:corpauthor" mode="article.titlepage.recto.auto.mode">
150 <fo:block xsl:use-attribute-sets="article.titlepage.recto.style" space-before="0.5em" font-size="14.4pt">
151 <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
152 </fo:block>
153 </xsl:template>
154
155 <xsl:template match="d:authorgroup" mode="article.titlepage.recto.auto.mode">
156 <fo:block xsl:use-attribute-sets="article.titlepage.recto.style" space-before="0.5em" font-size="14.4pt">
157 <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
158 </fo:block>
159 </xsl:template>
160
161 <xsl:template match="d:author" mode="article.titlepage.recto.auto.mode">
162 <fo:block xsl:use-attribute-sets="article.titlepage.recto.style" space-before="0.5em" font-size="14.4pt">
163 <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
164 </fo:block>
165 </xsl:template>
166
167 <xsl:template match="d:othercredit" mode="article.titlepage.recto.auto.mode">
168 <fo:block xsl:use-attribute-sets="article.titlepage.recto.style" space-before="0.5em">
169 <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
170 </fo:block>
171 </xsl:template>
172
173 <xsl:template match="d:releaseinfo" mode="article.titlepage.recto.auto.mode">
174 <fo:block xsl:use-attribute-sets="article.titlepage.recto.style" space-before="0.5em">
175 <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
176 </fo:block>
177 </xsl:template>
178
179 <xsl:template match="d:copyright" mode="article.titlepage.recto.auto.mode">
180 <fo:block xsl:use-attribute-sets="article.titlepage.recto.style" space-before="0.5em">
181 <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
182 </fo:block>
183 </xsl:template>
184
185 <xsl:template match="d:legalnotice" mode="article.titlepage.recto.auto.mode">
186 <fo:block xsl:use-attribute-sets="article.titlepage.recto.style" text-align="start" margin-left="0.5in" margin-right="0.5in" font-family="{$body.fontset}">
187 <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
188 </fo:block>
189 </xsl:template>
190
191 <xsl:template match="d:pubdate" mode="article.titlepage.recto.auto.mode">
192 <fo:block xsl:use-attribute-sets="article.titlepage.recto.style" space-before="0.5em">
193 <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
194 </fo:block>
195 </xsl:template>
196
197 <xsl:template match="d:revision" mode="article.titlepage.recto.auto.mode">
198 <fo:block xsl:use-attribute-sets="article.titlepage.recto.style" space-before="0.5em">
199 <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
200 </fo:block>
201 </xsl:template>
202
203 <xsl:template match="d:revhistory" mode="article.titlepage.recto.auto.mode">
204 <fo:block xsl:use-attribute-sets="article.titlepage.recto.style" space-before="0.5em">
205 <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
206 </fo:block>
207 </xsl:template>
208
209 <xsl:template match="d:abstract" mode="article.titlepage.recto.auto.mode">
210 <fo:block 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}">
211 <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
212 </fo:block>
213 </xsl:template>
214
215 <xsl:template match="d:itermset" mode="article.titlepage.recto.auto.mode">
216 <fo:block xsl:use-attribute-sets="article.titlepage.recto.style">
217 <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
218 </fo:block>
219 </xsl:template>
220
221 <xsl:template name="set.titlepage.recto">
222 <xsl:choose>
223 <xsl:when test="d:setinfo/d:title">
224 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:title"/>
225 </xsl:when>
226 <xsl:when test="d:info/d:title">
227 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:title"/>
228 </xsl:when>
229 <xsl:when test="d:title">
230 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:title"/>
231 </xsl:when>
232 </xsl:choose>
233
234 <xsl:choose>
235 <xsl:when test="d:setinfo/d:subtitle">
236 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:subtitle"/>
237 </xsl:when>
238 <xsl:when test="d:info/d:subtitle">
239 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
240 </xsl:when>
241 <xsl:when test="d:subtitle">
242 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:subtitle"/>
243 </xsl:when>
244 </xsl:choose>
245
246 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:corpauthor"/>
247 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
248 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:authorgroup"/>
249 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
250 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:author"/>
251 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:author"/>
252 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:othercredit"/>
253 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
254 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:releaseinfo"/>
255 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
256 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:copyright"/>
257 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
258 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:legalnotice"/>
259 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
260 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:pubdate"/>
261 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
262 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:revision"/>
263 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:revision"/>
264 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:revhistory"/>
265 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
266 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:abstract"/>
267 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
268 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:itermset"/>
269 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:itermset"/>
270 </xsl:template>
271
272 <xsl:template name="set.titlepage.verso">
273 </xsl:template>
274
275 <xsl:template name="set.titlepage.separator">
276 </xsl:template>
277
278 <xsl:template name="set.titlepage.before.recto">
279 </xsl:template>
280
281 <xsl:template name="set.titlepage.before.verso">
282 </xsl:template>
283
284 <xsl:template name="set.titlepage">
285 <fo:block>
286 <xsl:variable name="recto.content">
287 <xsl:call-template name="set.titlepage.before.recto"/>
288 <xsl:call-template name="set.titlepage.recto"/>
289 </xsl:variable>
290 <xsl:variable name="recto.elements.count">
291 <xsl:choose>
292 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
293 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
294 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
295 <xsl:otherwise>1</xsl:otherwise>
296 </xsl:choose>
297 </xsl:variable>
298 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
299 <fo:block><xsl:copy-of select="$recto.content"/></fo:block>
300 </xsl:if>
301 <xsl:variable name="verso.content">
302 <xsl:call-template name="set.titlepage.before.verso"/>
303 <xsl:call-template name="set.titlepage.verso"/>
304 </xsl:variable>
305 <xsl:variable name="verso.elements.count">
306 <xsl:choose>
307 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
308 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
309 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
310 <xsl:otherwise>1</xsl:otherwise>
311 </xsl:choose>
312 </xsl:variable>
313 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
314 <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
315 </xsl:if>
316 <xsl:call-template name="set.titlepage.separator"/>
317 </fo:block>
318 </xsl:template>
319
320 <xsl:template match="*" mode="set.titlepage.recto.mode">
321 <!-- if an element isn't found in this mode, -->
322 <!-- try the generic titlepage.mode -->
323 <xsl:apply-templates select="." mode="titlepage.mode"/>
324 </xsl:template>
325
326 <xsl:template match="*" mode="set.titlepage.verso.mode">
327 <!-- if an element isn't found in this mode, -->
328 <!-- try the generic titlepage.mode -->
329 <xsl:apply-templates select="." mode="titlepage.mode"/>
330 </xsl:template>
331
332 <xsl:template match="d:title" mode="set.titlepage.recto.auto.mode">
333 <fo:block 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}">
334 <xsl:call-template name="division.title">
335 <xsl:with-param name="node" select="ancestor-or-self::d:set[1]"/>
336 </xsl:call-template>
337 </fo:block>
338 </xsl:template>
339
340 <xsl:template match="d:subtitle" mode="set.titlepage.recto.auto.mode">
341 <fo:block xsl:use-attribute-sets="set.titlepage.recto.style" font-family="{$title.fontset}" text-align="center">
342 <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
343 </fo:block>
344 </xsl:template>
345
346 <xsl:template match="d:corpauthor" mode="set.titlepage.recto.auto.mode">
347 <fo:block xsl:use-attribute-sets="set.titlepage.recto.style">
348 <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
349 </fo:block>
350 </xsl:template>
351
352 <xsl:template match="d:authorgroup" mode="set.titlepage.recto.auto.mode">
353 <fo:block xsl:use-attribute-sets="set.titlepage.recto.style">
354 <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
355 </fo:block>
356 </xsl:template>
357
358 <xsl:template match="d:author" mode="set.titlepage.recto.auto.mode">
359 <fo:block xsl:use-attribute-sets="set.titlepage.recto.style">
360 <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
361 </fo:block>
362 </xsl:template>
363
364 <xsl:template match="d:othercredit" mode="set.titlepage.recto.auto.mode">
365 <fo:block xsl:use-attribute-sets="set.titlepage.recto.style">
366 <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
367 </fo:block>
368 </xsl:template>
369
370 <xsl:template match="d:releaseinfo" mode="set.titlepage.recto.auto.mode">
371 <fo:block xsl:use-attribute-sets="set.titlepage.recto.style">
372 <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
373 </fo:block>
374 </xsl:template>
375
376 <xsl:template match="d:copyright" mode="set.titlepage.recto.auto.mode">
377 <fo:block xsl:use-attribute-sets="set.titlepage.recto.style">
378 <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
379 </fo:block>
380 </xsl:template>
381
382 <xsl:template match="d:legalnotice" mode="set.titlepage.recto.auto.mode">
383 <fo:block xsl:use-attribute-sets="set.titlepage.recto.style">
384 <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
385 </fo:block>
386 </xsl:template>
387
388 <xsl:template match="d:pubdate" mode="set.titlepage.recto.auto.mode">
389 <fo:block xsl:use-attribute-sets="set.titlepage.recto.style">
390 <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
391 </fo:block>
392 </xsl:template>
393
394 <xsl:template match="d:revision" mode="set.titlepage.recto.auto.mode">
395 <fo:block xsl:use-attribute-sets="set.titlepage.recto.style">
396 <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
397 </fo:block>
398 </xsl:template>
399
400 <xsl:template match="d:revhistory" mode="set.titlepage.recto.auto.mode">
401 <fo:block xsl:use-attribute-sets="set.titlepage.recto.style">
402 <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
403 </fo:block>
404 </xsl:template>
405
406 <xsl:template match="d:abstract" mode="set.titlepage.recto.auto.mode">
407 <fo:block xsl:use-attribute-sets="set.titlepage.recto.style">
408 <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
409 </fo:block>
410 </xsl:template>
411
412 <xsl:template match="d:itermset" mode="set.titlepage.recto.auto.mode">
413 <fo:block xsl:use-attribute-sets="set.titlepage.recto.style">
414 <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
415 </fo:block>
416 </xsl:template>
417
418 <xsl:template name="book.titlepage.recto">
419 <xsl:choose>
420 <xsl:when test="d:bookinfo/d:title">
421 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:title"/>
422 </xsl:when>
423 <xsl:when test="d:info/d:title">
424 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:title"/>
425 </xsl:when>
426 <xsl:when test="d:title">
427 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:title"/>
428 </xsl:when>
429 </xsl:choose>
430
431 <xsl:choose>
432 <xsl:when test="d:bookinfo/d:subtitle">
433 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:subtitle"/>
434 </xsl:when>
435 <xsl:when test="d:info/d:subtitle">
436 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
437 </xsl:when>
438 <xsl:when test="d:subtitle">
439 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:subtitle"/>
440 </xsl:when>
441 </xsl:choose>
442
443 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:corpauthor"/>
444 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
445 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:authorgroup"/>
446 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
447 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:author"/>
448 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:author"/>
449 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:itermset"/>
450 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:itermset"/>
451 </xsl:template>
452
453 <xsl:template name="book.titlepage.verso">
454 <xsl:choose>
455 <xsl:when test="d:bookinfo/d:title">
456 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:bookinfo/d:title"/>
457 </xsl:when>
458 <xsl:when test="d:info/d:title">
459 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:info/d:title"/>
460 </xsl:when>
461 <xsl:when test="d:title">
462 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:title"/>
463 </xsl:when>
464 </xsl:choose>
465
466 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:bookinfo/d:corpauthor"/>
467 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:info/d:corpauthor"/>
468 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:bookinfo/d:authorgroup"/>
469 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:info/d:authorgroup"/>
470 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:bookinfo/d:author"/>
471 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:info/d:author"/>
472 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:bookinfo/d:othercredit"/>
473 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:info/d:othercredit"/>
474 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:bookinfo/d:releaseinfo"/>
475 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:info/d:releaseinfo"/>
476 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:bookinfo/d:pubdate"/>
477 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:info/d:pubdate"/>
478 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:bookinfo/d:copyright"/>
479 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:info/d:copyright"/>
480 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:bookinfo/d:abstract"/>
481 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:info/d:abstract"/>
482 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:bookinfo/d:legalnotice"/>
483 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:info/d:legalnotice"/>
484 </xsl:template>
485
486 <xsl:template name="book.titlepage.separator"><fo:block break-after="page"/>
487 </xsl:template>
488
489 <xsl:template name="book.titlepage.before.recto">
490 </xsl:template>
491
492 <xsl:template name="book.titlepage.before.verso"><fo:block break-after="page"/>
493 </xsl:template>
494
495 <xsl:template name="book.titlepage">
496 <fo:block>
497 <xsl:variable name="recto.content">
498 <xsl:call-template name="book.titlepage.before.recto"/>
499 <xsl:call-template name="book.titlepage.recto"/>
500 </xsl:variable>
501 <xsl:variable name="recto.elements.count">
502 <xsl:choose>
503 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
504 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
505 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
506 <xsl:otherwise>1</xsl:otherwise>
507 </xsl:choose>
508 </xsl:variable>
509 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
510 <fo:block><xsl:copy-of select="$recto.content"/></fo:block>
511 </xsl:if>
512 <xsl:variable name="verso.content">
513 <xsl:call-template name="book.titlepage.before.verso"/>
514 <xsl:call-template name="book.titlepage.verso"/>
515 </xsl:variable>
516 <xsl:variable name="verso.elements.count">
517 <xsl:choose>
518 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
519 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
520 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
521 <xsl:otherwise>1</xsl:otherwise>
522 </xsl:choose>
523 </xsl:variable>
524 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
525 <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
526 </xsl:if>
527 <xsl:call-template name="book.titlepage.separator"/>
528 </fo:block>
529 </xsl:template>
530
531 <xsl:template match="*" mode="book.titlepage.recto.mode">
532 <!-- if an element isn't found in this mode, -->
533 <!-- try the generic titlepage.mode -->
534 <xsl:apply-templates select="." mode="titlepage.mode"/>
535 </xsl:template>
536
537 <xsl:template match="*" mode="book.titlepage.verso.mode">
538 <!-- if an element isn't found in this mode, -->
539 <!-- try the generic titlepage.mode -->
540 <xsl:apply-templates select="." mode="titlepage.mode"/>
541 </xsl:template>
542
543 <xsl:template match="d:title" mode="book.titlepage.recto.auto.mode">
544 <fo:block xsl:use-attribute-sets="book.titlepage.recto.style" text-align="center" font-size="24.8832pt" space-before="18.6624pt" font-weight="bold" font-family="{$title.fontset}">
545 <xsl:call-template name="division.title">
546 <xsl:with-param name="node" select="ancestor-or-self::d:book[1]"/>
547 </xsl:call-template>
548 </fo:block>
549 </xsl:template>
550
551 <xsl:template match="d:subtitle" mode="book.titlepage.recto.auto.mode">
552 <fo:block xsl:use-attribute-sets="book.titlepage.recto.style" text-align="center" font-size="20.736pt" space-before="15.552pt" font-family="{$title.fontset}">
553 <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
554 </fo:block>
555 </xsl:template>
556
557 <xsl:template match="d:corpauthor" mode="book.titlepage.recto.auto.mode">
558 <fo:block xsl:use-attribute-sets="book.titlepage.recto.style" font-size="17.28pt" keep-with-next.within-column="always" space-before="2in">
559 <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
560 </fo:block>
561 </xsl:template>
562
563 <xsl:template match="d:authorgroup" mode="book.titlepage.recto.auto.mode">
564 <fo:block xsl:use-attribute-sets="book.titlepage.recto.style" space-before="2in">
565 <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
566 </fo:block>
567 </xsl:template>
568
569 <xsl:template match="d:author" mode="book.titlepage.recto.auto.mode">
570 <fo:block xsl:use-attribute-sets="book.titlepage.recto.style" font-size="17.28pt" space-before="10.8pt" keep-with-next.within-column="always">
571 <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
572 </fo:block>
573 </xsl:template>
574
575 <xsl:template match="d:itermset" mode="book.titlepage.recto.auto.mode">
576 <fo:block xsl:use-attribute-sets="book.titlepage.recto.style">
577 <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
578 </fo:block>
579 </xsl:template>
580
581 <xsl:template match="d:title" mode="book.titlepage.verso.auto.mode">
582 <fo:block xsl:use-attribute-sets="book.titlepage.verso.style" font-size="14.4pt" font-weight="bold" font-family="{$title.fontset}">
583 <xsl:call-template name="book.verso.title">
584 </xsl:call-template>
585 </fo:block>
586 </xsl:template>
587
588 <xsl:template match="d:corpauthor" mode="book.titlepage.verso.auto.mode">
589 <fo:block xsl:use-attribute-sets="book.titlepage.verso.style">
590 <xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
591 </fo:block>
592 </xsl:template>
593
594 <xsl:template match="d:authorgroup" mode="book.titlepage.verso.auto.mode">
595 <fo:block xsl:use-attribute-sets="book.titlepage.verso.style">
596 <xsl:call-template name="verso.authorgroup">
597 </xsl:call-template>
598 </fo:block>
599 </xsl:template>
600
601 <xsl:template match="d:author" mode="book.titlepage.verso.auto.mode">
602 <fo:block xsl:use-attribute-sets="book.titlepage.verso.style">
603 <xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
604 </fo:block>
605 </xsl:template>
606
607 <xsl:template match="d:othercredit" mode="book.titlepage.verso.auto.mode">
608 <fo:block xsl:use-attribute-sets="book.titlepage.verso.style">
609 <xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
610 </fo:block>
611 </xsl:template>
612
613 <xsl:template match="d:releaseinfo" mode="book.titlepage.verso.auto.mode">
614 <fo:block xsl:use-attribute-sets="book.titlepage.verso.style" space-before="0.5em">
615 <xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
616 </fo:block>
617 </xsl:template>
618
619 <xsl:template match="d:pubdate" mode="book.titlepage.verso.auto.mode">
620 <fo:block xsl:use-attribute-sets="book.titlepage.verso.style" space-before="1em">
621 <xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
622 </fo:block>
623 </xsl:template>
624
625 <xsl:template match="d:copyright" mode="book.titlepage.verso.auto.mode">
626 <fo:block xsl:use-attribute-sets="book.titlepage.verso.style">
627 <xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
628 </fo:block>
629 </xsl:template>
630
631 <xsl:template match="d:abstract" mode="book.titlepage.verso.auto.mode">
632 <fo:block xsl:use-attribute-sets="book.titlepage.verso.style">
633 <xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
634 </fo:block>
635 </xsl:template>
636
637 <xsl:template match="d:legalnotice" mode="book.titlepage.verso.auto.mode">
638 <fo:block xsl:use-attribute-sets="book.titlepage.verso.style" font-size="8pt">
639 <xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
640 </fo:block>
641 </xsl:template>
642
643 <xsl:template name="part.titlepage.recto">
644 <xsl:choose>
645 <xsl:when test="d:partinfo/d:title">
646 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:partinfo/d:title"/>
647 </xsl:when>
648 <xsl:when test="d:docinfo/d:title">
649 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
650 </xsl:when>
651 <xsl:when test="d:info/d:title">
652 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:info/d:title"/>
653 </xsl:when>
654 <xsl:when test="d:title">
655 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:title"/>
656 </xsl:when>
657 </xsl:choose>
658
659 <xsl:choose>
660 <xsl:when test="d:partinfo/d:subtitle">
661 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:partinfo/d:subtitle"/>
662 </xsl:when>
663 <xsl:when test="d:docinfo/d:subtitle">
664 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
665 </xsl:when>
666 <xsl:when test="d:info/d:subtitle">
667 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
668 </xsl:when>
669 <xsl:when test="d:subtitle">
670 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:subtitle"/>
671 </xsl:when>
672 </xsl:choose>
673
674 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:partinfo/d:itermset"/>
675 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:docinfo/d:itermset"/>
676 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:info/d:itermset"/>
677 </xsl:template>
678
679 <xsl:template name="part.titlepage.verso">
680 </xsl:template>
681
682 <xsl:template name="part.titlepage.separator">
683 </xsl:template>
684
685 <xsl:template name="part.titlepage.before.recto">
686 </xsl:template>
687
688 <xsl:template name="part.titlepage.before.verso">
689 </xsl:template>
690
691 <xsl:template name="part.titlepage">
692 <fo:block>
693 <xsl:variable name="recto.content">
694 <xsl:call-template name="part.titlepage.before.recto"/>
695 <xsl:call-template name="part.titlepage.recto"/>
696 </xsl:variable>
697 <xsl:variable name="recto.elements.count">
698 <xsl:choose>
699 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
700 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
701 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
702 <xsl:otherwise>1</xsl:otherwise>
703 </xsl:choose>
704 </xsl:variable>
705 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
706 <fo:block><xsl:copy-of select="$recto.content"/></fo:block>
707 </xsl:if>
708 <xsl:variable name="verso.content">
709 <xsl:call-template name="part.titlepage.before.verso"/>
710 <xsl:call-template name="part.titlepage.verso"/>
711 </xsl:variable>
712 <xsl:variable name="verso.elements.count">
713 <xsl:choose>
714 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
715 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
716 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
717 <xsl:otherwise>1</xsl:otherwise>
718 </xsl:choose>
719 </xsl:variable>
720 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
721 <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
722 </xsl:if>
723 <xsl:call-template name="part.titlepage.separator"/>
724 </fo:block>
725 </xsl:template>
726
727 <xsl:template match="*" mode="part.titlepage.recto.mode">
728 <!-- if an element isn't found in this mode, -->
729 <!-- try the generic titlepage.mode -->
730 <xsl:apply-templates select="." mode="titlepage.mode"/>
731 </xsl:template>
732
733 <xsl:template match="*" mode="part.titlepage.verso.mode">
734 <!-- if an element isn't found in this mode, -->
735 <!-- try the generic titlepage.mode -->
736 <xsl:apply-templates select="." mode="titlepage.mode"/>
737 </xsl:template>
738
739 <xsl:template match="d:title" mode="part.titlepage.recto.auto.mode">
740 <fo:block 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}">
741 <xsl:call-template name="division.title">
742 <xsl:with-param name="node" select="ancestor-or-self::d:part[1]"/>
743 </xsl:call-template>
744 </fo:block>
745 </xsl:template>
746
747 <xsl:template match="d:subtitle" mode="part.titlepage.recto.auto.mode">
748 <fo:block 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}">
749 <xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
750 </fo:block>
751 </xsl:template>
752
753 <xsl:template match="d:itermset" mode="part.titlepage.recto.auto.mode">
754 <fo:block xsl:use-attribute-sets="part.titlepage.recto.style">
755 <xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
756 </fo:block>
757 </xsl:template>
758
759 <xsl:template name="partintro.titlepage.recto">
760 <xsl:choose>
761 <xsl:when test="d:partintroinfo/d:title">
762 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:title"/>
763 </xsl:when>
764 <xsl:when test="d:docinfo/d:title">
765 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
766 </xsl:when>
767 <xsl:when test="d:info/d:title">
768 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:title"/>
769 </xsl:when>
770 <xsl:when test="d:title">
771 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:title"/>
772 </xsl:when>
773 </xsl:choose>
774
775 <xsl:choose>
776 <xsl:when test="d:partintroinfo/d:subtitle">
777 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:subtitle"/>
778 </xsl:when>
779 <xsl:when test="d:docinfo/d:subtitle">
780 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
781 </xsl:when>
782 <xsl:when test="d:info/d:subtitle">
783 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
784 </xsl:when>
785 <xsl:when test="d:subtitle">
786 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:subtitle"/>
787 </xsl:when>
788 </xsl:choose>
789
790 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:corpauthor"/>
791 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:corpauthor"/>
792 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
793 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:authorgroup"/>
794 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:authorgroup"/>
795 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
796 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:author"/>
797 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:author"/>
798 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:author"/>
799 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:othercredit"/>
800 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:othercredit"/>
801 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
802 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:releaseinfo"/>
803 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:releaseinfo"/>
804 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
805 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:copyright"/>
806 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:copyright"/>
807 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
808 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:legalnotice"/>
809 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:legalnotice"/>
810 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
811 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:pubdate"/>
812 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:pubdate"/>
813 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
814 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:revision"/>
815 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:revision"/>
816 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:revision"/>
817 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:revhistory"/>
818 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:revhistory"/>
819 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
820 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:abstract"/>
821 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:abstract"/>
822 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
823 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:itermset"/>
824 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:itermset"/>
825 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:itermset"/>
826 </xsl:template>
827
828 <xsl:template name="partintro.titlepage.verso">
829 </xsl:template>
830
831 <xsl:template name="partintro.titlepage.separator">
832 </xsl:template>
833
834 <xsl:template name="partintro.titlepage.before.recto">
835 </xsl:template>
836
837 <xsl:template name="partintro.titlepage.before.verso">
838 </xsl:template>
839
840 <xsl:template name="partintro.titlepage">
841 <fo:block>
842 <xsl:variable name="recto.content">
843 <xsl:call-template name="partintro.titlepage.before.recto"/>
844 <xsl:call-template name="partintro.titlepage.recto"/>
845 </xsl:variable>
846 <xsl:variable name="recto.elements.count">
847 <xsl:choose>
848 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
849 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
850 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
851 <xsl:otherwise>1</xsl:otherwise>
852 </xsl:choose>
853 </xsl:variable>
854 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
855 <fo:block><xsl:copy-of select="$recto.content"/></fo:block>
856 </xsl:if>
857 <xsl:variable name="verso.content">
858 <xsl:call-template name="partintro.titlepage.before.verso"/>
859 <xsl:call-template name="partintro.titlepage.verso"/>
860 </xsl:variable>
861 <xsl:variable name="verso.elements.count">
862 <xsl:choose>
863 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
864 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
865 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
866 <xsl:otherwise>1</xsl:otherwise>
867 </xsl:choose>
868 </xsl:variable>
869 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
870 <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
871 </xsl:if>
872 <xsl:call-template name="partintro.titlepage.separator"/>
873 </fo:block>
874 </xsl:template>
875
876 <xsl:template match="*" mode="partintro.titlepage.recto.mode">
877 <!-- if an element isn't found in this mode, -->
878 <!-- try the generic titlepage.mode -->
879 <xsl:apply-templates select="." mode="titlepage.mode"/>
880 </xsl:template>
881
882 <xsl:template match="*" mode="partintro.titlepage.verso.mode">
883 <!-- if an element isn't found in this mode, -->
884 <!-- try the generic titlepage.mode -->
885 <xsl:apply-templates select="." mode="titlepage.mode"/>
886 </xsl:template>
887
888 <xsl:template match="d:title" mode="partintro.titlepage.recto.auto.mode">
889 <fo:block 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}">
890 <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
891 </fo:block>
892 </xsl:template>
893
894 <xsl:template match="d:subtitle" mode="partintro.titlepage.recto.auto.mode">
895 <fo:block 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}">
896 <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
897 </fo:block>
898 </xsl:template>
899
900 <xsl:template match="d:corpauthor" mode="partintro.titlepage.recto.auto.mode">
901 <fo:block xsl:use-attribute-sets="partintro.titlepage.recto.style">
902 <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
903 </fo:block>
904 </xsl:template>
905
906 <xsl:template match="d:authorgroup" mode="partintro.titlepage.recto.auto.mode">
907 <fo:block xsl:use-attribute-sets="partintro.titlepage.recto.style">
908 <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
909 </fo:block>
910 </xsl:template>
911
912 <xsl:template match="d:author" mode="partintro.titlepage.recto.auto.mode">
913 <fo:block xsl:use-attribute-sets="partintro.titlepage.recto.style">
914 <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
915 </fo:block>
916 </xsl:template>
917
918 <xsl:template match="d:othercredit" mode="partintro.titlepage.recto.auto.mode">
919 <fo:block xsl:use-attribute-sets="partintro.titlepage.recto.style">
920 <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
921 </fo:block>
922 </xsl:template>
923
924 <xsl:template match="d:releaseinfo" mode="partintro.titlepage.recto.auto.mode">
925 <fo:block xsl:use-attribute-sets="partintro.titlepage.recto.style">
926 <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
927 </fo:block>
928 </xsl:template>
929
930 <xsl:template match="d:copyright" mode="partintro.titlepage.recto.auto.mode">
931 <fo:block xsl:use-attribute-sets="partintro.titlepage.recto.style">
932 <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
933 </fo:block>
934 </xsl:template>
935
936 <xsl:template match="d:legalnotice" mode="partintro.titlepage.recto.auto.mode">
937 <fo:block xsl:use-attribute-sets="partintro.titlepage.recto.style">
938 <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
939 </fo:block>
940 </xsl:template>
941
942 <xsl:template match="d:pubdate" mode="partintro.titlepage.recto.auto.mode">
943 <fo:block xsl:use-attribute-sets="partintro.titlepage.recto.style">
944 <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
945 </fo:block>
946 </xsl:template>
947
948 <xsl:template match="d:revision" mode="partintro.titlepage.recto.auto.mode">
949 <fo:block xsl:use-attribute-sets="partintro.titlepage.recto.style">
950 <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
951 </fo:block>
952 </xsl:template>
953
954 <xsl:template match="d:revhistory" mode="partintro.titlepage.recto.auto.mode">
955 <fo:block xsl:use-attribute-sets="partintro.titlepage.recto.style">
956 <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
957 </fo:block>
958 </xsl:template>
959
960 <xsl:template match="d:abstract" mode="partintro.titlepage.recto.auto.mode">
961 <fo:block xsl:use-attribute-sets="partintro.titlepage.recto.style">
962 <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
963 </fo:block>
964 </xsl:template>
965
966 <xsl:template match="d:itermset" mode="partintro.titlepage.recto.auto.mode">
967 <fo:block xsl:use-attribute-sets="partintro.titlepage.recto.style">
968 <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
969 </fo:block>
970 </xsl:template>
971
972 <xsl:template name="reference.titlepage.recto">
973 <xsl:choose>
974 <xsl:when test="d:referenceinfo/d:title">
975 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:title"/>
976 </xsl:when>
977 <xsl:when test="d:docinfo/d:title">
978 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
979 </xsl:when>
980 <xsl:when test="d:info/d:title">
981 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:title"/>
982 </xsl:when>
983 <xsl:when test="d:title">
984 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:title"/>
985 </xsl:when>
986 </xsl:choose>
987
988 <xsl:choose>
989 <xsl:when test="d:referenceinfo/d:subtitle">
990 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:subtitle"/>
991 </xsl:when>
992 <xsl:when test="d:docinfo/d:subtitle">
993 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
994 </xsl:when>
995 <xsl:when test="d:info/d:subtitle">
996 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
997 </xsl:when>
998 <xsl:when test="d:subtitle">
999 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:subtitle"/>
1000 </xsl:when>
1001 </xsl:choose>
1002
1003 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:corpauthor"/>
1004 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:corpauthor"/>
1005 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
1006 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:authorgroup"/>
1007 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:authorgroup"/>
1008 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
1009 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:author"/>
1010 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:author"/>
1011 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:author"/>
1012 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:othercredit"/>
1013 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:othercredit"/>
1014 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
1015 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:releaseinfo"/>
1016 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:releaseinfo"/>
1017 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
1018 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:copyright"/>
1019 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:copyright"/>
1020 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
1021 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:legalnotice"/>
1022 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:legalnotice"/>
1023 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
1024 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:pubdate"/>
1025 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:pubdate"/>
1026 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
1027 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:revision"/>
1028 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:revision"/>
1029 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:revision"/>
1030 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:revhistory"/>
1031 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:revhistory"/>
1032 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
1033 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:abstract"/>
1034 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:abstract"/>
1035 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
1036 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:itermset"/>
1037 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:itermset"/>
1038 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:itermset"/>
1039 </xsl:template>
1040
1041 <xsl:template name="reference.titlepage.verso">
1042 </xsl:template>
1043
1044 <xsl:template name="reference.titlepage.separator">
1045 </xsl:template>
1046
1047 <xsl:template name="reference.titlepage.before.recto">
1048 </xsl:template>
1049
1050 <xsl:template name="reference.titlepage.before.verso">
1051 </xsl:template>
1052
1053 <xsl:template name="reference.titlepage">
1054 <fo:block>
1055 <xsl:variable name="recto.content">
1056 <xsl:call-template name="reference.titlepage.before.recto"/>
1057 <xsl:call-template name="reference.titlepage.recto"/>
1058 </xsl:variable>
1059 <xsl:variable name="recto.elements.count">
1060 <xsl:choose>
1061 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1062 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1063 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1064 <xsl:otherwise>1</xsl:otherwise>
1065 </xsl:choose>
1066 </xsl:variable>
1067 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
1068 <fo:block><xsl:copy-of select="$recto.content"/></fo:block>
1069 </xsl:if>
1070 <xsl:variable name="verso.content">
1071 <xsl:call-template name="reference.titlepage.before.verso"/>
1072 <xsl:call-template name="reference.titlepage.verso"/>
1073 </xsl:variable>
1074 <xsl:variable name="verso.elements.count">
1075 <xsl:choose>
1076 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1077 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1078 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1079 <xsl:otherwise>1</xsl:otherwise>
1080 </xsl:choose>
1081 </xsl:variable>
1082 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
1083 <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
1084 </xsl:if>
1085 <xsl:call-template name="reference.titlepage.separator"/>
1086 </fo:block>
1087 </xsl:template>
1088
1089 <xsl:template match="*" mode="reference.titlepage.recto.mode">
1090 <!-- if an element isn't found in this mode, -->
1091 <!-- try the generic titlepage.mode -->
1092 <xsl:apply-templates select="." mode="titlepage.mode"/>
1093 </xsl:template>
1094
1095 <xsl:template match="*" mode="reference.titlepage.verso.mode">
1096 <!-- if an element isn't found in this mode, -->
1097 <!-- try the generic titlepage.mode -->
1098 <xsl:apply-templates select="." mode="titlepage.mode"/>
1099 </xsl:template>
1100
1101 <xsl:template match="d:title" mode="reference.titlepage.recto.auto.mode">
1102 <fo:block 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}">
1103 <xsl:call-template name="division.title">
1104 <xsl:with-param name="node" select="ancestor-or-self::d:reference[1]"/>
1105 </xsl:call-template>
1106 </fo:block>
1107 </xsl:template>
1108
1109 <xsl:template match="d:subtitle" mode="reference.titlepage.recto.auto.mode">
1110 <fo:block xsl:use-attribute-sets="reference.titlepage.recto.style" font-family="{$title.fontset}" text-align="center">
1111 <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1112 </fo:block>
1113 </xsl:template>
1114
1115 <xsl:template match="d:corpauthor" mode="reference.titlepage.recto.auto.mode">
1116 <fo:block xsl:use-attribute-sets="reference.titlepage.recto.style">
1117 <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1118 </fo:block>
1119 </xsl:template>
1120
1121 <xsl:template match="d:authorgroup" mode="reference.titlepage.recto.auto.mode">
1122 <fo:block xsl:use-attribute-sets="reference.titlepage.recto.style">
1123 <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1124 </fo:block>
1125 </xsl:template>
1126
1127 <xsl:template match="d:author" mode="reference.titlepage.recto.auto.mode">
1128 <fo:block xsl:use-attribute-sets="reference.titlepage.recto.style">
1129 <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1130 </fo:block>
1131 </xsl:template>
1132
1133 <xsl:template match="d:othercredit" mode="reference.titlepage.recto.auto.mode">
1134 <fo:block xsl:use-attribute-sets="reference.titlepage.recto.style">
1135 <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1136 </fo:block>
1137 </xsl:template>
1138
1139 <xsl:template match="d:releaseinfo" mode="reference.titlepage.recto.auto.mode">
1140 <fo:block xsl:use-attribute-sets="reference.titlepage.recto.style">
1141 <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1142 </fo:block>
1143 </xsl:template>
1144
1145 <xsl:template match="d:copyright" mode="reference.titlepage.recto.auto.mode">
1146 <fo:block xsl:use-attribute-sets="reference.titlepage.recto.style">
1147 <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1148 </fo:block>
1149 </xsl:template>
1150
1151 <xsl:template match="d:legalnotice" mode="reference.titlepage.recto.auto.mode">
1152 <fo:block xsl:use-attribute-sets="reference.titlepage.recto.style">
1153 <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1154 </fo:block>
1155 </xsl:template>
1156
1157 <xsl:template match="d:pubdate" mode="reference.titlepage.recto.auto.mode">
1158 <fo:block xsl:use-attribute-sets="reference.titlepage.recto.style">
1159 <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1160 </fo:block>
1161 </xsl:template>
1162
1163 <xsl:template match="d:revision" mode="reference.titlepage.recto.auto.mode">
1164 <fo:block xsl:use-attribute-sets="reference.titlepage.recto.style">
1165 <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1166 </fo:block>
1167 </xsl:template>
1168
1169 <xsl:template match="d:revhistory" mode="reference.titlepage.recto.auto.mode">
1170 <fo:block xsl:use-attribute-sets="reference.titlepage.recto.style">
1171 <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1172 </fo:block>
1173 </xsl:template>
1174
1175 <xsl:template match="d:abstract" mode="reference.titlepage.recto.auto.mode">
1176 <fo:block xsl:use-attribute-sets="reference.titlepage.recto.style">
1177 <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1178 </fo:block>
1179 </xsl:template>
1180
1181 <xsl:template match="d:itermset" mode="reference.titlepage.recto.auto.mode">
1182 <fo:block xsl:use-attribute-sets="reference.titlepage.recto.style">
1183 <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1184 </fo:block>
1185 </xsl:template>
1186
1187 <xsl:template name="refsynopsisdiv.titlepage.recto">
1188 <xsl:choose>
1189 <xsl:when test="d:refsynopsisdivinfo/d:title">
1190 <xsl:apply-templates mode="refsynopsisdiv.titlepage.recto.auto.mode" select="d:refsynopsisdivinfo/d:title"/>
1191 </xsl:when>
1192 <xsl:when test="d:docinfo/d:title">
1193 <xsl:apply-templates mode="refsynopsisdiv.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
1194 </xsl:when>
1195 <xsl:when test="d:info/d:title">
1196 <xsl:apply-templates mode="refsynopsisdiv.titlepage.recto.auto.mode" select="d:info/d:title"/>
1197 </xsl:when>
1198 <xsl:when test="d:title">
1199 <xsl:apply-templates mode="refsynopsisdiv.titlepage.recto.auto.mode" select="d:title"/>
1200 </xsl:when>
1201 </xsl:choose>
1202
1203 <xsl:apply-templates mode="refsynopsisdiv.titlepage.recto.auto.mode" select="d:refsynopsisdivinfo/d:itermset"/>
1204 <xsl:apply-templates mode="refsynopsisdiv.titlepage.recto.auto.mode" select="d:docinfo/d:itermset"/>
1205 <xsl:apply-templates mode="refsynopsisdiv.titlepage.recto.auto.mode" select="d:info/d:itermset"/>
1206 </xsl:template>
1207
1208 <xsl:template name="refsynopsisdiv.titlepage.verso">
1209 </xsl:template>
1210
1211 <xsl:template name="refsynopsisdiv.titlepage.separator">
1212 </xsl:template>
1213
1214 <xsl:template name="refsynopsisdiv.titlepage.before.recto">
1215 </xsl:template>
1216
1217 <xsl:template name="refsynopsisdiv.titlepage.before.verso">
1218 </xsl:template>
1219
1220 <xsl:template name="refsynopsisdiv.titlepage">
1221 <fo:block>
1222 <xsl:variable name="recto.content">
1223 <xsl:call-template name="refsynopsisdiv.titlepage.before.recto"/>
1224 <xsl:call-template name="refsynopsisdiv.titlepage.recto"/>
1225 </xsl:variable>
1226 <xsl:variable name="recto.elements.count">
1227 <xsl:choose>
1228 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1229 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1230 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1231 <xsl:otherwise>1</xsl:otherwise>
1232 </xsl:choose>
1233 </xsl:variable>
1234 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
1235 <fo:block><xsl:copy-of select="$recto.content"/></fo:block>
1236 </xsl:if>
1237 <xsl:variable name="verso.content">
1238 <xsl:call-template name="refsynopsisdiv.titlepage.before.verso"/>
1239 <xsl:call-template name="refsynopsisdiv.titlepage.verso"/>
1240 </xsl:variable>
1241 <xsl:variable name="verso.elements.count">
1242 <xsl:choose>
1243 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1244 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1245 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1246 <xsl:otherwise>1</xsl:otherwise>
1247 </xsl:choose>
1248 </xsl:variable>
1249 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
1250 <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
1251 </xsl:if>
1252 <xsl:call-template name="refsynopsisdiv.titlepage.separator"/>
1253 </fo:block>
1254 </xsl:template>
1255
1256 <xsl:template match="*" mode="refsynopsisdiv.titlepage.recto.mode">
1257 <!-- if an element isn't found in this mode, -->
1258 <!-- try the generic titlepage.mode -->
1259 <xsl:apply-templates select="." mode="titlepage.mode"/>
1260 </xsl:template>
1261
1262 <xsl:template match="*" mode="refsynopsisdiv.titlepage.verso.mode">
1263 <!-- if an element isn't found in this mode, -->
1264 <!-- try the generic titlepage.mode -->
1265 <xsl:apply-templates select="." mode="titlepage.mode"/>
1266 </xsl:template>
1267
1268 <xsl:template match="d:title" mode="refsynopsisdiv.titlepage.recto.auto.mode">
1269 <fo:block xsl:use-attribute-sets="refsynopsisdiv.titlepage.recto.style" font-family="{$title.fontset}">
1270 <xsl:apply-templates select="." mode="refsynopsisdiv.titlepage.recto.mode"/>
1271 </fo:block>
1272 </xsl:template>
1273
1274 <xsl:template match="d:itermset" mode="refsynopsisdiv.titlepage.recto.auto.mode">
1275 <fo:block xsl:use-attribute-sets="refsynopsisdiv.titlepage.recto.style">
1276 <xsl:apply-templates select="." mode="refsynopsisdiv.titlepage.recto.mode"/>
1277 </fo:block>
1278 </xsl:template>
1279
1280 <xsl:template name="refsection.titlepage.recto">
1281 <xsl:choose>
1282 <xsl:when test="d:refsectioninfo/d:title">
1283 <xsl:apply-templates mode="refsection.titlepage.recto.auto.mode" select="d:refsectioninfo/d:title"/>
1284 </xsl:when>
1285 <xsl:when test="d:docinfo/d:title">
1286 <xsl:apply-templates mode="refsection.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
1287 </xsl:when>
1288 <xsl:when test="d:info/d:title">
1289 <xsl:apply-templates mode="refsection.titlepage.recto.auto.mode" select="d:info/d:title"/>
1290 </xsl:when>
1291 <xsl:when test="d:title">
1292 <xsl:apply-templates mode="refsection.titlepage.recto.auto.mode" select="d:title"/>
1293 </xsl:when>
1294 </xsl:choose>
1295
1296 <xsl:apply-templates mode="refsection.titlepage.recto.auto.mode" select="d:refsectioninfo/d:itermset"/>
1297 <xsl:apply-templates mode="refsection.titlepage.recto.auto.mode" select="d:docinfo/d:itermset"/>
1298 <xsl:apply-templates mode="refsection.titlepage.recto.auto.mode" select="d:info/d:itermset"/>
1299 </xsl:template>
1300
1301 <xsl:template name="refsection.titlepage.verso">
1302 </xsl:template>
1303
1304 <xsl:template name="refsection.titlepage.separator">
1305 </xsl:template>
1306
1307 <xsl:template name="refsection.titlepage.before.recto">
1308 </xsl:template>
1309
1310 <xsl:template name="refsection.titlepage.before.verso">
1311 </xsl:template>
1312
1313 <xsl:template name="refsection.titlepage">
1314 <fo:block>
1315 <xsl:variable name="recto.content">
1316 <xsl:call-template name="refsection.titlepage.before.recto"/>
1317 <xsl:call-template name="refsection.titlepage.recto"/>
1318 </xsl:variable>
1319 <xsl:variable name="recto.elements.count">
1320 <xsl:choose>
1321 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1322 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1323 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1324 <xsl:otherwise>1</xsl:otherwise>
1325 </xsl:choose>
1326 </xsl:variable>
1327 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
1328 <fo:block><xsl:copy-of select="$recto.content"/></fo:block>
1329 </xsl:if>
1330 <xsl:variable name="verso.content">
1331 <xsl:call-template name="refsection.titlepage.before.verso"/>
1332 <xsl:call-template name="refsection.titlepage.verso"/>
1333 </xsl:variable>
1334 <xsl:variable name="verso.elements.count">
1335 <xsl:choose>
1336 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1337 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1338 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1339 <xsl:otherwise>1</xsl:otherwise>
1340 </xsl:choose>
1341 </xsl:variable>
1342 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
1343 <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
1344 </xsl:if>
1345 <xsl:call-template name="refsection.titlepage.separator"/>
1346 </fo:block>
1347 </xsl:template>
1348
1349 <xsl:template match="*" mode="refsection.titlepage.recto.mode">
1350 <!-- if an element isn't found in this mode, -->
1351 <!-- try the generic titlepage.mode -->
1352 <xsl:apply-templates select="." mode="titlepage.mode"/>
1353 </xsl:template>
1354
1355 <xsl:template match="*" mode="refsection.titlepage.verso.mode">
1356 <!-- if an element isn't found in this mode, -->
1357 <!-- try the generic titlepage.mode -->
1358 <xsl:apply-templates select="." mode="titlepage.mode"/>
1359 </xsl:template>
1360
1361 <xsl:template match="d:title" mode="refsection.titlepage.recto.auto.mode">
1362 <fo:block xsl:use-attribute-sets="refsection.titlepage.recto.style" font-family="{$title.fontset}">
1363 <xsl:apply-templates select="." mode="refsection.titlepage.recto.mode"/>
1364 </fo:block>
1365 </xsl:template>
1366
1367 <xsl:template match="d:itermset" mode="refsection.titlepage.recto.auto.mode">
1368 <fo:block xsl:use-attribute-sets="refsection.titlepage.recto.style">
1369 <xsl:apply-templates select="." mode="refsection.titlepage.recto.mode"/>
1370 </fo:block>
1371 </xsl:template>
1372
1373 <xsl:template name="refsect1.titlepage.recto">
1374 <xsl:choose>
1375 <xsl:when test="d:refsect1info/d:title">
1376 <xsl:apply-templates mode="refsect1.titlepage.recto.auto.mode" select="d:refsect1info/d:title"/>
1377 </xsl:when>
1378 <xsl:when test="d:docinfo/d:title">
1379 <xsl:apply-templates mode="refsect1.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
1380 </xsl:when>
1381 <xsl:when test="d:info/d:title">
1382 <xsl:apply-templates mode="refsect1.titlepage.recto.auto.mode" select="d:info/d:title"/>
1383 </xsl:when>
1384 <xsl:when test="d:title">
1385 <xsl:apply-templates mode="refsect1.titlepage.recto.auto.mode" select="d:title"/>
1386 </xsl:when>
1387 </xsl:choose>
1388
1389 <xsl:apply-templates mode="refsect1.titlepage.recto.auto.mode" select="d:refsect1info/d:itermset"/>
1390 <xsl:apply-templates mode="refsect1.titlepage.recto.auto.mode" select="d:docinfo/d:itermset"/>
1391 <xsl:apply-templates mode="refsect1.titlepage.recto.auto.mode" select="d:info/d:itermset"/>
1392 </xsl:template>
1393
1394 <xsl:template name="refsect1.titlepage.verso">
1395 </xsl:template>
1396
1397 <xsl:template name="refsect1.titlepage.separator">
1398 </xsl:template>
1399
1400 <xsl:template name="refsect1.titlepage.before.recto">
1401 </xsl:template>
1402
1403 <xsl:template name="refsect1.titlepage.before.verso">
1404 </xsl:template>
1405
1406 <xsl:template name="refsect1.titlepage">
1407 <fo:block>
1408 <xsl:variable name="recto.content">
1409 <xsl:call-template name="refsect1.titlepage.before.recto"/>
1410 <xsl:call-template name="refsect1.titlepage.recto"/>
1411 </xsl:variable>
1412 <xsl:variable name="recto.elements.count">
1413 <xsl:choose>
1414 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1415 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1416 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1417 <xsl:otherwise>1</xsl:otherwise>
1418 </xsl:choose>
1419 </xsl:variable>
1420 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
1421 <fo:block><xsl:copy-of select="$recto.content"/></fo:block>
1422 </xsl:if>
1423 <xsl:variable name="verso.content">
1424 <xsl:call-template name="refsect1.titlepage.before.verso"/>
1425 <xsl:call-template name="refsect1.titlepage.verso"/>
1426 </xsl:variable>
1427 <xsl:variable name="verso.elements.count">
1428 <xsl:choose>
1429 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1430 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1431 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1432 <xsl:otherwise>1</xsl:otherwise>
1433 </xsl:choose>
1434 </xsl:variable>
1435 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
1436 <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
1437 </xsl:if>
1438 <xsl:call-template name="refsect1.titlepage.separator"/>
1439 </fo:block>
1440 </xsl:template>
1441
1442 <xsl:template match="*" mode="refsect1.titlepage.recto.mode">
1443 <!-- if an element isn't found in this mode, -->
1444 <!-- try the generic titlepage.mode -->
1445 <xsl:apply-templates select="." mode="titlepage.mode"/>
1446 </xsl:template>
1447
1448 <xsl:template match="*" mode="refsect1.titlepage.verso.mode">
1449 <!-- if an element isn't found in this mode, -->
1450 <!-- try the generic titlepage.mode -->
1451 <xsl:apply-templates select="." mode="titlepage.mode"/>
1452 </xsl:template>
1453
1454 <xsl:template match="d:title" mode="refsect1.titlepage.recto.auto.mode">
1455 <fo:block xsl:use-attribute-sets="refsect1.titlepage.recto.style" font-family="{$title.fontset}">
1456 <xsl:apply-templates select="." mode="refsect1.titlepage.recto.mode"/>
1457 </fo:block>
1458 </xsl:template>
1459
1460 <xsl:template match="d:itermset" mode="refsect1.titlepage.recto.auto.mode">
1461 <fo:block xsl:use-attribute-sets="refsect1.titlepage.recto.style">
1462 <xsl:apply-templates select="." mode="refsect1.titlepage.recto.mode"/>
1463 </fo:block>
1464 </xsl:template>
1465
1466 <xsl:template name="refsect2.titlepage.recto">
1467 <xsl:choose>
1468 <xsl:when test="d:refsect2info/d:title">
1469 <xsl:apply-templates mode="refsect2.titlepage.recto.auto.mode" select="d:refsect2info/d:title"/>
1470 </xsl:when>
1471 <xsl:when test="d:docinfo/d:title">
1472 <xsl:apply-templates mode="refsect2.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
1473 </xsl:when>
1474 <xsl:when test="d:info/d:title">
1475 <xsl:apply-templates mode="refsect2.titlepage.recto.auto.mode" select="d:info/d:title"/>
1476 </xsl:when>
1477 <xsl:when test="d:title">
1478 <xsl:apply-templates mode="refsect2.titlepage.recto.auto.mode" select="d:title"/>
1479 </xsl:when>
1480 </xsl:choose>
1481
1482 <xsl:apply-templates mode="refsect2.titlepage.recto.auto.mode" select="d:refsect2info/d:itermset"/>
1483 <xsl:apply-templates mode="refsect2.titlepage.recto.auto.mode" select="d:docinfo/d:itermset"/>
1484 <xsl:apply-templates mode="refsect2.titlepage.recto.auto.mode" select="d:info/d:itermset"/>
1485 </xsl:template>
1486
1487 <xsl:template name="refsect2.titlepage.verso">
1488 </xsl:template>
1489
1490 <xsl:template name="refsect2.titlepage.separator">
1491 </xsl:template>
1492
1493 <xsl:template name="refsect2.titlepage.before.recto">
1494 </xsl:template>
1495
1496 <xsl:template name="refsect2.titlepage.before.verso">
1497 </xsl:template>
1498
1499 <xsl:template name="refsect2.titlepage">
1500 <fo:block>
1501 <xsl:variable name="recto.content">
1502 <xsl:call-template name="refsect2.titlepage.before.recto"/>
1503 <xsl:call-template name="refsect2.titlepage.recto"/>
1504 </xsl:variable>
1505 <xsl:variable name="recto.elements.count">
1506 <xsl:choose>
1507 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1508 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1509 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1510 <xsl:otherwise>1</xsl:otherwise>
1511 </xsl:choose>
1512 </xsl:variable>
1513 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
1514 <fo:block><xsl:copy-of select="$recto.content"/></fo:block>
1515 </xsl:if>
1516 <xsl:variable name="verso.content">
1517 <xsl:call-template name="refsect2.titlepage.before.verso"/>
1518 <xsl:call-template name="refsect2.titlepage.verso"/>
1519 </xsl:variable>
1520 <xsl:variable name="verso.elements.count">
1521 <xsl:choose>
1522 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1523 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1524 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1525 <xsl:otherwise>1</xsl:otherwise>
1526 </xsl:choose>
1527 </xsl:variable>
1528 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
1529 <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
1530 </xsl:if>
1531 <xsl:call-template name="refsect2.titlepage.separator"/>
1532 </fo:block>
1533 </xsl:template>
1534
1535 <xsl:template match="*" mode="refsect2.titlepage.recto.mode">
1536 <!-- if an element isn't found in this mode, -->
1537 <!-- try the generic titlepage.mode -->
1538 <xsl:apply-templates select="." mode="titlepage.mode"/>
1539 </xsl:template>
1540
1541 <xsl:template match="*" mode="refsect2.titlepage.verso.mode">
1542 <!-- if an element isn't found in this mode, -->
1543 <!-- try the generic titlepage.mode -->
1544 <xsl:apply-templates select="." mode="titlepage.mode"/>
1545 </xsl:template>
1546
1547 <xsl:template match="d:title" mode="refsect2.titlepage.recto.auto.mode">
1548 <fo:block xsl:use-attribute-sets="refsect2.titlepage.recto.style" font-family="{$title.fontset}">
1549 <xsl:apply-templates select="." mode="refsect2.titlepage.recto.mode"/>
1550 </fo:block>
1551 </xsl:template>
1552
1553 <xsl:template match="d:itermset" mode="refsect2.titlepage.recto.auto.mode">
1554 <fo:block xsl:use-attribute-sets="refsect2.titlepage.recto.style">
1555 <xsl:apply-templates select="." mode="refsect2.titlepage.recto.mode"/>
1556 </fo:block>
1557 </xsl:template>
1558
1559 <xsl:template name="refsect3.titlepage.recto">
1560 <xsl:choose>
1561 <xsl:when test="d:refsect3info/d:title">
1562 <xsl:apply-templates mode="refsect3.titlepage.recto.auto.mode" select="d:refsect3info/d:title"/>
1563 </xsl:when>
1564 <xsl:when test="d:docinfo/d:title">
1565 <xsl:apply-templates mode="refsect3.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
1566 </xsl:when>
1567 <xsl:when test="d:info/d:title">
1568 <xsl:apply-templates mode="refsect3.titlepage.recto.auto.mode" select="d:info/d:title"/>
1569 </xsl:when>
1570 <xsl:when test="d:title">
1571 <xsl:apply-templates mode="refsect3.titlepage.recto.auto.mode" select="d:title"/>
1572 </xsl:when>
1573 </xsl:choose>
1574
1575 <xsl:apply-templates mode="refsect3.titlepage.recto.auto.mode" select="d:refsect3info/d:itermset"/>
1576 <xsl:apply-templates mode="refsect3.titlepage.recto.auto.mode" select="d:docinfo/d:itermset"/>
1577 <xsl:apply-templates mode="refsect3.titlepage.recto.auto.mode" select="d:info/d:itermset"/>
1578 </xsl:template>
1579
1580 <xsl:template name="refsect3.titlepage.verso">
1581 </xsl:template>
1582
1583 <xsl:template name="refsect3.titlepage.separator">
1584 </xsl:template>
1585
1586 <xsl:template name="refsect3.titlepage.before.recto">
1587 </xsl:template>
1588
1589 <xsl:template name="refsect3.titlepage.before.verso">
1590 </xsl:template>
1591
1592 <xsl:template name="refsect3.titlepage">
1593 <fo:block>
1594 <xsl:variable name="recto.content">
1595 <xsl:call-template name="refsect3.titlepage.before.recto"/>
1596 <xsl:call-template name="refsect3.titlepage.recto"/>
1597 </xsl:variable>
1598 <xsl:variable name="recto.elements.count">
1599 <xsl:choose>
1600 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1601 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1602 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1603 <xsl:otherwise>1</xsl:otherwise>
1604 </xsl:choose>
1605 </xsl:variable>
1606 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
1607 <fo:block><xsl:copy-of select="$recto.content"/></fo:block>
1608 </xsl:if>
1609 <xsl:variable name="verso.content">
1610 <xsl:call-template name="refsect3.titlepage.before.verso"/>
1611 <xsl:call-template name="refsect3.titlepage.verso"/>
1612 </xsl:variable>
1613 <xsl:variable name="verso.elements.count">
1614 <xsl:choose>
1615 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.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($verso.content)/*)"/></xsl:when>
1618 <xsl:otherwise>1</xsl:otherwise>
1619 </xsl:choose>
1620 </xsl:variable>
1621 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
1622 <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
1623 </xsl:if>
1624 <xsl:call-template name="refsect3.titlepage.separator"/>
1625 </fo:block>
1626 </xsl:template>
1627
1628 <xsl:template match="*" mode="refsect3.titlepage.recto.mode">
1629 <!-- if an element isn't found in this mode, -->
1630 <!-- try the generic titlepage.mode -->
1631 <xsl:apply-templates select="." mode="titlepage.mode"/>
1632 </xsl:template>
1633
1634 <xsl:template match="*" mode="refsect3.titlepage.verso.mode">
1635 <!-- if an element isn't found in this mode, -->
1636 <!-- try the generic titlepage.mode -->
1637 <xsl:apply-templates select="." mode="titlepage.mode"/>
1638 </xsl:template>
1639
1640 <xsl:template match="d:title" mode="refsect3.titlepage.recto.auto.mode">
1641 <fo:block xsl:use-attribute-sets="refsect3.titlepage.recto.style" font-family="{$title.fontset}">
1642 <xsl:apply-templates select="." mode="refsect3.titlepage.recto.mode"/>
1643 </fo:block>
1644 </xsl:template>
1645
1646 <xsl:template match="d:itermset" mode="refsect3.titlepage.recto.auto.mode">
1647 <fo:block xsl:use-attribute-sets="refsect3.titlepage.recto.style">
1648 <xsl:apply-templates select="." mode="refsect3.titlepage.recto.mode"/>
1649 </fo:block>
1650 </xsl:template>
1651
1652 <xsl:template name="dedication.titlepage.recto">
1653 <fo:block xsl:use-attribute-sets="dedication.titlepage.recto.style" margin-left="{$title.margin.left}" font-size="24.8832pt" font-family="{$title.fontset}" font-weight="bold">
1654 <xsl:call-template name="component.title">
1655 <xsl:with-param name="node" select="ancestor-or-self::d:dedication[1]"/>
1656 </xsl:call-template></fo:block>
1657 <xsl:choose>
1658 <xsl:when test="d:dedicationinfo/d:subtitle">
1659 <xsl:apply-templates mode="dedication.titlepage.recto.auto.mode" select="d:dedicationinfo/d:subtitle"/>
1660 </xsl:when>
1661 <xsl:when test="d:docinfo/d:subtitle">
1662 <xsl:apply-templates mode="dedication.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
1663 </xsl:when>
1664 <xsl:when test="d:info/d:subtitle">
1665 <xsl:apply-templates mode="dedication.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
1666 </xsl:when>
1667 <xsl:when test="d:subtitle">
1668 <xsl:apply-templates mode="dedication.titlepage.recto.auto.mode" select="d:subtitle"/>
1669 </xsl:when>
1670 </xsl:choose>
1671
1672 <xsl:apply-templates mode="dedication.titlepage.recto.auto.mode" select="d:dedicationinfo/d:itermset"/>
1673 <xsl:apply-templates mode="dedication.titlepage.recto.auto.mode" select="d:docinfo/d:itermset"/>
1674 <xsl:apply-templates mode="dedication.titlepage.recto.auto.mode" select="d:info/d:itermset"/>
1675 </xsl:template>
1676
1677 <xsl:template name="dedication.titlepage.verso">
1678 </xsl:template>
1679
1680 <xsl:template name="dedication.titlepage.separator">
1681 </xsl:template>
1682
1683 <xsl:template name="dedication.titlepage.before.recto">
1684 </xsl:template>
1685
1686 <xsl:template name="dedication.titlepage.before.verso">
1687 </xsl:template>
1688
1689 <xsl:template name="dedication.titlepage">
1690 <fo:block>
1691 <xsl:variable name="recto.content">
1692 <xsl:call-template name="dedication.titlepage.before.recto"/>
1693 <xsl:call-template name="dedication.titlepage.recto"/>
1694 </xsl:variable>
1695 <xsl:variable name="recto.elements.count">
1696 <xsl:choose>
1697 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1698 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1699 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1700 <xsl:otherwise>1</xsl:otherwise>
1701 </xsl:choose>
1702 </xsl:variable>
1703 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
1704 <fo:block><xsl:copy-of select="$recto.content"/></fo:block>
1705 </xsl:if>
1706 <xsl:variable name="verso.content">
1707 <xsl:call-template name="dedication.titlepage.before.verso"/>
1708 <xsl:call-template name="dedication.titlepage.verso"/>
1709 </xsl:variable>
1710 <xsl:variable name="verso.elements.count">
1711 <xsl:choose>
1712 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1713 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1714 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1715 <xsl:otherwise>1</xsl:otherwise>
1716 </xsl:choose>
1717 </xsl:variable>
1718 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
1719 <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
1720 </xsl:if>
1721 <xsl:call-template name="dedication.titlepage.separator"/>
1722 </fo:block>
1723 </xsl:template>
1724
1725 <xsl:template match="*" mode="dedication.titlepage.recto.mode">
1726 <!-- if an element isn't found in this mode, -->
1727 <!-- try the generic titlepage.mode -->
1728 <xsl:apply-templates select="." mode="titlepage.mode"/>
1729 </xsl:template>
1730
1731 <xsl:template match="*" mode="dedication.titlepage.verso.mode">
1732 <!-- if an element isn't found in this mode, -->
1733 <!-- try the generic titlepage.mode -->
1734 <xsl:apply-templates select="." mode="titlepage.mode"/>
1735 </xsl:template>
1736
1737 <xsl:template match="d:subtitle" mode="dedication.titlepage.recto.auto.mode">
1738 <fo:block xsl:use-attribute-sets="dedication.titlepage.recto.style" font-family="{$title.fontset}">
1739 <xsl:apply-templates select="." mode="dedication.titlepage.recto.mode"/>
1740 </fo:block>
1741 </xsl:template>
1742
1743 <xsl:template match="d:itermset" mode="dedication.titlepage.recto.auto.mode">
1744 <fo:block xsl:use-attribute-sets="dedication.titlepage.recto.style">
1745 <xsl:apply-templates select="." mode="dedication.titlepage.recto.mode"/>
1746 </fo:block>
1747 </xsl:template>
1748
1749 <xsl:template name="acknowledgements.titlepage.recto">
1750 <fo:block xsl:use-attribute-sets="acknowledgements.titlepage.recto.style" margin-left="{$title.margin.left}" font-size="24.8832pt" font-family="{$title.fontset}" font-weight="bold">
1751 <xsl:call-template name="component.title">
1752 <xsl:with-param name="node" select="ancestor-or-self::d:acknowledgements[1]"/>
1753 </xsl:call-template></fo:block>
1754 <xsl:choose>
1755 <xsl:when test="d:acknowledgementsinfo/d:subtitle">
1756 <xsl:apply-templates mode="acknowledgements.titlepage.recto.auto.mode" select="d:acknowledgementsinfo/d:subtitle"/>
1757 </xsl:when>
1758 <xsl:when test="d:docinfo/d:subtitle">
1759 <xsl:apply-templates mode="acknowledgements.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
1760 </xsl:when>
1761 <xsl:when test="d:info/d:subtitle">
1762 <xsl:apply-templates mode="acknowledgements.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
1763 </xsl:when>
1764 <xsl:when test="d:subtitle">
1765 <xsl:apply-templates mode="acknowledgements.titlepage.recto.auto.mode" select="d:subtitle"/>
1766 </xsl:when>
1767 </xsl:choose>
1768
1769 <xsl:apply-templates mode="acknowledgements.titlepage.recto.auto.mode" select="d:acknowledgementsinfo/d:itermset"/>
1770 <xsl:apply-templates mode="acknowledgements.titlepage.recto.auto.mode" select="d:docinfo/d:itermset"/>
1771 <xsl:apply-templates mode="acknowledgements.titlepage.recto.auto.mode" select="d:info/d:itermset"/>
1772 </xsl:template>
1773
1774 <xsl:template name="acknowledgements.titlepage.verso">
1775 </xsl:template>
1776
1777 <xsl:template name="acknowledgements.titlepage.separator">
1778 </xsl:template>
1779
1780 <xsl:template name="acknowledgements.titlepage.before.recto">
1781 </xsl:template>
1782
1783 <xsl:template name="acknowledgements.titlepage.before.verso">
1784 </xsl:template>
1785
1786 <xsl:template name="acknowledgements.titlepage">
1787 <fo:block>
1788 <xsl:variable name="recto.content">
1789 <xsl:call-template name="acknowledgements.titlepage.before.recto"/>
1790 <xsl:call-template name="acknowledgements.titlepage.recto"/>
1791 </xsl:variable>
1792 <xsl:variable name="recto.elements.count">
1793 <xsl:choose>
1794 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1795 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1796 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1797 <xsl:otherwise>1</xsl:otherwise>
1798 </xsl:choose>
1799 </xsl:variable>
1800 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
1801 <fo:block><xsl:copy-of select="$recto.content"/></fo:block>
1802 </xsl:if>
1803 <xsl:variable name="verso.content">
1804 <xsl:call-template name="acknowledgements.titlepage.before.verso"/>
1805 <xsl:call-template name="acknowledgements.titlepage.verso"/>
1806 </xsl:variable>
1807 <xsl:variable name="verso.elements.count">
1808 <xsl:choose>
1809 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1810 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1811 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1812 <xsl:otherwise>1</xsl:otherwise>
1813 </xsl:choose>
1814 </xsl:variable>
1815 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
1816 <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
1817 </xsl:if>
1818 <xsl:call-template name="acknowledgements.titlepage.separator"/>
1819 </fo:block>
1820 </xsl:template>
1821
1822 <xsl:template match="*" mode="acknowledgements.titlepage.recto.mode">
1823 <!-- if an element isn't found in this mode, -->
1824 <!-- try the generic titlepage.mode -->
1825 <xsl:apply-templates select="." mode="titlepage.mode"/>
1826 </xsl:template>
1827
1828 <xsl:template match="*" mode="acknowledgements.titlepage.verso.mode">
1829 <!-- if an element isn't found in this mode, -->
1830 <!-- try the generic titlepage.mode -->
1831 <xsl:apply-templates select="." mode="titlepage.mode"/>
1832 </xsl:template>
1833
1834 <xsl:template match="d:subtitle" mode="acknowledgements.titlepage.recto.auto.mode">
1835 <fo:block xsl:use-attribute-sets="acknowledgements.titlepage.recto.style" font-family="{$title.fontset}">
1836 <xsl:apply-templates select="." mode="acknowledgements.titlepage.recto.mode"/>
1837 </fo:block>
1838 </xsl:template>
1839
1840 <xsl:template match="d:itermset" mode="acknowledgements.titlepage.recto.auto.mode">
1841 <fo:block xsl:use-attribute-sets="acknowledgements.titlepage.recto.style">
1842 <xsl:apply-templates select="." mode="acknowledgements.titlepage.recto.mode"/>
1843 </fo:block>
1844 </xsl:template>
1845
1846 <xsl:template name="preface.titlepage.recto">
1847 <fo:block xsl:use-attribute-sets="preface.titlepage.recto.style" margin-left="{$title.margin.left}" font-size="24.8832pt" font-family="{$title.fontset}" font-weight="bold">
1848 <xsl:call-template name="component.title">
1849 <xsl:with-param name="node" select="ancestor-or-self::d:preface[1]"/>
1850 </xsl:call-template></fo:block>
1851 <xsl:choose>
1852 <xsl:when test="d:prefaceinfo/d:subtitle">
1853 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:subtitle"/>
1854 </xsl:when>
1855 <xsl:when test="d:docinfo/d:subtitle">
1856 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
1857 </xsl:when>
1858 <xsl:when test="d:info/d:subtitle">
1859 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
1860 </xsl:when>
1861 <xsl:when test="d:subtitle">
1862 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:subtitle"/>
1863 </xsl:when>
1864 </xsl:choose>
1865
1866 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:corpauthor"/>
1867 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:corpauthor"/>
1868 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
1869 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:authorgroup"/>
1870 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:authorgroup"/>
1871 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
1872 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:author"/>
1873 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:author"/>
1874 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:author"/>
1875 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:othercredit"/>
1876 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:othercredit"/>
1877 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
1878 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:releaseinfo"/>
1879 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:releaseinfo"/>
1880 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
1881 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:copyright"/>
1882 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:copyright"/>
1883 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
1884 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:legalnotice"/>
1885 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:legalnotice"/>
1886 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
1887 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:pubdate"/>
1888 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:pubdate"/>
1889 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
1890 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:revision"/>
1891 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:revision"/>
1892 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:revision"/>
1893 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:revhistory"/>
1894 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:revhistory"/>
1895 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
1896 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:abstract"/>
1897 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:abstract"/>
1898 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
1899 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:itermset"/>
1900 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:itermset"/>
1901 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:itermset"/>
1902 </xsl:template>
1903
1904 <xsl:template name="preface.titlepage.verso">
1905 </xsl:template>
1906
1907 <xsl:template name="preface.titlepage.separator">
1908 </xsl:template>
1909
1910 <xsl:template name="preface.titlepage.before.recto">
1911 </xsl:template>
1912
1913 <xsl:template name="preface.titlepage.before.verso">
1914 </xsl:template>
1915
1916 <xsl:template name="preface.titlepage">
1917 <fo:block>
1918 <xsl:variable name="recto.content">
1919 <xsl:call-template name="preface.titlepage.before.recto"/>
1920 <xsl:call-template name="preface.titlepage.recto"/>
1921 </xsl:variable>
1922 <xsl:variable name="recto.elements.count">
1923 <xsl:choose>
1924 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1925 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1926 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1927 <xsl:otherwise>1</xsl:otherwise>
1928 </xsl:choose>
1929 </xsl:variable>
1930 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
1931 <fo:block><xsl:copy-of select="$recto.content"/></fo:block>
1932 </xsl:if>
1933 <xsl:variable name="verso.content">
1934 <xsl:call-template name="preface.titlepage.before.verso"/>
1935 <xsl:call-template name="preface.titlepage.verso"/>
1936 </xsl:variable>
1937 <xsl:variable name="verso.elements.count">
1938 <xsl:choose>
1939 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1940 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1941 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1942 <xsl:otherwise>1</xsl:otherwise>
1943 </xsl:choose>
1944 </xsl:variable>
1945 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
1946 <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
1947 </xsl:if>
1948 <xsl:call-template name="preface.titlepage.separator"/>
1949 </fo:block>
1950 </xsl:template>
1951
1952 <xsl:template match="*" mode="preface.titlepage.recto.mode">
1953 <!-- if an element isn't found in this mode, -->
1954 <!-- try the generic titlepage.mode -->
1955 <xsl:apply-templates select="." mode="titlepage.mode"/>
1956 </xsl:template>
1957
1958 <xsl:template match="*" mode="preface.titlepage.verso.mode">
1959 <!-- if an element isn't found in this mode, -->
1960 <!-- try the generic titlepage.mode -->
1961 <xsl:apply-templates select="." mode="titlepage.mode"/>
1962 </xsl:template>
1963
1964 <xsl:template match="d:subtitle" mode="preface.titlepage.recto.auto.mode">
1965 <fo:block xsl:use-attribute-sets="preface.titlepage.recto.style" font-family="{$title.fontset}">
1966 <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1967 </fo:block>
1968 </xsl:template>
1969
1970 <xsl:template match="d:corpauthor" mode="preface.titlepage.recto.auto.mode">
1971 <fo:block xsl:use-attribute-sets="preface.titlepage.recto.style">
1972 <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1973 </fo:block>
1974 </xsl:template>
1975
1976 <xsl:template match="d:authorgroup" mode="preface.titlepage.recto.auto.mode">
1977 <fo:block xsl:use-attribute-sets="preface.titlepage.recto.style">
1978 <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1979 </fo:block>
1980 </xsl:template>
1981
1982 <xsl:template match="d:author" mode="preface.titlepage.recto.auto.mode">
1983 <fo:block xsl:use-attribute-sets="preface.titlepage.recto.style">
1984 <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1985 </fo:block>
1986 </xsl:template>
1987
1988 <xsl:template match="d:othercredit" mode="preface.titlepage.recto.auto.mode">
1989 <fo:block xsl:use-attribute-sets="preface.titlepage.recto.style">
1990 <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1991 </fo:block>
1992 </xsl:template>
1993
1994 <xsl:template match="d:releaseinfo" mode="preface.titlepage.recto.auto.mode">
1995 <fo:block xsl:use-attribute-sets="preface.titlepage.recto.style">
1996 <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1997 </fo:block>
1998 </xsl:template>
1999
2000 <xsl:template match="d:copyright" mode="preface.titlepage.recto.auto.mode">
2001 <fo:block xsl:use-attribute-sets="preface.titlepage.recto.style">
2002 <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
2003 </fo:block>
2004 </xsl:template>
2005
2006 <xsl:template match="d:legalnotice" mode="preface.titlepage.recto.auto.mode">
2007 <fo:block xsl:use-attribute-sets="preface.titlepage.recto.style">
2008 <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
2009 </fo:block>
2010 </xsl:template>
2011
2012 <xsl:template match="d:pubdate" mode="preface.titlepage.recto.auto.mode">
2013 <fo:block xsl:use-attribute-sets="preface.titlepage.recto.style">
2014 <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
2015 </fo:block>
2016 </xsl:template>
2017
2018 <xsl:template match="d:revision" mode="preface.titlepage.recto.auto.mode">
2019 <fo:block xsl:use-attribute-sets="preface.titlepage.recto.style">
2020 <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
2021 </fo:block>
2022 </xsl:template>
2023
2024 <xsl:template match="d:revhistory" mode="preface.titlepage.recto.auto.mode">
2025 <fo:block xsl:use-attribute-sets="preface.titlepage.recto.style">
2026 <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
2027 </fo:block>
2028 </xsl:template>
2029
2030 <xsl:template match="d:abstract" mode="preface.titlepage.recto.auto.mode">
2031 <fo:block xsl:use-attribute-sets="preface.titlepage.recto.style">
2032 <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
2033 </fo:block>
2034 </xsl:template>
2035
2036 <xsl:template match="d:itermset" mode="preface.titlepage.recto.auto.mode">
2037 <fo:block xsl:use-attribute-sets="preface.titlepage.recto.style">
2038 <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
2039 </fo:block>
2040 </xsl:template>
2041
2042 <xsl:template name="chapter.titlepage.recto">
2043 <xsl:choose>
2044 <xsl:when test="d:chapterinfo/d:title">
2045 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:title"/>
2046 </xsl:when>
2047 <xsl:when test="d:docinfo/d:title">
2048 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
2049 </xsl:when>
2050 <xsl:when test="d:info/d:title">
2051 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:title"/>
2052 </xsl:when>
2053 <xsl:when test="d:title">
2054 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:title"/>
2055 </xsl:when>
2056 </xsl:choose>
2057
2058 <xsl:choose>
2059 <xsl:when test="d:chapterinfo/d:subtitle">
2060 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:subtitle"/>
2061 </xsl:when>
2062 <xsl:when test="d:docinfo/d:subtitle">
2063 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
2064 </xsl:when>
2065 <xsl:when test="d:info/d:subtitle">
2066 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
2067 </xsl:when>
2068 <xsl:when test="d:subtitle">
2069 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:subtitle"/>
2070 </xsl:when>
2071 </xsl:choose>
2072
2073 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:corpauthor"/>
2074 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:corpauthor"/>
2075 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
2076 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:authorgroup"/>
2077 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:authorgroup"/>
2078 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
2079 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:author"/>
2080 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:author"/>
2081 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:author"/>
2082 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:othercredit"/>
2083 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:othercredit"/>
2084 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
2085 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:releaseinfo"/>
2086 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:releaseinfo"/>
2087 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
2088 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:copyright"/>
2089 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:copyright"/>
2090 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
2091 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:legalnotice"/>
2092 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:legalnotice"/>
2093 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
2094 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:pubdate"/>
2095 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:pubdate"/>
2096 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
2097 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:revision"/>
2098 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:revision"/>
2099 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:revision"/>
2100 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:revhistory"/>
2101 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:revhistory"/>
2102 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
2103 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:abstract"/>
2104 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:abstract"/>
2105 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
2106 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:itermset"/>
2107 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:itermset"/>
2108 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:itermset"/>
2109 </xsl:template>
2110
2111 <xsl:template name="chapter.titlepage.verso">
2112 </xsl:template>
2113
2114 <xsl:template name="chapter.titlepage.separator">
2115 </xsl:template>
2116
2117 <xsl:template name="chapter.titlepage.before.recto">
2118 </xsl:template>
2119
2120 <xsl:template name="chapter.titlepage.before.verso">
2121 </xsl:template>
2122
2123 <xsl:template name="chapter.titlepage">
2124 <fo:block font-family="{$title.fontset}">
2125 <xsl:variable name="recto.content">
2126 <xsl:call-template name="chapter.titlepage.before.recto"/>
2127 <xsl:call-template name="chapter.titlepage.recto"/>
2128 </xsl:variable>
2129 <xsl:variable name="recto.elements.count">
2130 <xsl:choose>
2131 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2132 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2133 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2134 <xsl:otherwise>1</xsl:otherwise>
2135 </xsl:choose>
2136 </xsl:variable>
2137 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
2138 <fo:block margin-left="{$title.margin.left}"><xsl:copy-of select="$recto.content"/></fo:block>
2139 </xsl:if>
2140 <xsl:variable name="verso.content">
2141 <xsl:call-template name="chapter.titlepage.before.verso"/>
2142 <xsl:call-template name="chapter.titlepage.verso"/>
2143 </xsl:variable>
2144 <xsl:variable name="verso.elements.count">
2145 <xsl:choose>
2146 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2147 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2148 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2149 <xsl:otherwise>1</xsl:otherwise>
2150 </xsl:choose>
2151 </xsl:variable>
2152 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
2153 <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
2154 </xsl:if>
2155 <xsl:call-template name="chapter.titlepage.separator"/>
2156 </fo:block>
2157 </xsl:template>
2158
2159 <xsl:template match="*" mode="chapter.titlepage.recto.mode">
2160 <!-- if an element isn't found in this mode, -->
2161 <!-- try the generic titlepage.mode -->
2162 <xsl:apply-templates select="." mode="titlepage.mode"/>
2163 </xsl:template>
2164
2165 <xsl:template match="*" mode="chapter.titlepage.verso.mode">
2166 <!-- if an element isn't found in this mode, -->
2167 <!-- try the generic titlepage.mode -->
2168 <xsl:apply-templates select="." mode="titlepage.mode"/>
2169 </xsl:template>
2170
2171 <xsl:template match="d:title" mode="chapter.titlepage.recto.auto.mode">
2172 <fo:block xsl:use-attribute-sets="chapter.titlepage.recto.style" font-size="24.8832pt" font-weight="bold">
2173 <xsl:call-template name="component.title">
2174 <xsl:with-param name="node" select="ancestor-or-self::d:chapter[1]"/>
2175 </xsl:call-template>
2176 </fo:block>
2177 </xsl:template>
2178
2179 <xsl:template match="d:subtitle" mode="chapter.titlepage.recto.auto.mode">
2180 <fo:block xsl:use-attribute-sets="chapter.titlepage.recto.style" space-before="0.5em" font-style="italic" font-size="14.4pt" font-weight="bold">
2181 <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
2182 </fo:block>
2183 </xsl:template>
2184
2185 <xsl:template match="d:corpauthor" mode="chapter.titlepage.recto.auto.mode">
2186 <fo:block xsl:use-attribute-sets="chapter.titlepage.recto.style" space-before="0.5em" space-after="0.5em" font-size="14.4pt">
2187 <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
2188 </fo:block>
2189 </xsl:template>
2190
2191 <xsl:template match="d:authorgroup" mode="chapter.titlepage.recto.auto.mode">
2192 <fo:block xsl:use-attribute-sets="chapter.titlepage.recto.style" space-before="0.5em" space-after="0.5em" font-size="14.4pt">
2193 <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
2194 </fo:block>
2195 </xsl:template>
2196
2197 <xsl:template match="d:author" mode="chapter.titlepage.recto.auto.mode">
2198 <fo:block xsl:use-attribute-sets="chapter.titlepage.recto.style" space-before="0.5em" space-after="0.5em" font-size="14.4pt">
2199 <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
2200 </fo:block>
2201 </xsl:template>
2202
2203 <xsl:template match="d:othercredit" mode="chapter.titlepage.recto.auto.mode">
2204 <fo:block xsl:use-attribute-sets="chapter.titlepage.recto.style">
2205 <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
2206 </fo:block>
2207 </xsl:template>
2208
2209 <xsl:template match="d:releaseinfo" mode="chapter.titlepage.recto.auto.mode">
2210 <fo:block xsl:use-attribute-sets="chapter.titlepage.recto.style">
2211 <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
2212 </fo:block>
2213 </xsl:template>
2214
2215 <xsl:template match="d:copyright" mode="chapter.titlepage.recto.auto.mode">
2216 <fo:block xsl:use-attribute-sets="chapter.titlepage.recto.style">
2217 <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
2218 </fo:block>
2219 </xsl:template>
2220
2221 <xsl:template match="d:legalnotice" mode="chapter.titlepage.recto.auto.mode">
2222 <fo:block xsl:use-attribute-sets="chapter.titlepage.recto.style">
2223 <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
2224 </fo:block>
2225 </xsl:template>
2226
2227 <xsl:template match="d:pubdate" mode="chapter.titlepage.recto.auto.mode">
2228 <fo:block xsl:use-attribute-sets="chapter.titlepage.recto.style">
2229 <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
2230 </fo:block>
2231 </xsl:template>
2232
2233 <xsl:template match="d:revision" mode="chapter.titlepage.recto.auto.mode">
2234 <fo:block xsl:use-attribute-sets="chapter.titlepage.recto.style">
2235 <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
2236 </fo:block>
2237 </xsl:template>
2238
2239 <xsl:template match="d:revhistory" mode="chapter.titlepage.recto.auto.mode">
2240 <fo:block xsl:use-attribute-sets="chapter.titlepage.recto.style">
2241 <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
2242 </fo:block>
2243 </xsl:template>
2244
2245 <xsl:template match="d:abstract" mode="chapter.titlepage.recto.auto.mode">
2246 <fo:block xsl:use-attribute-sets="chapter.titlepage.recto.style">
2247 <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
2248 </fo:block>
2249 </xsl:template>
2250
2251 <xsl:template match="d:itermset" mode="chapter.titlepage.recto.auto.mode">
2252 <fo:block xsl:use-attribute-sets="chapter.titlepage.recto.style">
2253 <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
2254 </fo:block>
2255 </xsl:template>
2256
2257 <xsl:template name="appendix.titlepage.recto">
2258 <xsl:choose>
2259 <xsl:when test="d:appendixinfo/d:title">
2260 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:title"/>
2261 </xsl:when>
2262 <xsl:when test="d:docinfo/d:title">
2263 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
2264 </xsl:when>
2265 <xsl:when test="d:info/d:title">
2266 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:title"/>
2267 </xsl:when>
2268 <xsl:when test="d:title">
2269 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:title"/>
2270 </xsl:when>
2271 </xsl:choose>
2272
2273 <xsl:choose>
2274 <xsl:when test="d:appendixinfo/d:subtitle">
2275 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:subtitle"/>
2276 </xsl:when>
2277 <xsl:when test="d:docinfo/d:subtitle">
2278 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
2279 </xsl:when>
2280 <xsl:when test="d:info/d:subtitle">
2281 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
2282 </xsl:when>
2283 <xsl:when test="d:subtitle">
2284 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:subtitle"/>
2285 </xsl:when>
2286 </xsl:choose>
2287
2288 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:corpauthor"/>
2289 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:corpauthor"/>
2290 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
2291 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:authorgroup"/>
2292 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:authorgroup"/>
2293 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
2294 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:author"/>
2295 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:author"/>
2296 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:author"/>
2297 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:othercredit"/>
2298 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:othercredit"/>
2299 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
2300 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:releaseinfo"/>
2301 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:releaseinfo"/>
2302 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
2303 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:copyright"/>
2304 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:copyright"/>
2305 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
2306 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:legalnotice"/>
2307 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:legalnotice"/>
2308 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
2309 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:pubdate"/>
2310 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:pubdate"/>
2311 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
2312 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:revision"/>
2313 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:revision"/>
2314 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:revision"/>
2315 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:revhistory"/>
2316 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:revhistory"/>
2317 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
2318 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:abstract"/>
2319 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:abstract"/>
2320 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
2321 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:itermset"/>
2322 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:itermset"/>
2323 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:itermset"/>
2324 </xsl:template>
2325
2326 <xsl:template name="appendix.titlepage.verso">
2327 </xsl:template>
2328
2329 <xsl:template name="appendix.titlepage.separator">
2330 </xsl:template>
2331
2332 <xsl:template name="appendix.titlepage.before.recto">
2333 </xsl:template>
2334
2335 <xsl:template name="appendix.titlepage.before.verso">
2336 </xsl:template>
2337
2338 <xsl:template name="appendix.titlepage">
2339 <fo:block>
2340 <xsl:variable name="recto.content">
2341 <xsl:call-template name="appendix.titlepage.before.recto"/>
2342 <xsl:call-template name="appendix.titlepage.recto"/>
2343 </xsl:variable>
2344 <xsl:variable name="recto.elements.count">
2345 <xsl:choose>
2346 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2347 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2348 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2349 <xsl:otherwise>1</xsl:otherwise>
2350 </xsl:choose>
2351 </xsl:variable>
2352 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
2353 <fo:block><xsl:copy-of select="$recto.content"/></fo:block>
2354 </xsl:if>
2355 <xsl:variable name="verso.content">
2356 <xsl:call-template name="appendix.titlepage.before.verso"/>
2357 <xsl:call-template name="appendix.titlepage.verso"/>
2358 </xsl:variable>
2359 <xsl:variable name="verso.elements.count">
2360 <xsl:choose>
2361 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2362 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2363 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2364 <xsl:otherwise>1</xsl:otherwise>
2365 </xsl:choose>
2366 </xsl:variable>
2367 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
2368 <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
2369 </xsl:if>
2370 <xsl:call-template name="appendix.titlepage.separator"/>
2371 </fo:block>
2372 </xsl:template>
2373
2374 <xsl:template match="*" mode="appendix.titlepage.recto.mode">
2375 <!-- if an element isn't found in this mode, -->
2376 <!-- try the generic titlepage.mode -->
2377 <xsl:apply-templates select="." mode="titlepage.mode"/>
2378 </xsl:template>
2379
2380 <xsl:template match="*" mode="appendix.titlepage.verso.mode">
2381 <!-- if an element isn't found in this mode, -->
2382 <!-- try the generic titlepage.mode -->
2383 <xsl:apply-templates select="." mode="titlepage.mode"/>
2384 </xsl:template>
2385
2386 <xsl:template match="d:title" mode="appendix.titlepage.recto.auto.mode">
2387 <fo:block xsl:use-attribute-sets="appendix.titlepage.recto.style" margin-left="{$title.margin.left}" font-size="24.8832pt" font-weight="bold" font-family="{$title.fontset}">
2388 <xsl:call-template name="component.title">
2389 <xsl:with-param name="node" select="ancestor-or-self::d:appendix[1]"/>
2390 </xsl:call-template>
2391 </fo:block>
2392 </xsl:template>
2393
2394 <xsl:template match="d:subtitle" mode="appendix.titlepage.recto.auto.mode">
2395 <fo:block xsl:use-attribute-sets="appendix.titlepage.recto.style" font-family="{$title.fontset}">
2396 <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
2397 </fo:block>
2398 </xsl:template>
2399
2400 <xsl:template match="d:corpauthor" mode="appendix.titlepage.recto.auto.mode">
2401 <fo:block xsl:use-attribute-sets="appendix.titlepage.recto.style">
2402 <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
2403 </fo:block>
2404 </xsl:template>
2405
2406 <xsl:template match="d:authorgroup" mode="appendix.titlepage.recto.auto.mode">
2407 <fo:block xsl:use-attribute-sets="appendix.titlepage.recto.style">
2408 <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
2409 </fo:block>
2410 </xsl:template>
2411
2412 <xsl:template match="d:author" mode="appendix.titlepage.recto.auto.mode">
2413 <fo:block xsl:use-attribute-sets="appendix.titlepage.recto.style">
2414 <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
2415 </fo:block>
2416 </xsl:template>
2417
2418 <xsl:template match="d:othercredit" mode="appendix.titlepage.recto.auto.mode">
2419 <fo:block xsl:use-attribute-sets="appendix.titlepage.recto.style">
2420 <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
2421 </fo:block>
2422 </xsl:template>
2423
2424 <xsl:template match="d:releaseinfo" mode="appendix.titlepage.recto.auto.mode">
2425 <fo:block xsl:use-attribute-sets="appendix.titlepage.recto.style">
2426 <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
2427 </fo:block>
2428 </xsl:template>
2429
2430 <xsl:template match="d:copyright" mode="appendix.titlepage.recto.auto.mode">
2431 <fo:block xsl:use-attribute-sets="appendix.titlepage.recto.style">
2432 <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
2433 </fo:block>
2434 </xsl:template>
2435
2436 <xsl:template match="d:legalnotice" mode="appendix.titlepage.recto.auto.mode">
2437 <fo:block xsl:use-attribute-sets="appendix.titlepage.recto.style">
2438 <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
2439 </fo:block>
2440 </xsl:template>
2441
2442 <xsl:template match="d:pubdate" mode="appendix.titlepage.recto.auto.mode">
2443 <fo:block xsl:use-attribute-sets="appendix.titlepage.recto.style">
2444 <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
2445 </fo:block>
2446 </xsl:template>
2447
2448 <xsl:template match="d:revision" mode="appendix.titlepage.recto.auto.mode">
2449 <fo:block xsl:use-attribute-sets="appendix.titlepage.recto.style">
2450 <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
2451 </fo:block>
2452 </xsl:template>
2453
2454 <xsl:template match="d:revhistory" mode="appendix.titlepage.recto.auto.mode">
2455 <fo:block xsl:use-attribute-sets="appendix.titlepage.recto.style">
2456 <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
2457 </fo:block>
2458 </xsl:template>
2459
2460 <xsl:template match="d:abstract" mode="appendix.titlepage.recto.auto.mode">
2461 <fo:block xsl:use-attribute-sets="appendix.titlepage.recto.style">
2462 <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
2463 </fo:block>
2464 </xsl:template>
2465
2466 <xsl:template match="d:itermset" mode="appendix.titlepage.recto.auto.mode">
2467 <fo:block xsl:use-attribute-sets="appendix.titlepage.recto.style">
2468 <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
2469 </fo:block>
2470 </xsl:template>
2471
2472 <xsl:template name="section.titlepage.recto">
2473 <xsl:choose>
2474 <xsl:when test="d:sectioninfo/d:title">
2475 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:title"/>
2476 </xsl:when>
2477 <xsl:when test="d:info/d:title">
2478 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:title"/>
2479 </xsl:when>
2480 <xsl:when test="d:title">
2481 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:title"/>
2482 </xsl:when>
2483 </xsl:choose>
2484
2485 <xsl:choose>
2486 <xsl:when test="d:sectioninfo/d:subtitle">
2487 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:subtitle"/>
2488 </xsl:when>
2489 <xsl:when test="d:info/d:subtitle">
2490 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
2491 </xsl:when>
2492 <xsl:when test="d:subtitle">
2493 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:subtitle"/>
2494 </xsl:when>
2495 </xsl:choose>
2496
2497 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:corpauthor"/>
2498 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
2499 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:authorgroup"/>
2500 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
2501 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:author"/>
2502 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:author"/>
2503 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:othercredit"/>
2504 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
2505 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:releaseinfo"/>
2506 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
2507 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:copyright"/>
2508 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
2509 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:legalnotice"/>
2510 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
2511 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:pubdate"/>
2512 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
2513 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:revision"/>
2514 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:revision"/>
2515 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:revhistory"/>
2516 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
2517 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:abstract"/>
2518 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
2519 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:itermset"/>
2520 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:itermset"/>
2521 </xsl:template>
2522
2523 <xsl:template name="section.titlepage.verso">
2524 </xsl:template>
2525
2526 <xsl:template name="section.titlepage.separator">
2527 </xsl:template>
2528
2529 <xsl:template name="section.titlepage.before.recto">
2530 </xsl:template>
2531
2532 <xsl:template name="section.titlepage.before.verso">
2533 </xsl:template>
2534
2535 <xsl:template name="section.titlepage">
2536 <fo:block>
2537 <xsl:variable name="recto.content">
2538 <xsl:call-template name="section.titlepage.before.recto"/>
2539 <xsl:call-template name="section.titlepage.recto"/>
2540 </xsl:variable>
2541 <xsl:variable name="recto.elements.count">
2542 <xsl:choose>
2543 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2544 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2545 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2546 <xsl:otherwise>1</xsl:otherwise>
2547 </xsl:choose>
2548 </xsl:variable>
2549 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
2550 <fo:block><xsl:copy-of select="$recto.content"/></fo:block>
2551 </xsl:if>
2552 <xsl:variable name="verso.content">
2553 <xsl:call-template name="section.titlepage.before.verso"/>
2554 <xsl:call-template name="section.titlepage.verso"/>
2555 </xsl:variable>
2556 <xsl:variable name="verso.elements.count">
2557 <xsl:choose>
2558 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2559 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2560 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2561 <xsl:otherwise>1</xsl:otherwise>
2562 </xsl:choose>
2563 </xsl:variable>
2564 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
2565 <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
2566 </xsl:if>
2567 <xsl:call-template name="section.titlepage.separator"/>
2568 </fo:block>
2569 </xsl:template>
2570
2571 <xsl:template match="*" mode="section.titlepage.recto.mode">
2572 <!-- if an element isn't found in this mode, -->
2573 <!-- try the generic titlepage.mode -->
2574 <xsl:apply-templates select="." mode="titlepage.mode"/>
2575 </xsl:template>
2576
2577 <xsl:template match="*" mode="section.titlepage.verso.mode">
2578 <!-- if an element isn't found in this mode, -->
2579 <!-- try the generic titlepage.mode -->
2580 <xsl:apply-templates select="." mode="titlepage.mode"/>
2581 </xsl:template>
2582
2583 <xsl:template match="d:title" mode="section.titlepage.recto.auto.mode">
2584 <fo:block xsl:use-attribute-sets="section.titlepage.recto.style" margin-left="{$title.margin.left}" font-family="{$title.fontset}">
2585 <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2586 </fo:block>
2587 </xsl:template>
2588
2589 <xsl:template match="d:subtitle" mode="section.titlepage.recto.auto.mode">
2590 <fo:block xsl:use-attribute-sets="section.titlepage.recto.style" font-family="{$title.fontset}">
2591 <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2592 </fo:block>
2593 </xsl:template>
2594
2595 <xsl:template match="d:corpauthor" mode="section.titlepage.recto.auto.mode">
2596 <fo:block xsl:use-attribute-sets="section.titlepage.recto.style">
2597 <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2598 </fo:block>
2599 </xsl:template>
2600
2601 <xsl:template match="d:authorgroup" mode="section.titlepage.recto.auto.mode">
2602 <fo:block xsl:use-attribute-sets="section.titlepage.recto.style">
2603 <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2604 </fo:block>
2605 </xsl:template>
2606
2607 <xsl:template match="d:author" mode="section.titlepage.recto.auto.mode">
2608 <fo:block xsl:use-attribute-sets="section.titlepage.recto.style">
2609 <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2610 </fo:block>
2611 </xsl:template>
2612
2613 <xsl:template match="d:othercredit" mode="section.titlepage.recto.auto.mode">
2614 <fo:block xsl:use-attribute-sets="section.titlepage.recto.style">
2615 <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2616 </fo:block>
2617 </xsl:template>
2618
2619 <xsl:template match="d:releaseinfo" mode="section.titlepage.recto.auto.mode">
2620 <fo:block xsl:use-attribute-sets="section.titlepage.recto.style">
2621 <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2622 </fo:block>
2623 </xsl:template>
2624
2625 <xsl:template match="d:copyright" mode="section.titlepage.recto.auto.mode">
2626 <fo:block xsl:use-attribute-sets="section.titlepage.recto.style">
2627 <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2628 </fo:block>
2629 </xsl:template>
2630
2631 <xsl:template match="d:legalnotice" mode="section.titlepage.recto.auto.mode">
2632 <fo:block xsl:use-attribute-sets="section.titlepage.recto.style">
2633 <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2634 </fo:block>
2635 </xsl:template>
2636
2637 <xsl:template match="d:pubdate" mode="section.titlepage.recto.auto.mode">
2638 <fo:block xsl:use-attribute-sets="section.titlepage.recto.style">
2639 <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2640 </fo:block>
2641 </xsl:template>
2642
2643 <xsl:template match="d:revision" mode="section.titlepage.recto.auto.mode">
2644 <fo:block xsl:use-attribute-sets="section.titlepage.recto.style">
2645 <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2646 </fo:block>
2647 </xsl:template>
2648
2649 <xsl:template match="d:revhistory" mode="section.titlepage.recto.auto.mode">
2650 <fo:block xsl:use-attribute-sets="section.titlepage.recto.style">
2651 <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2652 </fo:block>
2653 </xsl:template>
2654
2655 <xsl:template match="d:abstract" mode="section.titlepage.recto.auto.mode">
2656 <fo:block xsl:use-attribute-sets="section.titlepage.recto.style">
2657 <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2658 </fo:block>
2659 </xsl:template>
2660
2661 <xsl:template match="d:itermset" mode="section.titlepage.recto.auto.mode">
2662 <fo:block xsl:use-attribute-sets="section.titlepage.recto.style">
2663 <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2664 </fo:block>
2665 </xsl:template>
2666
2667 <xsl:template name="sect1.titlepage.recto">
2668 <xsl:choose>
2669 <xsl:when test="d:sect1info/d:title">
2670 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:title"/>
2671 </xsl:when>
2672 <xsl:when test="d:info/d:title">
2673 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:title"/>
2674 </xsl:when>
2675 <xsl:when test="d:title">
2676 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:title"/>
2677 </xsl:when>
2678 </xsl:choose>
2679
2680 <xsl:choose>
2681 <xsl:when test="d:sect1info/d:subtitle">
2682 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:subtitle"/>
2683 </xsl:when>
2684 <xsl:when test="d:info/d:subtitle">
2685 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
2686 </xsl:when>
2687 <xsl:when test="d:subtitle">
2688 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:subtitle"/>
2689 </xsl:when>
2690 </xsl:choose>
2691
2692 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:corpauthor"/>
2693 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
2694 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:authorgroup"/>
2695 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
2696 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:author"/>
2697 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:author"/>
2698 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:othercredit"/>
2699 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
2700 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:releaseinfo"/>
2701 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
2702 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:copyright"/>
2703 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
2704 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:legalnotice"/>
2705 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
2706 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:pubdate"/>
2707 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
2708 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:revision"/>
2709 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:revision"/>
2710 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:revhistory"/>
2711 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
2712 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:abstract"/>
2713 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
2714 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:itermset"/>
2715 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:itermset"/>
2716 </xsl:template>
2717
2718 <xsl:template name="sect1.titlepage.verso">
2719 </xsl:template>
2720
2721 <xsl:template name="sect1.titlepage.separator">
2722 </xsl:template>
2723
2724 <xsl:template name="sect1.titlepage.before.recto">
2725 </xsl:template>
2726
2727 <xsl:template name="sect1.titlepage.before.verso">
2728 </xsl:template>
2729
2730 <xsl:template name="sect1.titlepage">
2731 <fo:block>
2732 <xsl:variable name="recto.content">
2733 <xsl:call-template name="sect1.titlepage.before.recto"/>
2734 <xsl:call-template name="sect1.titlepage.recto"/>
2735 </xsl:variable>
2736 <xsl:variable name="recto.elements.count">
2737 <xsl:choose>
2738 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2739 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2740 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2741 <xsl:otherwise>1</xsl:otherwise>
2742 </xsl:choose>
2743 </xsl:variable>
2744 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
2745 <fo:block><xsl:copy-of select="$recto.content"/></fo:block>
2746 </xsl:if>
2747 <xsl:variable name="verso.content">
2748 <xsl:call-template name="sect1.titlepage.before.verso"/>
2749 <xsl:call-template name="sect1.titlepage.verso"/>
2750 </xsl:variable>
2751 <xsl:variable name="verso.elements.count">
2752 <xsl:choose>
2753 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2754 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2755 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2756 <xsl:otherwise>1</xsl:otherwise>
2757 </xsl:choose>
2758 </xsl:variable>
2759 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
2760 <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
2761 </xsl:if>
2762 <xsl:call-template name="sect1.titlepage.separator"/>
2763 </fo:block>
2764 </xsl:template>
2765
2766 <xsl:template match="*" mode="sect1.titlepage.recto.mode">
2767 <!-- if an element isn't found in this mode, -->
2768 <!-- try the generic titlepage.mode -->
2769 <xsl:apply-templates select="." mode="titlepage.mode"/>
2770 </xsl:template>
2771
2772 <xsl:template match="*" mode="sect1.titlepage.verso.mode">
2773 <!-- if an element isn't found in this mode, -->
2774 <!-- try the generic titlepage.mode -->
2775 <xsl:apply-templates select="." mode="titlepage.mode"/>
2776 </xsl:template>
2777
2778 <xsl:template match="d:title" mode="sect1.titlepage.recto.auto.mode">
2779 <fo:block xsl:use-attribute-sets="sect1.titlepage.recto.style" margin-left="{$title.margin.left}" font-family="{$title.fontset}">
2780 <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2781 </fo:block>
2782 </xsl:template>
2783
2784 <xsl:template match="d:subtitle" mode="sect1.titlepage.recto.auto.mode">
2785 <fo:block xsl:use-attribute-sets="sect1.titlepage.recto.style" font-family="{$title.fontset}">
2786 <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2787 </fo:block>
2788 </xsl:template>
2789
2790 <xsl:template match="d:corpauthor" mode="sect1.titlepage.recto.auto.mode">
2791 <fo:block xsl:use-attribute-sets="sect1.titlepage.recto.style">
2792 <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2793 </fo:block>
2794 </xsl:template>
2795
2796 <xsl:template match="d:authorgroup" mode="sect1.titlepage.recto.auto.mode">
2797 <fo:block xsl:use-attribute-sets="sect1.titlepage.recto.style">
2798 <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2799 </fo:block>
2800 </xsl:template>
2801
2802 <xsl:template match="d:author" mode="sect1.titlepage.recto.auto.mode">
2803 <fo:block xsl:use-attribute-sets="sect1.titlepage.recto.style">
2804 <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2805 </fo:block>
2806 </xsl:template>
2807
2808 <xsl:template match="d:othercredit" mode="sect1.titlepage.recto.auto.mode">
2809 <fo:block xsl:use-attribute-sets="sect1.titlepage.recto.style">
2810 <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2811 </fo:block>
2812 </xsl:template>
2813
2814 <xsl:template match="d:releaseinfo" mode="sect1.titlepage.recto.auto.mode">
2815 <fo:block xsl:use-attribute-sets="sect1.titlepage.recto.style">
2816 <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2817 </fo:block>
2818 </xsl:template>
2819
2820 <xsl:template match="d:copyright" mode="sect1.titlepage.recto.auto.mode">
2821 <fo:block xsl:use-attribute-sets="sect1.titlepage.recto.style">
2822 <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2823 </fo:block>
2824 </xsl:template>
2825
2826 <xsl:template match="d:legalnotice" mode="sect1.titlepage.recto.auto.mode">
2827 <fo:block xsl:use-attribute-sets="sect1.titlepage.recto.style">
2828 <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2829 </fo:block>
2830 </xsl:template>
2831
2832 <xsl:template match="d:pubdate" mode="sect1.titlepage.recto.auto.mode">
2833 <fo:block xsl:use-attribute-sets="sect1.titlepage.recto.style">
2834 <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2835 </fo:block>
2836 </xsl:template>
2837
2838 <xsl:template match="d:revision" mode="sect1.titlepage.recto.auto.mode">
2839 <fo:block xsl:use-attribute-sets="sect1.titlepage.recto.style">
2840 <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2841 </fo:block>
2842 </xsl:template>
2843
2844 <xsl:template match="d:revhistory" mode="sect1.titlepage.recto.auto.mode">
2845 <fo:block xsl:use-attribute-sets="sect1.titlepage.recto.style">
2846 <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2847 </fo:block>
2848 </xsl:template>
2849
2850 <xsl:template match="d:abstract" mode="sect1.titlepage.recto.auto.mode">
2851 <fo:block xsl:use-attribute-sets="sect1.titlepage.recto.style">
2852 <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2853 </fo:block>
2854 </xsl:template>
2855
2856 <xsl:template match="d:itermset" mode="sect1.titlepage.recto.auto.mode">
2857 <fo:block xsl:use-attribute-sets="sect1.titlepage.recto.style">
2858 <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2859 </fo:block>
2860 </xsl:template>
2861
2862 <xsl:template name="sect2.titlepage.recto">
2863 <xsl:choose>
2864 <xsl:when test="d:sect2info/d:title">
2865 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:title"/>
2866 </xsl:when>
2867 <xsl:when test="d:info/d:title">
2868 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:title"/>
2869 </xsl:when>
2870 <xsl:when test="d:title">
2871 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:title"/>
2872 </xsl:when>
2873 </xsl:choose>
2874
2875 <xsl:choose>
2876 <xsl:when test="d:sect2info/d:subtitle">
2877 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:subtitle"/>
2878 </xsl:when>
2879 <xsl:when test="d:info/d:subtitle">
2880 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
2881 </xsl:when>
2882 <xsl:when test="d:subtitle">
2883 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:subtitle"/>
2884 </xsl:when>
2885 </xsl:choose>
2886
2887 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:corpauthor"/>
2888 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
2889 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:authorgroup"/>
2890 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
2891 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:author"/>
2892 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:author"/>
2893 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:othercredit"/>
2894 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
2895 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:releaseinfo"/>
2896 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
2897 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:copyright"/>
2898 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
2899 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:legalnotice"/>
2900 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
2901 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:pubdate"/>
2902 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
2903 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:revision"/>
2904 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:revision"/>
2905 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:revhistory"/>
2906 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
2907 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:abstract"/>
2908 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
2909 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:itermset"/>
2910 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:itermset"/>
2911 </xsl:template>
2912
2913 <xsl:template name="sect2.titlepage.verso">
2914 </xsl:template>
2915
2916 <xsl:template name="sect2.titlepage.separator">
2917 </xsl:template>
2918
2919 <xsl:template name="sect2.titlepage.before.recto">
2920 </xsl:template>
2921
2922 <xsl:template name="sect2.titlepage.before.verso">
2923 </xsl:template>
2924
2925 <xsl:template name="sect2.titlepage">
2926 <fo:block>
2927 <xsl:variable name="recto.content">
2928 <xsl:call-template name="sect2.titlepage.before.recto"/>
2929 <xsl:call-template name="sect2.titlepage.recto"/>
2930 </xsl:variable>
2931 <xsl:variable name="recto.elements.count">
2932 <xsl:choose>
2933 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2934 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2935 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2936 <xsl:otherwise>1</xsl:otherwise>
2937 </xsl:choose>
2938 </xsl:variable>
2939 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
2940 <fo:block><xsl:copy-of select="$recto.content"/></fo:block>
2941 </xsl:if>
2942 <xsl:variable name="verso.content">
2943 <xsl:call-template name="sect2.titlepage.before.verso"/>
2944 <xsl:call-template name="sect2.titlepage.verso"/>
2945 </xsl:variable>
2946 <xsl:variable name="verso.elements.count">
2947 <xsl:choose>
2948 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2949 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2950 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2951 <xsl:otherwise>1</xsl:otherwise>
2952 </xsl:choose>
2953 </xsl:variable>
2954 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
2955 <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
2956 </xsl:if>
2957 <xsl:call-template name="sect2.titlepage.separator"/>
2958 </fo:block>
2959 </xsl:template>
2960
2961 <xsl:template match="*" mode="sect2.titlepage.recto.mode">
2962 <!-- if an element isn't found in this mode, -->
2963 <!-- try the generic titlepage.mode -->
2964 <xsl:apply-templates select="." mode="titlepage.mode"/>
2965 </xsl:template>
2966
2967 <xsl:template match="*" mode="sect2.titlepage.verso.mode">
2968 <!-- if an element isn't found in this mode, -->
2969 <!-- try the generic titlepage.mode -->
2970 <xsl:apply-templates select="." mode="titlepage.mode"/>
2971 </xsl:template>
2972
2973 <xsl:template match="d:title" mode="sect2.titlepage.recto.auto.mode">
2974 <fo:block xsl:use-attribute-sets="sect2.titlepage.recto.style" margin-left="{$title.margin.left}" font-family="{$title.fontset}">
2975 <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2976 </fo:block>
2977 </xsl:template>
2978
2979 <xsl:template match="d:subtitle" mode="sect2.titlepage.recto.auto.mode">
2980 <fo:block xsl:use-attribute-sets="sect2.titlepage.recto.style" font-family="{$title.fontset}">
2981 <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2982 </fo:block>
2983 </xsl:template>
2984
2985 <xsl:template match="d:corpauthor" mode="sect2.titlepage.recto.auto.mode">
2986 <fo:block xsl:use-attribute-sets="sect2.titlepage.recto.style">
2987 <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2988 </fo:block>
2989 </xsl:template>
2990
2991 <xsl:template match="d:authorgroup" mode="sect2.titlepage.recto.auto.mode">
2992 <fo:block xsl:use-attribute-sets="sect2.titlepage.recto.style">
2993 <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2994 </fo:block>
2995 </xsl:template>
2996
2997 <xsl:template match="d:author" mode="sect2.titlepage.recto.auto.mode">
2998 <fo:block xsl:use-attribute-sets="sect2.titlepage.recto.style">
2999 <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
3000 </fo:block>
3001 </xsl:template>
3002
3003 <xsl:template match="d:othercredit" mode="sect2.titlepage.recto.auto.mode">
3004 <fo:block xsl:use-attribute-sets="sect2.titlepage.recto.style">
3005 <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
3006 </fo:block>
3007 </xsl:template>
3008
3009 <xsl:template match="d:releaseinfo" mode="sect2.titlepage.recto.auto.mode">
3010 <fo:block xsl:use-attribute-sets="sect2.titlepage.recto.style">
3011 <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
3012 </fo:block>
3013 </xsl:template>
3014
3015 <xsl:template match="d:copyright" mode="sect2.titlepage.recto.auto.mode">
3016 <fo:block xsl:use-attribute-sets="sect2.titlepage.recto.style">
3017 <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
3018 </fo:block>
3019 </xsl:template>
3020
3021 <xsl:template match="d:legalnotice" mode="sect2.titlepage.recto.auto.mode">
3022 <fo:block xsl:use-attribute-sets="sect2.titlepage.recto.style">
3023 <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
3024 </fo:block>
3025 </xsl:template>
3026
3027 <xsl:template match="d:pubdate" mode="sect2.titlepage.recto.auto.mode">
3028 <fo:block xsl:use-attribute-sets="sect2.titlepage.recto.style">
3029 <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
3030 </fo:block>
3031 </xsl:template>
3032
3033 <xsl:template match="d:revision" mode="sect2.titlepage.recto.auto.mode">
3034 <fo:block xsl:use-attribute-sets="sect2.titlepage.recto.style">
3035 <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
3036 </fo:block>
3037 </xsl:template>
3038
3039 <xsl:template match="d:revhistory" mode="sect2.titlepage.recto.auto.mode">
3040 <fo:block xsl:use-attribute-sets="sect2.titlepage.recto.style">
3041 <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
3042 </fo:block>
3043 </xsl:template>
3044
3045 <xsl:template match="d:abstract" mode="sect2.titlepage.recto.auto.mode">
3046 <fo:block xsl:use-attribute-sets="sect2.titlepage.recto.style">
3047 <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
3048 </fo:block>
3049 </xsl:template>
3050
3051 <xsl:template match="d:itermset" mode="sect2.titlepage.recto.auto.mode">
3052 <fo:block xsl:use-attribute-sets="sect2.titlepage.recto.style">
3053 <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
3054 </fo:block>
3055 </xsl:template>
3056
3057 <xsl:template name="sect3.titlepage.recto">
3058 <xsl:choose>
3059 <xsl:when test="d:sect3info/d:title">
3060 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:title"/>
3061 </xsl:when>
3062 <xsl:when test="d:info/d:title">
3063 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:title"/>
3064 </xsl:when>
3065 <xsl:when test="d:title">
3066 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:title"/>
3067 </xsl:when>
3068 </xsl:choose>
3069
3070 <xsl:choose>
3071 <xsl:when test="d:sect3info/d:subtitle">
3072 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:subtitle"/>
3073 </xsl:when>
3074 <xsl:when test="d:info/d:subtitle">
3075 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
3076 </xsl:when>
3077 <xsl:when test="d:subtitle">
3078 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:subtitle"/>
3079 </xsl:when>
3080 </xsl:choose>
3081
3082 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:corpauthor"/>
3083 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
3084 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:authorgroup"/>
3085 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
3086 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:author"/>
3087 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:author"/>
3088 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:othercredit"/>
3089 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
3090 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:releaseinfo"/>
3091 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
3092 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:copyright"/>
3093 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
3094 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:legalnotice"/>
3095 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
3096 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:pubdate"/>
3097 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
3098 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:revision"/>
3099 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:revision"/>
3100 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:revhistory"/>
3101 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
3102 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:abstract"/>
3103 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
3104 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:itermset"/>
3105 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:itermset"/>
3106 </xsl:template>
3107
3108 <xsl:template name="sect3.titlepage.verso">
3109 </xsl:template>
3110
3111 <xsl:template name="sect3.titlepage.separator">
3112 </xsl:template>
3113
3114 <xsl:template name="sect3.titlepage.before.recto">
3115 </xsl:template>
3116
3117 <xsl:template name="sect3.titlepage.before.verso">
3118 </xsl:template>
3119
3120 <xsl:template name="sect3.titlepage">
3121 <fo:block>
3122 <xsl:variable name="recto.content">
3123 <xsl:call-template name="sect3.titlepage.before.recto"/>
3124 <xsl:call-template name="sect3.titlepage.recto"/>
3125 </xsl:variable>
3126 <xsl:variable name="recto.elements.count">
3127 <xsl:choose>
3128 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3129 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3130 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3131 <xsl:otherwise>1</xsl:otherwise>
3132 </xsl:choose>
3133 </xsl:variable>
3134 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
3135 <fo:block><xsl:copy-of select="$recto.content"/></fo:block>
3136 </xsl:if>
3137 <xsl:variable name="verso.content">
3138 <xsl:call-template name="sect3.titlepage.before.verso"/>
3139 <xsl:call-template name="sect3.titlepage.verso"/>
3140 </xsl:variable>
3141 <xsl:variable name="verso.elements.count">
3142 <xsl:choose>
3143 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3144 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3145 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3146 <xsl:otherwise>1</xsl:otherwise>
3147 </xsl:choose>
3148 </xsl:variable>
3149 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
3150 <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
3151 </xsl:if>
3152 <xsl:call-template name="sect3.titlepage.separator"/>
3153 </fo:block>
3154 </xsl:template>
3155
3156 <xsl:template match="*" mode="sect3.titlepage.recto.mode">
3157 <!-- if an element isn't found in this mode, -->
3158 <!-- try the generic titlepage.mode -->
3159 <xsl:apply-templates select="." mode="titlepage.mode"/>
3160 </xsl:template>
3161
3162 <xsl:template match="*" mode="sect3.titlepage.verso.mode">
3163 <!-- if an element isn't found in this mode, -->
3164 <!-- try the generic titlepage.mode -->
3165 <xsl:apply-templates select="." mode="titlepage.mode"/>
3166 </xsl:template>
3167
3168 <xsl:template match="d:title" mode="sect3.titlepage.recto.auto.mode">
3169 <fo:block xsl:use-attribute-sets="sect3.titlepage.recto.style" margin-left="{$title.margin.left}" font-family="{$title.fontset}">
3170 <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
3171 </fo:block>
3172 </xsl:template>
3173
3174 <xsl:template match="d:subtitle" mode="sect3.titlepage.recto.auto.mode">
3175 <fo:block xsl:use-attribute-sets="sect3.titlepage.recto.style" font-family="{$title.fontset}">
3176 <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
3177 </fo:block>
3178 </xsl:template>
3179
3180 <xsl:template match="d:corpauthor" mode="sect3.titlepage.recto.auto.mode">
3181 <fo:block xsl:use-attribute-sets="sect3.titlepage.recto.style">
3182 <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
3183 </fo:block>
3184 </xsl:template>
3185
3186 <xsl:template match="d:authorgroup" mode="sect3.titlepage.recto.auto.mode">
3187 <fo:block xsl:use-attribute-sets="sect3.titlepage.recto.style">
3188 <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
3189 </fo:block>
3190 </xsl:template>
3191
3192 <xsl:template match="d:author" mode="sect3.titlepage.recto.auto.mode">
3193 <fo:block xsl:use-attribute-sets="sect3.titlepage.recto.style">
3194 <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
3195 </fo:block>
3196 </xsl:template>
3197
3198 <xsl:template match="d:othercredit" mode="sect3.titlepage.recto.auto.mode">
3199 <fo:block xsl:use-attribute-sets="sect3.titlepage.recto.style">
3200 <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
3201 </fo:block>
3202 </xsl:template>
3203
3204 <xsl:template match="d:releaseinfo" mode="sect3.titlepage.recto.auto.mode">
3205 <fo:block xsl:use-attribute-sets="sect3.titlepage.recto.style">
3206 <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
3207 </fo:block>
3208 </xsl:template>
3209
3210 <xsl:template match="d:copyright" mode="sect3.titlepage.recto.auto.mode">
3211 <fo:block xsl:use-attribute-sets="sect3.titlepage.recto.style">
3212 <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
3213 </fo:block>
3214 </xsl:template>
3215
3216 <xsl:template match="d:legalnotice" mode="sect3.titlepage.recto.auto.mode">
3217 <fo:block xsl:use-attribute-sets="sect3.titlepage.recto.style">
3218 <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
3219 </fo:block>
3220 </xsl:template>
3221
3222 <xsl:template match="d:pubdate" mode="sect3.titlepage.recto.auto.mode">
3223 <fo:block xsl:use-attribute-sets="sect3.titlepage.recto.style">
3224 <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
3225 </fo:block>
3226 </xsl:template>
3227
3228 <xsl:template match="d:revision" mode="sect3.titlepage.recto.auto.mode">
3229 <fo:block xsl:use-attribute-sets="sect3.titlepage.recto.style">
3230 <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
3231 </fo:block>
3232 </xsl:template>
3233
3234 <xsl:template match="d:revhistory" mode="sect3.titlepage.recto.auto.mode">
3235 <fo:block xsl:use-attribute-sets="sect3.titlepage.recto.style">
3236 <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
3237 </fo:block>
3238 </xsl:template>
3239
3240 <xsl:template match="d:abstract" mode="sect3.titlepage.recto.auto.mode">
3241 <fo:block xsl:use-attribute-sets="sect3.titlepage.recto.style">
3242 <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
3243 </fo:block>
3244 </xsl:template>
3245
3246 <xsl:template match="d:itermset" mode="sect3.titlepage.recto.auto.mode">
3247 <fo:block xsl:use-attribute-sets="sect3.titlepage.recto.style">
3248 <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
3249 </fo:block>
3250 </xsl:template>
3251
3252 <xsl:template name="sect4.titlepage.recto">
3253 <xsl:choose>
3254 <xsl:when test="d:sect4info/d:title">
3255 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:title"/>
3256 </xsl:when>
3257 <xsl:when test="d:info/d:title">
3258 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:title"/>
3259 </xsl:when>
3260 <xsl:when test="d:title">
3261 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:title"/>
3262 </xsl:when>
3263 </xsl:choose>
3264
3265 <xsl:choose>
3266 <xsl:when test="d:sect4info/d:subtitle">
3267 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:subtitle"/>
3268 </xsl:when>
3269 <xsl:when test="d:info/d:subtitle">
3270 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
3271 </xsl:when>
3272 <xsl:when test="d:subtitle">
3273 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:subtitle"/>
3274 </xsl:when>
3275 </xsl:choose>
3276
3277 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:corpauthor"/>
3278 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
3279 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:authorgroup"/>
3280 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
3281 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:author"/>
3282 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:author"/>
3283 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:othercredit"/>
3284 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
3285 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:releaseinfo"/>
3286 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
3287 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:copyright"/>
3288 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
3289 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:legalnotice"/>
3290 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
3291 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:pubdate"/>
3292 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
3293 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:revision"/>
3294 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:revision"/>
3295 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:revhistory"/>
3296 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
3297 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:abstract"/>
3298 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
3299 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:itermset"/>
3300 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:itermset"/>
3301 </xsl:template>
3302
3303 <xsl:template name="sect4.titlepage.verso">
3304 </xsl:template>
3305
3306 <xsl:template name="sect4.titlepage.separator">
3307 </xsl:template>
3308
3309 <xsl:template name="sect4.titlepage.before.recto">
3310 </xsl:template>
3311
3312 <xsl:template name="sect4.titlepage.before.verso">
3313 </xsl:template>
3314
3315 <xsl:template name="sect4.titlepage">
3316 <fo:block>
3317 <xsl:variable name="recto.content">
3318 <xsl:call-template name="sect4.titlepage.before.recto"/>
3319 <xsl:call-template name="sect4.titlepage.recto"/>
3320 </xsl:variable>
3321 <xsl:variable name="recto.elements.count">
3322 <xsl:choose>
3323 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3324 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3325 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3326 <xsl:otherwise>1</xsl:otherwise>
3327 </xsl:choose>
3328 </xsl:variable>
3329 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
3330 <fo:block><xsl:copy-of select="$recto.content"/></fo:block>
3331 </xsl:if>
3332 <xsl:variable name="verso.content">
3333 <xsl:call-template name="sect4.titlepage.before.verso"/>
3334 <xsl:call-template name="sect4.titlepage.verso"/>
3335 </xsl:variable>
3336 <xsl:variable name="verso.elements.count">
3337 <xsl:choose>
3338 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3339 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3340 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3341 <xsl:otherwise>1</xsl:otherwise>
3342 </xsl:choose>
3343 </xsl:variable>
3344 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
3345 <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
3346 </xsl:if>
3347 <xsl:call-template name="sect4.titlepage.separator"/>
3348 </fo:block>
3349 </xsl:template>
3350
3351 <xsl:template match="*" mode="sect4.titlepage.recto.mode">
3352 <!-- if an element isn't found in this mode, -->
3353 <!-- try the generic titlepage.mode -->
3354 <xsl:apply-templates select="." mode="titlepage.mode"/>
3355 </xsl:template>
3356
3357 <xsl:template match="*" mode="sect4.titlepage.verso.mode">
3358 <!-- if an element isn't found in this mode, -->
3359 <!-- try the generic titlepage.mode -->
3360 <xsl:apply-templates select="." mode="titlepage.mode"/>
3361 </xsl:template>
3362
3363 <xsl:template match="d:title" mode="sect4.titlepage.recto.auto.mode">
3364 <fo:block xsl:use-attribute-sets="sect4.titlepage.recto.style" margin-left="{$title.margin.left}" font-family="{$title.fontset}">
3365 <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
3366 </fo:block>
3367 </xsl:template>
3368
3369 <xsl:template match="d:subtitle" mode="sect4.titlepage.recto.auto.mode">
3370 <fo:block xsl:use-attribute-sets="sect4.titlepage.recto.style" font-family="{$title.fontset}">
3371 <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
3372 </fo:block>
3373 </xsl:template>
3374
3375 <xsl:template match="d:corpauthor" mode="sect4.titlepage.recto.auto.mode">
3376 <fo:block xsl:use-attribute-sets="sect4.titlepage.recto.style">
3377 <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
3378 </fo:block>
3379 </xsl:template>
3380
3381 <xsl:template match="d:authorgroup" mode="sect4.titlepage.recto.auto.mode">
3382 <fo:block xsl:use-attribute-sets="sect4.titlepage.recto.style">
3383 <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
3384 </fo:block>
3385 </xsl:template>
3386
3387 <xsl:template match="d:author" mode="sect4.titlepage.recto.auto.mode">
3388 <fo:block xsl:use-attribute-sets="sect4.titlepage.recto.style">
3389 <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
3390 </fo:block>
3391 </xsl:template>
3392
3393 <xsl:template match="d:othercredit" mode="sect4.titlepage.recto.auto.mode">
3394 <fo:block xsl:use-attribute-sets="sect4.titlepage.recto.style">
3395 <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
3396 </fo:block>
3397 </xsl:template>
3398
3399 <xsl:template match="d:releaseinfo" mode="sect4.titlepage.recto.auto.mode">
3400 <fo:block xsl:use-attribute-sets="sect4.titlepage.recto.style">
3401 <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
3402 </fo:block>
3403 </xsl:template>
3404
3405 <xsl:template match="d:copyright" mode="sect4.titlepage.recto.auto.mode">
3406 <fo:block xsl:use-attribute-sets="sect4.titlepage.recto.style">
3407 <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
3408 </fo:block>
3409 </xsl:template>
3410
3411 <xsl:template match="d:legalnotice" mode="sect4.titlepage.recto.auto.mode">
3412 <fo:block xsl:use-attribute-sets="sect4.titlepage.recto.style">
3413 <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
3414 </fo:block>
3415 </xsl:template>
3416
3417 <xsl:template match="d:pubdate" mode="sect4.titlepage.recto.auto.mode">
3418 <fo:block xsl:use-attribute-sets="sect4.titlepage.recto.style">
3419 <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
3420 </fo:block>
3421 </xsl:template>
3422
3423 <xsl:template match="d:revision" mode="sect4.titlepage.recto.auto.mode">
3424 <fo:block xsl:use-attribute-sets="sect4.titlepage.recto.style">
3425 <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
3426 </fo:block>
3427 </xsl:template>
3428
3429 <xsl:template match="d:revhistory" mode="sect4.titlepage.recto.auto.mode">
3430 <fo:block xsl:use-attribute-sets="sect4.titlepage.recto.style">
3431 <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
3432 </fo:block>
3433 </xsl:template>
3434
3435 <xsl:template match="d:abstract" mode="sect4.titlepage.recto.auto.mode">
3436 <fo:block xsl:use-attribute-sets="sect4.titlepage.recto.style">
3437 <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
3438 </fo:block>
3439 </xsl:template>
3440
3441 <xsl:template match="d:itermset" mode="sect4.titlepage.recto.auto.mode">
3442 <fo:block xsl:use-attribute-sets="sect4.titlepage.recto.style">
3443 <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
3444 </fo:block>
3445 </xsl:template>
3446
3447 <xsl:template name="sect5.titlepage.recto">
3448 <xsl:choose>
3449 <xsl:when test="d:sect5info/d:title">
3450 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:title"/>
3451 </xsl:when>
3452 <xsl:when test="d:info/d:title">
3453 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:title"/>
3454 </xsl:when>
3455 <xsl:when test="d:title">
3456 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:title"/>
3457 </xsl:when>
3458 </xsl:choose>
3459
3460 <xsl:choose>
3461 <xsl:when test="d:sect5info/d:subtitle">
3462 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:subtitle"/>
3463 </xsl:when>
3464 <xsl:when test="d:info/d:subtitle">
3465 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
3466 </xsl:when>
3467 <xsl:when test="d:subtitle">
3468 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:subtitle"/>
3469 </xsl:when>
3470 </xsl:choose>
3471
3472 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:corpauthor"/>
3473 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
3474 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:authorgroup"/>
3475 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
3476 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:author"/>
3477 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:author"/>
3478 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:othercredit"/>
3479 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
3480 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:releaseinfo"/>
3481 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
3482 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:copyright"/>
3483 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
3484 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:legalnotice"/>
3485 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
3486 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:pubdate"/>
3487 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
3488 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:revision"/>
3489 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:revision"/>
3490 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:revhistory"/>
3491 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
3492 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:abstract"/>
3493 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
3494 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:itermset"/>
3495 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:itermset"/>
3496 </xsl:template>
3497
3498 <xsl:template name="sect5.titlepage.verso">
3499 </xsl:template>
3500
3501 <xsl:template name="sect5.titlepage.separator">
3502 </xsl:template>
3503
3504 <xsl:template name="sect5.titlepage.before.recto">
3505 </xsl:template>
3506
3507 <xsl:template name="sect5.titlepage.before.verso">
3508 </xsl:template>
3509
3510 <xsl:template name="sect5.titlepage">
3511 <fo:block>
3512 <xsl:variable name="recto.content">
3513 <xsl:call-template name="sect5.titlepage.before.recto"/>
3514 <xsl:call-template name="sect5.titlepage.recto"/>
3515 </xsl:variable>
3516 <xsl:variable name="recto.elements.count">
3517 <xsl:choose>
3518 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3519 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3520 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3521 <xsl:otherwise>1</xsl:otherwise>
3522 </xsl:choose>
3523 </xsl:variable>
3524 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
3525 <fo:block><xsl:copy-of select="$recto.content"/></fo:block>
3526 </xsl:if>
3527 <xsl:variable name="verso.content">
3528 <xsl:call-template name="sect5.titlepage.before.verso"/>
3529 <xsl:call-template name="sect5.titlepage.verso"/>
3530 </xsl:variable>
3531 <xsl:variable name="verso.elements.count">
3532 <xsl:choose>
3533 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3534 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3535 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3536 <xsl:otherwise>1</xsl:otherwise>
3537 </xsl:choose>
3538 </xsl:variable>
3539 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
3540 <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
3541 </xsl:if>
3542 <xsl:call-template name="sect5.titlepage.separator"/>
3543 </fo:block>
3544 </xsl:template>
3545
3546 <xsl:template match="*" mode="sect5.titlepage.recto.mode">
3547 <!-- if an element isn't found in this mode, -->
3548 <!-- try the generic titlepage.mode -->
3549 <xsl:apply-templates select="." mode="titlepage.mode"/>
3550 </xsl:template>
3551
3552 <xsl:template match="*" mode="sect5.titlepage.verso.mode">
3553 <!-- if an element isn't found in this mode, -->
3554 <!-- try the generic titlepage.mode -->
3555 <xsl:apply-templates select="." mode="titlepage.mode"/>
3556 </xsl:template>
3557
3558 <xsl:template match="d:title" mode="sect5.titlepage.recto.auto.mode">
3559 <fo:block xsl:use-attribute-sets="sect5.titlepage.recto.style" margin-left="{$title.margin.left}" font-family="{$title.fontset}">
3560 <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3561 </fo:block>
3562 </xsl:template>
3563
3564 <xsl:template match="d:subtitle" mode="sect5.titlepage.recto.auto.mode">
3565 <fo:block xsl:use-attribute-sets="sect5.titlepage.recto.style" font-family="{$title.fontset}">
3566 <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3567 </fo:block>
3568 </xsl:template>
3569
3570 <xsl:template match="d:corpauthor" mode="sect5.titlepage.recto.auto.mode">
3571 <fo:block xsl:use-attribute-sets="sect5.titlepage.recto.style">
3572 <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3573 </fo:block>
3574 </xsl:template>
3575
3576 <xsl:template match="d:authorgroup" mode="sect5.titlepage.recto.auto.mode">
3577 <fo:block xsl:use-attribute-sets="sect5.titlepage.recto.style">
3578 <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3579 </fo:block>
3580 </xsl:template>
3581
3582 <xsl:template match="d:author" mode="sect5.titlepage.recto.auto.mode">
3583 <fo:block xsl:use-attribute-sets="sect5.titlepage.recto.style">
3584 <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3585 </fo:block>
3586 </xsl:template>
3587
3588 <xsl:template match="d:othercredit" mode="sect5.titlepage.recto.auto.mode">
3589 <fo:block xsl:use-attribute-sets="sect5.titlepage.recto.style">
3590 <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3591 </fo:block>
3592 </xsl:template>
3593
3594 <xsl:template match="d:releaseinfo" mode="sect5.titlepage.recto.auto.mode">
3595 <fo:block xsl:use-attribute-sets="sect5.titlepage.recto.style">
3596 <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3597 </fo:block>
3598 </xsl:template>
3599
3600 <xsl:template match="d:copyright" mode="sect5.titlepage.recto.auto.mode">
3601 <fo:block xsl:use-attribute-sets="sect5.titlepage.recto.style">
3602 <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3603 </fo:block>
3604 </xsl:template>
3605
3606 <xsl:template match="d:legalnotice" mode="sect5.titlepage.recto.auto.mode">
3607 <fo:block xsl:use-attribute-sets="sect5.titlepage.recto.style">
3608 <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3609 </fo:block>
3610 </xsl:template>
3611
3612 <xsl:template match="d:pubdate" mode="sect5.titlepage.recto.auto.mode">
3613 <fo:block xsl:use-attribute-sets="sect5.titlepage.recto.style">
3614 <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3615 </fo:block>
3616 </xsl:template>
3617
3618 <xsl:template match="d:revision" mode="sect5.titlepage.recto.auto.mode">
3619 <fo:block xsl:use-attribute-sets="sect5.titlepage.recto.style">
3620 <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3621 </fo:block>
3622 </xsl:template>
3623
3624 <xsl:template match="d:revhistory" mode="sect5.titlepage.recto.auto.mode">
3625 <fo:block xsl:use-attribute-sets="sect5.titlepage.recto.style">
3626 <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3627 </fo:block>
3628 </xsl:template>
3629
3630 <xsl:template match="d:abstract" mode="sect5.titlepage.recto.auto.mode">
3631 <fo:block xsl:use-attribute-sets="sect5.titlepage.recto.style">
3632 <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3633 </fo:block>
3634 </xsl:template>
3635
3636 <xsl:template match="d:itermset" mode="sect5.titlepage.recto.auto.mode">
3637 <fo:block xsl:use-attribute-sets="sect5.titlepage.recto.style">
3638 <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3639 </fo:block>
3640 </xsl:template>
3641
3642 <xsl:template name="simplesect.titlepage.recto">
3643 <xsl:choose>
3644 <xsl:when test="d:simplesectinfo/d:title">
3645 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:title"/>
3646 </xsl:when>
3647 <xsl:when test="d:docinfo/d:title">
3648 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
3649 </xsl:when>
3650 <xsl:when test="d:info/d:title">
3651 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:title"/>
3652 </xsl:when>
3653 <xsl:when test="d:title">
3654 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:title"/>
3655 </xsl:when>
3656 </xsl:choose>
3657
3658 <xsl:choose>
3659 <xsl:when test="d:simplesectinfo/d:subtitle">
3660 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:subtitle"/>
3661 </xsl:when>
3662 <xsl:when test="d:docinfo/d:subtitle">
3663 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
3664 </xsl:when>
3665 <xsl:when test="d:info/d:subtitle">
3666 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
3667 </xsl:when>
3668 <xsl:when test="d:subtitle">
3669 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:subtitle"/>
3670 </xsl:when>
3671 </xsl:choose>
3672
3673 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:corpauthor"/>
3674 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:corpauthor"/>
3675 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
3676 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:authorgroup"/>
3677 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:authorgroup"/>
3678 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
3679 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:author"/>
3680 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:author"/>
3681 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:author"/>
3682 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:othercredit"/>
3683 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:othercredit"/>
3684 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
3685 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:releaseinfo"/>
3686 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:releaseinfo"/>
3687 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
3688 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:copyright"/>
3689 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:copyright"/>
3690 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
3691 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:legalnotice"/>
3692 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:legalnotice"/>
3693 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
3694 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:pubdate"/>
3695 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:pubdate"/>
3696 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
3697 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:revision"/>
3698 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:revision"/>
3699 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:revision"/>
3700 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:revhistory"/>
3701 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:revhistory"/>
3702 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
3703 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:abstract"/>
3704 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:abstract"/>
3705 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
3706 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:itermset"/>
3707 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:itermset"/>
3708 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:itermset"/>
3709 </xsl:template>
3710
3711 <xsl:template name="simplesect.titlepage.verso">
3712 </xsl:template>
3713
3714 <xsl:template name="simplesect.titlepage.separator">
3715 </xsl:template>
3716
3717 <xsl:template name="simplesect.titlepage.before.recto">
3718 </xsl:template>
3719
3720 <xsl:template name="simplesect.titlepage.before.verso">
3721 </xsl:template>
3722
3723 <xsl:template name="simplesect.titlepage">
3724 <fo:block>
3725 <xsl:variable name="recto.content">
3726 <xsl:call-template name="simplesect.titlepage.before.recto"/>
3727 <xsl:call-template name="simplesect.titlepage.recto"/>
3728 </xsl:variable>
3729 <xsl:variable name="recto.elements.count">
3730 <xsl:choose>
3731 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3732 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3733 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3734 <xsl:otherwise>1</xsl:otherwise>
3735 </xsl:choose>
3736 </xsl:variable>
3737 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
3738 <fo:block><xsl:copy-of select="$recto.content"/></fo:block>
3739 </xsl:if>
3740 <xsl:variable name="verso.content">
3741 <xsl:call-template name="simplesect.titlepage.before.verso"/>
3742 <xsl:call-template name="simplesect.titlepage.verso"/>
3743 </xsl:variable>
3744 <xsl:variable name="verso.elements.count">
3745 <xsl:choose>
3746 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3747 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3748 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3749 <xsl:otherwise>1</xsl:otherwise>
3750 </xsl:choose>
3751 </xsl:variable>
3752 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
3753 <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
3754 </xsl:if>
3755 <xsl:call-template name="simplesect.titlepage.separator"/>
3756 </fo:block>
3757 </xsl:template>
3758
3759 <xsl:template match="*" mode="simplesect.titlepage.recto.mode">
3760 <!-- if an element isn't found in this mode, -->
3761 <!-- try the generic titlepage.mode -->
3762 <xsl:apply-templates select="." mode="titlepage.mode"/>
3763 </xsl:template>
3764
3765 <xsl:template match="*" mode="simplesect.titlepage.verso.mode">
3766 <!-- if an element isn't found in this mode, -->
3767 <!-- try the generic titlepage.mode -->
3768 <xsl:apply-templates select="." mode="titlepage.mode"/>
3769 </xsl:template>
3770
3771 <xsl:template match="d:title" mode="simplesect.titlepage.recto.auto.mode">
3772 <fo:block xsl:use-attribute-sets="simplesect.titlepage.recto.style" margin-left="{$title.margin.left}" font-family="{$title.fontset}">
3773 <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3774 </fo:block>
3775 </xsl:template>
3776
3777 <xsl:template match="d:subtitle" mode="simplesect.titlepage.recto.auto.mode">
3778 <fo:block xsl:use-attribute-sets="simplesect.titlepage.recto.style" font-family="{$title.fontset}">
3779 <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3780 </fo:block>
3781 </xsl:template>
3782
3783 <xsl:template match="d:corpauthor" mode="simplesect.titlepage.recto.auto.mode">
3784 <fo:block xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3785 <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3786 </fo:block>
3787 </xsl:template>
3788
3789 <xsl:template match="d:authorgroup" mode="simplesect.titlepage.recto.auto.mode">
3790 <fo:block xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3791 <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3792 </fo:block>
3793 </xsl:template>
3794
3795 <xsl:template match="d:author" mode="simplesect.titlepage.recto.auto.mode">
3796 <fo:block xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3797 <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3798 </fo:block>
3799 </xsl:template>
3800
3801 <xsl:template match="d:othercredit" mode="simplesect.titlepage.recto.auto.mode">
3802 <fo:block xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3803 <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3804 </fo:block>
3805 </xsl:template>
3806
3807 <xsl:template match="d:releaseinfo" mode="simplesect.titlepage.recto.auto.mode">
3808 <fo:block xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3809 <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3810 </fo:block>
3811 </xsl:template>
3812
3813 <xsl:template match="d:copyright" mode="simplesect.titlepage.recto.auto.mode">
3814 <fo:block xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3815 <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3816 </fo:block>
3817 </xsl:template>
3818
3819 <xsl:template match="d:legalnotice" mode="simplesect.titlepage.recto.auto.mode">
3820 <fo:block xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3821 <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3822 </fo:block>
3823 </xsl:template>
3824
3825 <xsl:template match="d:pubdate" mode="simplesect.titlepage.recto.auto.mode">
3826 <fo:block xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3827 <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3828 </fo:block>
3829 </xsl:template>
3830
3831 <xsl:template match="d:revision" mode="simplesect.titlepage.recto.auto.mode">
3832 <fo:block xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3833 <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3834 </fo:block>
3835 </xsl:template>
3836
3837 <xsl:template match="d:revhistory" mode="simplesect.titlepage.recto.auto.mode">
3838 <fo:block xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3839 <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3840 </fo:block>
3841 </xsl:template>
3842
3843 <xsl:template match="d:abstract" mode="simplesect.titlepage.recto.auto.mode">
3844 <fo:block xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3845 <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3846 </fo:block>
3847 </xsl:template>
3848
3849 <xsl:template match="d:itermset" mode="simplesect.titlepage.recto.auto.mode">
3850 <fo:block xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3851 <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3852 </fo:block>
3853 </xsl:template>
3854
3855 <xsl:template name="dialogue.titlepage.recto">
3856 <xsl:choose>
3857 <xsl:when test="d:dialogueinfo/d:title">
3858 <xsl:apply-templates mode="dialogue.titlepage.recto.auto.mode" select="d:dialogueinfo/d:title"/>
3859 </xsl:when>
3860 <xsl:when test="d:docinfo/d:title">
3861 <xsl:apply-templates mode="dialogue.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
3862 </xsl:when>
3863 <xsl:when test="d:info/d:title">
3864 <xsl:apply-templates mode="dialogue.titlepage.recto.auto.mode" select="d:info/d:title"/>
3865 </xsl:when>
3866 <xsl:when test="d:title">
3867 <xsl:apply-templates mode="dialogue.titlepage.recto.auto.mode" select="d:title"/>
3868 </xsl:when>
3869 </xsl:choose>
3870
3871 <xsl:choose>
3872 <xsl:when test="d:dialogueinfo/d:subtitle">
3873 <xsl:apply-templates mode="dialogue.titlepage.recto.auto.mode" select="d:dialogueinfo/d:subtitle"/>
3874 </xsl:when>
3875 <xsl:when test="d:docinfo/d:subtitle">
3876 <xsl:apply-templates mode="dialogue.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
3877 </xsl:when>
3878 <xsl:when test="d:info/d:subtitle">
3879 <xsl:apply-templates mode="dialogue.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
3880 </xsl:when>
3881 <xsl:when test="d:subtitle">
3882 <xsl:apply-templates mode="dialogue.titlepage.recto.auto.mode" select="d:subtitle"/>
3883 </xsl:when>
3884 </xsl:choose>
3885
3886 <xsl:apply-templates mode="dialogue.titlepage.recto.auto.mode" select="d:dialogueinfo/d:corpauthor"/>
3887 <xsl:apply-templates mode="dialogue.titlepage.recto.auto.mode" select="d:docinfo/d:corpauthor"/>
3888 <xsl:apply-templates mode="dialogue.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
3889 <xsl:apply-templates mode="dialogue.titlepage.recto.auto.mode" select="d:dialogueinfo/d:authorgroup"/>
3890 <xsl:apply-templates mode="dialogue.titlepage.recto.auto.mode" select="d:docinfo/d:authorgroup"/>
3891 <xsl:apply-templates mode="dialogue.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
3892 <xsl:apply-templates mode="dialogue.titlepage.recto.auto.mode" select="d:dialogueinfo/d:author"/>
3893 <xsl:apply-templates mode="dialogue.titlepage.recto.auto.mode" select="d:docinfo/d:author"/>
3894 <xsl:apply-templates mode="dialogue.titlepage.recto.auto.mode" select="d:info/d:author"/>
3895 <xsl:apply-templates mode="dialogue.titlepage.recto.auto.mode" select="d:dialogueinfo/d:othercredit"/>
3896 <xsl:apply-templates mode="dialogue.titlepage.recto.auto.mode" select="d:docinfo/d:othercredit"/>
3897 <xsl:apply-templates mode="dialogue.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
3898 <xsl:apply-templates mode="dialogue.titlepage.recto.auto.mode" select="d:dialogueinfo/d:releaseinfo"/>
3899 <xsl:apply-templates mode="dialogue.titlepage.recto.auto.mode" select="d:docinfo/d:releaseinfo"/>
3900 <xsl:apply-templates mode="dialogue.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
3901 <xsl:apply-templates mode="dialogue.titlepage.recto.auto.mode" select="d:dialogueinfo/d:copyright"/>
3902 <xsl:apply-templates mode="dialogue.titlepage.recto.auto.mode" select="d:docinfo/d:copyright"/>
3903 <xsl:apply-templates mode="dialogue.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
3904 <xsl:apply-templates mode="dialogue.titlepage.recto.auto.mode" select="d:dialogueinfo/d:legalnotice"/>
3905 <xsl:apply-templates mode="dialogue.titlepage.recto.auto.mode" select="d:docinfo/d:legalnotice"/>
3906 <xsl:apply-templates mode="dialogue.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
3907 <xsl:apply-templates mode="dialogue.titlepage.recto.auto.mode" select="d:dialogueinfo/d:pubdate"/>
3908 <xsl:apply-templates mode="dialogue.titlepage.recto.auto.mode" select="d:docinfo/d:pubdate"/>
3909 <xsl:apply-templates mode="dialogue.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
3910 <xsl:apply-templates mode="dialogue.titlepage.recto.auto.mode" select="d:dialogueinfo/d:revision"/>
3911 <xsl:apply-templates mode="dialogue.titlepage.recto.auto.mode" select="d:docinfo/d:revision"/>
3912 <xsl:apply-templates mode="dialogue.titlepage.recto.auto.mode" select="d:info/d:revision"/>
3913 <xsl:apply-templates mode="dialogue.titlepage.recto.auto.mode" select="d:dialogueinfo/d:revhistory"/>
3914 <xsl:apply-templates mode="dialogue.titlepage.recto.auto.mode" select="d:docinfo/d:revhistory"/>
3915 <xsl:apply-templates mode="dialogue.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
3916 <xsl:apply-templates mode="dialogue.titlepage.recto.auto.mode" select="d:dialogueinfo/d:abstract"/>
3917 <xsl:apply-templates mode="dialogue.titlepage.recto.auto.mode" select="d:docinfo/d:abstract"/>
3918 <xsl:apply-templates mode="dialogue.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
3919 <xsl:apply-templates mode="dialogue.titlepage.recto.auto.mode" select="d:dialogueinfo/d:itermset"/>
3920 <xsl:apply-templates mode="dialogue.titlepage.recto.auto.mode" select="d:docinfo/d:itermset"/>
3921 <xsl:apply-templates mode="dialogue.titlepage.recto.auto.mode" select="d:info/d:itermset"/>
3922 </xsl:template>
3923
3924 <xsl:template name="dialogue.titlepage.verso">
3925 </xsl:template>
3926
3927 <xsl:template name="dialogue.titlepage.separator">
3928 </xsl:template>
3929
3930 <xsl:template name="dialogue.titlepage.before.recto">
3931 </xsl:template>
3932
3933 <xsl:template name="dialogue.titlepage.before.verso">
3934 </xsl:template>
3935
3936 <xsl:template name="dialogue.titlepage">
3937 <fo:block>
3938 <xsl:variable name="recto.content">
3939 <xsl:call-template name="dialogue.titlepage.before.recto"/>
3940 <xsl:call-template name="dialogue.titlepage.recto"/>
3941 </xsl:variable>
3942 <xsl:variable name="recto.elements.count">
3943 <xsl:choose>
3944 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3945 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3946 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3947 <xsl:otherwise>1</xsl:otherwise>
3948 </xsl:choose>
3949 </xsl:variable>
3950 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
3951 <fo:block><xsl:copy-of select="$recto.content"/></fo:block>
3952 </xsl:if>
3953 <xsl:variable name="verso.content">
3954 <xsl:call-template name="dialogue.titlepage.before.verso"/>
3955 <xsl:call-template name="dialogue.titlepage.verso"/>
3956 </xsl:variable>
3957 <xsl:variable name="verso.elements.count">
3958 <xsl:choose>
3959 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3960 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3961 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3962 <xsl:otherwise>1</xsl:otherwise>
3963 </xsl:choose>
3964 </xsl:variable>
3965 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
3966 <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
3967 </xsl:if>
3968 <xsl:call-template name="dialogue.titlepage.separator"/>
3969 </fo:block>
3970 </xsl:template>
3971
3972 <xsl:template match="*" mode="dialogue.titlepage.recto.mode">
3973 <!-- if an element isn't found in this mode, -->
3974 <!-- try the generic titlepage.mode -->
3975 <xsl:apply-templates select="." mode="titlepage.mode"/>
3976 </xsl:template>
3977
3978 <xsl:template match="*" mode="dialogue.titlepage.verso.mode">
3979 <!-- if an element isn't found in this mode, -->
3980 <!-- try the generic titlepage.mode -->
3981 <xsl:apply-templates select="." mode="titlepage.mode"/>
3982 </xsl:template>
3983
3984 <xsl:template match="d:title" mode="dialogue.titlepage.recto.auto.mode">
3985 <fo:block xsl:use-attribute-sets="dialogue.titlepage.recto.style" margin-left="{$title.margin.left}" font-family="{$title.fontset}">
3986 <xsl:apply-templates select="." mode="dialogue.titlepage.recto.mode"/>
3987 </fo:block>
3988 </xsl:template>
3989
3990 <xsl:template match="d:subtitle" mode="dialogue.titlepage.recto.auto.mode">
3991 <fo:block xsl:use-attribute-sets="dialogue.titlepage.recto.style" font-family="{$title.fontset}">
3992 <xsl:apply-templates select="." mode="dialogue.titlepage.recto.mode"/>
3993 </fo:block>
3994 </xsl:template>
3995
3996 <xsl:template match="d:corpauthor" mode="dialogue.titlepage.recto.auto.mode">
3997 <fo:block xsl:use-attribute-sets="dialogue.titlepage.recto.style">
3998 <xsl:apply-templates select="." mode="dialogue.titlepage.recto.mode"/>
3999 </fo:block>
4000 </xsl:template>
4001
4002 <xsl:template match="d:authorgroup" mode="dialogue.titlepage.recto.auto.mode">
4003 <fo:block xsl:use-attribute-sets="dialogue.titlepage.recto.style">
4004 <xsl:apply-templates select="." mode="dialogue.titlepage.recto.mode"/>
4005 </fo:block>
4006 </xsl:template>
4007
4008 <xsl:template match="d:author" mode="dialogue.titlepage.recto.auto.mode">
4009 <fo:block xsl:use-attribute-sets="dialogue.titlepage.recto.style">
4010 <xsl:apply-templates select="." mode="dialogue.titlepage.recto.mode"/>
4011 </fo:block>
4012 </xsl:template>
4013
4014 <xsl:template match="d:othercredit" mode="dialogue.titlepage.recto.auto.mode">
4015 <fo:block xsl:use-attribute-sets="dialogue.titlepage.recto.style">
4016 <xsl:apply-templates select="." mode="dialogue.titlepage.recto.mode"/>
4017 </fo:block>
4018 </xsl:template>
4019
4020 <xsl:template match="d:releaseinfo" mode="dialogue.titlepage.recto.auto.mode">
4021 <fo:block xsl:use-attribute-sets="dialogue.titlepage.recto.style">
4022 <xsl:apply-templates select="." mode="dialogue.titlepage.recto.mode"/>
4023 </fo:block>
4024 </xsl:template>
4025
4026 <xsl:template match="d:copyright" mode="dialogue.titlepage.recto.auto.mode">
4027 <fo:block xsl:use-attribute-sets="dialogue.titlepage.recto.style">
4028 <xsl:apply-templates select="." mode="dialogue.titlepage.recto.mode"/>
4029 </fo:block>
4030 </xsl:template>
4031
4032 <xsl:template match="d:legalnotice" mode="dialogue.titlepage.recto.auto.mode">
4033 <fo:block xsl:use-attribute-sets="dialogue.titlepage.recto.style">
4034 <xsl:apply-templates select="." mode="dialogue.titlepage.recto.mode"/>
4035 </fo:block>
4036 </xsl:template>
4037
4038 <xsl:template match="d:pubdate" mode="dialogue.titlepage.recto.auto.mode">
4039 <fo:block xsl:use-attribute-sets="dialogue.titlepage.recto.style">
4040 <xsl:apply-templates select="." mode="dialogue.titlepage.recto.mode"/>
4041 </fo:block>
4042 </xsl:template>
4043
4044 <xsl:template match="d:revision" mode="dialogue.titlepage.recto.auto.mode">
4045 <fo:block xsl:use-attribute-sets="dialogue.titlepage.recto.style">
4046 <xsl:apply-templates select="." mode="dialogue.titlepage.recto.mode"/>
4047 </fo:block>
4048 </xsl:template>
4049
4050 <xsl:template match="d:revhistory" mode="dialogue.titlepage.recto.auto.mode">
4051 <fo:block xsl:use-attribute-sets="dialogue.titlepage.recto.style">
4052 <xsl:apply-templates select="." mode="dialogue.titlepage.recto.mode"/>
4053 </fo:block>
4054 </xsl:template>
4055
4056 <xsl:template match="d:abstract" mode="dialogue.titlepage.recto.auto.mode">
4057 <fo:block xsl:use-attribute-sets="dialogue.titlepage.recto.style">
4058 <xsl:apply-templates select="." mode="dialogue.titlepage.recto.mode"/>
4059 </fo:block>
4060 </xsl:template>
4061
4062 <xsl:template match="d:itermset" mode="dialogue.titlepage.recto.auto.mode">
4063 <fo:block xsl:use-attribute-sets="dialogue.titlepage.recto.style">
4064 <xsl:apply-templates select="." mode="dialogue.titlepage.recto.mode"/>
4065 </fo:block>
4066 </xsl:template>
4067
4068 <xsl:template name="drama.titlepage.recto">
4069 <xsl:choose>
4070 <xsl:when test="d:dramainfo/d:title">
4071 <xsl:apply-templates mode="drama.titlepage.recto.auto.mode" select="d:dramainfo/d:title"/>
4072 </xsl:when>
4073 <xsl:when test="d:docinfo/d:title">
4074 <xsl:apply-templates mode="drama.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
4075 </xsl:when>
4076 <xsl:when test="d:info/d:title">
4077 <xsl:apply-templates mode="drama.titlepage.recto.auto.mode" select="d:info/d:title"/>
4078 </xsl:when>
4079 <xsl:when test="d:title">
4080 <xsl:apply-templates mode="drama.titlepage.recto.auto.mode" select="d:title"/>
4081 </xsl:when>
4082 </xsl:choose>
4083
4084 <xsl:choose>
4085 <xsl:when test="d:dramainfo/d:subtitle">
4086 <xsl:apply-templates mode="drama.titlepage.recto.auto.mode" select="d:dramainfo/d:subtitle"/>
4087 </xsl:when>
4088 <xsl:when test="d:docinfo/d:subtitle">
4089 <xsl:apply-templates mode="drama.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
4090 </xsl:when>
4091 <xsl:when test="d:info/d:subtitle">
4092 <xsl:apply-templates mode="drama.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
4093 </xsl:when>
4094 <xsl:when test="d:subtitle">
4095 <xsl:apply-templates mode="drama.titlepage.recto.auto.mode" select="d:subtitle"/>
4096 </xsl:when>
4097 </xsl:choose>
4098
4099 <xsl:apply-templates mode="drama.titlepage.recto.auto.mode" select="d:dramainfo/d:corpauthor"/>
4100 <xsl:apply-templates mode="drama.titlepage.recto.auto.mode" select="d:docinfo/d:corpauthor"/>
4101 <xsl:apply-templates mode="drama.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
4102 <xsl:apply-templates mode="drama.titlepage.recto.auto.mode" select="d:dramainfo/d:authorgroup"/>
4103 <xsl:apply-templates mode="drama.titlepage.recto.auto.mode" select="d:docinfo/d:authorgroup"/>
4104 <xsl:apply-templates mode="drama.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
4105 <xsl:apply-templates mode="drama.titlepage.recto.auto.mode" select="d:dramainfo/d:author"/>
4106 <xsl:apply-templates mode="drama.titlepage.recto.auto.mode" select="d:docinfo/d:author"/>
4107 <xsl:apply-templates mode="drama.titlepage.recto.auto.mode" select="d:info/d:author"/>
4108 <xsl:apply-templates mode="drama.titlepage.recto.auto.mode" select="d:dramainfo/d:othercredit"/>
4109 <xsl:apply-templates mode="drama.titlepage.recto.auto.mode" select="d:docinfo/d:othercredit"/>
4110 <xsl:apply-templates mode="drama.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
4111 <xsl:apply-templates mode="drama.titlepage.recto.auto.mode" select="d:dramainfo/d:releaseinfo"/>
4112 <xsl:apply-templates mode="drama.titlepage.recto.auto.mode" select="d:docinfo/d:releaseinfo"/>
4113 <xsl:apply-templates mode="drama.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
4114 <xsl:apply-templates mode="drama.titlepage.recto.auto.mode" select="d:dramainfo/d:copyright"/>
4115 <xsl:apply-templates mode="drama.titlepage.recto.auto.mode" select="d:docinfo/d:copyright"/>
4116 <xsl:apply-templates mode="drama.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
4117 <xsl:apply-templates mode="drama.titlepage.recto.auto.mode" select="d:dramainfo/d:legalnotice"/>
4118 <xsl:apply-templates mode="drama.titlepage.recto.auto.mode" select="d:docinfo/d:legalnotice"/>
4119 <xsl:apply-templates mode="drama.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
4120 <xsl:apply-templates mode="drama.titlepage.recto.auto.mode" select="d:dramainfo/d:pubdate"/>
4121 <xsl:apply-templates mode="drama.titlepage.recto.auto.mode" select="d:docinfo/d:pubdate"/>
4122 <xsl:apply-templates mode="drama.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
4123 <xsl:apply-templates mode="drama.titlepage.recto.auto.mode" select="d:dramainfo/d:revision"/>
4124 <xsl:apply-templates mode="drama.titlepage.recto.auto.mode" select="d:docinfo/d:revision"/>
4125 <xsl:apply-templates mode="drama.titlepage.recto.auto.mode" select="d:info/d:revision"/>
4126 <xsl:apply-templates mode="drama.titlepage.recto.auto.mode" select="d:dramainfo/d:revhistory"/>
4127 <xsl:apply-templates mode="drama.titlepage.recto.auto.mode" select="d:docinfo/d:revhistory"/>
4128 <xsl:apply-templates mode="drama.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
4129 <xsl:apply-templates mode="drama.titlepage.recto.auto.mode" select="d:dramainfo/d:abstract"/>
4130 <xsl:apply-templates mode="drama.titlepage.recto.auto.mode" select="d:docinfo/d:abstract"/>
4131 <xsl:apply-templates mode="drama.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
4132 <xsl:apply-templates mode="drama.titlepage.recto.auto.mode" select="d:dramainfo/d:itermset"/>
4133 <xsl:apply-templates mode="drama.titlepage.recto.auto.mode" select="d:docinfo/d:itermset"/>
4134 <xsl:apply-templates mode="drama.titlepage.recto.auto.mode" select="d:info/d:itermset"/>
4135 </xsl:template>
4136
4137 <xsl:template name="drama.titlepage.verso">
4138 </xsl:template>
4139
4140 <xsl:template name="drama.titlepage.separator">
4141 </xsl:template>
4142
4143 <xsl:template name="drama.titlepage.before.recto">
4144 </xsl:template>
4145
4146 <xsl:template name="drama.titlepage.before.verso">
4147 </xsl:template>
4148
4149 <xsl:template name="drama.titlepage">
4150 <fo:block>
4151 <xsl:variable name="recto.content">
4152 <xsl:call-template name="drama.titlepage.before.recto"/>
4153 <xsl:call-template name="drama.titlepage.recto"/>
4154 </xsl:variable>
4155 <xsl:variable name="recto.elements.count">
4156 <xsl:choose>
4157 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4158 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4159 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4160 <xsl:otherwise>1</xsl:otherwise>
4161 </xsl:choose>
4162 </xsl:variable>
4163 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
4164 <fo:block><xsl:copy-of select="$recto.content"/></fo:block>
4165 </xsl:if>
4166 <xsl:variable name="verso.content">
4167 <xsl:call-template name="drama.titlepage.before.verso"/>
4168 <xsl:call-template name="drama.titlepage.verso"/>
4169 </xsl:variable>
4170 <xsl:variable name="verso.elements.count">
4171 <xsl:choose>
4172 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4173 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4174 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4175 <xsl:otherwise>1</xsl:otherwise>
4176 </xsl:choose>
4177 </xsl:variable>
4178 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
4179 <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
4180 </xsl:if>
4181 <xsl:call-template name="drama.titlepage.separator"/>
4182 </fo:block>
4183 </xsl:template>
4184
4185 <xsl:template match="*" mode="drama.titlepage.recto.mode">
4186 <!-- if an element isn't found in this mode, -->
4187 <!-- try the generic titlepage.mode -->
4188 <xsl:apply-templates select="." mode="titlepage.mode"/>
4189 </xsl:template>
4190
4191 <xsl:template match="*" mode="drama.titlepage.verso.mode">
4192 <!-- if an element isn't found in this mode, -->
4193 <!-- try the generic titlepage.mode -->
4194 <xsl:apply-templates select="." mode="titlepage.mode"/>
4195 </xsl:template>
4196
4197 <xsl:template match="d:title" mode="drama.titlepage.recto.auto.mode">
4198 <fo:block xsl:use-attribute-sets="drama.titlepage.recto.style" margin-left="{$title.margin.left}" font-family="{$title.fontset}">
4199 <xsl:apply-templates select="." mode="drama.titlepage.recto.mode"/>
4200 </fo:block>
4201 </xsl:template>
4202
4203 <xsl:template match="d:subtitle" mode="drama.titlepage.recto.auto.mode">
4204 <fo:block xsl:use-attribute-sets="drama.titlepage.recto.style" font-family="{$title.fontset}">
4205 <xsl:apply-templates select="." mode="drama.titlepage.recto.mode"/>
4206 </fo:block>
4207 </xsl:template>
4208
4209 <xsl:template match="d:corpauthor" mode="drama.titlepage.recto.auto.mode">
4210 <fo:block xsl:use-attribute-sets="drama.titlepage.recto.style">
4211 <xsl:apply-templates select="." mode="drama.titlepage.recto.mode"/>
4212 </fo:block>
4213 </xsl:template>
4214
4215 <xsl:template match="d:authorgroup" mode="drama.titlepage.recto.auto.mode">
4216 <fo:block xsl:use-attribute-sets="drama.titlepage.recto.style">
4217 <xsl:apply-templates select="." mode="drama.titlepage.recto.mode"/>
4218 </fo:block>
4219 </xsl:template>
4220
4221 <xsl:template match="d:author" mode="drama.titlepage.recto.auto.mode">
4222 <fo:block xsl:use-attribute-sets="drama.titlepage.recto.style">
4223 <xsl:apply-templates select="." mode="drama.titlepage.recto.mode"/>
4224 </fo:block>
4225 </xsl:template>
4226
4227 <xsl:template match="d:othercredit" mode="drama.titlepage.recto.auto.mode">
4228 <fo:block xsl:use-attribute-sets="drama.titlepage.recto.style">
4229 <xsl:apply-templates select="." mode="drama.titlepage.recto.mode"/>
4230 </fo:block>
4231 </xsl:template>
4232
4233 <xsl:template match="d:releaseinfo" mode="drama.titlepage.recto.auto.mode">
4234 <fo:block xsl:use-attribute-sets="drama.titlepage.recto.style">
4235 <xsl:apply-templates select="." mode="drama.titlepage.recto.mode"/>
4236 </fo:block>
4237 </xsl:template>
4238
4239 <xsl:template match="d:copyright" mode="drama.titlepage.recto.auto.mode">
4240 <fo:block xsl:use-attribute-sets="drama.titlepage.recto.style">
4241 <xsl:apply-templates select="." mode="drama.titlepage.recto.mode"/>
4242 </fo:block>
4243 </xsl:template>
4244
4245 <xsl:template match="d:legalnotice" mode="drama.titlepage.recto.auto.mode">
4246 <fo:block xsl:use-attribute-sets="drama.titlepage.recto.style">
4247 <xsl:apply-templates select="." mode="drama.titlepage.recto.mode"/>
4248 </fo:block>
4249 </xsl:template>
4250
4251 <xsl:template match="d:pubdate" mode="drama.titlepage.recto.auto.mode">
4252 <fo:block xsl:use-attribute-sets="drama.titlepage.recto.style">
4253 <xsl:apply-templates select="." mode="drama.titlepage.recto.mode"/>
4254 </fo:block>
4255 </xsl:template>
4256
4257 <xsl:template match="d:revision" mode="drama.titlepage.recto.auto.mode">
4258 <fo:block xsl:use-attribute-sets="drama.titlepage.recto.style">
4259 <xsl:apply-templates select="." mode="drama.titlepage.recto.mode"/>
4260 </fo:block>
4261 </xsl:template>
4262
4263 <xsl:template match="d:revhistory" mode="drama.titlepage.recto.auto.mode">
4264 <fo:block xsl:use-attribute-sets="drama.titlepage.recto.style">
4265 <xsl:apply-templates select="." mode="drama.titlepage.recto.mode"/>
4266 </fo:block>
4267 </xsl:template>
4268
4269 <xsl:template match="d:abstract" mode="drama.titlepage.recto.auto.mode">
4270 <fo:block xsl:use-attribute-sets="drama.titlepage.recto.style">
4271 <xsl:apply-templates select="." mode="drama.titlepage.recto.mode"/>
4272 </fo:block>
4273 </xsl:template>
4274
4275 <xsl:template match="d:itermset" mode="drama.titlepage.recto.auto.mode">
4276 <fo:block xsl:use-attribute-sets="drama.titlepage.recto.style">
4277 <xsl:apply-templates select="." mode="drama.titlepage.recto.mode"/>
4278 </fo:block>
4279 </xsl:template>
4280
4281 <xsl:template name="poetry.titlepage.recto">
4282 <xsl:choose>
4283 <xsl:when test="d:poetryinfo/d:title">
4284 <xsl:apply-templates mode="poetry.titlepage.recto.auto.mode" select="d:poetryinfo/d:title"/>
4285 </xsl:when>
4286 <xsl:when test="d:docinfo/d:title">
4287 <xsl:apply-templates mode="poetry.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
4288 </xsl:when>
4289 <xsl:when test="d:info/d:title">
4290 <xsl:apply-templates mode="poetry.titlepage.recto.auto.mode" select="d:info/d:title"/>
4291 </xsl:when>
4292 <xsl:when test="d:title">
4293 <xsl:apply-templates mode="poetry.titlepage.recto.auto.mode" select="d:title"/>
4294 </xsl:when>
4295 </xsl:choose>
4296
4297 <xsl:choose>
4298 <xsl:when test="d:poetryinfo/d:subtitle">
4299 <xsl:apply-templates mode="poetry.titlepage.recto.auto.mode" select="d:poetryinfo/d:subtitle"/>
4300 </xsl:when>
4301 <xsl:when test="d:docinfo/d:subtitle">
4302 <xsl:apply-templates mode="poetry.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
4303 </xsl:when>
4304 <xsl:when test="d:info/d:subtitle">
4305 <xsl:apply-templates mode="poetry.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
4306 </xsl:when>
4307 <xsl:when test="d:subtitle">
4308 <xsl:apply-templates mode="poetry.titlepage.recto.auto.mode" select="d:subtitle"/>
4309 </xsl:when>
4310 </xsl:choose>
4311
4312 <xsl:apply-templates mode="poetry.titlepage.recto.auto.mode" select="d:poetryinfo/d:corpauthor"/>
4313 <xsl:apply-templates mode="poetry.titlepage.recto.auto.mode" select="d:docinfo/d:corpauthor"/>
4314 <xsl:apply-templates mode="poetry.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
4315 <xsl:apply-templates mode="poetry.titlepage.recto.auto.mode" select="d:poetryinfo/d:authorgroup"/>
4316 <xsl:apply-templates mode="poetry.titlepage.recto.auto.mode" select="d:docinfo/d:authorgroup"/>
4317 <xsl:apply-templates mode="poetry.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
4318 <xsl:apply-templates mode="poetry.titlepage.recto.auto.mode" select="d:poetryinfo/d:author"/>
4319 <xsl:apply-templates mode="poetry.titlepage.recto.auto.mode" select="d:docinfo/d:author"/>
4320 <xsl:apply-templates mode="poetry.titlepage.recto.auto.mode" select="d:info/d:author"/>
4321 <xsl:apply-templates mode="poetry.titlepage.recto.auto.mode" select="d:poetryinfo/d:othercredit"/>
4322 <xsl:apply-templates mode="poetry.titlepage.recto.auto.mode" select="d:docinfo/d:othercredit"/>
4323 <xsl:apply-templates mode="poetry.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
4324 <xsl:apply-templates mode="poetry.titlepage.recto.auto.mode" select="d:poetryinfo/d:releaseinfo"/>
4325 <xsl:apply-templates mode="poetry.titlepage.recto.auto.mode" select="d:docinfo/d:releaseinfo"/>
4326 <xsl:apply-templates mode="poetry.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
4327 <xsl:apply-templates mode="poetry.titlepage.recto.auto.mode" select="d:poetryinfo/d:copyright"/>
4328 <xsl:apply-templates mode="poetry.titlepage.recto.auto.mode" select="d:docinfo/d:copyright"/>
4329 <xsl:apply-templates mode="poetry.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
4330 <xsl:apply-templates mode="poetry.titlepage.recto.auto.mode" select="d:poetryinfo/d:legalnotice"/>
4331 <xsl:apply-templates mode="poetry.titlepage.recto.auto.mode" select="d:docinfo/d:legalnotice"/>
4332 <xsl:apply-templates mode="poetry.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
4333 <xsl:apply-templates mode="poetry.titlepage.recto.auto.mode" select="d:poetryinfo/d:pubdate"/>
4334 <xsl:apply-templates mode="poetry.titlepage.recto.auto.mode" select="d:docinfo/d:pubdate"/>
4335 <xsl:apply-templates mode="poetry.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
4336 <xsl:apply-templates mode="poetry.titlepage.recto.auto.mode" select="d:poetryinfo/d:revision"/>
4337 <xsl:apply-templates mode="poetry.titlepage.recto.auto.mode" select="d:docinfo/d:revision"/>
4338 <xsl:apply-templates mode="poetry.titlepage.recto.auto.mode" select="d:info/d:revision"/>
4339 <xsl:apply-templates mode="poetry.titlepage.recto.auto.mode" select="d:poetryinfo/d:revhistory"/>
4340 <xsl:apply-templates mode="poetry.titlepage.recto.auto.mode" select="d:docinfo/d:revhistory"/>
4341 <xsl:apply-templates mode="poetry.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
4342 <xsl:apply-templates mode="poetry.titlepage.recto.auto.mode" select="d:poetryinfo/d:abstract"/>
4343 <xsl:apply-templates mode="poetry.titlepage.recto.auto.mode" select="d:docinfo/d:abstract"/>
4344 <xsl:apply-templates mode="poetry.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
4345 <xsl:apply-templates mode="poetry.titlepage.recto.auto.mode" select="d:poetryinfo/d:itermset"/>
4346 <xsl:apply-templates mode="poetry.titlepage.recto.auto.mode" select="d:docinfo/d:itermset"/>
4347 <xsl:apply-templates mode="poetry.titlepage.recto.auto.mode" select="d:info/d:itermset"/>
4348 </xsl:template>
4349
4350 <xsl:template name="poetry.titlepage.verso">
4351 </xsl:template>
4352
4353 <xsl:template name="poetry.titlepage.separator">
4354 </xsl:template>
4355
4356 <xsl:template name="poetry.titlepage.before.recto">
4357 </xsl:template>
4358
4359 <xsl:template name="poetry.titlepage.before.verso">
4360 </xsl:template>
4361
4362 <xsl:template name="poetry.titlepage">
4363 <fo:block>
4364 <xsl:variable name="recto.content">
4365 <xsl:call-template name="poetry.titlepage.before.recto"/>
4366 <xsl:call-template name="poetry.titlepage.recto"/>
4367 </xsl:variable>
4368 <xsl:variable name="recto.elements.count">
4369 <xsl:choose>
4370 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4371 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4372 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4373 <xsl:otherwise>1</xsl:otherwise>
4374 </xsl:choose>
4375 </xsl:variable>
4376 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
4377 <fo:block><xsl:copy-of select="$recto.content"/></fo:block>
4378 </xsl:if>
4379 <xsl:variable name="verso.content">
4380 <xsl:call-template name="poetry.titlepage.before.verso"/>
4381 <xsl:call-template name="poetry.titlepage.verso"/>
4382 </xsl:variable>
4383 <xsl:variable name="verso.elements.count">
4384 <xsl:choose>
4385 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4386 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4387 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4388 <xsl:otherwise>1</xsl:otherwise>
4389 </xsl:choose>
4390 </xsl:variable>
4391 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
4392 <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
4393 </xsl:if>
4394 <xsl:call-template name="poetry.titlepage.separator"/>
4395 </fo:block>
4396 </xsl:template>
4397
4398 <xsl:template match="*" mode="poetry.titlepage.recto.mode">
4399 <!-- if an element isn't found in this mode, -->
4400 <!-- try the generic titlepage.mode -->
4401 <xsl:apply-templates select="." mode="titlepage.mode"/>
4402 </xsl:template>
4403
4404 <xsl:template match="*" mode="poetry.titlepage.verso.mode">
4405 <!-- if an element isn't found in this mode, -->
4406 <!-- try the generic titlepage.mode -->
4407 <xsl:apply-templates select="." mode="titlepage.mode"/>
4408 </xsl:template>
4409
4410 <xsl:template match="d:title" mode="poetry.titlepage.recto.auto.mode">
4411 <fo:block xsl:use-attribute-sets="poetry.titlepage.recto.style" margin-left="{$title.margin.left}" font-family="{$title.fontset}">
4412 <xsl:apply-templates select="." mode="poetry.titlepage.recto.mode"/>
4413 </fo:block>
4414 </xsl:template>
4415
4416 <xsl:template match="d:subtitle" mode="poetry.titlepage.recto.auto.mode">
4417 <fo:block xsl:use-attribute-sets="poetry.titlepage.recto.style" font-family="{$title.fontset}">
4418 <xsl:apply-templates select="." mode="poetry.titlepage.recto.mode"/>
4419 </fo:block>
4420 </xsl:template>
4421
4422 <xsl:template match="d:corpauthor" mode="poetry.titlepage.recto.auto.mode">
4423 <fo:block xsl:use-attribute-sets="poetry.titlepage.recto.style">
4424 <xsl:apply-templates select="." mode="poetry.titlepage.recto.mode"/>
4425 </fo:block>
4426 </xsl:template>
4427
4428 <xsl:template match="d:authorgroup" mode="poetry.titlepage.recto.auto.mode">
4429 <fo:block xsl:use-attribute-sets="poetry.titlepage.recto.style">
4430 <xsl:apply-templates select="." mode="poetry.titlepage.recto.mode"/>
4431 </fo:block>
4432 </xsl:template>
4433
4434 <xsl:template match="d:author" mode="poetry.titlepage.recto.auto.mode">
4435 <fo:block xsl:use-attribute-sets="poetry.titlepage.recto.style">
4436 <xsl:apply-templates select="." mode="poetry.titlepage.recto.mode"/>
4437 </fo:block>
4438 </xsl:template>
4439
4440 <xsl:template match="d:othercredit" mode="poetry.titlepage.recto.auto.mode">
4441 <fo:block xsl:use-attribute-sets="poetry.titlepage.recto.style">
4442 <xsl:apply-templates select="." mode="poetry.titlepage.recto.mode"/>
4443 </fo:block>
4444 </xsl:template>
4445
4446 <xsl:template match="d:releaseinfo" mode="poetry.titlepage.recto.auto.mode">
4447 <fo:block xsl:use-attribute-sets="poetry.titlepage.recto.style">
4448 <xsl:apply-templates select="." mode="poetry.titlepage.recto.mode"/>
4449 </fo:block>
4450 </xsl:template>
4451
4452 <xsl:template match="d:copyright" mode="poetry.titlepage.recto.auto.mode">
4453 <fo:block xsl:use-attribute-sets="poetry.titlepage.recto.style">
4454 <xsl:apply-templates select="." mode="poetry.titlepage.recto.mode"/>
4455 </fo:block>
4456 </xsl:template>
4457
4458 <xsl:template match="d:legalnotice" mode="poetry.titlepage.recto.auto.mode">
4459 <fo:block xsl:use-attribute-sets="poetry.titlepage.recto.style">
4460 <xsl:apply-templates select="." mode="poetry.titlepage.recto.mode"/>
4461 </fo:block>
4462 </xsl:template>
4463
4464 <xsl:template match="d:pubdate" mode="poetry.titlepage.recto.auto.mode">
4465 <fo:block xsl:use-attribute-sets="poetry.titlepage.recto.style">
4466 <xsl:apply-templates select="." mode="poetry.titlepage.recto.mode"/>
4467 </fo:block>
4468 </xsl:template>
4469
4470 <xsl:template match="d:revision" mode="poetry.titlepage.recto.auto.mode">
4471 <fo:block xsl:use-attribute-sets="poetry.titlepage.recto.style">
4472 <xsl:apply-templates select="." mode="poetry.titlepage.recto.mode"/>
4473 </fo:block>
4474 </xsl:template>
4475
4476 <xsl:template match="d:revhistory" mode="poetry.titlepage.recto.auto.mode">
4477 <fo:block xsl:use-attribute-sets="poetry.titlepage.recto.style">
4478 <xsl:apply-templates select="." mode="poetry.titlepage.recto.mode"/>
4479 </fo:block>
4480 </xsl:template>
4481
4482 <xsl:template match="d:abstract" mode="poetry.titlepage.recto.auto.mode">
4483 <fo:block xsl:use-attribute-sets="poetry.titlepage.recto.style">
4484 <xsl:apply-templates select="." mode="poetry.titlepage.recto.mode"/>
4485 </fo:block>
4486 </xsl:template>
4487
4488 <xsl:template match="d:itermset" mode="poetry.titlepage.recto.auto.mode">
4489 <fo:block xsl:use-attribute-sets="poetry.titlepage.recto.style">
4490 <xsl:apply-templates select="." mode="poetry.titlepage.recto.mode"/>
4491 </fo:block>
4492 </xsl:template>
4493
4494 <xsl:template name="topic.titlepage.recto">
4495 <xsl:choose>
4496 <xsl:when test="d:topicinfo/d:title">
4497 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="d:topicinfo/d:title"/>
4498 </xsl:when>
4499 <xsl:when test="d:info/d:title">
4500 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="d:info/d:title"/>
4501 </xsl:when>
4502 <xsl:when test="d:title">
4503 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="d:title"/>
4504 </xsl:when>
4505 </xsl:choose>
4506
4507 <xsl:choose>
4508 <xsl:when test="d:topicinfo/d:subtitle">
4509 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="d:topicinfo/d:subtitle"/>
4510 </xsl:when>
4511 <xsl:when test="d:info/d:subtitle">
4512 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
4513 </xsl:when>
4514 <xsl:when test="d:subtitle">
4515 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="d:subtitle"/>
4516 </xsl:when>
4517 </xsl:choose>
4518
4519 </xsl:template>
4520
4521 <xsl:template name="topic.titlepage.verso">
4522 </xsl:template>
4523
4524 <xsl:template name="topic.titlepage.separator">
4525 </xsl:template>
4526
4527 <xsl:template name="topic.titlepage.before.recto">
4528 </xsl:template>
4529
4530 <xsl:template name="topic.titlepage.before.verso">
4531 </xsl:template>
4532
4533 <xsl:template name="topic.titlepage">
4534 <fo:block>
4535 <xsl:variable name="recto.content">
4536 <xsl:call-template name="topic.titlepage.before.recto"/>
4537 <xsl:call-template name="topic.titlepage.recto"/>
4538 </xsl:variable>
4539 <xsl:variable name="recto.elements.count">
4540 <xsl:choose>
4541 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4542 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4543 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4544 <xsl:otherwise>1</xsl:otherwise>
4545 </xsl:choose>
4546 </xsl:variable>
4547 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
4548 <fo:block><xsl:copy-of select="$recto.content"/></fo:block>
4549 </xsl:if>
4550 <xsl:variable name="verso.content">
4551 <xsl:call-template name="topic.titlepage.before.verso"/>
4552 <xsl:call-template name="topic.titlepage.verso"/>
4553 </xsl:variable>
4554 <xsl:variable name="verso.elements.count">
4555 <xsl:choose>
4556 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4557 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4558 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4559 <xsl:otherwise>1</xsl:otherwise>
4560 </xsl:choose>
4561 </xsl:variable>
4562 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
4563 <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
4564 </xsl:if>
4565 <xsl:call-template name="topic.titlepage.separator"/>
4566 </fo:block>
4567 </xsl:template>
4568
4569 <xsl:template match="*" mode="topic.titlepage.recto.mode">
4570 <!-- if an element isn't found in this mode, -->
4571 <!-- try the generic titlepage.mode -->
4572 <xsl:apply-templates select="." mode="titlepage.mode"/>
4573 </xsl:template>
4574
4575 <xsl:template match="*" mode="topic.titlepage.verso.mode">
4576 <!-- if an element isn't found in this mode, -->
4577 <!-- try the generic titlepage.mode -->
4578 <xsl:apply-templates select="." mode="titlepage.mode"/>
4579 </xsl:template>
4580
4581 <xsl:template match="d:title" mode="topic.titlepage.recto.auto.mode">
4582 <fo:block xsl:use-attribute-sets="topic.titlepage.recto.style" font-weight="bold" font-size="17.28pt" space-before="1em" space-after="1em" font-family="{$title.fontset}">
4583 <xsl:apply-templates select="." mode="topic.titlepage.recto.mode"/>
4584 </fo:block>
4585 </xsl:template>
4586
4587 <xsl:template match="d:subtitle" mode="topic.titlepage.recto.auto.mode">
4588 <fo:block xsl:use-attribute-sets="topic.titlepage.recto.style" font-family="{$title.fontset}">
4589 <xsl:apply-templates select="." mode="topic.titlepage.recto.mode"/>
4590 </fo:block>
4591 </xsl:template>
4592
4593 <xsl:template name="bibliography.titlepage.recto">
4594 <fo:block xsl:use-attribute-sets="bibliography.titlepage.recto.style" margin-left="{$title.margin.left}" font-size="24.8832pt" font-family="{$title.fontset}" font-weight="bold">
4595 <xsl:call-template name="component.title">
4596 <xsl:with-param name="node" select="ancestor-or-self::d:bibliography[1]"/>
4597 </xsl:call-template></fo:block>
4598 <xsl:choose>
4599 <xsl:when test="d:bibliographyinfo/d:subtitle">
4600 <xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="d:bibliographyinfo/d:subtitle"/>
4601 </xsl:when>
4602 <xsl:when test="d:docinfo/d:subtitle">
4603 <xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
4604 </xsl:when>
4605 <xsl:when test="d:info/d:subtitle">
4606 <xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
4607 </xsl:when>
4608 <xsl:when test="d:subtitle">
4609 <xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="d:subtitle"/>
4610 </xsl:when>
4611 </xsl:choose>
4612
4613 <xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="d:bibliographyinfo/d:itermset"/>
4614 <xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="d:docinfo/d:itermset"/>
4615 <xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="d:info/d:itermset"/>
4616 </xsl:template>
4617
4618 <xsl:template name="bibliography.titlepage.verso">
4619 </xsl:template>
4620
4621 <xsl:template name="bibliography.titlepage.separator">
4622 </xsl:template>
4623
4624 <xsl:template name="bibliography.titlepage.before.recto">
4625 </xsl:template>
4626
4627 <xsl:template name="bibliography.titlepage.before.verso">
4628 </xsl:template>
4629
4630 <xsl:template name="bibliography.titlepage">
4631 <fo:block>
4632 <xsl:variable name="recto.content">
4633 <xsl:call-template name="bibliography.titlepage.before.recto"/>
4634 <xsl:call-template name="bibliography.titlepage.recto"/>
4635 </xsl:variable>
4636 <xsl:variable name="recto.elements.count">
4637 <xsl:choose>
4638 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4639 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4640 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4641 <xsl:otherwise>1</xsl:otherwise>
4642 </xsl:choose>
4643 </xsl:variable>
4644 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
4645 <fo:block><xsl:copy-of select="$recto.content"/></fo:block>
4646 </xsl:if>
4647 <xsl:variable name="verso.content">
4648 <xsl:call-template name="bibliography.titlepage.before.verso"/>
4649 <xsl:call-template name="bibliography.titlepage.verso"/>
4650 </xsl:variable>
4651 <xsl:variable name="verso.elements.count">
4652 <xsl:choose>
4653 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4654 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4655 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4656 <xsl:otherwise>1</xsl:otherwise>
4657 </xsl:choose>
4658 </xsl:variable>
4659 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
4660 <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
4661 </xsl:if>
4662 <xsl:call-template name="bibliography.titlepage.separator"/>
4663 </fo:block>
4664 </xsl:template>
4665
4666 <xsl:template match="*" mode="bibliography.titlepage.recto.mode">
4667 <!-- if an element isn't found in this mode, -->
4668 <!-- try the generic titlepage.mode -->
4669 <xsl:apply-templates select="." mode="titlepage.mode"/>
4670 </xsl:template>
4671
4672 <xsl:template match="*" mode="bibliography.titlepage.verso.mode">
4673 <!-- if an element isn't found in this mode, -->
4674 <!-- try the generic titlepage.mode -->
4675 <xsl:apply-templates select="." mode="titlepage.mode"/>
4676 </xsl:template>
4677
4678 <xsl:template match="d:subtitle" mode="bibliography.titlepage.recto.auto.mode">
4679 <fo:block xsl:use-attribute-sets="bibliography.titlepage.recto.style" font-family="{$title.fontset}">
4680 <xsl:apply-templates select="." mode="bibliography.titlepage.recto.mode"/>
4681 </fo:block>
4682 </xsl:template>
4683
4684 <xsl:template match="d:itermset" mode="bibliography.titlepage.recto.auto.mode">
4685 <fo:block xsl:use-attribute-sets="bibliography.titlepage.recto.style">
4686 <xsl:apply-templates select="." mode="bibliography.titlepage.recto.mode"/>
4687 </fo:block>
4688 </xsl:template>
4689
4690 <xsl:template name="bibliodiv.titlepage.recto">
4691 <xsl:choose>
4692 <xsl:when test="d:bibliodivinfo/d:title">
4693 <xsl:apply-templates mode="bibliodiv.titlepage.recto.auto.mode" select="d:bibliodivinfo/d:title"/>
4694 </xsl:when>
4695 <xsl:when test="d:docinfo/d:title">
4696 <xsl:apply-templates mode="bibliodiv.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
4697 </xsl:when>
4698 <xsl:when test="d:info/d:title">
4699 <xsl:apply-templates mode="bibliodiv.titlepage.recto.auto.mode" select="d:info/d:title"/>
4700 </xsl:when>
4701 <xsl:when test="d:title">
4702 <xsl:apply-templates mode="bibliodiv.titlepage.recto.auto.mode" select="d:title"/>
4703 </xsl:when>
4704 </xsl:choose>
4705
4706 <xsl:choose>
4707 <xsl:when test="d:bibliodivinfo/d:subtitle">
4708 <xsl:apply-templates mode="bibliodiv.titlepage.recto.auto.mode" select="d:bibliodivinfo/d:subtitle"/>
4709 </xsl:when>
4710 <xsl:when test="d:docinfo/d:subtitle">
4711 <xsl:apply-templates mode="bibliodiv.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
4712 </xsl:when>
4713 <xsl:when test="d:info/d:subtitle">
4714 <xsl:apply-templates mode="bibliodiv.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
4715 </xsl:when>
4716 <xsl:when test="d:subtitle">
4717 <xsl:apply-templates mode="bibliodiv.titlepage.recto.auto.mode" select="d:subtitle"/>
4718 </xsl:when>
4719 </xsl:choose>
4720
4721 <xsl:apply-templates mode="bibliodiv.titlepage.recto.auto.mode" select="d:bibliodivinfo/d:itermset"/>
4722 <xsl:apply-templates mode="bibliodiv.titlepage.recto.auto.mode" select="d:docinfo/d:itermset"/>
4723 <xsl:apply-templates mode="bibliodiv.titlepage.recto.auto.mode" select="d:info/d:itermset"/>
4724 </xsl:template>
4725
4726 <xsl:template name="bibliodiv.titlepage.verso">
4727 </xsl:template>
4728
4729 <xsl:template name="bibliodiv.titlepage.separator">
4730 </xsl:template>
4731
4732 <xsl:template name="bibliodiv.titlepage.before.recto">
4733 </xsl:template>
4734
4735 <xsl:template name="bibliodiv.titlepage.before.verso">
4736 </xsl:template>
4737
4738 <xsl:template name="bibliodiv.titlepage">
4739 <fo:block>
4740 <xsl:variable name="recto.content">
4741 <xsl:call-template name="bibliodiv.titlepage.before.recto"/>
4742 <xsl:call-template name="bibliodiv.titlepage.recto"/>
4743 </xsl:variable>
4744 <xsl:variable name="recto.elements.count">
4745 <xsl:choose>
4746 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4747 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4748 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4749 <xsl:otherwise>1</xsl:otherwise>
4750 </xsl:choose>
4751 </xsl:variable>
4752 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
4753 <fo:block><xsl:copy-of select="$recto.content"/></fo:block>
4754 </xsl:if>
4755 <xsl:variable name="verso.content">
4756 <xsl:call-template name="bibliodiv.titlepage.before.verso"/>
4757 <xsl:call-template name="bibliodiv.titlepage.verso"/>
4758 </xsl:variable>
4759 <xsl:variable name="verso.elements.count">
4760 <xsl:choose>
4761 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4762 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4763 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4764 <xsl:otherwise>1</xsl:otherwise>
4765 </xsl:choose>
4766 </xsl:variable>
4767 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
4768 <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
4769 </xsl:if>
4770 <xsl:call-template name="bibliodiv.titlepage.separator"/>
4771 </fo:block>
4772 </xsl:template>
4773
4774 <xsl:template match="*" mode="bibliodiv.titlepage.recto.mode">
4775 <!-- if an element isn't found in this mode, -->
4776 <!-- try the generic titlepage.mode -->
4777 <xsl:apply-templates select="." mode="titlepage.mode"/>
4778 </xsl:template>
4779
4780 <xsl:template match="*" mode="bibliodiv.titlepage.verso.mode">
4781 <!-- if an element isn't found in this mode, -->
4782 <!-- try the generic titlepage.mode -->
4783 <xsl:apply-templates select="." mode="titlepage.mode"/>
4784 </xsl:template>
4785
4786 <xsl:template match="d:title" mode="bibliodiv.titlepage.recto.auto.mode">
4787 <fo:block xsl:use-attribute-sets="bibliodiv.titlepage.recto.style" margin-left="{$title.margin.left}" font-size="20.736pt" font-family="{$title.fontset}" font-weight="bold">
4788 <xsl:call-template name="component.title">
4789 <xsl:with-param name="node" select="ancestor-or-self::d:bibliodiv[1]"/>
4790 </xsl:call-template>
4791 </fo:block>
4792 </xsl:template>
4793
4794 <xsl:template match="d:subtitle" mode="bibliodiv.titlepage.recto.auto.mode">
4795 <fo:block xsl:use-attribute-sets="bibliodiv.titlepage.recto.style" font-family="{$title.fontset}">
4796 <xsl:apply-templates select="." mode="bibliodiv.titlepage.recto.mode"/>
4797 </fo:block>
4798 </xsl:template>
4799
4800 <xsl:template match="d:itermset" mode="bibliodiv.titlepage.recto.auto.mode">
4801 <fo:block xsl:use-attribute-sets="bibliodiv.titlepage.recto.style">
4802 <xsl:apply-templates select="." mode="bibliodiv.titlepage.recto.mode"/>
4803 </fo:block>
4804 </xsl:template>
4805
4806 <xsl:template name="glossary.titlepage.recto">
4807 <fo:block xsl:use-attribute-sets="glossary.titlepage.recto.style" margin-left="{$title.margin.left}" font-size="24.8832pt" font-family="{$title.fontset}" font-weight="bold">
4808 <xsl:call-template name="component.title">
4809 <xsl:with-param name="node" select="ancestor-or-self::d:glossary[1]"/>
4810 </xsl:call-template></fo:block>
4811 <xsl:choose>
4812 <xsl:when test="d:glossaryinfo/d:subtitle">
4813 <xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="d:glossaryinfo/d:subtitle"/>
4814 </xsl:when>
4815 <xsl:when test="d:docinfo/d:subtitle">
4816 <xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
4817 </xsl:when>
4818 <xsl:when test="d:info/d:subtitle">
4819 <xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
4820 </xsl:when>
4821 <xsl:when test="d:subtitle">
4822 <xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="d:subtitle"/>
4823 </xsl:when>
4824 </xsl:choose>
4825
4826 <xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="d:glossaryinfo/d:itermset"/>
4827 <xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="d:docinfo/d:itermset"/>
4828 <xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="d:info/d:itermset"/>
4829 </xsl:template>
4830
4831 <xsl:template name="glossary.titlepage.verso">
4832 </xsl:template>
4833
4834 <xsl:template name="glossary.titlepage.separator">
4835 </xsl:template>
4836
4837 <xsl:template name="glossary.titlepage.before.recto">
4838 </xsl:template>
4839
4840 <xsl:template name="glossary.titlepage.before.verso">
4841 </xsl:template>
4842
4843 <xsl:template name="glossary.titlepage">
4844 <fo:block>
4845 <xsl:variable name="recto.content">
4846 <xsl:call-template name="glossary.titlepage.before.recto"/>
4847 <xsl:call-template name="glossary.titlepage.recto"/>
4848 </xsl:variable>
4849 <xsl:variable name="recto.elements.count">
4850 <xsl:choose>
4851 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4852 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4853 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4854 <xsl:otherwise>1</xsl:otherwise>
4855 </xsl:choose>
4856 </xsl:variable>
4857 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
4858 <fo:block><xsl:copy-of select="$recto.content"/></fo:block>
4859 </xsl:if>
4860 <xsl:variable name="verso.content">
4861 <xsl:call-template name="glossary.titlepage.before.verso"/>
4862 <xsl:call-template name="glossary.titlepage.verso"/>
4863 </xsl:variable>
4864 <xsl:variable name="verso.elements.count">
4865 <xsl:choose>
4866 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4867 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4868 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4869 <xsl:otherwise>1</xsl:otherwise>
4870 </xsl:choose>
4871 </xsl:variable>
4872 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
4873 <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
4874 </xsl:if>
4875 <xsl:call-template name="glossary.titlepage.separator"/>
4876 </fo:block>
4877 </xsl:template>
4878
4879 <xsl:template match="*" mode="glossary.titlepage.recto.mode">
4880 <!-- if an element isn't found in this mode, -->
4881 <!-- try the generic titlepage.mode -->
4882 <xsl:apply-templates select="." mode="titlepage.mode"/>
4883 </xsl:template>
4884
4885 <xsl:template match="*" mode="glossary.titlepage.verso.mode">
4886 <!-- if an element isn't found in this mode, -->
4887 <!-- try the generic titlepage.mode -->
4888 <xsl:apply-templates select="." mode="titlepage.mode"/>
4889 </xsl:template>
4890
4891 <xsl:template match="d:subtitle" mode="glossary.titlepage.recto.auto.mode">
4892 <fo:block xsl:use-attribute-sets="glossary.titlepage.recto.style" font-family="{$title.fontset}">
4893 <xsl:apply-templates select="." mode="glossary.titlepage.recto.mode"/>
4894 </fo:block>
4895 </xsl:template>
4896
4897 <xsl:template match="d:itermset" mode="glossary.titlepage.recto.auto.mode">
4898 <fo:block xsl:use-attribute-sets="glossary.titlepage.recto.style">
4899 <xsl:apply-templates select="." mode="glossary.titlepage.recto.mode"/>
4900 </fo:block>
4901 </xsl:template>
4902
4903 <xsl:template name="glossdiv.titlepage.recto">
4904 <xsl:choose>
4905 <xsl:when test="d:glossdivinfo/d:title">
4906 <xsl:apply-templates mode="glossdiv.titlepage.recto.auto.mode" select="d:glossdivinfo/d:title"/>
4907 </xsl:when>
4908 <xsl:when test="d:docinfo/d:title">
4909 <xsl:apply-templates mode="glossdiv.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
4910 </xsl:when>
4911 <xsl:when test="d:info/d:title">
4912 <xsl:apply-templates mode="glossdiv.titlepage.recto.auto.mode" select="d:info/d:title"/>
4913 </xsl:when>
4914 <xsl:when test="d:title">
4915 <xsl:apply-templates mode="glossdiv.titlepage.recto.auto.mode" select="d:title"/>
4916 </xsl:when>
4917 </xsl:choose>
4918
4919 <xsl:choose>
4920 <xsl:when test="d:glossdivinfo/d:subtitle">
4921 <xsl:apply-templates mode="glossdiv.titlepage.recto.auto.mode" select="d:glossdivinfo/d:subtitle"/>
4922 </xsl:when>
4923 <xsl:when test="d:docinfo/d:subtitle">
4924 <xsl:apply-templates mode="glossdiv.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
4925 </xsl:when>
4926 <xsl:when test="d:info/d:subtitle">
4927 <xsl:apply-templates mode="glossdiv.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
4928 </xsl:when>
4929 <xsl:when test="d:subtitle">
4930 <xsl:apply-templates mode="glossdiv.titlepage.recto.auto.mode" select="d:subtitle"/>
4931 </xsl:when>
4932 </xsl:choose>
4933
4934 <xsl:apply-templates mode="glossdiv.titlepage.recto.auto.mode" select="d:glossdivinfo/d:itermset"/>
4935 <xsl:apply-templates mode="glossdiv.titlepage.recto.auto.mode" select="d:docinfo/d:itermset"/>
4936 <xsl:apply-templates mode="glossdiv.titlepage.recto.auto.mode" select="d:info/d:itermset"/>
4937 </xsl:template>
4938
4939 <xsl:template name="glossdiv.titlepage.verso">
4940 </xsl:template>
4941
4942 <xsl:template name="glossdiv.titlepage.separator">
4943 </xsl:template>
4944
4945 <xsl:template name="glossdiv.titlepage.before.recto">
4946 </xsl:template>
4947
4948 <xsl:template name="glossdiv.titlepage.before.verso">
4949 </xsl:template>
4950
4951 <xsl:template name="glossdiv.titlepage">
4952 <fo:block>
4953 <xsl:variable name="recto.content">
4954 <xsl:call-template name="glossdiv.titlepage.before.recto"/>
4955 <xsl:call-template name="glossdiv.titlepage.recto"/>
4956 </xsl:variable>
4957 <xsl:variable name="recto.elements.count">
4958 <xsl:choose>
4959 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4960 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4961 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
4962 <xsl:otherwise>1</xsl:otherwise>
4963 </xsl:choose>
4964 </xsl:variable>
4965 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
4966 <fo:block><xsl:copy-of select="$recto.content"/></fo:block>
4967 </xsl:if>
4968 <xsl:variable name="verso.content">
4969 <xsl:call-template name="glossdiv.titlepage.before.verso"/>
4970 <xsl:call-template name="glossdiv.titlepage.verso"/>
4971 </xsl:variable>
4972 <xsl:variable name="verso.elements.count">
4973 <xsl:choose>
4974 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4975 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
4976 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
4977 <xsl:otherwise>1</xsl:otherwise>
4978 </xsl:choose>
4979 </xsl:variable>
4980 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
4981 <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
4982 </xsl:if>
4983 <xsl:call-template name="glossdiv.titlepage.separator"/>
4984 </fo:block>
4985 </xsl:template>
4986
4987 <xsl:template match="*" mode="glossdiv.titlepage.recto.mode">
4988 <!-- if an element isn't found in this mode, -->
4989 <!-- try the generic titlepage.mode -->
4990 <xsl:apply-templates select="." mode="titlepage.mode"/>
4991 </xsl:template>
4992
4993 <xsl:template match="*" mode="glossdiv.titlepage.verso.mode">
4994 <!-- if an element isn't found in this mode, -->
4995 <!-- try the generic titlepage.mode -->
4996 <xsl:apply-templates select="." mode="titlepage.mode"/>
4997 </xsl:template>
4998
4999 <xsl:template match="d:title" mode="glossdiv.titlepage.recto.auto.mode">
5000 <fo:block xsl:use-attribute-sets="glossdiv.titlepage.recto.style" margin-left="{$title.margin.left}" font-size="20.736pt" font-family="{$title.fontset}" font-weight="bold">
5001 <xsl:call-template name="component.title">
5002 <xsl:with-param name="node" select="ancestor-or-self::d:glossdiv[1]"/>
5003 </xsl:call-template>
5004 </fo:block>
5005 </xsl:template>
5006
5007 <xsl:template match="d:subtitle" mode="glossdiv.titlepage.recto.auto.mode">
5008 <fo:block xsl:use-attribute-sets="glossdiv.titlepage.recto.style" font-family="{$title.fontset}">
5009 <xsl:apply-templates select="." mode="glossdiv.titlepage.recto.mode"/>
5010 </fo:block>
5011 </xsl:template>
5012
5013 <xsl:template match="d:itermset" mode="glossdiv.titlepage.recto.auto.mode">
5014 <fo:block xsl:use-attribute-sets="glossdiv.titlepage.recto.style">
5015 <xsl:apply-templates select="." mode="glossdiv.titlepage.recto.mode"/>
5016 </fo:block>
5017 </xsl:template>
5018
5019 <xsl:template name="index.titlepage.recto">
5020 <fo:block xsl:use-attribute-sets="index.titlepage.recto.style" margin-left="0pt" font-size="24.8832pt" font-family="{$title.fontset}" font-weight="bold">
5021 <xsl:call-template name="component.title">
5022 <xsl:with-param name="node" select="ancestor-or-self::d:index[1]"/>
5023 <xsl:with-param name="pagewide" select="1"/>
5024 </xsl:call-template></fo:block>
5025 <xsl:choose>
5026 <xsl:when test="d:indexinfo/d:subtitle">
5027 <xsl:apply-templates mode="index.titlepage.recto.auto.mode" select="d:indexinfo/d:subtitle"/>
5028 </xsl:when>
5029 <xsl:when test="d:docinfo/d:subtitle">
5030 <xsl:apply-templates mode="index.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
5031 </xsl:when>
5032 <xsl:when test="d:info/d:subtitle">
5033 <xsl:apply-templates mode="index.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
5034 </xsl:when>
5035 <xsl:when test="d:subtitle">
5036 <xsl:apply-templates mode="index.titlepage.recto.auto.mode" select="d:subtitle"/>
5037 </xsl:when>
5038 </xsl:choose>
5039
5040 <xsl:apply-templates mode="index.titlepage.recto.auto.mode" select="d:indexinfo/d:itermset"/>
5041 <xsl:apply-templates mode="index.titlepage.recto.auto.mode" select="d:docinfo/d:itermset"/>
5042 <xsl:apply-templates mode="index.titlepage.recto.auto.mode" select="d:info/d:itermset"/>
5043 </xsl:template>
5044
5045 <xsl:template name="index.titlepage.verso">
5046 </xsl:template>
5047
5048 <xsl:template name="index.titlepage.separator">
5049 </xsl:template>
5050
5051 <xsl:template name="index.titlepage.before.recto">
5052 </xsl:template>
5053
5054 <xsl:template name="index.titlepage.before.verso">
5055 </xsl:template>
5056
5057 <xsl:template name="index.titlepage">
5058 <fo:block>
5059 <xsl:variable name="recto.content">
5060 <xsl:call-template name="index.titlepage.before.recto"/>
5061 <xsl:call-template name="index.titlepage.recto"/>
5062 </xsl:variable>
5063 <xsl:variable name="recto.elements.count">
5064 <xsl:choose>
5065 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
5066 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
5067 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
5068 <xsl:otherwise>1</xsl:otherwise>
5069 </xsl:choose>
5070 </xsl:variable>
5071 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
5072 <fo:block><xsl:copy-of select="$recto.content"/></fo:block>
5073 </xsl:if>
5074 <xsl:variable name="verso.content">
5075 <xsl:call-template name="index.titlepage.before.verso"/>
5076 <xsl:call-template name="index.titlepage.verso"/>
5077 </xsl:variable>
5078 <xsl:variable name="verso.elements.count">
5079 <xsl:choose>
5080 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
5081 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
5082 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
5083 <xsl:otherwise>1</xsl:otherwise>
5084 </xsl:choose>
5085 </xsl:variable>
5086 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
5087 <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
5088 </xsl:if>
5089 <xsl:call-template name="index.titlepage.separator"/>
5090 </fo:block>
5091 </xsl:template>
5092
5093 <xsl:template match="*" mode="index.titlepage.recto.mode">
5094 <!-- if an element isn't found in this mode, -->
5095 <!-- try the generic titlepage.mode -->
5096 <xsl:apply-templates select="." mode="titlepage.mode"/>
5097 </xsl:template>
5098
5099 <xsl:template match="*" mode="index.titlepage.verso.mode">
5100 <!-- if an element isn't found in this mode, -->
5101 <!-- try the generic titlepage.mode -->
5102 <xsl:apply-templates select="." mode="titlepage.mode"/>
5103 </xsl:template>
5104
5105 <xsl:template match="d:subtitle" mode="index.titlepage.recto.auto.mode">
5106 <fo:block xsl:use-attribute-sets="index.titlepage.recto.style" font-family="{$title.fontset}">
5107 <xsl:apply-templates select="." mode="index.titlepage.recto.mode"/>
5108 </fo:block>
5109 </xsl:template>
5110
5111 <xsl:template match="d:itermset" mode="index.titlepage.recto.auto.mode">
5112 <fo:block xsl:use-attribute-sets="index.titlepage.recto.style">
5113 <xsl:apply-templates select="." mode="index.titlepage.recto.mode"/>
5114 </fo:block>
5115 </xsl:template>
5116
5117 <xsl:template name="indexdiv.titlepage.recto">
5118 <fo:block xsl:use-attribute-sets="indexdiv.titlepage.recto.style">
5119 <xsl:call-template name="indexdiv.title">
5120 <xsl:with-param name="title" select="title"/>
5121 </xsl:call-template></fo:block>
5122 <xsl:choose>
5123 <xsl:when test="d:indexdivinfo/d:subtitle">
5124 <xsl:apply-templates mode="indexdiv.titlepage.recto.auto.mode" select="d:indexdivinfo/d:subtitle"/>
5125 </xsl:when>
5126 <xsl:when test="d:docinfo/d:subtitle">
5127 <xsl:apply-templates mode="indexdiv.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
5128 </xsl:when>
5129 <xsl:when test="d:info/d:subtitle">
5130 <xsl:apply-templates mode="indexdiv.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
5131 </xsl:when>
5132 <xsl:when test="d:subtitle">
5133 <xsl:apply-templates mode="indexdiv.titlepage.recto.auto.mode" select="d:subtitle"/>
5134 </xsl:when>
5135 </xsl:choose>
5136
5137 <xsl:apply-templates mode="indexdiv.titlepage.recto.auto.mode" select="d:indexdivinfo/d:itermset"/>
5138 <xsl:apply-templates mode="indexdiv.titlepage.recto.auto.mode" select="d:docinfo/d:itermset"/>
5139 <xsl:apply-templates mode="indexdiv.titlepage.recto.auto.mode" select="d:info/d:itermset"/>
5140 </xsl:template>
5141
5142 <xsl:template name="indexdiv.titlepage.verso">
5143 </xsl:template>
5144
5145 <xsl:template name="indexdiv.titlepage.separator">
5146 </xsl:template>
5147
5148 <xsl:template name="indexdiv.titlepage.before.recto">
5149 </xsl:template>
5150
5151 <xsl:template name="indexdiv.titlepage.before.verso">
5152 </xsl:template>
5153
5154 <xsl:template name="indexdiv.titlepage">
5155 <fo:block>
5156 <xsl:variable name="recto.content">
5157 <xsl:call-template name="indexdiv.titlepage.before.recto"/>
5158 <xsl:call-template name="indexdiv.titlepage.recto"/>
5159 </xsl:variable>
5160 <xsl:variable name="recto.elements.count">
5161 <xsl:choose>
5162 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
5163 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
5164 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
5165 <xsl:otherwise>1</xsl:otherwise>
5166 </xsl:choose>
5167 </xsl:variable>
5168 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
5169 <fo:block><xsl:copy-of select="$recto.content"/></fo:block>
5170 </xsl:if>
5171 <xsl:variable name="verso.content">
5172 <xsl:call-template name="indexdiv.titlepage.before.verso"/>
5173 <xsl:call-template name="indexdiv.titlepage.verso"/>
5174 </xsl:variable>
5175 <xsl:variable name="verso.elements.count">
5176 <xsl:choose>
5177 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
5178 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
5179 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
5180 <xsl:otherwise>1</xsl:otherwise>
5181 </xsl:choose>
5182 </xsl:variable>
5183 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
5184 <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
5185 </xsl:if>
5186 <xsl:call-template name="indexdiv.titlepage.separator"/>
5187 </fo:block>
5188 </xsl:template>
5189
5190 <xsl:template match="*" mode="indexdiv.titlepage.recto.mode">
5191 <!-- if an element isn't found in this mode, -->
5192 <!-- try the generic titlepage.mode -->
5193 <xsl:apply-templates select="." mode="titlepage.mode"/>
5194 </xsl:template>
5195
5196 <xsl:template match="*" mode="indexdiv.titlepage.verso.mode">
5197 <!-- if an element isn't found in this mode, -->
5198 <!-- try the generic titlepage.mode -->
5199 <xsl:apply-templates select="." mode="titlepage.mode"/>
5200 </xsl:template>
5201
5202 <xsl:template match="d:subtitle" mode="indexdiv.titlepage.recto.auto.mode">
5203 <fo:block xsl:use-attribute-sets="indexdiv.titlepage.recto.style" font-family="{$title.fontset}">
5204 <xsl:apply-templates select="." mode="indexdiv.titlepage.recto.mode"/>
5205 </fo:block>
5206 </xsl:template>
5207
5208 <xsl:template match="d:itermset" mode="indexdiv.titlepage.recto.auto.mode">
5209 <fo:block xsl:use-attribute-sets="indexdiv.titlepage.recto.style">
5210 <xsl:apply-templates select="." mode="indexdiv.titlepage.recto.mode"/>
5211 </fo:block>
5212 </xsl:template>
5213
5214 <xsl:template name="setindex.titlepage.recto">
5215 <fo:block xsl:use-attribute-sets="setindex.titlepage.recto.style" margin-left="0pt" font-size="24.8832pt" font-family="{$title.fontset}" font-weight="bold">
5216 <xsl:call-template name="component.title">
5217 <xsl:with-param name="node" select="ancestor-or-self::d:setindex[1]"/>
5218 <xsl:with-param name="pagewide" select="1"/>
5219 </xsl:call-template></fo:block>
5220 <xsl:choose>
5221 <xsl:when test="d:setindexinfo/d:subtitle">
5222 <xsl:apply-templates mode="setindex.titlepage.recto.auto.mode" select="d:setindexinfo/d:subtitle"/>
5223 </xsl:when>
5224 <xsl:when test="d:docinfo/d:subtitle">
5225 <xsl:apply-templates mode="setindex.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
5226 </xsl:when>
5227 <xsl:when test="d:info/d:subtitle">
5228 <xsl:apply-templates mode="setindex.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
5229 </xsl:when>
5230 <xsl:when test="d:subtitle">
5231 <xsl:apply-templates mode="setindex.titlepage.recto.auto.mode" select="d:subtitle"/>
5232 </xsl:when>
5233 </xsl:choose>
5234
5235 <xsl:apply-templates mode="setindex.titlepage.recto.auto.mode" select="d:setindexinfo/d:itermset"/>
5236 <xsl:apply-templates mode="setindex.titlepage.recto.auto.mode" select="d:docinfo/d:itermset"/>
5237 <xsl:apply-templates mode="setindex.titlepage.recto.auto.mode" select="d:info/d:itermset"/>
5238 </xsl:template>
5239
5240 <xsl:template name="setindex.titlepage.verso">
5241 </xsl:template>
5242
5243 <xsl:template name="setindex.titlepage.separator">
5244 </xsl:template>
5245
5246 <xsl:template name="setindex.titlepage.before.recto">
5247 </xsl:template>
5248
5249 <xsl:template name="setindex.titlepage.before.verso">
5250 </xsl:template>
5251
5252 <xsl:template name="setindex.titlepage">
5253 <fo:block>
5254 <xsl:variable name="recto.content">
5255 <xsl:call-template name="setindex.titlepage.before.recto"/>
5256 <xsl:call-template name="setindex.titlepage.recto"/>
5257 </xsl:variable>
5258 <xsl:variable name="recto.elements.count">
5259 <xsl:choose>
5260 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
5261 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
5262 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
5263 <xsl:otherwise>1</xsl:otherwise>
5264 </xsl:choose>
5265 </xsl:variable>
5266 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
5267 <fo:block><xsl:copy-of select="$recto.content"/></fo:block>
5268 </xsl:if>
5269 <xsl:variable name="verso.content">
5270 <xsl:call-template name="setindex.titlepage.before.verso"/>
5271 <xsl:call-template name="setindex.titlepage.verso"/>
5272 </xsl:variable>
5273 <xsl:variable name="verso.elements.count">
5274 <xsl:choose>
5275 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
5276 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
5277 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
5278 <xsl:otherwise>1</xsl:otherwise>
5279 </xsl:choose>
5280 </xsl:variable>
5281 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
5282 <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
5283 </xsl:if>
5284 <xsl:call-template name="setindex.titlepage.separator"/>
5285 </fo:block>
5286 </xsl:template>
5287
5288 <xsl:template match="*" mode="setindex.titlepage.recto.mode">
5289 <!-- if an element isn't found in this mode, -->
5290 <!-- try the generic titlepage.mode -->
5291 <xsl:apply-templates select="." mode="titlepage.mode"/>
5292 </xsl:template>
5293
5294 <xsl:template match="*" mode="setindex.titlepage.verso.mode">
5295 <!-- if an element isn't found in this mode, -->
5296 <!-- try the generic titlepage.mode -->
5297 <xsl:apply-templates select="." mode="titlepage.mode"/>
5298 </xsl:template>
5299
5300 <xsl:template match="d:subtitle" mode="setindex.titlepage.recto.auto.mode">
5301 <fo:block xsl:use-attribute-sets="setindex.titlepage.recto.style" font-family="{$title.fontset}">
5302 <xsl:apply-templates select="." mode="setindex.titlepage.recto.mode"/>
5303 </fo:block>
5304 </xsl:template>
5305
5306 <xsl:template match="d:itermset" mode="setindex.titlepage.recto.auto.mode">
5307 <fo:block xsl:use-attribute-sets="setindex.titlepage.recto.style">
5308 <xsl:apply-templates select="." mode="setindex.titlepage.recto.mode"/>
5309 </fo:block>
5310 </xsl:template>
5311
5312 <xsl:template name="colophon.titlepage.recto">
5313 <fo:block xsl:use-attribute-sets="colophon.titlepage.recto.style" margin-left="{$title.margin.left}" font-size="24.8832pt" font-family="{$title.fontset}" font-weight="bold">
5314 <xsl:call-template name="component.title">
5315 <xsl:with-param name="node" select="ancestor-or-self::d:colophon[1]"/>
5316 </xsl:call-template></fo:block>
5317 <xsl:choose>
5318 <xsl:when test="d:colophoninfo/d:subtitle">
5319 <xsl:apply-templates mode="colophon.titlepage.recto.auto.mode" select="d:colophoninfo/d:subtitle"/>
5320 </xsl:when>
5321 <xsl:when test="d:docinfo/d:subtitle">
5322 <xsl:apply-templates mode="colophon.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
5323 </xsl:when>
5324 <xsl:when test="d:info/d:subtitle">
5325 <xsl:apply-templates mode="colophon.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
5326 </xsl:when>
5327 <xsl:when test="d:subtitle">
5328 <xsl:apply-templates mode="colophon.titlepage.recto.auto.mode" select="d:subtitle"/>
5329 </xsl:when>
5330 </xsl:choose>
5331
5332 <xsl:apply-templates mode="colophon.titlepage.recto.auto.mode" select="d:colophoninfo/d:itermset"/>
5333 <xsl:apply-templates mode="colophon.titlepage.recto.auto.mode" select="d:docinfo/d:itermset"/>
5334 <xsl:apply-templates mode="colophon.titlepage.recto.auto.mode" select="d:info/d:itermset"/>
5335 </xsl:template>
5336
5337 <xsl:template name="colophon.titlepage.verso">
5338 </xsl:template>
5339
5340 <xsl:template name="colophon.titlepage.separator">
5341 </xsl:template>
5342
5343 <xsl:template name="colophon.titlepage.before.recto">
5344 </xsl:template>
5345
5346 <xsl:template name="colophon.titlepage.before.verso">
5347 </xsl:template>
5348
5349 <xsl:template name="colophon.titlepage">
5350 <fo:block>
5351 <xsl:variable name="recto.content">
5352 <xsl:call-template name="colophon.titlepage.before.recto"/>
5353 <xsl:call-template name="colophon.titlepage.recto"/>
5354 </xsl:variable>
5355 <xsl:variable name="recto.elements.count">
5356 <xsl:choose>
5357 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
5358 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
5359 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
5360 <xsl:otherwise>1</xsl:otherwise>
5361 </xsl:choose>
5362 </xsl:variable>
5363 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
5364 <fo:block><xsl:copy-of select="$recto.content"/></fo:block>
5365 </xsl:if>
5366 <xsl:variable name="verso.content">
5367 <xsl:call-template name="colophon.titlepage.before.verso"/>
5368 <xsl:call-template name="colophon.titlepage.verso"/>
5369 </xsl:variable>
5370 <xsl:variable name="verso.elements.count">
5371 <xsl:choose>
5372 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
5373 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
5374 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
5375 <xsl:otherwise>1</xsl:otherwise>
5376 </xsl:choose>
5377 </xsl:variable>
5378 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
5379 <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
5380 </xsl:if>
5381 <xsl:call-template name="colophon.titlepage.separator"/>
5382 </fo:block>
5383 </xsl:template>
5384
5385 <xsl:template match="*" mode="colophon.titlepage.recto.mode">
5386 <!-- if an element isn't found in this mode, -->
5387 <!-- try the generic titlepage.mode -->
5388 <xsl:apply-templates select="." mode="titlepage.mode"/>
5389 </xsl:template>
5390
5391 <xsl:template match="*" mode="colophon.titlepage.verso.mode">
5392 <!-- if an element isn't found in this mode, -->
5393 <!-- try the generic titlepage.mode -->
5394 <xsl:apply-templates select="." mode="titlepage.mode"/>
5395 </xsl:template>
5396
5397 <xsl:template match="d:subtitle" mode="colophon.titlepage.recto.auto.mode">
5398 <fo:block xsl:use-attribute-sets="colophon.titlepage.recto.style" font-family="{$title.fontset}">
5399 <xsl:apply-templates select="." mode="colophon.titlepage.recto.mode"/>
5400 </fo:block>
5401 </xsl:template>
5402
5403 <xsl:template match="d:itermset" mode="colophon.titlepage.recto.auto.mode">
5404 <fo:block xsl:use-attribute-sets="colophon.titlepage.recto.style">
5405 <xsl:apply-templates select="." mode="colophon.titlepage.recto.mode"/>
5406 </fo:block>
5407 </xsl:template>
5408
5409 <xsl:template name="sidebar.titlepage.recto">
5410 <xsl:choose>
5411 <xsl:when test="d:sidebarinfo/d:title">
5412 <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="d:sidebarinfo/d:title"/>
5413 </xsl:when>
5414 <xsl:when test="d:docinfo/d:title">
5415 <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
5416 </xsl:when>
5417 <xsl:when test="d:info/d:title">
5418 <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="d:info/d:title"/>
5419 </xsl:when>
5420 <xsl:when test="d:title">
5421 <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="d:title"/>
5422 </xsl:when>
5423 </xsl:choose>
5424
5425 <xsl:choose>
5426 <xsl:when test="d:sidebarinfo/d:subtitle">
5427 <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="d:sidebarinfo/d:subtitle"/>
5428 </xsl:when>
5429 <xsl:when test="d:docinfo/d:subtitle">
5430 <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
5431 </xsl:when>
5432 <xsl:when test="d:info/d:subtitle">
5433 <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
5434 </xsl:when>
5435 <xsl:when test="d:subtitle">
5436 <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="d:subtitle"/>
5437 </xsl:when>
5438 </xsl:choose>
5439
5440 <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="d:sidebarinfo/d:itermset"/>
5441 <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="d:docinfo/d:itermset"/>
5442 <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="d:info/d:itermset"/>
5443 </xsl:template>
5444
5445 <xsl:template name="sidebar.titlepage.verso">
5446 </xsl:template>
5447
5448 <xsl:template name="sidebar.titlepage.separator">
5449 </xsl:template>
5450
5451 <xsl:template name="sidebar.titlepage.before.recto">
5452 </xsl:template>
5453
5454 <xsl:template name="sidebar.titlepage.before.verso">
5455 </xsl:template>
5456
5457 <xsl:template name="sidebar.titlepage">
5458 <fo:block>
5459 <xsl:variable name="recto.content">
5460 <xsl:call-template name="sidebar.titlepage.before.recto"/>
5461 <xsl:call-template name="sidebar.titlepage.recto"/>
5462 </xsl:variable>
5463 <xsl:variable name="recto.elements.count">
5464 <xsl:choose>
5465 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
5466 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
5467 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
5468 <xsl:otherwise>1</xsl:otherwise>
5469 </xsl:choose>
5470 </xsl:variable>
5471 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
5472 <fo:block><xsl:copy-of select="$recto.content"/></fo:block>
5473 </xsl:if>
5474 <xsl:variable name="verso.content">
5475 <xsl:call-template name="sidebar.titlepage.before.verso"/>
5476 <xsl:call-template name="sidebar.titlepage.verso"/>
5477 </xsl:variable>
5478 <xsl:variable name="verso.elements.count">
5479 <xsl:choose>
5480 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
5481 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
5482 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
5483 <xsl:otherwise>1</xsl:otherwise>
5484 </xsl:choose>
5485 </xsl:variable>
5486 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
5487 <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
5488 </xsl:if>
5489 <xsl:call-template name="sidebar.titlepage.separator"/>
5490 </fo:block>
5491 </xsl:template>
5492
5493 <xsl:template match="*" mode="sidebar.titlepage.recto.mode">
5494 <!-- if an element isn't found in this mode, -->
5495 <!-- try the generic titlepage.mode -->
5496 <xsl:apply-templates select="." mode="titlepage.mode"/>
5497 </xsl:template>
5498
5499 <xsl:template match="*" mode="sidebar.titlepage.verso.mode">
5500 <!-- if an element isn't found in this mode, -->
5501 <!-- try the generic titlepage.mode -->
5502 <xsl:apply-templates select="." mode="titlepage.mode"/>
5503 </xsl:template>
5504
5505 <xsl:template match="d:title" mode="sidebar.titlepage.recto.auto.mode">
5506 <fo:block xsl:use-attribute-sets="sidebar.titlepage.recto.style" font-family="{$title.fontset}" font-weight="bold">
5507 <xsl:apply-templates select="." mode="sidebar.titlepage.recto.mode"/>
5508 </fo:block>
5509 </xsl:template>
5510
5511 <xsl:template match="d:subtitle" mode="sidebar.titlepage.recto.auto.mode">
5512 <fo:block xsl:use-attribute-sets="sidebar.titlepage.recto.style" font-family="{$title.fontset}">
5513 <xsl:apply-templates select="." mode="sidebar.titlepage.recto.mode"/>
5514 </fo:block>
5515 </xsl:template>
5516
5517 <xsl:template match="d:itermset" mode="sidebar.titlepage.recto.auto.mode">
5518 <fo:block xsl:use-attribute-sets="sidebar.titlepage.recto.style">
5519 <xsl:apply-templates select="." mode="sidebar.titlepage.recto.mode"/>
5520 </fo:block>
5521 </xsl:template>
5522
5523 <xsl:template name="qandaset.titlepage.recto">
5524 <xsl:choose>
5525 <xsl:when test="d:qandasetinfo/d:title">
5526 <xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:qandasetinfo/d:title"/>
5527 </xsl:when>
5528 <xsl:when test="d:blockinfo/d:title">
5529 <xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:blockinfo/d:title"/>
5530 </xsl:when>
5531 <xsl:when test="d:info/d:title">
5532 <xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:info/d:title"/>
5533 </xsl:when>
5534 <xsl:when test="d:title">
5535 <xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:title"/>
5536 </xsl:when>
5537 </xsl:choose>
5538
5539 <xsl:choose>
5540 <xsl:when test="d:qandasetinfo/d:subtitle">
5541 <xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:qandasetinfo/d:subtitle"/>
5542 </xsl:when>
5543 <xsl:when test="d:blockinfo/d:subtitle">
5544 <xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:blockinfo/d:subtitle"/>
5545 </xsl:when>
5546 <xsl:when test="d:info/d:subtitle">
5547 <xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
5548 </xsl:when>
5549 <xsl:when test="d:subtitle">
5550 <xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:subtitle"/>
5551 </xsl:when>
5552 </xsl:choose>
5553
5554 <xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:qandasetinfo/d:corpauthor"/>
5555 <xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:blockinfo/d:corpauthor"/>
5556 <xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
5557 <xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:qandasetinfo/d:authorgroup"/>
5558 <xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:blockinfo/d:authorgroup"/>
5559 <xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
5560 <xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:qandasetinfo/d:author"/>
5561 <xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:blockinfo/d:author"/>
5562 <xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:info/d:author"/>
5563 <xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:qandasetinfo/d:othercredit"/>
5564 <xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:blockinfo/d:othercredit"/>
5565 <xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
5566 <xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:qandasetinfo/d:releaseinfo"/>
5567 <xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:blockinfo/d:releaseinfo"/>
5568 <xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
5569 <xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:qandasetinfo/d:copyright"/>
5570 <xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:blockinfo/d:copyright"/>
5571 <xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
5572 <xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:qandasetinfo/d:legalnotice"/>
5573 <xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:blockinfo/d:legalnotice"/>
5574 <xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
5575 <xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:qandasetinfo/d:pubdate"/>
5576 <xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:blockinfo/d:pubdate"/>
5577 <xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
5578 <xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:qandasetinfo/d:revision"/>
5579 <xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:blockinfo/d:revision"/>
5580 <xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:info/d:revision"/>
5581 <xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:qandasetinfo/d:revhistory"/>
5582 <xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:blockinfo/d:revhistory"/>
5583 <xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
5584 <xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:qandasetinfo/d:abstract"/>
5585 <xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:blockinfo/d:abstract"/>
5586 <xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
5587 <xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:qandasetinfo/d:itermset"/>
5588 <xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:blockinfo/d:itermset"/>
5589 <xsl:apply-templates mode="qandaset.titlepage.recto.auto.mode" select="d:info/d:itermset"/>
5590 </xsl:template>
5591
5592 <xsl:template name="qandaset.titlepage.verso">
5593 </xsl:template>
5594
5595 <xsl:template name="qandaset.titlepage.separator">
5596 </xsl:template>
5597
5598 <xsl:template name="qandaset.titlepage.before.recto">
5599 </xsl:template>
5600
5601 <xsl:template name="qandaset.titlepage.before.verso">
5602 </xsl:template>
5603
5604 <xsl:template name="qandaset.titlepage">
5605 <fo:block font-family="{$title.fontset}">
5606 <xsl:variable name="recto.content">
5607 <xsl:call-template name="qandaset.titlepage.before.recto"/>
5608 <xsl:call-template name="qandaset.titlepage.recto"/>
5609 </xsl:variable>
5610 <xsl:variable name="recto.elements.count">
5611 <xsl:choose>
5612 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
5613 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
5614 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
5615 <xsl:otherwise>1</xsl:otherwise>
5616 </xsl:choose>
5617 </xsl:variable>
5618 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
5619 <fo:block start-indent="0pt" text-align="center"><xsl:copy-of select="$recto.content"/></fo:block>
5620 </xsl:if>
5621 <xsl:variable name="verso.content">
5622 <xsl:call-template name="qandaset.titlepage.before.verso"/>
5623 <xsl:call-template name="qandaset.titlepage.verso"/>
5624 </xsl:variable>
5625 <xsl:variable name="verso.elements.count">
5626 <xsl:choose>
5627 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
5628 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
5629 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
5630 <xsl:otherwise>1</xsl:otherwise>
5631 </xsl:choose>
5632 </xsl:variable>
5633 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
5634 <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
5635 </xsl:if>
5636 <xsl:call-template name="qandaset.titlepage.separator"/>
5637 </fo:block>
5638 </xsl:template>
5639
5640 <xsl:template match="*" mode="qandaset.titlepage.recto.mode">
5641 <!-- if an element isn't found in this mode, -->
5642 <!-- try the generic titlepage.mode -->
5643 <xsl:apply-templates select="." mode="titlepage.mode"/>
5644 </xsl:template>
5645
5646 <xsl:template match="*" mode="qandaset.titlepage.verso.mode">
5647 <!-- if an element isn't found in this mode, -->
5648 <!-- try the generic titlepage.mode -->
5649 <xsl:apply-templates select="." mode="titlepage.mode"/>
5650 </xsl:template>
5651
5652 <xsl:template match="d:title" mode="qandaset.titlepage.recto.auto.mode">
5653 <fo:block xsl:use-attribute-sets="qandaset.titlepage.recto.style" keep-with-next.within-column="always" font-size="24.8832pt" font-weight="bold">
5654 <xsl:call-template name="component.title">
5655 <xsl:with-param name="node" select="ancestor-or-self::d:qandaset[1]"/>
5656 </xsl:call-template>
5657 </fo:block>
5658 </xsl:template>
5659
5660 <xsl:template match="d:subtitle" mode="qandaset.titlepage.recto.auto.mode">
5661 <fo:block xsl:use-attribute-sets="qandaset.titlepage.recto.style">
5662 <xsl:apply-templates select="." mode="qandaset.titlepage.recto.mode"/>
5663 </fo:block>
5664 </xsl:template>
5665
5666 <xsl:template match="d:corpauthor" mode="qandaset.titlepage.recto.auto.mode">
5667 <fo:block xsl:use-attribute-sets="qandaset.titlepage.recto.style" space-before="0.5em" font-size="14.4pt">
5668 <xsl:apply-templates select="." mode="qandaset.titlepage.recto.mode"/>
5669 </fo:block>
5670 </xsl:template>
5671
5672 <xsl:template match="d:authorgroup" mode="qandaset.titlepage.recto.auto.mode">
5673 <fo:block xsl:use-attribute-sets="qandaset.titlepage.recto.style" space-before="0.5em" font-size="14.4pt">
5674 <xsl:apply-templates select="." mode="qandaset.titlepage.recto.mode"/>
5675 </fo:block>
5676 </xsl:template>
5677
5678 <xsl:template match="d:author" mode="qandaset.titlepage.recto.auto.mode">
5679 <fo:block xsl:use-attribute-sets="qandaset.titlepage.recto.style" space-before="0.5em" font-size="14.4pt">
5680 <xsl:apply-templates select="." mode="qandaset.titlepage.recto.mode"/>
5681 </fo:block>
5682 </xsl:template>
5683
5684 <xsl:template match="d:othercredit" mode="qandaset.titlepage.recto.auto.mode">
5685 <fo:block xsl:use-attribute-sets="qandaset.titlepage.recto.style" space-before="0.5em">
5686 <xsl:apply-templates select="." mode="qandaset.titlepage.recto.mode"/>
5687 </fo:block>
5688 </xsl:template>
5689
5690 <xsl:template match="d:releaseinfo" mode="qandaset.titlepage.recto.auto.mode">
5691 <fo:block xsl:use-attribute-sets="qandaset.titlepage.recto.style" space-before="0.5em">
5692 <xsl:apply-templates select="." mode="qandaset.titlepage.recto.mode"/>
5693 </fo:block>
5694 </xsl:template>
5695
5696 <xsl:template match="d:copyright" mode="qandaset.titlepage.recto.auto.mode">
5697 <fo:block xsl:use-attribute-sets="qandaset.titlepage.recto.style" space-before="0.5em">
5698 <xsl:apply-templates select="." mode="qandaset.titlepage.recto.mode"/>
5699 </fo:block>
5700 </xsl:template>
5701
5702 <xsl:template match="d:legalnotice" mode="qandaset.titlepage.recto.auto.mode">
5703 <fo:block xsl:use-attribute-sets="qandaset.titlepage.recto.style" text-align="start" margin-left="0.5in" margin-right="0.5in" font-family="{$body.fontset}">
5704 <xsl:apply-templates select="." mode="qandaset.titlepage.recto.mode"/>
5705 </fo:block>
5706 </xsl:template>
5707
5708 <xsl:template match="d:pubdate" mode="qandaset.titlepage.recto.auto.mode">
5709 <fo:block xsl:use-attribute-sets="qandaset.titlepage.recto.style" space-before="0.5em">
5710 <xsl:apply-templates select="." mode="qandaset.titlepage.recto.mode"/>
5711 </fo:block>
5712 </xsl:template>
5713
5714 <xsl:template match="d:revision" mode="qandaset.titlepage.recto.auto.mode">
5715 <fo:block xsl:use-attribute-sets="qandaset.titlepage.recto.style" space-before="0.5em">
5716 <xsl:apply-templates select="." mode="qandaset.titlepage.recto.mode"/>
5717 </fo:block>
5718 </xsl:template>
5719
5720 <xsl:template match="d:revhistory" mode="qandaset.titlepage.recto.auto.mode">
5721 <fo:block xsl:use-attribute-sets="qandaset.titlepage.recto.style" space-before="0.5em">
5722 <xsl:apply-templates select="." mode="qandaset.titlepage.recto.mode"/>
5723 </fo:block>
5724 </xsl:template>
5725
5726 <xsl:template match="d:abstract" mode="qandaset.titlepage.recto.auto.mode">
5727 <fo:block 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}">
5728 <xsl:apply-templates select="." mode="qandaset.titlepage.recto.mode"/>
5729 </fo:block>
5730 </xsl:template>
5731
5732 <xsl:template match="d:itermset" mode="qandaset.titlepage.recto.auto.mode">
5733 <fo:block xsl:use-attribute-sets="qandaset.titlepage.recto.style">
5734 <xsl:apply-templates select="." mode="qandaset.titlepage.recto.mode"/>
5735 </fo:block>
5736 </xsl:template>
5737
5738 <xsl:template name="table.of.contents.titlepage.recto">
5739 <fo:block 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" start-indent="0pt" font-size="17.28pt" font-weight="bold" font-family="{$title.fontset}">
5740 <xsl:call-template name="gentext">
5741 <xsl:with-param name="key" select="'TableofContents'"/>
5742 </xsl:call-template></fo:block>
5743 </xsl:template>
5744
5745 <xsl:template name="table.of.contents.titlepage.verso">
5746 </xsl:template>
5747
5748 <xsl:template name="table.of.contents.titlepage.separator">
5749 </xsl:template>
5750
5751 <xsl:template name="table.of.contents.titlepage.before.recto">
5752 </xsl:template>
5753
5754 <xsl:template name="table.of.contents.titlepage.before.verso">
5755 </xsl:template>
5756
5757 <xsl:template name="table.of.contents.titlepage">
5758 <fo:block>
5759 <xsl:variable name="recto.content">
5760 <xsl:call-template name="table.of.contents.titlepage.before.recto"/>
5761 <xsl:call-template name="table.of.contents.titlepage.recto"/>
5762 </xsl:variable>
5763 <xsl:variable name="recto.elements.count">
5764 <xsl:choose>
5765 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
5766 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
5767 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
5768 <xsl:otherwise>1</xsl:otherwise>
5769 </xsl:choose>
5770 </xsl:variable>
5771 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
5772 <fo:block><xsl:copy-of select="$recto.content"/></fo:block>
5773 </xsl:if>
5774 <xsl:variable name="verso.content">
5775 <xsl:call-template name="table.of.contents.titlepage.before.verso"/>
5776 <xsl:call-template name="table.of.contents.titlepage.verso"/>
5777 </xsl:variable>
5778 <xsl:variable name="verso.elements.count">
5779 <xsl:choose>
5780 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
5781 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
5782 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
5783 <xsl:otherwise>1</xsl:otherwise>
5784 </xsl:choose>
5785 </xsl:variable>
5786 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
5787 <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
5788 </xsl:if>
5789 <xsl:call-template name="table.of.contents.titlepage.separator"/>
5790 </fo:block>
5791 </xsl:template>
5792
5793 <xsl:template match="*" mode="table.of.contents.titlepage.recto.mode">
5794 <!-- if an element isn't found in this mode, -->
5795 <!-- try the generic titlepage.mode -->
5796 <xsl:apply-templates select="." mode="titlepage.mode"/>
5797 </xsl:template>
5798
5799 <xsl:template match="*" mode="table.of.contents.titlepage.verso.mode">
5800 <!-- if an element isn't found in this mode, -->
5801 <!-- try the generic titlepage.mode -->
5802 <xsl:apply-templates select="." mode="titlepage.mode"/>
5803 </xsl:template>
5804
5805 <xsl:template name="list.of.tables.titlepage.recto">
5806 <fo:block 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" start-indent="0pt" font-size="17.28pt" font-weight="bold" font-family="{$title.fontset}">
5807 <xsl:call-template name="gentext">
5808 <xsl:with-param name="key" select="'ListofTables'"/>
5809 </xsl:call-template></fo:block>
5810 </xsl:template>
5811
5812 <xsl:template name="list.of.tables.titlepage.verso">
5813 </xsl:template>
5814
5815 <xsl:template name="list.of.tables.titlepage.separator">
5816 </xsl:template>
5817
5818 <xsl:template name="list.of.tables.titlepage.before.recto">
5819 </xsl:template>
5820
5821 <xsl:template name="list.of.tables.titlepage.before.verso">
5822 </xsl:template>
5823
5824 <xsl:template name="list.of.tables.titlepage">
5825 <fo:block>
5826 <xsl:variable name="recto.content">
5827 <xsl:call-template name="list.of.tables.titlepage.before.recto"/>
5828 <xsl:call-template name="list.of.tables.titlepage.recto"/>
5829 </xsl:variable>
5830 <xsl:variable name="recto.elements.count">
5831 <xsl:choose>
5832 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
5833 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
5834 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
5835 <xsl:otherwise>1</xsl:otherwise>
5836 </xsl:choose>
5837 </xsl:variable>
5838 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
5839 <fo:block><xsl:copy-of select="$recto.content"/></fo:block>
5840 </xsl:if>
5841 <xsl:variable name="verso.content">
5842 <xsl:call-template name="list.of.tables.titlepage.before.verso"/>
5843 <xsl:call-template name="list.of.tables.titlepage.verso"/>
5844 </xsl:variable>
5845 <xsl:variable name="verso.elements.count">
5846 <xsl:choose>
5847 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
5848 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
5849 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
5850 <xsl:otherwise>1</xsl:otherwise>
5851 </xsl:choose>
5852 </xsl:variable>
5853 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
5854 <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
5855 </xsl:if>
5856 <xsl:call-template name="list.of.tables.titlepage.separator"/>
5857 </fo:block>
5858 </xsl:template>
5859
5860 <xsl:template match="*" mode="list.of.tables.titlepage.recto.mode">
5861 <!-- if an element isn't found in this mode, -->
5862 <!-- try the generic titlepage.mode -->
5863 <xsl:apply-templates select="." mode="titlepage.mode"/>
5864 </xsl:template>
5865
5866 <xsl:template match="*" mode="list.of.tables.titlepage.verso.mode">
5867 <!-- if an element isn't found in this mode, -->
5868 <!-- try the generic titlepage.mode -->
5869 <xsl:apply-templates select="." mode="titlepage.mode"/>
5870 </xsl:template>
5871
5872 <xsl:template name="list.of.figures.titlepage.recto">
5873 <fo:block 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" start-indent="0pt" font-size="17.28pt" font-weight="bold" font-family="{$title.fontset}">
5874 <xsl:call-template name="gentext">
5875 <xsl:with-param name="key" select="'ListofFigures'"/>
5876 </xsl:call-template></fo:block>
5877 </xsl:template>
5878
5879 <xsl:template name="list.of.figures.titlepage.verso">
5880 </xsl:template>
5881
5882 <xsl:template name="list.of.figures.titlepage.separator">
5883 </xsl:template>
5884
5885 <xsl:template name="list.of.figures.titlepage.before.recto">
5886 </xsl:template>
5887
5888 <xsl:template name="list.of.figures.titlepage.before.verso">
5889 </xsl:template>
5890
5891 <xsl:template name="list.of.figures.titlepage">
5892 <fo:block>
5893 <xsl:variable name="recto.content">
5894 <xsl:call-template name="list.of.figures.titlepage.before.recto"/>
5895 <xsl:call-template name="list.of.figures.titlepage.recto"/>
5896 </xsl:variable>
5897 <xsl:variable name="recto.elements.count">
5898 <xsl:choose>
5899 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
5900 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
5901 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
5902 <xsl:otherwise>1</xsl:otherwise>
5903 </xsl:choose>
5904 </xsl:variable>
5905 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
5906 <fo:block><xsl:copy-of select="$recto.content"/></fo:block>
5907 </xsl:if>
5908 <xsl:variable name="verso.content">
5909 <xsl:call-template name="list.of.figures.titlepage.before.verso"/>
5910 <xsl:call-template name="list.of.figures.titlepage.verso"/>
5911 </xsl:variable>
5912 <xsl:variable name="verso.elements.count">
5913 <xsl:choose>
5914 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
5915 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
5916 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
5917 <xsl:otherwise>1</xsl:otherwise>
5918 </xsl:choose>
5919 </xsl:variable>
5920 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
5921 <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
5922 </xsl:if>
5923 <xsl:call-template name="list.of.figures.titlepage.separator"/>
5924 </fo:block>
5925 </xsl:template>
5926
5927 <xsl:template match="*" mode="list.of.figures.titlepage.recto.mode">
5928 <!-- if an element isn't found in this mode, -->
5929 <!-- try the generic titlepage.mode -->
5930 <xsl:apply-templates select="." mode="titlepage.mode"/>
5931 </xsl:template>
5932
5933 <xsl:template match="*" mode="list.of.figures.titlepage.verso.mode">
5934 <!-- if an element isn't found in this mode, -->
5935 <!-- try the generic titlepage.mode -->
5936 <xsl:apply-templates select="." mode="titlepage.mode"/>
5937 </xsl:template>
5938
5939 <xsl:template name="list.of.examples.titlepage.recto">
5940 <fo:block 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" start-indent="0pt" font-size="17.28pt" font-weight="bold" font-family="{$title.fontset}">
5941 <xsl:call-template name="gentext">
5942 <xsl:with-param name="key" select="'ListofExamples'"/>
5943 </xsl:call-template></fo:block>
5944 </xsl:template>
5945
5946 <xsl:template name="list.of.examples.titlepage.verso">
5947 </xsl:template>
5948
5949 <xsl:template name="list.of.examples.titlepage.separator">
5950 </xsl:template>
5951
5952 <xsl:template name="list.of.examples.titlepage.before.recto">
5953 </xsl:template>
5954
5955 <xsl:template name="list.of.examples.titlepage.before.verso">
5956 </xsl:template>
5957
5958 <xsl:template name="list.of.examples.titlepage">
5959 <fo:block>
5960 <xsl:variable name="recto.content">
5961 <xsl:call-template name="list.of.examples.titlepage.before.recto"/>
5962 <xsl:call-template name="list.of.examples.titlepage.recto"/>
5963 </xsl:variable>
5964 <xsl:variable name="recto.elements.count">
5965 <xsl:choose>
5966 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
5967 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
5968 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
5969 <xsl:otherwise>1</xsl:otherwise>
5970 </xsl:choose>
5971 </xsl:variable>
5972 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
5973 <fo:block><xsl:copy-of select="$recto.content"/></fo:block>
5974 </xsl:if>
5975 <xsl:variable name="verso.content">
5976 <xsl:call-template name="list.of.examples.titlepage.before.verso"/>
5977 <xsl:call-template name="list.of.examples.titlepage.verso"/>
5978 </xsl:variable>
5979 <xsl:variable name="verso.elements.count">
5980 <xsl:choose>
5981 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
5982 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
5983 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
5984 <xsl:otherwise>1</xsl:otherwise>
5985 </xsl:choose>
5986 </xsl:variable>
5987 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
5988 <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
5989 </xsl:if>
5990 <xsl:call-template name="list.of.examples.titlepage.separator"/>
5991 </fo:block>
5992 </xsl:template>
5993
5994 <xsl:template match="*" mode="list.of.examples.titlepage.recto.mode">
5995 <!-- if an element isn't found in this mode, -->
5996 <!-- try the generic titlepage.mode -->
5997 <xsl:apply-templates select="." mode="titlepage.mode"/>
5998 </xsl:template>
5999
6000 <xsl:template match="*" mode="list.of.examples.titlepage.verso.mode">
6001 <!-- if an element isn't found in this mode, -->
6002 <!-- try the generic titlepage.mode -->
6003 <xsl:apply-templates select="." mode="titlepage.mode"/>
6004 </xsl:template>
6005
6006 <xsl:template name="list.of.equations.titlepage.recto">
6007 <fo:block 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" start-indent="0pt" font-size="17.28pt" font-weight="bold" font-family="{$title.fontset}">
6008 <xsl:call-template name="gentext">
6009 <xsl:with-param name="key" select="'ListofEquations'"/>
6010 </xsl:call-template></fo:block>
6011 </xsl:template>
6012
6013 <xsl:template name="list.of.equations.titlepage.verso">
6014 </xsl:template>
6015
6016 <xsl:template name="list.of.equations.titlepage.separator">
6017 </xsl:template>
6018
6019 <xsl:template name="list.of.equations.titlepage.before.recto">
6020 </xsl:template>
6021
6022 <xsl:template name="list.of.equations.titlepage.before.verso">
6023 </xsl:template>
6024
6025 <xsl:template name="list.of.equations.titlepage">
6026 <fo:block>
6027 <xsl:variable name="recto.content">
6028 <xsl:call-template name="list.of.equations.titlepage.before.recto"/>
6029 <xsl:call-template name="list.of.equations.titlepage.recto"/>
6030 </xsl:variable>
6031 <xsl:variable name="recto.elements.count">
6032 <xsl:choose>
6033 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
6034 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
6035 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
6036 <xsl:otherwise>1</xsl:otherwise>
6037 </xsl:choose>
6038 </xsl:variable>
6039 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
6040 <fo:block><xsl:copy-of select="$recto.content"/></fo:block>
6041 </xsl:if>
6042 <xsl:variable name="verso.content">
6043 <xsl:call-template name="list.of.equations.titlepage.before.verso"/>
6044 <xsl:call-template name="list.of.equations.titlepage.verso"/>
6045 </xsl:variable>
6046 <xsl:variable name="verso.elements.count">
6047 <xsl:choose>
6048 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
6049 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
6050 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
6051 <xsl:otherwise>1</xsl:otherwise>
6052 </xsl:choose>
6053 </xsl:variable>
6054 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
6055 <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
6056 </xsl:if>
6057 <xsl:call-template name="list.of.equations.titlepage.separator"/>
6058 </fo:block>
6059 </xsl:template>
6060
6061 <xsl:template match="*" mode="list.of.equations.titlepage.recto.mode">
6062 <!-- if an element isn't found in this mode, -->
6063 <!-- try the generic titlepage.mode -->
6064 <xsl:apply-templates select="." mode="titlepage.mode"/>
6065 </xsl:template>
6066
6067 <xsl:template match="*" mode="list.of.equations.titlepage.verso.mode">
6068 <!-- if an element isn't found in this mode, -->
6069 <!-- try the generic titlepage.mode -->
6070 <xsl:apply-templates select="." mode="titlepage.mode"/>
6071 </xsl:template>
6072
6073 <xsl:template name="list.of.procedures.titlepage.recto">
6074 <fo:block 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" start-indent="0pt" font-size="17.28pt" font-weight="bold" font-family="{$title.fontset}">
6075 <xsl:call-template name="gentext">
6076 <xsl:with-param name="key" select="'ListofProcedures'"/>
6077 </xsl:call-template></fo:block>
6078 </xsl:template>
6079
6080 <xsl:template name="list.of.procedures.titlepage.verso">
6081 </xsl:template>
6082
6083 <xsl:template name="list.of.procedures.titlepage.separator">
6084 </xsl:template>
6085
6086 <xsl:template name="list.of.procedures.titlepage.before.recto">
6087 </xsl:template>
6088
6089 <xsl:template name="list.of.procedures.titlepage.before.verso">
6090 </xsl:template>
6091
6092 <xsl:template name="list.of.procedures.titlepage">
6093 <fo:block>
6094 <xsl:variable name="recto.content">
6095 <xsl:call-template name="list.of.procedures.titlepage.before.recto"/>
6096 <xsl:call-template name="list.of.procedures.titlepage.recto"/>
6097 </xsl:variable>
6098 <xsl:variable name="recto.elements.count">
6099 <xsl:choose>
6100 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
6101 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
6102 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
6103 <xsl:otherwise>1</xsl:otherwise>
6104 </xsl:choose>
6105 </xsl:variable>
6106 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
6107 <fo:block><xsl:copy-of select="$recto.content"/></fo:block>
6108 </xsl:if>
6109 <xsl:variable name="verso.content">
6110 <xsl:call-template name="list.of.procedures.titlepage.before.verso"/>
6111 <xsl:call-template name="list.of.procedures.titlepage.verso"/>
6112 </xsl:variable>
6113 <xsl:variable name="verso.elements.count">
6114 <xsl:choose>
6115 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
6116 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
6117 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
6118 <xsl:otherwise>1</xsl:otherwise>
6119 </xsl:choose>
6120 </xsl:variable>
6121 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
6122 <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
6123 </xsl:if>
6124 <xsl:call-template name="list.of.procedures.titlepage.separator"/>
6125 </fo:block>
6126 </xsl:template>
6127
6128 <xsl:template match="*" mode="list.of.procedures.titlepage.recto.mode">
6129 <!-- if an element isn't found in this mode, -->
6130 <!-- try the generic titlepage.mode -->
6131 <xsl:apply-templates select="." mode="titlepage.mode"/>
6132 </xsl:template>
6133
6134 <xsl:template match="*" mode="list.of.procedures.titlepage.verso.mode">
6135 <!-- if an element isn't found in this mode, -->
6136 <!-- try the generic titlepage.mode -->
6137 <xsl:apply-templates select="." mode="titlepage.mode"/>
6138 </xsl:template>
6139
6140 <xsl:template name="list.of.unknowns.titlepage.recto">
6141 <fo:block 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" start-indent="0pt" font-size="17.28pt" font-weight="bold" font-family="{$title.fontset}">
6142 <xsl:call-template name="gentext">
6143 <xsl:with-param name="key" select="'ListofUnknown'"/>
6144 </xsl:call-template></fo:block>
6145 </xsl:template>
6146
6147 <xsl:template name="list.of.unknowns.titlepage.verso">
6148 </xsl:template>
6149
6150 <xsl:template name="list.of.unknowns.titlepage.separator">
6151 </xsl:template>
6152
6153 <xsl:template name="list.of.unknowns.titlepage.before.recto">
6154 </xsl:template>
6155
6156 <xsl:template name="list.of.unknowns.titlepage.before.verso">
6157 </xsl:template>
6158
6159 <xsl:template name="list.of.unknowns.titlepage">
6160 <fo:block>
6161 <xsl:variable name="recto.content">
6162 <xsl:call-template name="list.of.unknowns.titlepage.before.recto"/>
6163 <xsl:call-template name="list.of.unknowns.titlepage.recto"/>
6164 </xsl:variable>
6165 <xsl:variable name="recto.elements.count">
6166 <xsl:choose>
6167 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
6168 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
6169 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
6170 <xsl:otherwise>1</xsl:otherwise>
6171 </xsl:choose>
6172 </xsl:variable>
6173 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
6174 <fo:block><xsl:copy-of select="$recto.content"/></fo:block>
6175 </xsl:if>
6176 <xsl:variable name="verso.content">
6177 <xsl:call-template name="list.of.unknowns.titlepage.before.verso"/>
6178 <xsl:call-template name="list.of.unknowns.titlepage.verso"/>
6179 </xsl:variable>
6180 <xsl:variable name="verso.elements.count">
6181 <xsl:choose>
6182 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
6183 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
6184 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
6185 <xsl:otherwise>1</xsl:otherwise>
6186 </xsl:choose>
6187 </xsl:variable>
6188 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
6189 <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
6190 </xsl:if>
6191 <xsl:call-template name="list.of.unknowns.titlepage.separator"/>
6192 </fo:block>
6193 </xsl:template>
6194
6195 <xsl:template match="*" mode="list.of.unknowns.titlepage.recto.mode">
6196 <!-- if an element isn't found in this mode, -->
6197 <!-- try the generic titlepage.mode -->
6198 <xsl:apply-templates select="." mode="titlepage.mode"/>
6199 </xsl:template>
6200
6201 <xsl:template match="*" mode="list.of.unknowns.titlepage.verso.mode">
6202 <!-- if an element isn't found in this mode, -->
6203 <!-- try the generic titlepage.mode -->
6204 <xsl:apply-templates select="." mode="titlepage.mode"/>
6205 </xsl:template>
6206
6207 <xsl:template name="component.list.of.tables.titlepage.recto">
6208 <fo:block xsl:use-attribute-sets="component.list.of.tables.titlepage.recto.style" space-before.minimum="1em" space-before.optimum="1em" space-before.maximum="1em" space-after="0.5em" margin-left="{$title.margin.left}" font-size="12pt" font-weight="bold" font-family="{$title.fontset}">
6209 <xsl:call-template name="gentext">
6210 <xsl:with-param name="key" select="'ListofTables'"/>
6211 </xsl:call-template></fo:block>
6212 </xsl:template>
6213
6214 <xsl:template name="component.list.of.tables.titlepage.verso">
6215 </xsl:template>
6216
6217 <xsl:template name="component.list.of.tables.titlepage.separator">
6218 </xsl:template>
6219
6220 <xsl:template name="component.list.of.tables.titlepage.before.recto">
6221 </xsl:template>
6222
6223 <xsl:template name="component.list.of.tables.titlepage.before.verso">
6224 </xsl:template>
6225
6226 <xsl:template name="component.list.of.tables.titlepage">
6227 <fo:block>
6228 <xsl:variable name="recto.content">
6229 <xsl:call-template name="component.list.of.tables.titlepage.before.recto"/>
6230 <xsl:call-template name="component.list.of.tables.titlepage.recto"/>
6231 </xsl:variable>
6232 <xsl:variable name="recto.elements.count">
6233 <xsl:choose>
6234 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
6235 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
6236 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
6237 <xsl:otherwise>1</xsl:otherwise>
6238 </xsl:choose>
6239 </xsl:variable>
6240 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
6241 <fo:block><xsl:copy-of select="$recto.content"/></fo:block>
6242 </xsl:if>
6243 <xsl:variable name="verso.content">
6244 <xsl:call-template name="component.list.of.tables.titlepage.before.verso"/>
6245 <xsl:call-template name="component.list.of.tables.titlepage.verso"/>
6246 </xsl:variable>
6247 <xsl:variable name="verso.elements.count">
6248 <xsl:choose>
6249 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
6250 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
6251 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
6252 <xsl:otherwise>1</xsl:otherwise>
6253 </xsl:choose>
6254 </xsl:variable>
6255 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
6256 <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
6257 </xsl:if>
6258 <xsl:call-template name="component.list.of.tables.titlepage.separator"/>
6259 </fo:block>
6260 </xsl:template>
6261
6262 <xsl:template match="*" mode="component.list.of.tables.titlepage.recto.mode">
6263 <!-- if an element isn't found in this mode, -->
6264 <!-- try the generic titlepage.mode -->
6265 <xsl:apply-templates select="." mode="titlepage.mode"/>
6266 </xsl:template>
6267
6268 <xsl:template match="*" mode="component.list.of.tables.titlepage.verso.mode">
6269 <!-- if an element isn't found in this mode, -->
6270 <!-- try the generic titlepage.mode -->
6271 <xsl:apply-templates select="." mode="titlepage.mode"/>
6272 </xsl:template>
6273
6274 <xsl:template name="component.list.of.figures.titlepage.recto">
6275 <fo:block xsl:use-attribute-sets="component.list.of.figures.titlepage.recto.style" space-before.minimum="1em" space-before.optimum="1em" space-before.maximum="1em" space-after="0.5em" margin-left="{$title.margin.left}" font-size="12pt" font-weight="bold" font-family="{$title.fontset}">
6276 <xsl:call-template name="gentext">
6277 <xsl:with-param name="key" select="'ListofFigures'"/>
6278 </xsl:call-template></fo:block>
6279 </xsl:template>
6280
6281 <xsl:template name="component.list.of.figures.titlepage.verso">
6282 </xsl:template>
6283
6284 <xsl:template name="component.list.of.figures.titlepage.separator">
6285 </xsl:template>
6286
6287 <xsl:template name="component.list.of.figures.titlepage.before.recto">
6288 </xsl:template>
6289
6290 <xsl:template name="component.list.of.figures.titlepage.before.verso">
6291 </xsl:template>
6292
6293 <xsl:template name="component.list.of.figures.titlepage">
6294 <fo:block>
6295 <xsl:variable name="recto.content">
6296 <xsl:call-template name="component.list.of.figures.titlepage.before.recto"/>
6297 <xsl:call-template name="component.list.of.figures.titlepage.recto"/>
6298 </xsl:variable>
6299 <xsl:variable name="recto.elements.count">
6300 <xsl:choose>
6301 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
6302 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
6303 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
6304 <xsl:otherwise>1</xsl:otherwise>
6305 </xsl:choose>
6306 </xsl:variable>
6307 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
6308 <fo:block><xsl:copy-of select="$recto.content"/></fo:block>
6309 </xsl:if>
6310 <xsl:variable name="verso.content">
6311 <xsl:call-template name="component.list.of.figures.titlepage.before.verso"/>
6312 <xsl:call-template name="component.list.of.figures.titlepage.verso"/>
6313 </xsl:variable>
6314 <xsl:variable name="verso.elements.count">
6315 <xsl:choose>
6316 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
6317 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
6318 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
6319 <xsl:otherwise>1</xsl:otherwise>
6320 </xsl:choose>
6321 </xsl:variable>
6322 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
6323 <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
6324 </xsl:if>
6325 <xsl:call-template name="component.list.of.figures.titlepage.separator"/>
6326 </fo:block>
6327 </xsl:template>
6328
6329 <xsl:template match="*" mode="component.list.of.figures.titlepage.recto.mode">
6330 <!-- if an element isn't found in this mode, -->
6331 <!-- try the generic titlepage.mode -->
6332 <xsl:apply-templates select="." mode="titlepage.mode"/>
6333 </xsl:template>
6334
6335 <xsl:template match="*" mode="component.list.of.figures.titlepage.verso.mode">
6336 <!-- if an element isn't found in this mode, -->
6337 <!-- try the generic titlepage.mode -->
6338 <xsl:apply-templates select="." mode="titlepage.mode"/>
6339 </xsl:template>
6340
6341 <xsl:template name="component.list.of.examples.titlepage.recto">
6342 <fo:block xsl:use-attribute-sets="component.list.of.examples.titlepage.recto.style" space-before.minimum="1em" space-before.optimum="1em" space-before.maximum="1em" space-after="0.5em" margin-left="{$title.margin.left}" font-size="12pt" font-weight="bold" font-family="{$title.fontset}">
6343 <xsl:call-template name="gentext">
6344 <xsl:with-param name="key" select="'ListofExamples'"/>
6345 </xsl:call-template></fo:block>
6346 </xsl:template>
6347
6348 <xsl:template name="component.list.of.examples.titlepage.verso">
6349 </xsl:template>
6350
6351 <xsl:template name="component.list.of.examples.titlepage.separator">
6352 </xsl:template>
6353
6354 <xsl:template name="component.list.of.examples.titlepage.before.recto">
6355 </xsl:template>
6356
6357 <xsl:template name="component.list.of.examples.titlepage.before.verso">
6358 </xsl:template>
6359
6360 <xsl:template name="component.list.of.examples.titlepage">
6361 <fo:block>
6362 <xsl:variable name="recto.content">
6363 <xsl:call-template name="component.list.of.examples.titlepage.before.recto"/>
6364 <xsl:call-template name="component.list.of.examples.titlepage.recto"/>
6365 </xsl:variable>
6366 <xsl:variable name="recto.elements.count">
6367 <xsl:choose>
6368 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
6369 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
6370 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
6371 <xsl:otherwise>1</xsl:otherwise>
6372 </xsl:choose>
6373 </xsl:variable>
6374 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
6375 <fo:block><xsl:copy-of select="$recto.content"/></fo:block>
6376 </xsl:if>
6377 <xsl:variable name="verso.content">
6378 <xsl:call-template name="component.list.of.examples.titlepage.before.verso"/>
6379 <xsl:call-template name="component.list.of.examples.titlepage.verso"/>
6380 </xsl:variable>
6381 <xsl:variable name="verso.elements.count">
6382 <xsl:choose>
6383 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
6384 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
6385 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
6386 <xsl:otherwise>1</xsl:otherwise>
6387 </xsl:choose>
6388 </xsl:variable>
6389 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
6390 <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
6391 </xsl:if>
6392 <xsl:call-template name="component.list.of.examples.titlepage.separator"/>
6393 </fo:block>
6394 </xsl:template>
6395
6396 <xsl:template match="*" mode="component.list.of.examples.titlepage.recto.mode">
6397 <!-- if an element isn't found in this mode, -->
6398 <!-- try the generic titlepage.mode -->
6399 <xsl:apply-templates select="." mode="titlepage.mode"/>
6400 </xsl:template>
6401
6402 <xsl:template match="*" mode="component.list.of.examples.titlepage.verso.mode">
6403 <!-- if an element isn't found in this mode, -->
6404 <!-- try the generic titlepage.mode -->
6405 <xsl:apply-templates select="." mode="titlepage.mode"/>
6406 </xsl:template>
6407
6408 <xsl:template name="component.list.of.equations.titlepage.recto">
6409 <fo:block xsl:use-attribute-sets="component.list.of.equations.titlepage.recto.style" space-before.minimum="1em" space-before.optimum="1em" space-before.maximum="1em" space-after="0.5em" margin-left="{$title.margin.left}" font-size="12pt" font-weight="bold" font-family="{$title.fontset}">
6410 <xsl:call-template name="gentext">
6411 <xsl:with-param name="key" select="'ListofEquations'"/>
6412 </xsl:call-template></fo:block>
6413 </xsl:template>
6414
6415 <xsl:template name="component.list.of.equations.titlepage.verso">
6416 </xsl:template>
6417
6418 <xsl:template name="component.list.of.equations.titlepage.separator">
6419 </xsl:template>
6420
6421 <xsl:template name="component.list.of.equations.titlepage.before.recto">
6422 </xsl:template>
6423
6424 <xsl:template name="component.list.of.equations.titlepage.before.verso">
6425 </xsl:template>
6426
6427 <xsl:template name="component.list.of.equations.titlepage">
6428 <fo:block>
6429 <xsl:variable name="recto.content">
6430 <xsl:call-template name="component.list.of.equations.titlepage.before.recto"/>
6431 <xsl:call-template name="component.list.of.equations.titlepage.recto"/>
6432 </xsl:variable>
6433 <xsl:variable name="recto.elements.count">
6434 <xsl:choose>
6435 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
6436 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
6437 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
6438 <xsl:otherwise>1</xsl:otherwise>
6439 </xsl:choose>
6440 </xsl:variable>
6441 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
6442 <fo:block><xsl:copy-of select="$recto.content"/></fo:block>
6443 </xsl:if>
6444 <xsl:variable name="verso.content">
6445 <xsl:call-template name="component.list.of.equations.titlepage.before.verso"/>
6446 <xsl:call-template name="component.list.of.equations.titlepage.verso"/>
6447 </xsl:variable>
6448 <xsl:variable name="verso.elements.count">
6449 <xsl:choose>
6450 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
6451 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
6452 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
6453 <xsl:otherwise>1</xsl:otherwise>
6454 </xsl:choose>
6455 </xsl:variable>
6456 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
6457 <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
6458 </xsl:if>
6459 <xsl:call-template name="component.list.of.equations.titlepage.separator"/>
6460 </fo:block>
6461 </xsl:template>
6462
6463 <xsl:template match="*" mode="component.list.of.equations.titlepage.recto.mode">
6464 <!-- if an element isn't found in this mode, -->
6465 <!-- try the generic titlepage.mode -->
6466 <xsl:apply-templates select="." mode="titlepage.mode"/>
6467 </xsl:template>
6468
6469 <xsl:template match="*" mode="component.list.of.equations.titlepage.verso.mode">
6470 <!-- if an element isn't found in this mode, -->
6471 <!-- try the generic titlepage.mode -->
6472 <xsl:apply-templates select="." mode="titlepage.mode"/>
6473 </xsl:template>
6474
6475 <xsl:template name="component.list.of.procedures.titlepage.recto">
6476 <fo:block xsl:use-attribute-sets="component.list.of.procedures.titlepage.recto.style" space-before.minimum="1em" space-before.optimum="1em" space-before.maximum="1em" space-after="0.5em" margin-left="{$title.margin.left}" font-size="12pt" font-weight="bold" font-family="{$title.fontset}">
6477 <xsl:call-template name="gentext">
6478 <xsl:with-param name="key" select="'ListofProcedures'"/>
6479 </xsl:call-template></fo:block>
6480 </xsl:template>
6481
6482 <xsl:template name="component.list.of.procedures.titlepage.verso">
6483 </xsl:template>
6484
6485 <xsl:template name="component.list.of.procedures.titlepage.separator">
6486 </xsl:template>
6487
6488 <xsl:template name="component.list.of.procedures.titlepage.before.recto">
6489 </xsl:template>
6490
6491 <xsl:template name="component.list.of.procedures.titlepage.before.verso">
6492 </xsl:template>
6493
6494 <xsl:template name="component.list.of.procedures.titlepage">
6495 <fo:block>
6496 <xsl:variable name="recto.content">
6497 <xsl:call-template name="component.list.of.procedures.titlepage.before.recto"/>
6498 <xsl:call-template name="component.list.of.procedures.titlepage.recto"/>
6499 </xsl:variable>
6500 <xsl:variable name="recto.elements.count">
6501 <xsl:choose>
6502 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
6503 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
6504 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
6505 <xsl:otherwise>1</xsl:otherwise>
6506 </xsl:choose>
6507 </xsl:variable>
6508 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
6509 <fo:block><xsl:copy-of select="$recto.content"/></fo:block>
6510 </xsl:if>
6511 <xsl:variable name="verso.content">
6512 <xsl:call-template name="component.list.of.procedures.titlepage.before.verso"/>
6513 <xsl:call-template name="component.list.of.procedures.titlepage.verso"/>
6514 </xsl:variable>
6515 <xsl:variable name="verso.elements.count">
6516 <xsl:choose>
6517 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
6518 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
6519 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
6520 <xsl:otherwise>1</xsl:otherwise>
6521 </xsl:choose>
6522 </xsl:variable>
6523 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
6524 <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
6525 </xsl:if>
6526 <xsl:call-template name="component.list.of.procedures.titlepage.separator"/>
6527 </fo:block>
6528 </xsl:template>
6529
6530 <xsl:template match="*" mode="component.list.of.procedures.titlepage.recto.mode">
6531 <!-- if an element isn't found in this mode, -->
6532 <!-- try the generic titlepage.mode -->
6533 <xsl:apply-templates select="." mode="titlepage.mode"/>
6534 </xsl:template>
6535
6536 <xsl:template match="*" mode="component.list.of.procedures.titlepage.verso.mode">
6537 <!-- if an element isn't found in this mode, -->
6538 <!-- try the generic titlepage.mode -->
6539 <xsl:apply-templates select="." mode="titlepage.mode"/>
6540 </xsl:template>
6541
6542 <xsl:template name="component.list.of.unknowns.titlepage.recto">
6543 <fo:block xsl:use-attribute-sets="component.list.of.unknowns.titlepage.recto.style" space-before.minimum="1em" space-before.optimum="1em" space-before.maximum="1em" space-after="0.5em" margin-left="{$title.margin.left}" font-size="12pt" font-weight="bold" font-family="{$title.fontset}">
6544 <xsl:call-template name="gentext">
6545 <xsl:with-param name="key" select="'ListofUnknown'"/>
6546 </xsl:call-template></fo:block>
6547 </xsl:template>
6548
6549 <xsl:template name="component.list.of.unknowns.titlepage.verso">
6550 </xsl:template>
6551
6552 <xsl:template name="component.list.of.unknowns.titlepage.separator">
6553 </xsl:template>
6554
6555 <xsl:template name="component.list.of.unknowns.titlepage.before.recto">
6556 </xsl:template>
6557
6558 <xsl:template name="component.list.of.unknowns.titlepage.before.verso">
6559 </xsl:template>
6560
6561 <xsl:template name="component.list.of.unknowns.titlepage">
6562 <fo:block>
6563 <xsl:variable name="recto.content">
6564 <xsl:call-template name="component.list.of.unknowns.titlepage.before.recto"/>
6565 <xsl:call-template name="component.list.of.unknowns.titlepage.recto"/>
6566 </xsl:variable>
6567 <xsl:variable name="recto.elements.count">
6568 <xsl:choose>
6569 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
6570 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
6571 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
6572 <xsl:otherwise>1</xsl:otherwise>
6573 </xsl:choose>
6574 </xsl:variable>
6575 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
6576 <fo:block><xsl:copy-of select="$recto.content"/></fo:block>
6577 </xsl:if>
6578 <xsl:variable name="verso.content">
6579 <xsl:call-template name="component.list.of.unknowns.titlepage.before.verso"/>
6580 <xsl:call-template name="component.list.of.unknowns.titlepage.verso"/>
6581 </xsl:variable>
6582 <xsl:variable name="verso.elements.count">
6583 <xsl:choose>
6584 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
6585 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
6586 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
6587 <xsl:otherwise>1</xsl:otherwise>
6588 </xsl:choose>
6589 </xsl:variable>
6590 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
6591 <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
6592 </xsl:if>
6593 <xsl:call-template name="component.list.of.unknowns.titlepage.separator"/>
6594 </fo:block>
6595 </xsl:template>
6596
6597 <xsl:template match="*" mode="component.list.of.unknowns.titlepage.recto.mode">
6598 <!-- if an element isn't found in this mode, -->
6599 <!-- try the generic titlepage.mode -->
6600 <xsl:apply-templates select="." mode="titlepage.mode"/>
6601 </xsl:template>
6602
6603 <xsl:template match="*" mode="component.list.of.unknowns.titlepage.verso.mode">
6604 <!-- if an element isn't found in this mode, -->
6605 <!-- try the generic titlepage.mode -->
6606 <xsl:apply-templates select="." mode="titlepage.mode"/>
6607 </xsl:template>
6608
6609 </xsl:stylesheet>