1<?xml version="1.0" encoding="utf-8"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
2
3<!-- This stylesheet was created by template/titlepage.xsl; do not edit it by hand. -->
4
5<xsl:template name="article.titlepage.recto">
6  <xsl:choose>
7    <xsl:when test="articleinfo/title">
8      <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/title"/>
9    </xsl:when>
10    <xsl:when test="artheader/title">
11      <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/title"/>
12    </xsl:when>
13    <xsl:when test="title">
14      <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="title"/>
15    </xsl:when>
16  </xsl:choose>
17
18  <xsl:choose>
19    <xsl:when test="articleinfo/subtitle">
20      <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/subtitle"/>
21    </xsl:when>
22    <xsl:when test="artheader/subtitle">
23      <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/subtitle"/>
24    </xsl:when>
25    <xsl:when test="subtitle">
26      <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="subtitle"/>
27    </xsl:when>
28  </xsl:choose>
29
30  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/corpauthor"/>
31  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/corpauthor"/>
32  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/authorgroup"/>
33  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/authorgroup"/>
34  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/author"/>
35  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/author"/>
36  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/releaseinfo"/>
37  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/releaseinfo"/>
38  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/copyright"/>
39  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/copyright"/>
40  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/legalnotice"/>
41  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/legalnotice"/>
42  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/pubdate"/>
43  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/pubdate"/>
44  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/revision"/>
45  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/revision"/>
46  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/revhistory"/>
47  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/revhistory"/>
48  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/abstract"/>
49  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/abstract"/>
50</xsl:template>
51
52<xsl:template name="article.titlepage.verso">
53</xsl:template>
54
55<xsl:template name="article.titlepage.separator">
56</xsl:template>
57
58<xsl:template name="article.titlepage.before.recto">
59</xsl:template>
60
61<xsl:template name="article.titlepage.before.verso">
62</xsl:template>
63
64<xsl:template name="article.titlepage">
65  <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
66    <xsl:call-template name="article.titlepage.before.recto"/>
67    <xsl:call-template name="article.titlepage.recto"/>
68    <xsl:call-template name="article.titlepage.before.verso"/>
69    <xsl:call-template name="article.titlepage.verso"/>
70    <xsl:call-template name="article.titlepage.separator"/>
71  </fo:block>
72</xsl:template>
73
74<xsl:template match="*" mode="article.titlepage.recto.mode">
75  <!-- if an element isn't found in this mode, -->
76  <!-- try the generic titlepage.mode -->
77  <xsl:apply-templates select="." mode="titlepage.mode"/>
78</xsl:template>
79
80<xsl:template match="*" mode="article.titlepage.verso.mode">
81  <!-- if an element isn't found in this mode, -->
82  <!-- try the generic titlepage.mode -->
83  <xsl:apply-templates select="." mode="titlepage.mode"/>
84</xsl:template>
85
86<xsl:template match="title" mode="article.titlepage.recto.auto.mode">
87<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style" text-align="center" margin-left="-4pc" keep-with-next="always" font-size="24.8832pt" font-weight="bold" font-family="{$title.font.family}">
88<xsl:call-template name="component.title">
89<xsl:with-param name="node" select="ancestor-or-self::article[1]"/>
90</xsl:call-template>
91</fo:block>
92</xsl:template>
93
94<xsl:template match="subtitle" mode="article.titlepage.recto.auto.mode">
95<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style" font-family="{$title.font.family}" text-align="center">
96<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
97</fo:block>
98</xsl:template>
99
100<xsl:template match="corpauthor" mode="article.titlepage.recto.auto.mode">
101<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style">
102<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
103</fo:block>
104</xsl:template>
105
106<xsl:template match="authorgroup" mode="article.titlepage.recto.auto.mode">
107<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style">
108<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
109</fo:block>
110</xsl:template>
111
112<xsl:template match="author" mode="article.titlepage.recto.auto.mode">
113<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style">
114<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
115</fo:block>
116</xsl:template>
117
118<xsl:template match="releaseinfo" mode="article.titlepage.recto.auto.mode">
119<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style">
120<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
121</fo:block>
122</xsl:template>
123
124<xsl:template match="copyright" mode="article.titlepage.recto.auto.mode">
125<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style">
126<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
127</fo:block>
128</xsl:template>
129
130<xsl:template match="legalnotice" mode="article.titlepage.recto.auto.mode">
131<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style">
132<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
133</fo:block>
134</xsl:template>
135
136<xsl:template match="pubdate" mode="article.titlepage.recto.auto.mode">
137<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style">
138<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
139</fo:block>
140</xsl:template>
141
142<xsl:template match="revision" mode="article.titlepage.recto.auto.mode">
143<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style">
144<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
145</fo:block>
146</xsl:template>
147
148<xsl:template match="revhistory" mode="article.titlepage.recto.auto.mode">
149<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style">
150<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
151</fo:block>
152</xsl:template>
153
154<xsl:template match="abstract" mode="article.titlepage.recto.auto.mode">
155<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style">
156<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
157</fo:block>
158</xsl:template>
159
160<xsl:template name="set.titlepage.recto">
161  <xsl:choose>
162    <xsl:when test="setinfo/title">
163      <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/title"/>
164    </xsl:when>
165    <xsl:when test="title">
166      <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="title"/>
167    </xsl:when>
168  </xsl:choose>
169
170  <xsl:choose>
171    <xsl:when test="setinfo/subtitle">
172      <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/subtitle"/>
173    </xsl:when>
174    <xsl:when test="subtitle">
175      <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="subtitle"/>
176    </xsl:when>
177  </xsl:choose>
178
179  <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/corpauthor"/>
180  <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/authorgroup"/>
181  <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/author"/>
182  <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/releaseinfo"/>
183  <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/copyright"/>
184  <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/legalnotice"/>
185  <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/pubdate"/>
186  <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/revision"/>
187  <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/revhistory"/>
188  <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/abstract"/>
189</xsl:template>
190
191<xsl:template name="set.titlepage.verso">
192</xsl:template>
193
194<xsl:template name="set.titlepage.separator">
195</xsl:template>
196
197<xsl:template name="set.titlepage.before.recto">
198</xsl:template>
199
200<xsl:template name="set.titlepage.before.verso">
201</xsl:template>
202
203<xsl:template name="set.titlepage">
204  <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
205    <xsl:call-template name="set.titlepage.before.recto"/>
206    <xsl:call-template name="set.titlepage.recto"/>
207    <xsl:call-template name="set.titlepage.before.verso"/>
208    <xsl:call-template name="set.titlepage.verso"/>
209    <xsl:call-template name="set.titlepage.separator"/>
210  </fo:block>
211</xsl:template>
212
213<xsl:template match="*" mode="set.titlepage.recto.mode">
214  <!-- if an element isn't found in this mode, -->
215  <!-- try the generic titlepage.mode -->
216  <xsl:apply-templates select="." mode="titlepage.mode"/>
217</xsl:template>
218
219<xsl:template match="*" mode="set.titlepage.verso.mode">
220  <!-- if an element isn't found in this mode, -->
221  <!-- try the generic titlepage.mode -->
222  <xsl:apply-templates select="." mode="titlepage.mode"/>
223</xsl:template>
224
225<xsl:template match="title" mode="set.titlepage.recto.auto.mode">
226<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style" text-align="center" font-size="24.8832pt" space-before="18.6624pt" font-weight="bold" font-family="{$title.font.family}">
227<xsl:call-template name="division.title">
228<xsl:with-param name="node" select="ancestor-or-self::set[1]"/>
229</xsl:call-template>
230</fo:block>
231</xsl:template>
232
233<xsl:template match="subtitle" mode="set.titlepage.recto.auto.mode">
234<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style" font-family="{$title.font.family}" text-align="center">
235<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
236</fo:block>
237</xsl:template>
238
239<xsl:template match="corpauthor" mode="set.titlepage.recto.auto.mode">
240<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style">
241<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
242</fo:block>
243</xsl:template>
244
245<xsl:template match="authorgroup" mode="set.titlepage.recto.auto.mode">
246<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style">
247<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
248</fo:block>
249</xsl:template>
250
251<xsl:template match="author" mode="set.titlepage.recto.auto.mode">
252<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style">
253<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
254</fo:block>
255</xsl:template>
256
257<xsl:template match="releaseinfo" mode="set.titlepage.recto.auto.mode">
258<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style">
259<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
260</fo:block>
261</xsl:template>
262
263<xsl:template match="copyright" mode="set.titlepage.recto.auto.mode">
264<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style">
265<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
266</fo:block>
267</xsl:template>
268
269<xsl:template match="legalnotice" mode="set.titlepage.recto.auto.mode">
270<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style">
271<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
272</fo:block>
273</xsl:template>
274
275<xsl:template match="pubdate" mode="set.titlepage.recto.auto.mode">
276<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style">
277<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
278</fo:block>
279</xsl:template>
280
281<xsl:template match="revision" mode="set.titlepage.recto.auto.mode">
282<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style">
283<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
284</fo:block>
285</xsl:template>
286
287<xsl:template match="revhistory" mode="set.titlepage.recto.auto.mode">
288<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style">
289<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
290</fo:block>
291</xsl:template>
292
293<xsl:template match="abstract" mode="set.titlepage.recto.auto.mode">
294<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style">
295<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
296</fo:block>
297</xsl:template>
298
299<xsl:template name="book.titlepage.recto">
300  <xsl:choose>
301    <xsl:when test="bookinfo/title">
302      <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/title"/>
303    </xsl:when>
304    <xsl:when test="title">
305      <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="title"/>
306    </xsl:when>
307  </xsl:choose>
308
309  <xsl:choose>
310    <xsl:when test="bookinfo/subtitle">
311      <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/subtitle"/>
312    </xsl:when>
313    <xsl:when test="subtitle">
314      <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="subtitle"/>
315    </xsl:when>
316  </xsl:choose>
317
318  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/corpauthor"/>
319  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/authorgroup"/>
320  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/author"/>
321</xsl:template>
322
323<xsl:template name="book.titlepage.verso">
324  <xsl:choose>
325    <xsl:when test="bookinfo/title">
326      <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/title"/>
327    </xsl:when>
328    <xsl:when test="title">
329      <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="title"/>
330    </xsl:when>
331  </xsl:choose>
332
333  <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/corpauthor"/>
334  <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/authorgroup"/>
335  <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/author"/>
336  <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/pubdate"/>
337  <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/copyright"/>
338  <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/abstract"/>
339  <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/legalnotice"/>
340</xsl:template>
341
342<xsl:template name="book.titlepage.separator"><fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" break-after="page"/>
343</xsl:template>
344
345<xsl:template name="book.titlepage.before.recto">
346</xsl:template>
347
348<xsl:template name="book.titlepage.before.verso"><fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" break-after="page"/>
349</xsl:template>
350
351<xsl:template name="book.titlepage">
352  <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
353    <xsl:call-template name="book.titlepage.before.recto"/>
354    <xsl:call-template name="book.titlepage.recto"/>
355    <xsl:call-template name="book.titlepage.before.verso"/>
356    <xsl:call-template name="book.titlepage.verso"/>
357    <xsl:call-template name="book.titlepage.separator"/>
358  </fo:block>
359</xsl:template>
360
361<xsl:template match="*" mode="book.titlepage.recto.mode">
362  <!-- if an element isn't found in this mode, -->
363  <!-- try the generic titlepage.mode -->
364  <xsl:apply-templates select="." mode="titlepage.mode"/>
365</xsl:template>
366
367<xsl:template match="*" mode="book.titlepage.verso.mode">
368  <!-- if an element isn't found in this mode, -->
369  <!-- try the generic titlepage.mode -->
370  <xsl:apply-templates select="." mode="titlepage.mode"/>
371</xsl:template>
372
373<xsl:template match="title" mode="book.titlepage.recto.auto.mode">
374<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" 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.font.family}">
375<xsl:call-template name="division.title">
376<xsl:with-param name="node" select="ancestor-or-self::book[1]"/>
377</xsl:call-template>
378</fo:block>
379</xsl:template>
380
381<xsl:template match="subtitle" mode="book.titlepage.recto.auto.mode">
382<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.recto.style" text-align="center" font-size="20.736pt" space-before="15.552pt" font-family="{$title.font.family}">
383<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
384</fo:block>
385</xsl:template>
386
387<xsl:template match="corpauthor" mode="book.titlepage.recto.auto.mode">
388<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.recto.style" font-size="17.28pt" keep-with-next="always" space-before="2in">
389<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
390</fo:block>
391</xsl:template>
392
393<xsl:template match="authorgroup" mode="book.titlepage.recto.auto.mode">
394<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.recto.style" space-before="2in">
395<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
396</fo:block>
397</xsl:template>
398
399<xsl:template match="author" mode="book.titlepage.recto.auto.mode">
400<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.recto.style" font-size="17.28pt" space-before="10.8pt" keep-with-next="always">
401<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
402</fo:block>
403</xsl:template>
404
405<xsl:template match="title" mode="book.titlepage.verso.auto.mode">
406<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style" font-size="14.4pt" font-weight="bold" font-family="{$title.font.family}">
407<xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
408</fo:block>
409</xsl:template>
410
411<xsl:template match="corpauthor" mode="book.titlepage.verso.auto.mode">
412<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style">
413<xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
414</fo:block>
415</xsl:template>
416
417<xsl:template match="authorgroup" mode="book.titlepage.verso.auto.mode">
418<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style">
419<xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
420</fo:block>
421</xsl:template>
422
423<xsl:template match="author" mode="book.titlepage.verso.auto.mode">
424<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style">
425<xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
426</fo:block>
427</xsl:template>
428
429<xsl:template match="pubdate" mode="book.titlepage.verso.auto.mode">
430<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style" space-before="1em">
431<xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
432</fo:block>
433</xsl:template>
434
435<xsl:template match="copyright" mode="book.titlepage.verso.auto.mode">
436<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style">
437<xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
438</fo:block>
439</xsl:template>
440
441<xsl:template match="abstract" mode="book.titlepage.verso.auto.mode">
442<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style">
443<xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
444</fo:block>
445</xsl:template>
446
447<xsl:template match="legalnotice" mode="book.titlepage.verso.auto.mode">
448<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style" font-size="8pt">
449<xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
450</fo:block>
451</xsl:template>
452
453<xsl:template name="part.titlepage.recto">
454  <xsl:choose>
455    <xsl:when test="partinfo/title">
456      <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/title"/>
457    </xsl:when>
458    <xsl:when test="docinfo/title">
459      <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/title"/>
460    </xsl:when>
461    <xsl:when test="title">
462      <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="title"/>
463    </xsl:when>
464  </xsl:choose>
465
466  <xsl:choose>
467    <xsl:when test="partinfo/subtitle">
468      <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/subtitle"/>
469    </xsl:when>
470    <xsl:when test="docinfo/subtitle">
471      <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
472    </xsl:when>
473    <xsl:when test="subtitle">
474      <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="subtitle"/>
475    </xsl:when>
476  </xsl:choose>
477
478</xsl:template>
479
480<xsl:template name="part.titlepage.verso">
481</xsl:template>
482
483<xsl:template name="part.titlepage.separator">
484</xsl:template>
485
486<xsl:template name="part.titlepage.before.recto">
487</xsl:template>
488
489<xsl:template name="part.titlepage.before.verso">
490</xsl:template>
491
492<xsl:template name="part.titlepage">
493  <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
494    <xsl:call-template name="part.titlepage.before.recto"/>
495    <xsl:call-template name="part.titlepage.recto"/>
496    <xsl:call-template name="part.titlepage.before.verso"/>
497    <xsl:call-template name="part.titlepage.verso"/>
498    <xsl:call-template name="part.titlepage.separator"/>
499  </fo:block>
500</xsl:template>
501
502<xsl:template match="*" mode="part.titlepage.recto.mode">
503  <!-- if an element isn't found in this mode, -->
504  <!-- try the generic titlepage.mode -->
505  <xsl:apply-templates select="." mode="titlepage.mode"/>
506</xsl:template>
507
508<xsl:template match="*" mode="part.titlepage.verso.mode">
509  <!-- if an element isn't found in this mode, -->
510  <!-- try the generic titlepage.mode -->
511  <xsl:apply-templates select="." mode="titlepage.mode"/>
512</xsl:template>
513
514<xsl:template match="title" mode="part.titlepage.recto.auto.mode">
515<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="part.titlepage.recto.style" text-align="center" font-size="24.8832pt" space-before="18.6624pt" font-weight="bold" font-family="{$title.font.family}">
516<xsl:call-template name="division.title">
517<xsl:with-param name="node" select="ancestor-or-self::part[1]"/>
518</xsl:call-template>
519</fo:block>
520</xsl:template>
521
522<xsl:template match="subtitle" mode="part.titlepage.recto.auto.mode">
523<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="part.titlepage.recto.style" text-align="center" font-size="20.736pt" space-before="15.552pt" font-weight="bold" font-style="italic" font-family="{$title.font.family}">
524<xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
525</fo:block>
526</xsl:template>
527
528<xsl:template name="partintro.titlepage.recto">
529  <xsl:choose>
530    <xsl:when test="partintroinfo/title">
531      <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/title"/>
532    </xsl:when>
533    <xsl:when test="docinfo/title">
534      <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/title"/>
535    </xsl:when>
536    <xsl:when test="title">
537      <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="title"/>
538    </xsl:when>
539  </xsl:choose>
540
541  <xsl:choose>
542    <xsl:when test="partintroinfo/subtitle">
543      <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/subtitle"/>
544    </xsl:when>
545    <xsl:when test="docinfo/subtitle">
546      <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
547    </xsl:when>
548    <xsl:when test="subtitle">
549      <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="subtitle"/>
550    </xsl:when>
551  </xsl:choose>
552
553  <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/corpauthor"/>
554  <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/corpauthor"/>
555  <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/authorgroup"/>
556  <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/authorgroup"/>
557  <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/author"/>
558  <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/author"/>
559  <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/releaseinfo"/>
560  <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/>
561  <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/copyright"/>
562  <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/copyright"/>
563  <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/legalnotice"/>
564  <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/legalnotice"/>
565  <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/pubdate"/>
566  <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/pubdate"/>
567  <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/revision"/>
568  <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/revision"/>
569  <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/revhistory"/>
570  <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/revhistory"/>
571  <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/abstract"/>
572  <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/abstract"/>
573</xsl:template>
574
575<xsl:template name="partintro.titlepage.verso">
576</xsl:template>
577
578<xsl:template name="partintro.titlepage.separator">
579</xsl:template>
580
581<xsl:template name="partintro.titlepage.before.recto">
582</xsl:template>
583
584<xsl:template name="partintro.titlepage.before.verso">
585</xsl:template>
586
587<xsl:template name="partintro.titlepage">
588  <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
589    <xsl:call-template name="partintro.titlepage.before.recto"/>
590    <xsl:call-template name="partintro.titlepage.recto"/>
591    <xsl:call-template name="partintro.titlepage.before.verso"/>
592    <xsl:call-template name="partintro.titlepage.verso"/>
593    <xsl:call-template name="partintro.titlepage.separator"/>
594  </fo:block>
595</xsl:template>
596
597<xsl:template match="*" mode="partintro.titlepage.recto.mode">
598  <!-- if an element isn't found in this mode, -->
599  <!-- try the generic titlepage.mode -->
600  <xsl:apply-templates select="." mode="titlepage.mode"/>
601</xsl:template>
602
603<xsl:template match="*" mode="partintro.titlepage.verso.mode">
604  <!-- if an element isn't found in this mode, -->
605  <!-- try the generic titlepage.mode -->
606  <xsl:apply-templates select="." mode="titlepage.mode"/>
607</xsl:template>
608
609<xsl:template match="title" mode="partintro.titlepage.recto.auto.mode">
610<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style" text-align="center" font-size="17.28pt" font-weight="bold" margin-left="-4pc" space-before="1em" font-family="{$title.font.family}">
611<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
612</fo:block>
613</xsl:template>
614
615<xsl:template match="subtitle" mode="partintro.titlepage.recto.auto.mode">
616<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style" text-align="center" font-size="14.4pt" font-weight="bold" font-style="italic" font-family="{$title.font.family}">
617<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
618</fo:block>
619</xsl:template>
620
621<xsl:template match="corpauthor" mode="partintro.titlepage.recto.auto.mode">
622<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style">
623<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
624</fo:block>
625</xsl:template>
626
627<xsl:template match="authorgroup" mode="partintro.titlepage.recto.auto.mode">
628<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style">
629<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
630</fo:block>
631</xsl:template>
632
633<xsl:template match="author" mode="partintro.titlepage.recto.auto.mode">
634<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style">
635<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
636</fo:block>
637</xsl:template>
638
639<xsl:template match="releaseinfo" mode="partintro.titlepage.recto.auto.mode">
640<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style">
641<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
642</fo:block>
643</xsl:template>
644
645<xsl:template match="copyright" mode="partintro.titlepage.recto.auto.mode">
646<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style">
647<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
648</fo:block>
649</xsl:template>
650
651<xsl:template match="legalnotice" mode="partintro.titlepage.recto.auto.mode">
652<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style">
653<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
654</fo:block>
655</xsl:template>
656
657<xsl:template match="pubdate" mode="partintro.titlepage.recto.auto.mode">
658<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style">
659<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
660</fo:block>
661</xsl:template>
662
663<xsl:template match="revision" mode="partintro.titlepage.recto.auto.mode">
664<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style">
665<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
666</fo:block>
667</xsl:template>
668
669<xsl:template match="revhistory" mode="partintro.titlepage.recto.auto.mode">
670<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style">
671<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
672</fo:block>
673</xsl:template>
674
675<xsl:template match="abstract" mode="partintro.titlepage.recto.auto.mode">
676<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style">
677<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
678</fo:block>
679</xsl:template>
680
681<xsl:template name="reference.titlepage.recto">
682  <xsl:choose>
683    <xsl:when test="referenceinfo/title">
684      <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/title"/>
685    </xsl:when>
686    <xsl:when test="docinfo/title">
687      <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/title"/>
688    </xsl:when>
689    <xsl:when test="title">
690      <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="title"/>
691    </xsl:when>
692  </xsl:choose>
693
694  <xsl:choose>
695    <xsl:when test="referenceinfo/subtitle">
696      <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/subtitle"/>
697    </xsl:when>
698    <xsl:when test="docinfo/subtitle">
699      <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
700    </xsl:when>
701    <xsl:when test="subtitle">
702      <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="subtitle"/>
703    </xsl:when>
704  </xsl:choose>
705
706  <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/corpauthor"/>
707  <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/corpauthor"/>
708  <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/authorgroup"/>
709  <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/authorgroup"/>
710  <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/author"/>
711  <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/author"/>
712  <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/releaseinfo"/>
713  <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/>
714  <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/copyright"/>
715  <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/copyright"/>
716  <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/legalnotice"/>
717  <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/legalnotice"/>
718  <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/pubdate"/>
719  <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/pubdate"/>
720  <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/revision"/>
721  <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/revision"/>
722  <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/revhistory"/>
723  <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/revhistory"/>
724  <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/abstract"/>
725  <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/abstract"/>
726</xsl:template>
727
728<xsl:template name="reference.titlepage.verso">
729</xsl:template>
730
731<xsl:template name="reference.titlepage.separator">
732</xsl:template>
733
734<xsl:template name="reference.titlepage.before.recto">
735</xsl:template>
736
737<xsl:template name="reference.titlepage.before.verso">
738</xsl:template>
739
740<xsl:template name="reference.titlepage">
741  <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
742    <xsl:call-template name="reference.titlepage.before.recto"/>
743    <xsl:call-template name="reference.titlepage.recto"/>
744    <xsl:call-template name="reference.titlepage.before.verso"/>
745    <xsl:call-template name="reference.titlepage.verso"/>
746    <xsl:call-template name="reference.titlepage.separator"/>
747  </fo:block>
748</xsl:template>
749
750<xsl:template match="*" mode="reference.titlepage.recto.mode">
751  <!-- if an element isn't found in this mode, -->
752  <!-- try the generic titlepage.mode -->
753  <xsl:apply-templates select="." mode="titlepage.mode"/>
754</xsl:template>
755
756<xsl:template match="*" mode="reference.titlepage.verso.mode">
757  <!-- if an element isn't found in this mode, -->
758  <!-- try the generic titlepage.mode -->
759  <xsl:apply-templates select="." mode="titlepage.mode"/>
760</xsl:template>
761
762<xsl:template match="title" mode="reference.titlepage.recto.auto.mode">
763<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style" text-align="center" font-size="24.8832pt" space-before="18.6624pt" font-weight="bold" font-family="{$title.font.family}">
764<xsl:call-template name="division.title">
765<xsl:with-param name="node" select="ancestor-or-self::reference[1]"/>
766</xsl:call-template>
767</fo:block>
768</xsl:template>
769
770<xsl:template match="subtitle" mode="reference.titlepage.recto.auto.mode">
771<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style" font-family="{$title.font.family}" text-align="center">
772<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
773</fo:block>
774</xsl:template>
775
776<xsl:template match="corpauthor" mode="reference.titlepage.recto.auto.mode">
777<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style">
778<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
779</fo:block>
780</xsl:template>
781
782<xsl:template match="authorgroup" mode="reference.titlepage.recto.auto.mode">
783<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style">
784<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
785</fo:block>
786</xsl:template>
787
788<xsl:template match="author" mode="reference.titlepage.recto.auto.mode">
789<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style">
790<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
791</fo:block>
792</xsl:template>
793
794<xsl:template match="releaseinfo" mode="reference.titlepage.recto.auto.mode">
795<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style">
796<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
797</fo:block>
798</xsl:template>
799
800<xsl:template match="copyright" mode="reference.titlepage.recto.auto.mode">
801<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style">
802<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
803</fo:block>
804</xsl:template>
805
806<xsl:template match="legalnotice" mode="reference.titlepage.recto.auto.mode">
807<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style">
808<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
809</fo:block>
810</xsl:template>
811
812<xsl:template match="pubdate" mode="reference.titlepage.recto.auto.mode">
813<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style">
814<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
815</fo:block>
816</xsl:template>
817
818<xsl:template match="revision" mode="reference.titlepage.recto.auto.mode">
819<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style">
820<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
821</fo:block>
822</xsl:template>
823
824<xsl:template match="revhistory" mode="reference.titlepage.recto.auto.mode">
825<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style">
826<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
827</fo:block>
828</xsl:template>
829
830<xsl:template match="abstract" mode="reference.titlepage.recto.auto.mode">
831<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style">
832<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
833</fo:block>
834</xsl:template>
835
836<xsl:template name="dedication.titlepage.recto">
837  <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="dedication.titlepage.recto.style" margin-left="-4pc" font-size="17.28pt" font-family="{$title.font.family}" font-weight="bold">
838<xsl:call-template name="component.title">
839<xsl:with-param name="node" select="ancestor-or-self::dedication[1]"/>
840</xsl:call-template></fo:block>
841  <xsl:choose>
842    <xsl:when test="dedicationinfo/subtitle">
843      <xsl:apply-templates mode="dedication.titlepage.recto.auto.mode" select="dedicationinfo/subtitle"/>
844    </xsl:when>
845    <xsl:when test="docinfo/subtitle">
846      <xsl:apply-templates mode="dedication.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
847    </xsl:when>
848    <xsl:when test="subtitle">
849      <xsl:apply-templates mode="dedication.titlepage.recto.auto.mode" select="subtitle"/>
850    </xsl:when>
851  </xsl:choose>
852
853</xsl:template>
854
855<xsl:template name="dedication.titlepage.verso">
856</xsl:template>
857
858<xsl:template name="dedication.titlepage.separator">
859</xsl:template>
860
861<xsl:template name="dedication.titlepage.before.recto">
862</xsl:template>
863
864<xsl:template name="dedication.titlepage.before.verso">
865</xsl:template>
866
867<xsl:template name="dedication.titlepage">
868  <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
869    <xsl:call-template name="dedication.titlepage.before.recto"/>
870    <xsl:call-template name="dedication.titlepage.recto"/>
871    <xsl:call-template name="dedication.titlepage.before.verso"/>
872    <xsl:call-template name="dedication.titlepage.verso"/>
873    <xsl:call-template name="dedication.titlepage.separator"/>
874  </fo:block>
875</xsl:template>
876
877<xsl:template match="*" mode="dedication.titlepage.recto.mode">
878  <!-- if an element isn't found in this mode, -->
879  <!-- try the generic titlepage.mode -->
880  <xsl:apply-templates select="." mode="titlepage.mode"/>
881</xsl:template>
882
883<xsl:template match="*" mode="dedication.titlepage.verso.mode">
884  <!-- if an element isn't found in this mode, -->
885  <!-- try the generic titlepage.mode -->
886  <xsl:apply-templates select="." mode="titlepage.mode"/>
887</xsl:template>
888
889<xsl:template match="subtitle" mode="dedication.titlepage.recto.auto.mode">
890<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="dedication.titlepage.recto.style" font-family="{$title.font.family}">
891<xsl:apply-templates select="." mode="dedication.titlepage.recto.mode"/>
892</fo:block>
893</xsl:template>
894
895<xsl:template name="preface.titlepage.recto">
896  <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style" margin-left="-4pc" font-size="17.28pt" font-family="{$title.font.family}" font-weight="bold">
897<xsl:call-template name="component.title">
898<xsl:with-param name="node" select="ancestor-or-self::preface[1]"/>
899</xsl:call-template></fo:block>
900  <xsl:choose>
901    <xsl:when test="prefaceinfo/subtitle">
902      <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/subtitle"/>
903    </xsl:when>
904    <xsl:when test="docinfo/subtitle">
905      <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
906    </xsl:when>
907    <xsl:when test="subtitle">
908      <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="subtitle"/>
909    </xsl:when>
910  </xsl:choose>
911
912  <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/corpauthor"/>
913  <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/corpauthor"/>
914  <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/authorgroup"/>
915  <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/authorgroup"/>
916  <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/author"/>
917  <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/author"/>
918  <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/releaseinfo"/>
919  <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/>
920  <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/copyright"/>
921  <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/copyright"/>
922  <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/legalnotice"/>
923  <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/legalnotice"/>
924  <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/pubdate"/>
925  <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/pubdate"/>
926  <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/revision"/>
927  <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/revision"/>
928  <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/revhistory"/>
929  <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/revhistory"/>
930  <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/abstract"/>
931  <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/abstract"/>
932</xsl:template>
933
934<xsl:template name="preface.titlepage.verso">
935</xsl:template>
936
937<xsl:template name="preface.titlepage.separator">
938</xsl:template>
939
940<xsl:template name="preface.titlepage.before.recto">
941</xsl:template>
942
943<xsl:template name="preface.titlepage.before.verso">
944</xsl:template>
945
946<xsl:template name="preface.titlepage">
947  <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
948    <xsl:call-template name="preface.titlepage.before.recto"/>
949    <xsl:call-template name="preface.titlepage.recto"/>
950    <xsl:call-template name="preface.titlepage.before.verso"/>
951    <xsl:call-template name="preface.titlepage.verso"/>
952    <xsl:call-template name="preface.titlepage.separator"/>
953  </fo:block>
954</xsl:template>
955
956<xsl:template match="*" mode="preface.titlepage.recto.mode">
957  <!-- if an element isn't found in this mode, -->
958  <!-- try the generic titlepage.mode -->
959  <xsl:apply-templates select="." mode="titlepage.mode"/>
960</xsl:template>
961
962<xsl:template match="*" mode="preface.titlepage.verso.mode">
963  <!-- if an element isn't found in this mode, -->
964  <!-- try the generic titlepage.mode -->
965  <xsl:apply-templates select="." mode="titlepage.mode"/>
966</xsl:template>
967
968<xsl:template match="subtitle" mode="preface.titlepage.recto.auto.mode">
969<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style" font-family="{$title.font.family}">
970<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
971</fo:block>
972</xsl:template>
973
974<xsl:template match="corpauthor" mode="preface.titlepage.recto.auto.mode">
975<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style">
976<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
977</fo:block>
978</xsl:template>
979
980<xsl:template match="authorgroup" mode="preface.titlepage.recto.auto.mode">
981<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style">
982<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
983</fo:block>
984</xsl:template>
985
986<xsl:template match="author" mode="preface.titlepage.recto.auto.mode">
987<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style">
988<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
989</fo:block>
990</xsl:template>
991
992<xsl:template match="releaseinfo" mode="preface.titlepage.recto.auto.mode">
993<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style">
994<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
995</fo:block>
996</xsl:template>
997
998<xsl:template match="copyright" mode="preface.titlepage.recto.auto.mode">
999<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style">
1000<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1001</fo:block>
1002</xsl:template>
1003
1004<xsl:template match="legalnotice" mode="preface.titlepage.recto.auto.mode">
1005<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style">
1006<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1007</fo:block>
1008</xsl:template>
1009
1010<xsl:template match="pubdate" mode="preface.titlepage.recto.auto.mode">
1011<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style">
1012<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1013</fo:block>
1014</xsl:template>
1015
1016<xsl:template match="revision" mode="preface.titlepage.recto.auto.mode">
1017<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style">
1018<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1019</fo:block>
1020</xsl:template>
1021
1022<xsl:template match="revhistory" mode="preface.titlepage.recto.auto.mode">
1023<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style">
1024<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1025</fo:block>
1026</xsl:template>
1027
1028<xsl:template match="abstract" mode="preface.titlepage.recto.auto.mode">
1029<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style">
1030<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1031</fo:block>
1032</xsl:template>
1033
1034<xsl:template name="chapter.titlepage.recto">
1035  <xsl:choose>
1036    <xsl:when test="chapterinfo/title">
1037      <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/title"/>
1038    </xsl:when>
1039    <xsl:when test="docinfo/title">
1040      <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/title"/>
1041    </xsl:when>
1042    <xsl:when test="title">
1043      <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="title"/>
1044    </xsl:when>
1045  </xsl:choose>
1046
1047  <xsl:choose>
1048    <xsl:when test="chapterinfo/subtitle">
1049      <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/subtitle"/>
1050    </xsl:when>
1051    <xsl:when test="docinfo/subtitle">
1052      <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
1053    </xsl:when>
1054    <xsl:when test="subtitle">
1055      <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="subtitle"/>
1056    </xsl:when>
1057  </xsl:choose>
1058
1059  <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/corpauthor"/>
1060  <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/corpauthor"/>
1061  <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/authorgroup"/>
1062  <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/authorgroup"/>
1063  <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/author"/>
1064  <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/author"/>
1065  <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/releaseinfo"/>
1066  <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/>
1067  <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/copyright"/>
1068  <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/copyright"/>
1069  <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/legalnotice"/>
1070  <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/legalnotice"/>
1071  <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/pubdate"/>
1072  <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/pubdate"/>
1073  <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/revision"/>
1074  <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/revision"/>
1075  <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/revhistory"/>
1076  <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/revhistory"/>
1077  <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/abstract"/>
1078  <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/abstract"/>
1079</xsl:template>
1080
1081<xsl:template name="chapter.titlepage.verso">
1082</xsl:template>
1083
1084<xsl:template name="chapter.titlepage.separator">
1085</xsl:template>
1086
1087<xsl:template name="chapter.titlepage.before.recto">
1088</xsl:template>
1089
1090<xsl:template name="chapter.titlepage.before.verso">
1091</xsl:template>
1092
1093<xsl:template name="chapter.titlepage">
1094  <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
1095    <xsl:call-template name="chapter.titlepage.before.recto"/>
1096    <xsl:call-template name="chapter.titlepage.recto"/>
1097    <xsl:call-template name="chapter.titlepage.before.verso"/>
1098    <xsl:call-template name="chapter.titlepage.verso"/>
1099    <xsl:call-template name="chapter.titlepage.separator"/>
1100  </fo:block>
1101</xsl:template>
1102
1103<xsl:template match="*" mode="chapter.titlepage.recto.mode">
1104  <!-- if an element isn't found in this mode, -->
1105  <!-- try the generic titlepage.mode -->
1106  <xsl:apply-templates select="." mode="titlepage.mode"/>
1107</xsl:template>
1108
1109<xsl:template match="*" mode="chapter.titlepage.verso.mode">
1110  <!-- if an element isn't found in this mode, -->
1111  <!-- try the generic titlepage.mode -->
1112  <xsl:apply-templates select="." mode="titlepage.mode"/>
1113</xsl:template>
1114
1115<xsl:template match="title" mode="chapter.titlepage.recto.auto.mode">
1116<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style" margin-left="-4pc" font-size="17.28pt" font-weight="bold" font-family="{$title.font.family}">
1117<xsl:call-template name="component.title">
1118<xsl:with-param name="node" select="ancestor-or-self::chapter[1]"/>
1119</xsl:call-template>
1120</fo:block>
1121</xsl:template>
1122
1123<xsl:template match="subtitle" mode="chapter.titlepage.recto.auto.mode">
1124<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style" space-before="0.5em" margin-left="-4pc" font-style="italic" font-size="14.4pt" font-weight="bold" font-family="{$title.font.family}">
1125<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1126</fo:block>
1127</xsl:template>
1128
1129<xsl:template match="corpauthor" mode="chapter.titlepage.recto.auto.mode">
1130<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style">
1131<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1132</fo:block>
1133</xsl:template>
1134
1135<xsl:template match="authorgroup" mode="chapter.titlepage.recto.auto.mode">
1136<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style">
1137<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1138</fo:block>
1139</xsl:template>
1140
1141<xsl:template match="author" mode="chapter.titlepage.recto.auto.mode">
1142<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style">
1143<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1144</fo:block>
1145</xsl:template>
1146
1147<xsl:template match="releaseinfo" mode="chapter.titlepage.recto.auto.mode">
1148<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style">
1149<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1150</fo:block>
1151</xsl:template>
1152
1153<xsl:template match="copyright" mode="chapter.titlepage.recto.auto.mode">
1154<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style">
1155<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1156</fo:block>
1157</xsl:template>
1158
1159<xsl:template match="legalnotice" mode="chapter.titlepage.recto.auto.mode">
1160<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style">
1161<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1162</fo:block>
1163</xsl:template>
1164
1165<xsl:template match="pubdate" mode="chapter.titlepage.recto.auto.mode">
1166<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style">
1167<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1168</fo:block>
1169</xsl:template>
1170
1171<xsl:template match="revision" mode="chapter.titlepage.recto.auto.mode">
1172<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style">
1173<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1174</fo:block>
1175</xsl:template>
1176
1177<xsl:template match="revhistory" mode="chapter.titlepage.recto.auto.mode">
1178<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style">
1179<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1180</fo:block>
1181</xsl:template>
1182
1183<xsl:template match="abstract" mode="chapter.titlepage.recto.auto.mode">
1184<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style">
1185<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1186</fo:block>
1187</xsl:template>
1188
1189<xsl:template name="appendix.titlepage.recto">
1190  <xsl:choose>
1191    <xsl:when test="appendixinfo/title">
1192      <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/title"/>
1193    </xsl:when>
1194    <xsl:when test="docinfo/title">
1195      <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/title"/>
1196    </xsl:when>
1197    <xsl:when test="title">
1198      <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="title"/>
1199    </xsl:when>
1200  </xsl:choose>
1201
1202  <xsl:choose>
1203    <xsl:when test="appendixinfo/subtitle">
1204      <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/subtitle"/>
1205    </xsl:when>
1206    <xsl:when test="docinfo/subtitle">
1207      <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
1208    </xsl:when>
1209    <xsl:when test="subtitle">
1210      <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="subtitle"/>
1211    </xsl:when>
1212  </xsl:choose>
1213
1214  <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/corpauthor"/>
1215  <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/corpauthor"/>
1216  <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/authorgroup"/>
1217  <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/authorgroup"/>
1218  <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/author"/>
1219  <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/author"/>
1220  <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/releaseinfo"/>
1221  <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/>
1222  <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/copyright"/>
1223  <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/copyright"/>
1224  <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/legalnotice"/>
1225  <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/legalnotice"/>
1226  <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/pubdate"/>
1227  <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/pubdate"/>
1228  <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/revision"/>
1229  <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/revision"/>
1230  <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/revhistory"/>
1231  <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/revhistory"/>
1232  <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/abstract"/>
1233  <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/abstract"/>
1234</xsl:template>
1235
1236<xsl:template name="appendix.titlepage.verso">
1237</xsl:template>
1238
1239<xsl:template name="appendix.titlepage.separator">
1240</xsl:template>
1241
1242<xsl:template name="appendix.titlepage.before.recto">
1243</xsl:template>
1244
1245<xsl:template name="appendix.titlepage.before.verso">
1246</xsl:template>
1247
1248<xsl:template name="appendix.titlepage">
1249  <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
1250    <xsl:call-template name="appendix.titlepage.before.recto"/>
1251    <xsl:call-template name="appendix.titlepage.recto"/>
1252    <xsl:call-template name="appendix.titlepage.before.verso"/>
1253    <xsl:call-template name="appendix.titlepage.verso"/>
1254    <xsl:call-template name="appendix.titlepage.separator"/>
1255  </fo:block>
1256</xsl:template>
1257
1258<xsl:template match="*" mode="appendix.titlepage.recto.mode">
1259  <!-- if an element isn't found in this mode, -->
1260  <!-- try the generic titlepage.mode -->
1261  <xsl:apply-templates select="." mode="titlepage.mode"/>
1262</xsl:template>
1263
1264<xsl:template match="*" mode="appendix.titlepage.verso.mode">
1265  <!-- if an element isn't found in this mode, -->
1266  <!-- try the generic titlepage.mode -->
1267  <xsl:apply-templates select="." mode="titlepage.mode"/>
1268</xsl:template>
1269
1270<xsl:template match="title" mode="appendix.titlepage.recto.auto.mode">
1271<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style" margin-left="-4pc" font-size="17.28pt" font-weight="bold" font-family="{$title.font.family}">
1272<xsl:call-template name="component.title">
1273<xsl:with-param name="node" select="ancestor-or-self::appendix[1]"/>
1274</xsl:call-template>
1275</fo:block>
1276</xsl:template>
1277
1278<xsl:template match="subtitle" mode="appendix.titlepage.recto.auto.mode">
1279<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style" font-family="{$title.font.family}">
1280<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
1281</fo:block>
1282</xsl:template>
1283
1284<xsl:template match="corpauthor" mode="appendix.titlepage.recto.auto.mode">
1285<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style">
1286<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
1287</fo:block>
1288</xsl:template>
1289
1290<xsl:template match="authorgroup" mode="appendix.titlepage.recto.auto.mode">
1291<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style">
1292<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
1293</fo:block>
1294</xsl:template>
1295
1296<xsl:template match="author" mode="appendix.titlepage.recto.auto.mode">
1297<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style">
1298<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
1299</fo:block>
1300</xsl:template>
1301
1302<xsl:template match="releaseinfo" mode="appendix.titlepage.recto.auto.mode">
1303<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style">
1304<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
1305</fo:block>
1306</xsl:template>
1307
1308<xsl:template match="copyright" mode="appendix.titlepage.recto.auto.mode">
1309<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style">
1310<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
1311</fo:block>
1312</xsl:template>
1313
1314<xsl:template match="legalnotice" mode="appendix.titlepage.recto.auto.mode">
1315<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style">
1316<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
1317</fo:block>
1318</xsl:template>
1319
1320<xsl:template match="pubdate" mode="appendix.titlepage.recto.auto.mode">
1321<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style">
1322<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
1323</fo:block>
1324</xsl:template>
1325
1326<xsl:template match="revision" mode="appendix.titlepage.recto.auto.mode">
1327<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style">
1328<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
1329</fo:block>
1330</xsl:template>
1331
1332<xsl:template match="revhistory" mode="appendix.titlepage.recto.auto.mode">
1333<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style">
1334<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
1335</fo:block>
1336</xsl:template>
1337
1338<xsl:template match="abstract" mode="appendix.titlepage.recto.auto.mode">
1339<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style">
1340<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
1341</fo:block>
1342</xsl:template>
1343
1344<xsl:template name="section.titlepage.recto">
1345  <xsl:choose>
1346    <xsl:when test="sectioninfo/title">
1347      <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/title"/>
1348    </xsl:when>
1349    <xsl:when test="title">
1350      <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="title"/>
1351    </xsl:when>
1352  </xsl:choose>
1353
1354  <xsl:choose>
1355    <xsl:when test="sectioninfo/subtitle">
1356      <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/subtitle"/>
1357    </xsl:when>
1358    <xsl:when test="subtitle">
1359      <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="subtitle"/>
1360    </xsl:when>
1361  </xsl:choose>
1362
1363  <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/corpauthor"/>
1364  <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/authorgroup"/>
1365  <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/author"/>
1366  <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/releaseinfo"/>
1367  <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/copyright"/>
1368  <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/legalnotice"/>
1369  <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/pubdate"/>
1370  <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/revision"/>
1371  <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/revhistory"/>
1372  <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/abstract"/>
1373</xsl:template>
1374
1375<xsl:template name="section.titlepage.verso">
1376</xsl:template>
1377
1378<xsl:template name="section.titlepage.separator">
1379</xsl:template>
1380
1381<xsl:template name="section.titlepage.before.recto">
1382</xsl:template>
1383
1384<xsl:template name="section.titlepage.before.verso">
1385</xsl:template>
1386
1387<xsl:template name="section.titlepage">
1388  <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
1389    <xsl:call-template name="section.titlepage.before.recto"/>
1390    <xsl:call-template name="section.titlepage.recto"/>
1391    <xsl:call-template name="section.titlepage.before.verso"/>
1392    <xsl:call-template name="section.titlepage.verso"/>
1393    <xsl:call-template name="section.titlepage.separator"/>
1394  </fo:block>
1395</xsl:template>
1396
1397<xsl:template match="*" mode="section.titlepage.recto.mode">
1398  <!-- if an element isn't found in this mode, -->
1399  <!-- try the generic titlepage.mode -->
1400  <xsl:apply-templates select="." mode="titlepage.mode"/>
1401</xsl:template>
1402
1403<xsl:template match="*" mode="section.titlepage.verso.mode">
1404  <!-- if an element isn't found in this mode, -->
1405  <!-- try the generic titlepage.mode -->
1406  <xsl:apply-templates select="." mode="titlepage.mode"/>
1407</xsl:template>
1408
1409<xsl:template match="title" mode="section.titlepage.recto.auto.mode">
1410<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style" margin-left="-4pc" font-family="{$title.font.family}">
1411<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
1412</fo:block>
1413</xsl:template>
1414
1415<xsl:template match="subtitle" mode="section.titlepage.recto.auto.mode">
1416<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style" font-family="{$title.font.family}">
1417<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
1418</fo:block>
1419</xsl:template>
1420
1421<xsl:template match="corpauthor" mode="section.titlepage.recto.auto.mode">
1422<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style">
1423<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
1424</fo:block>
1425</xsl:template>
1426
1427<xsl:template match="authorgroup" mode="section.titlepage.recto.auto.mode">
1428<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style">
1429<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
1430</fo:block>
1431</xsl:template>
1432
1433<xsl:template match="author" mode="section.titlepage.recto.auto.mode">
1434<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style">
1435<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
1436</fo:block>
1437</xsl:template>
1438
1439<xsl:template match="releaseinfo" mode="section.titlepage.recto.auto.mode">
1440<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style">
1441<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
1442</fo:block>
1443</xsl:template>
1444
1445<xsl:template match="copyright" mode="section.titlepage.recto.auto.mode">
1446<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style">
1447<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
1448</fo:block>
1449</xsl:template>
1450
1451<xsl:template match="legalnotice" mode="section.titlepage.recto.auto.mode">
1452<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style">
1453<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
1454</fo:block>
1455</xsl:template>
1456
1457<xsl:template match="pubdate" mode="section.titlepage.recto.auto.mode">
1458<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style">
1459<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
1460</fo:block>
1461</xsl:template>
1462
1463<xsl:template match="revision" mode="section.titlepage.recto.auto.mode">
1464<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style">
1465<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
1466</fo:block>
1467</xsl:template>
1468
1469<xsl:template match="revhistory" mode="section.titlepage.recto.auto.mode">
1470<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style">
1471<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
1472</fo:block>
1473</xsl:template>
1474
1475<xsl:template match="abstract" mode="section.titlepage.recto.auto.mode">
1476<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style">
1477<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
1478</fo:block>
1479</xsl:template>
1480
1481<xsl:template name="sect1.titlepage.recto">
1482  <xsl:choose>
1483    <xsl:when test="sect1info/title">
1484      <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/title"/>
1485    </xsl:when>
1486    <xsl:when test="title">
1487      <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="title"/>
1488    </xsl:when>
1489  </xsl:choose>
1490
1491  <xsl:choose>
1492    <xsl:when test="sect1info/subtitle">
1493      <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/subtitle"/>
1494    </xsl:when>
1495    <xsl:when test="subtitle">
1496      <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="subtitle"/>
1497    </xsl:when>
1498  </xsl:choose>
1499
1500  <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/corpauthor"/>
1501  <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/authorgroup"/>
1502  <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/author"/>
1503  <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/releaseinfo"/>
1504  <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/copyright"/>
1505  <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/legalnotice"/>
1506  <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/pubdate"/>
1507  <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/revision"/>
1508  <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/revhistory"/>
1509  <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/abstract"/>
1510</xsl:template>
1511
1512<xsl:template name="sect1.titlepage.verso">
1513</xsl:template>
1514
1515<xsl:template name="sect1.titlepage.separator">
1516</xsl:template>
1517
1518<xsl:template name="sect1.titlepage.before.recto">
1519</xsl:template>
1520
1521<xsl:template name="sect1.titlepage.before.verso">
1522</xsl:template>
1523
1524<xsl:template name="sect1.titlepage">
1525  <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
1526    <xsl:call-template name="sect1.titlepage.before.recto"/>
1527    <xsl:call-template name="sect1.titlepage.recto"/>
1528    <xsl:call-template name="sect1.titlepage.before.verso"/>
1529    <xsl:call-template name="sect1.titlepage.verso"/>
1530    <xsl:call-template name="sect1.titlepage.separator"/>
1531  </fo:block>
1532</xsl:template>
1533
1534<xsl:template match="*" mode="sect1.titlepage.recto.mode">
1535  <!-- if an element isn't found in this mode, -->
1536  <!-- try the generic titlepage.mode -->
1537  <xsl:apply-templates select="." mode="titlepage.mode"/>
1538</xsl:template>
1539
1540<xsl:template match="*" mode="sect1.titlepage.verso.mode">
1541  <!-- if an element isn't found in this mode, -->
1542  <!-- try the generic titlepage.mode -->
1543  <xsl:apply-templates select="." mode="titlepage.mode"/>
1544</xsl:template>
1545
1546<xsl:template match="title" mode="sect1.titlepage.recto.auto.mode">
1547<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style" margin-left="-4pc" font-family="{$title.font.family}">
1548<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
1549</fo:block>
1550</xsl:template>
1551
1552<xsl:template match="subtitle" mode="sect1.titlepage.recto.auto.mode">
1553<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style" font-family="{$title.font.family}">
1554<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
1555</fo:block>
1556</xsl:template>
1557
1558<xsl:template match="corpauthor" mode="sect1.titlepage.recto.auto.mode">
1559<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style">
1560<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
1561</fo:block>
1562</xsl:template>
1563
1564<xsl:template match="authorgroup" mode="sect1.titlepage.recto.auto.mode">
1565<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style">
1566<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
1567</fo:block>
1568</xsl:template>
1569
1570<xsl:template match="author" mode="sect1.titlepage.recto.auto.mode">
1571<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style">
1572<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
1573</fo:block>
1574</xsl:template>
1575
1576<xsl:template match="releaseinfo" mode="sect1.titlepage.recto.auto.mode">
1577<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style">
1578<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
1579</fo:block>
1580</xsl:template>
1581
1582<xsl:template match="copyright" mode="sect1.titlepage.recto.auto.mode">
1583<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style">
1584<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
1585</fo:block>
1586</xsl:template>
1587
1588<xsl:template match="legalnotice" mode="sect1.titlepage.recto.auto.mode">
1589<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style">
1590<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
1591</fo:block>
1592</xsl:template>
1593
1594<xsl:template match="pubdate" mode="sect1.titlepage.recto.auto.mode">
1595<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style">
1596<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
1597</fo:block>
1598</xsl:template>
1599
1600<xsl:template match="revision" mode="sect1.titlepage.recto.auto.mode">
1601<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style">
1602<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
1603</fo:block>
1604</xsl:template>
1605
1606<xsl:template match="revhistory" mode="sect1.titlepage.recto.auto.mode">
1607<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style">
1608<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
1609</fo:block>
1610</xsl:template>
1611
1612<xsl:template match="abstract" mode="sect1.titlepage.recto.auto.mode">
1613<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style">
1614<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
1615</fo:block>
1616</xsl:template>
1617
1618<xsl:template name="sect2.titlepage.recto">
1619  <xsl:choose>
1620    <xsl:when test="sect2info/title">
1621      <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/title"/>
1622    </xsl:when>
1623    <xsl:when test="title">
1624      <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="title"/>
1625    </xsl:when>
1626  </xsl:choose>
1627
1628  <xsl:choose>
1629    <xsl:when test="sect2info/subtitle">
1630      <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/subtitle"/>
1631    </xsl:when>
1632    <xsl:when test="subtitle">
1633      <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="subtitle"/>
1634    </xsl:when>
1635  </xsl:choose>
1636
1637  <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/corpauthor"/>
1638  <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/authorgroup"/>
1639  <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/author"/>
1640  <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/releaseinfo"/>
1641  <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/copyright"/>
1642  <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/legalnotice"/>
1643  <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/pubdate"/>
1644  <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/revision"/>
1645  <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/revhistory"/>
1646  <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/abstract"/>
1647</xsl:template>
1648
1649<xsl:template name="sect2.titlepage.verso">
1650</xsl:template>
1651
1652<xsl:template name="sect2.titlepage.separator">
1653</xsl:template>
1654
1655<xsl:template name="sect2.titlepage.before.recto">
1656</xsl:template>
1657
1658<xsl:template name="sect2.titlepage.before.verso">
1659</xsl:template>
1660
1661<xsl:template name="sect2.titlepage">
1662  <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
1663    <xsl:call-template name="sect2.titlepage.before.recto"/>
1664    <xsl:call-template name="sect2.titlepage.recto"/>
1665    <xsl:call-template name="sect2.titlepage.before.verso"/>
1666    <xsl:call-template name="sect2.titlepage.verso"/>
1667    <xsl:call-template name="sect2.titlepage.separator"/>
1668  </fo:block>
1669</xsl:template>
1670
1671<xsl:template match="*" mode="sect2.titlepage.recto.mode">
1672  <!-- if an element isn't found in this mode, -->
1673  <!-- try the generic titlepage.mode -->
1674  <xsl:apply-templates select="." mode="titlepage.mode"/>
1675</xsl:template>
1676
1677<xsl:template match="*" mode="sect2.titlepage.verso.mode">
1678  <!-- if an element isn't found in this mode, -->
1679  <!-- try the generic titlepage.mode -->
1680  <xsl:apply-templates select="." mode="titlepage.mode"/>
1681</xsl:template>
1682
1683<xsl:template match="title" mode="sect2.titlepage.recto.auto.mode">
1684<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style" margin-left="-4pc" font-family="{$title.font.family}">
1685<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
1686</fo:block>
1687</xsl:template>
1688
1689<xsl:template match="subtitle" mode="sect2.titlepage.recto.auto.mode">
1690<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style" font-family="{$title.font.family}">
1691<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
1692</fo:block>
1693</xsl:template>
1694
1695<xsl:template match="corpauthor" mode="sect2.titlepage.recto.auto.mode">
1696<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style">
1697<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
1698</fo:block>
1699</xsl:template>
1700
1701<xsl:template match="authorgroup" mode="sect2.titlepage.recto.auto.mode">
1702<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style">
1703<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
1704</fo:block>
1705</xsl:template>
1706
1707<xsl:template match="author" mode="sect2.titlepage.recto.auto.mode">
1708<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style">
1709<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
1710</fo:block>
1711</xsl:template>
1712
1713<xsl:template match="releaseinfo" mode="sect2.titlepage.recto.auto.mode">
1714<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style">
1715<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
1716</fo:block>
1717</xsl:template>
1718
1719<xsl:template match="copyright" mode="sect2.titlepage.recto.auto.mode">
1720<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style">
1721<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
1722</fo:block>
1723</xsl:template>
1724
1725<xsl:template match="legalnotice" mode="sect2.titlepage.recto.auto.mode">
1726<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style">
1727<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
1728</fo:block>
1729</xsl:template>
1730
1731<xsl:template match="pubdate" mode="sect2.titlepage.recto.auto.mode">
1732<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style">
1733<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
1734</fo:block>
1735</xsl:template>
1736
1737<xsl:template match="revision" mode="sect2.titlepage.recto.auto.mode">
1738<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style">
1739<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
1740</fo:block>
1741</xsl:template>
1742
1743<xsl:template match="revhistory" mode="sect2.titlepage.recto.auto.mode">
1744<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style">
1745<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
1746</fo:block>
1747</xsl:template>
1748
1749<xsl:template match="abstract" mode="sect2.titlepage.recto.auto.mode">
1750<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style">
1751<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
1752</fo:block>
1753</xsl:template>
1754
1755<xsl:template name="sect3.titlepage.recto">
1756  <xsl:choose>
1757    <xsl:when test="sect3info/title">
1758      <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/title"/>
1759    </xsl:when>
1760    <xsl:when test="title">
1761      <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="title"/>
1762    </xsl:when>
1763  </xsl:choose>
1764
1765  <xsl:choose>
1766    <xsl:when test="sect3info/subtitle">
1767      <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/subtitle"/>
1768    </xsl:when>
1769    <xsl:when test="subtitle">
1770      <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="subtitle"/>
1771    </xsl:when>
1772  </xsl:choose>
1773
1774  <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/corpauthor"/>
1775  <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/authorgroup"/>
1776  <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/author"/>
1777  <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/releaseinfo"/>
1778  <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/copyright"/>
1779  <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/legalnotice"/>
1780  <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/pubdate"/>
1781  <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/revision"/>
1782  <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/revhistory"/>
1783  <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/abstract"/>
1784</xsl:template>
1785
1786<xsl:template name="sect3.titlepage.verso">
1787</xsl:template>
1788
1789<xsl:template name="sect3.titlepage.separator">
1790</xsl:template>
1791
1792<xsl:template name="sect3.titlepage.before.recto">
1793</xsl:template>
1794
1795<xsl:template name="sect3.titlepage.before.verso">
1796</xsl:template>
1797
1798<xsl:template name="sect3.titlepage">
1799  <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
1800    <xsl:call-template name="sect3.titlepage.before.recto"/>
1801    <xsl:call-template name="sect3.titlepage.recto"/>
1802    <xsl:call-template name="sect3.titlepage.before.verso"/>
1803    <xsl:call-template name="sect3.titlepage.verso"/>
1804    <xsl:call-template name="sect3.titlepage.separator"/>
1805  </fo:block>
1806</xsl:template>
1807
1808<xsl:template match="*" mode="sect3.titlepage.recto.mode">
1809  <!-- if an element isn't found in this mode, -->
1810  <!-- try the generic titlepage.mode -->
1811  <xsl:apply-templates select="." mode="titlepage.mode"/>
1812</xsl:template>
1813
1814<xsl:template match="*" mode="sect3.titlepage.verso.mode">
1815  <!-- if an element isn't found in this mode, -->
1816  <!-- try the generic titlepage.mode -->
1817  <xsl:apply-templates select="." mode="titlepage.mode"/>
1818</xsl:template>
1819
1820<xsl:template match="title" mode="sect3.titlepage.recto.auto.mode">
1821<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style" margin-left="-4pc" font-family="{$title.font.family}">
1822<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
1823</fo:block>
1824</xsl:template>
1825
1826<xsl:template match="subtitle" mode="sect3.titlepage.recto.auto.mode">
1827<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style" font-family="{$title.font.family}">
1828<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
1829</fo:block>
1830</xsl:template>
1831
1832<xsl:template match="corpauthor" mode="sect3.titlepage.recto.auto.mode">
1833<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style">
1834<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
1835</fo:block>
1836</xsl:template>
1837
1838<xsl:template match="authorgroup" mode="sect3.titlepage.recto.auto.mode">
1839<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style">
1840<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
1841</fo:block>
1842</xsl:template>
1843
1844<xsl:template match="author" mode="sect3.titlepage.recto.auto.mode">
1845<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style">
1846<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
1847</fo:block>
1848</xsl:template>
1849
1850<xsl:template match="releaseinfo" mode="sect3.titlepage.recto.auto.mode">
1851<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style">
1852<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
1853</fo:block>
1854</xsl:template>
1855
1856<xsl:template match="copyright" mode="sect3.titlepage.recto.auto.mode">
1857<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style">
1858<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
1859</fo:block>
1860</xsl:template>
1861
1862<xsl:template match="legalnotice" mode="sect3.titlepage.recto.auto.mode">
1863<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style">
1864<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
1865</fo:block>
1866</xsl:template>
1867
1868<xsl:template match="pubdate" mode="sect3.titlepage.recto.auto.mode">
1869<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style">
1870<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
1871</fo:block>
1872</xsl:template>
1873
1874<xsl:template match="revision" mode="sect3.titlepage.recto.auto.mode">
1875<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style">
1876<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
1877</fo:block>
1878</xsl:template>
1879
1880<xsl:template match="revhistory" mode="sect3.titlepage.recto.auto.mode">
1881<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style">
1882<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
1883</fo:block>
1884</xsl:template>
1885
1886<xsl:template match="abstract" mode="sect3.titlepage.recto.auto.mode">
1887<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style">
1888<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
1889</fo:block>
1890</xsl:template>
1891
1892<xsl:template name="sect4.titlepage.recto">
1893  <xsl:choose>
1894    <xsl:when test="sect4info/title">
1895      <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/title"/>
1896    </xsl:when>
1897    <xsl:when test="title">
1898      <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="title"/>
1899    </xsl:when>
1900  </xsl:choose>
1901
1902  <xsl:choose>
1903    <xsl:when test="sect4info/subtitle">
1904      <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/subtitle"/>
1905    </xsl:when>
1906    <xsl:when test="subtitle">
1907      <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="subtitle"/>
1908    </xsl:when>
1909  </xsl:choose>
1910
1911  <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/corpauthor"/>
1912  <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/authorgroup"/>
1913  <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/author"/>
1914  <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/releaseinfo"/>
1915  <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/copyright"/>
1916  <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/legalnotice"/>
1917  <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/pubdate"/>
1918  <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/revision"/>
1919  <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/revhistory"/>
1920  <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/abstract"/>
1921</xsl:template>
1922
1923<xsl:template name="sect4.titlepage.verso">
1924</xsl:template>
1925
1926<xsl:template name="sect4.titlepage.separator">
1927</xsl:template>
1928
1929<xsl:template name="sect4.titlepage.before.recto">
1930</xsl:template>
1931
1932<xsl:template name="sect4.titlepage.before.verso">
1933</xsl:template>
1934
1935<xsl:template name="sect4.titlepage">
1936  <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
1937    <xsl:call-template name="sect4.titlepage.before.recto"/>
1938    <xsl:call-template name="sect4.titlepage.recto"/>
1939    <xsl:call-template name="sect4.titlepage.before.verso"/>
1940    <xsl:call-template name="sect4.titlepage.verso"/>
1941    <xsl:call-template name="sect4.titlepage.separator"/>
1942  </fo:block>
1943</xsl:template>
1944
1945<xsl:template match="*" mode="sect4.titlepage.recto.mode">
1946  <!-- if an element isn't found in this mode, -->
1947  <!-- try the generic titlepage.mode -->
1948  <xsl:apply-templates select="." mode="titlepage.mode"/>
1949</xsl:template>
1950
1951<xsl:template match="*" mode="sect4.titlepage.verso.mode">
1952  <!-- if an element isn't found in this mode, -->
1953  <!-- try the generic titlepage.mode -->
1954  <xsl:apply-templates select="." mode="titlepage.mode"/>
1955</xsl:template>
1956
1957<xsl:template match="title" mode="sect4.titlepage.recto.auto.mode">
1958<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style" margin-left="-4pc" font-family="{$title.font.family}">
1959<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
1960</fo:block>
1961</xsl:template>
1962
1963<xsl:template match="subtitle" mode="sect4.titlepage.recto.auto.mode">
1964<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style" font-family="{$title.font.family}">
1965<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
1966</fo:block>
1967</xsl:template>
1968
1969<xsl:template match="corpauthor" mode="sect4.titlepage.recto.auto.mode">
1970<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style">
1971<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
1972</fo:block>
1973</xsl:template>
1974
1975<xsl:template match="authorgroup" mode="sect4.titlepage.recto.auto.mode">
1976<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style">
1977<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
1978</fo:block>
1979</xsl:template>
1980
1981<xsl:template match="author" mode="sect4.titlepage.recto.auto.mode">
1982<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style">
1983<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
1984</fo:block>
1985</xsl:template>
1986
1987<xsl:template match="releaseinfo" mode="sect4.titlepage.recto.auto.mode">
1988<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style">
1989<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
1990</fo:block>
1991</xsl:template>
1992
1993<xsl:template match="copyright" mode="sect4.titlepage.recto.auto.mode">
1994<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style">
1995<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
1996</fo:block>
1997</xsl:template>
1998
1999<xsl:template match="legalnotice" mode="sect4.titlepage.recto.auto.mode">
2000<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style">
2001<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
2002</fo:block>
2003</xsl:template>
2004
2005<xsl:template match="pubdate" mode="sect4.titlepage.recto.auto.mode">
2006<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style">
2007<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
2008</fo:block>
2009</xsl:template>
2010
2011<xsl:template match="revision" mode="sect4.titlepage.recto.auto.mode">
2012<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style">
2013<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
2014</fo:block>
2015</xsl:template>
2016
2017<xsl:template match="revhistory" mode="sect4.titlepage.recto.auto.mode">
2018<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style">
2019<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
2020</fo:block>
2021</xsl:template>
2022
2023<xsl:template match="abstract" mode="sect4.titlepage.recto.auto.mode">
2024<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style">
2025<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
2026</fo:block>
2027</xsl:template>
2028
2029<xsl:template name="sect5.titlepage.recto">
2030  <xsl:choose>
2031    <xsl:when test="sect5info/title">
2032      <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/title"/>
2033    </xsl:when>
2034    <xsl:when test="title">
2035      <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="title"/>
2036    </xsl:when>
2037  </xsl:choose>
2038
2039  <xsl:choose>
2040    <xsl:when test="sect5info/subtitle">
2041      <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/subtitle"/>
2042    </xsl:when>
2043    <xsl:when test="subtitle">
2044      <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="subtitle"/>
2045    </xsl:when>
2046  </xsl:choose>
2047
2048  <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/corpauthor"/>
2049  <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/authorgroup"/>
2050  <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/author"/>
2051  <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/releaseinfo"/>
2052  <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/copyright"/>
2053  <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/legalnotice"/>
2054  <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/pubdate"/>
2055  <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/revision"/>
2056  <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/revhistory"/>
2057  <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/abstract"/>
2058</xsl:template>
2059
2060<xsl:template name="sect5.titlepage.verso">
2061</xsl:template>
2062
2063<xsl:template name="sect5.titlepage.separator">
2064</xsl:template>
2065
2066<xsl:template name="sect5.titlepage.before.recto">
2067</xsl:template>
2068
2069<xsl:template name="sect5.titlepage.before.verso">
2070</xsl:template>
2071
2072<xsl:template name="sect5.titlepage">
2073  <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
2074    <xsl:call-template name="sect5.titlepage.before.recto"/>
2075    <xsl:call-template name="sect5.titlepage.recto"/>
2076    <xsl:call-template name="sect5.titlepage.before.verso"/>
2077    <xsl:call-template name="sect5.titlepage.verso"/>
2078    <xsl:call-template name="sect5.titlepage.separator"/>
2079  </fo:block>
2080</xsl:template>
2081
2082<xsl:template match="*" mode="sect5.titlepage.recto.mode">
2083  <!-- if an element isn't found in this mode, -->
2084  <!-- try the generic titlepage.mode -->
2085  <xsl:apply-templates select="." mode="titlepage.mode"/>
2086</xsl:template>
2087
2088<xsl:template match="*" mode="sect5.titlepage.verso.mode">
2089  <!-- if an element isn't found in this mode, -->
2090  <!-- try the generic titlepage.mode -->
2091  <xsl:apply-templates select="." mode="titlepage.mode"/>
2092</xsl:template>
2093
2094<xsl:template match="title" mode="sect5.titlepage.recto.auto.mode">
2095<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style" margin-left="-4pc" font-family="{$title.font.family}">
2096<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
2097</fo:block>
2098</xsl:template>
2099
2100<xsl:template match="subtitle" mode="sect5.titlepage.recto.auto.mode">
2101<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style" font-family="{$title.font.family}">
2102<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
2103</fo:block>
2104</xsl:template>
2105
2106<xsl:template match="corpauthor" mode="sect5.titlepage.recto.auto.mode">
2107<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style">
2108<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
2109</fo:block>
2110</xsl:template>
2111
2112<xsl:template match="authorgroup" mode="sect5.titlepage.recto.auto.mode">
2113<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style">
2114<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
2115</fo:block>
2116</xsl:template>
2117
2118<xsl:template match="author" mode="sect5.titlepage.recto.auto.mode">
2119<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style">
2120<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
2121</fo:block>
2122</xsl:template>
2123
2124<xsl:template match="releaseinfo" mode="sect5.titlepage.recto.auto.mode">
2125<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style">
2126<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
2127</fo:block>
2128</xsl:template>
2129
2130<xsl:template match="copyright" mode="sect5.titlepage.recto.auto.mode">
2131<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style">
2132<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
2133</fo:block>
2134</xsl:template>
2135
2136<xsl:template match="legalnotice" mode="sect5.titlepage.recto.auto.mode">
2137<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style">
2138<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
2139</fo:block>
2140</xsl:template>
2141
2142<xsl:template match="pubdate" mode="sect5.titlepage.recto.auto.mode">
2143<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style">
2144<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
2145</fo:block>
2146</xsl:template>
2147
2148<xsl:template match="revision" mode="sect5.titlepage.recto.auto.mode">
2149<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style">
2150<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
2151</fo:block>
2152</xsl:template>
2153
2154<xsl:template match="revhistory" mode="sect5.titlepage.recto.auto.mode">
2155<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style">
2156<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
2157</fo:block>
2158</xsl:template>
2159
2160<xsl:template match="abstract" mode="sect5.titlepage.recto.auto.mode">
2161<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style">
2162<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
2163</fo:block>
2164</xsl:template>
2165
2166<xsl:template name="simplesect.titlepage.recto">
2167  <xsl:choose>
2168    <xsl:when test="simplesectinfo/title">
2169      <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/title"/>
2170    </xsl:when>
2171    <xsl:when test="docinfo/title">
2172      <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/title"/>
2173    </xsl:when>
2174    <xsl:when test="title">
2175      <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="title"/>
2176    </xsl:when>
2177  </xsl:choose>
2178
2179  <xsl:choose>
2180    <xsl:when test="simplesectinfo/subtitle">
2181      <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/subtitle"/>
2182    </xsl:when>
2183    <xsl:when test="docinfo/subtitle">
2184      <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
2185    </xsl:when>
2186    <xsl:when test="subtitle">
2187      <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="subtitle"/>
2188    </xsl:when>
2189  </xsl:choose>
2190
2191  <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/corpauthor"/>
2192  <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/corpauthor"/>
2193  <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/authorgroup"/>
2194  <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/authorgroup"/>
2195  <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/author"/>
2196  <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/author"/>
2197  <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/releaseinfo"/>
2198  <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/>
2199  <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/copyright"/>
2200  <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/copyright"/>
2201  <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/legalnotice"/>
2202  <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/legalnotice"/>
2203  <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/pubdate"/>
2204  <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/pubdate"/>
2205  <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/revision"/>
2206  <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/revision"/>
2207  <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/revhistory"/>
2208  <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/revhistory"/>
2209  <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/abstract"/>
2210  <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/abstract"/>
2211</xsl:template>
2212
2213<xsl:template name="simplesect.titlepage.verso">
2214</xsl:template>
2215
2216<xsl:template name="simplesect.titlepage.separator">
2217</xsl:template>
2218
2219<xsl:template name="simplesect.titlepage.before.recto">
2220</xsl:template>
2221
2222<xsl:template name="simplesect.titlepage.before.verso">
2223</xsl:template>
2224
2225<xsl:template name="simplesect.titlepage">
2226  <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
2227    <xsl:call-template name="simplesect.titlepage.before.recto"/>
2228    <xsl:call-template name="simplesect.titlepage.recto"/>
2229    <xsl:call-template name="simplesect.titlepage.before.verso"/>
2230    <xsl:call-template name="simplesect.titlepage.verso"/>
2231    <xsl:call-template name="simplesect.titlepage.separator"/>
2232  </fo:block>
2233</xsl:template>
2234
2235<xsl:template match="*" mode="simplesect.titlepage.recto.mode">
2236  <!-- if an element isn't found in this mode, -->
2237  <!-- try the generic titlepage.mode -->
2238  <xsl:apply-templates select="." mode="titlepage.mode"/>
2239</xsl:template>
2240
2241<xsl:template match="*" mode="simplesect.titlepage.verso.mode">
2242  <!-- if an element isn't found in this mode, -->
2243  <!-- try the generic titlepage.mode -->
2244  <xsl:apply-templates select="." mode="titlepage.mode"/>
2245</xsl:template>
2246
2247<xsl:template match="title" mode="simplesect.titlepage.recto.auto.mode">
2248<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style" margin-left="-4pc" font-family="{$title.font.family}">
2249<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
2250</fo:block>
2251</xsl:template>
2252
2253<xsl:template match="subtitle" mode="simplesect.titlepage.recto.auto.mode">
2254<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style" font-family="{$title.font.family}">
2255<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
2256</fo:block>
2257</xsl:template>
2258
2259<xsl:template match="corpauthor" mode="simplesect.titlepage.recto.auto.mode">
2260<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
2261<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
2262</fo:block>
2263</xsl:template>
2264
2265<xsl:template match="authorgroup" mode="simplesect.titlepage.recto.auto.mode">
2266<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
2267<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
2268</fo:block>
2269</xsl:template>
2270
2271<xsl:template match="author" mode="simplesect.titlepage.recto.auto.mode">
2272<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
2273<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
2274</fo:block>
2275</xsl:template>
2276
2277<xsl:template match="releaseinfo" mode="simplesect.titlepage.recto.auto.mode">
2278<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
2279<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
2280</fo:block>
2281</xsl:template>
2282
2283<xsl:template match="copyright" mode="simplesect.titlepage.recto.auto.mode">
2284<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
2285<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
2286</fo:block>
2287</xsl:template>
2288
2289<xsl:template match="legalnotice" mode="simplesect.titlepage.recto.auto.mode">
2290<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
2291<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
2292</fo:block>
2293</xsl:template>
2294
2295<xsl:template match="pubdate" mode="simplesect.titlepage.recto.auto.mode">
2296<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
2297<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
2298</fo:block>
2299</xsl:template>
2300
2301<xsl:template match="revision" mode="simplesect.titlepage.recto.auto.mode">
2302<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
2303<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
2304</fo:block>
2305</xsl:template>
2306
2307<xsl:template match="revhistory" mode="simplesect.titlepage.recto.auto.mode">
2308<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
2309<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
2310</fo:block>
2311</xsl:template>
2312
2313<xsl:template match="abstract" mode="simplesect.titlepage.recto.auto.mode">
2314<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
2315<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
2316</fo:block>
2317</xsl:template>
2318
2319<xsl:template name="bibliography.titlepage.recto">
2320  <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="bibliography.titlepage.recto.style" margin-left="-4pc" font-size="17.28pt" font-family="{$title.font.family}" font-weight="bold">
2321<xsl:call-template name="component.title">
2322<xsl:with-param name="node" select="ancestor-or-self::bibliography[1]"/>
2323</xsl:call-template></fo:block>
2324  <xsl:choose>
2325    <xsl:when test="bibliographyinfo/subtitle">
2326      <xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="bibliographyinfo/subtitle"/>
2327    </xsl:when>
2328    <xsl:when test="docinfo/subtitle">
2329      <xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
2330    </xsl:when>
2331    <xsl:when test="subtitle">
2332      <xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="subtitle"/>
2333    </xsl:when>
2334  </xsl:choose>
2335
2336</xsl:template>
2337
2338<xsl:template name="bibliography.titlepage.verso">
2339</xsl:template>
2340
2341<xsl:template name="bibliography.titlepage.separator">
2342</xsl:template>
2343
2344<xsl:template name="bibliography.titlepage.before.recto">
2345</xsl:template>
2346
2347<xsl:template name="bibliography.titlepage.before.verso">
2348</xsl:template>
2349
2350<xsl:template name="bibliography.titlepage">
2351  <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
2352    <xsl:call-template name="bibliography.titlepage.before.recto"/>
2353    <xsl:call-template name="bibliography.titlepage.recto"/>
2354    <xsl:call-template name="bibliography.titlepage.before.verso"/>
2355    <xsl:call-template name="bibliography.titlepage.verso"/>
2356    <xsl:call-template name="bibliography.titlepage.separator"/>
2357  </fo:block>
2358</xsl:template>
2359
2360<xsl:template match="*" mode="bibliography.titlepage.recto.mode">
2361  <!-- if an element isn't found in this mode, -->
2362  <!-- try the generic titlepage.mode -->
2363  <xsl:apply-templates select="." mode="titlepage.mode"/>
2364</xsl:template>
2365
2366<xsl:template match="*" mode="bibliography.titlepage.verso.mode">
2367  <!-- if an element isn't found in this mode, -->
2368  <!-- try the generic titlepage.mode -->
2369  <xsl:apply-templates select="." mode="titlepage.mode"/>
2370</xsl:template>
2371
2372<xsl:template match="subtitle" mode="bibliography.titlepage.recto.auto.mode">
2373<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="bibliography.titlepage.recto.style" font-family="{$title.font.family}">
2374<xsl:apply-templates select="." mode="bibliography.titlepage.recto.mode"/>
2375</fo:block>
2376</xsl:template>
2377
2378<xsl:template name="glossary.titlepage.recto">
2379  <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="glossary.titlepage.recto.style" margin-left="-4pc" font-size="17.28pt" font-family="{$title.font.family}" font-weight="bold">
2380<xsl:call-template name="component.title">
2381<xsl:with-param name="node" select="ancestor-or-self::glossary[1]"/>
2382</xsl:call-template></fo:block>
2383  <xsl:choose>
2384    <xsl:when test="glossaryinfo/subtitle">
2385      <xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="glossaryinfo/subtitle"/>
2386    </xsl:when>
2387    <xsl:when test="docinfo/subtitle">
2388      <xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
2389    </xsl:when>
2390    <xsl:when test="subtitle">
2391      <xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="subtitle"/>
2392    </xsl:when>
2393  </xsl:choose>
2394
2395</xsl:template>
2396
2397<xsl:template name="glossary.titlepage.verso">
2398</xsl:template>
2399
2400<xsl:template name="glossary.titlepage.separator">
2401</xsl:template>
2402
2403<xsl:template name="glossary.titlepage.before.recto">
2404</xsl:template>
2405
2406<xsl:template name="glossary.titlepage.before.verso">
2407</xsl:template>
2408
2409<xsl:template name="glossary.titlepage">
2410  <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
2411    <xsl:call-template name="glossary.titlepage.before.recto"/>
2412    <xsl:call-template name="glossary.titlepage.recto"/>
2413    <xsl:call-template name="glossary.titlepage.before.verso"/>
2414    <xsl:call-template name="glossary.titlepage.verso"/>
2415    <xsl:call-template name="glossary.titlepage.separator"/>
2416  </fo:block>
2417</xsl:template>
2418
2419<xsl:template match="*" mode="glossary.titlepage.recto.mode">
2420  <!-- if an element isn't found in this mode, -->
2421  <!-- try the generic titlepage.mode -->
2422  <xsl:apply-templates select="." mode="titlepage.mode"/>
2423</xsl:template>
2424
2425<xsl:template match="*" mode="glossary.titlepage.verso.mode">
2426  <!-- if an element isn't found in this mode, -->
2427  <!-- try the generic titlepage.mode -->
2428  <xsl:apply-templates select="." mode="titlepage.mode"/>
2429</xsl:template>
2430
2431<xsl:template match="subtitle" mode="glossary.titlepage.recto.auto.mode">
2432<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="glossary.titlepage.recto.style" font-family="{$title.font.family}">
2433<xsl:apply-templates select="." mode="glossary.titlepage.recto.mode"/>
2434</fo:block>
2435</xsl:template>
2436
2437<xsl:template name="index.titlepage.recto">
2438  <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="index.titlepage.recto.style" margin-left="-4pc" font-size="17.28pt" font-family="{$title.font.family}" font-weight="bold">
2439<xsl:call-template name="component.title">
2440<xsl:with-param name="node" select="ancestor-or-self::index[1]"/>
2441</xsl:call-template></fo:block>
2442  <xsl:choose>
2443    <xsl:when test="indexinfo/subtitle">
2444      <xsl:apply-templates mode="index.titlepage.recto.auto.mode" select="indexinfo/subtitle"/>
2445    </xsl:when>
2446    <xsl:when test="docinfo/subtitle">
2447      <xsl:apply-templates mode="index.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
2448    </xsl:when>
2449    <xsl:when test="subtitle">
2450      <xsl:apply-templates mode="index.titlepage.recto.auto.mode" select="subtitle"/>
2451    </xsl:when>
2452  </xsl:choose>
2453
2454</xsl:template>
2455
2456<xsl:template name="index.titlepage.verso">
2457</xsl:template>
2458
2459<xsl:template name="index.titlepage.separator">
2460</xsl:template>
2461
2462<xsl:template name="index.titlepage.before.recto">
2463</xsl:template>
2464
2465<xsl:template name="index.titlepage.before.verso">
2466</xsl:template>
2467
2468<xsl:template name="index.titlepage">
2469  <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
2470    <xsl:call-template name="index.titlepage.before.recto"/>
2471    <xsl:call-template name="index.titlepage.recto"/>
2472    <xsl:call-template name="index.titlepage.before.verso"/>
2473    <xsl:call-template name="index.titlepage.verso"/>
2474    <xsl:call-template name="index.titlepage.separator"/>
2475  </fo:block>
2476</xsl:template>
2477
2478<xsl:template match="*" mode="index.titlepage.recto.mode">
2479  <!-- if an element isn't found in this mode, -->
2480  <!-- try the generic titlepage.mode -->
2481  <xsl:apply-templates select="." mode="titlepage.mode"/>
2482</xsl:template>
2483
2484<xsl:template match="*" mode="index.titlepage.verso.mode">
2485  <!-- if an element isn't found in this mode, -->
2486  <!-- try the generic titlepage.mode -->
2487  <xsl:apply-templates select="." mode="titlepage.mode"/>
2488</xsl:template>
2489
2490<xsl:template match="subtitle" mode="index.titlepage.recto.auto.mode">
2491<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="index.titlepage.recto.style" font-family="{$title.font.family}">
2492<xsl:apply-templates select="." mode="index.titlepage.recto.mode"/>
2493</fo:block>
2494</xsl:template>
2495
2496<xsl:template name="table.of.contents.titlepage.recto">
2497  <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="table.of.contents.titlepage.recto.style" space-after="1em" margin-left="-4pc" font-size="17.28pt" font-weight="bold" font-family="{$title.font.family}">
2498<xsl:call-template name="gentext">
2499<xsl:with-param name="key" select="'TableofContents'"/>
2500</xsl:call-template></fo:block>
2501</xsl:template>
2502
2503<xsl:template name="table.of.contents.titlepage.verso">
2504</xsl:template>
2505
2506<xsl:template name="table.of.contents.titlepage.separator">
2507</xsl:template>
2508
2509<xsl:template name="table.of.contents.titlepage.before.recto">
2510</xsl:template>
2511
2512<xsl:template name="table.of.contents.titlepage.before.verso">
2513</xsl:template>
2514
2515<xsl:template name="table.of.contents.titlepage">
2516  <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
2517    <xsl:call-template name="table.of.contents.titlepage.before.recto"/>
2518    <xsl:call-template name="table.of.contents.titlepage.recto"/>
2519    <xsl:call-template name="table.of.contents.titlepage.before.verso"/>
2520    <xsl:call-template name="table.of.contents.titlepage.verso"/>
2521    <xsl:call-template name="table.of.contents.titlepage.separator"/>
2522  </fo:block>
2523</xsl:template>
2524
2525<xsl:template match="*" mode="table.of.contents.titlepage.recto.mode">
2526  <!-- if an element isn't found in this mode, -->
2527  <!-- try the generic titlepage.mode -->
2528  <xsl:apply-templates select="." mode="titlepage.mode"/>
2529</xsl:template>
2530
2531<xsl:template match="*" mode="table.of.contents.titlepage.verso.mode">
2532  <!-- if an element isn't found in this mode, -->
2533  <!-- try the generic titlepage.mode -->
2534  <xsl:apply-templates select="." mode="titlepage.mode"/>
2535</xsl:template>
2536
2537<xsl:template name="list.of.tables.titlepage.recto">
2538  <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="list.of.tables.titlepage.recto.style" space-after="1em" margin-left="-4pc" font-size="17.28pt" font-weight="bold" font-family="{$title.font.family}">
2539<xsl:call-template name="gentext">
2540<xsl:with-param name="key" select="'ListofTables'"/>
2541</xsl:call-template></fo:block>
2542</xsl:template>
2543
2544<xsl:template name="list.of.tables.titlepage.verso">
2545</xsl:template>
2546
2547<xsl:template name="list.of.tables.titlepage.separator">
2548</xsl:template>
2549
2550<xsl:template name="list.of.tables.titlepage.before.recto">
2551</xsl:template>
2552
2553<xsl:template name="list.of.tables.titlepage.before.verso">
2554</xsl:template>
2555
2556<xsl:template name="list.of.tables.titlepage">
2557  <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
2558    <xsl:call-template name="list.of.tables.titlepage.before.recto"/>
2559    <xsl:call-template name="list.of.tables.titlepage.recto"/>
2560    <xsl:call-template name="list.of.tables.titlepage.before.verso"/>
2561    <xsl:call-template name="list.of.tables.titlepage.verso"/>
2562    <xsl:call-template name="list.of.tables.titlepage.separator"/>
2563  </fo:block>
2564</xsl:template>
2565
2566<xsl:template match="*" mode="list.of.tables.titlepage.recto.mode">
2567  <!-- if an element isn't found in this mode, -->
2568  <!-- try the generic titlepage.mode -->
2569  <xsl:apply-templates select="." mode="titlepage.mode"/>
2570</xsl:template>
2571
2572<xsl:template match="*" mode="list.of.tables.titlepage.verso.mode">
2573  <!-- if an element isn't found in this mode, -->
2574  <!-- try the generic titlepage.mode -->
2575  <xsl:apply-templates select="." mode="titlepage.mode"/>
2576</xsl:template>
2577
2578<xsl:template name="list.of.figures.titlepage.recto">
2579  <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="list.of.figures.titlepage.recto.style" space-after="1em" margin-left="-4pc" font-size="17.28pt" font-weight="bold" font-family="{$title.font.family}">
2580<xsl:call-template name="gentext">
2581<xsl:with-param name="key" select="'ListofFigures'"/>
2582</xsl:call-template></fo:block>
2583</xsl:template>
2584
2585<xsl:template name="list.of.figures.titlepage.verso">
2586</xsl:template>
2587
2588<xsl:template name="list.of.figures.titlepage.separator">
2589</xsl:template>
2590
2591<xsl:template name="list.of.figures.titlepage.before.recto">
2592</xsl:template>
2593
2594<xsl:template name="list.of.figures.titlepage.before.verso">
2595</xsl:template>
2596
2597<xsl:template name="list.of.figures.titlepage">
2598  <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
2599    <xsl:call-template name="list.of.figures.titlepage.before.recto"/>
2600    <xsl:call-template name="list.of.figures.titlepage.recto"/>
2601    <xsl:call-template name="list.of.figures.titlepage.before.verso"/>
2602    <xsl:call-template name="list.of.figures.titlepage.verso"/>
2603    <xsl:call-template name="list.of.figures.titlepage.separator"/>
2604  </fo:block>
2605</xsl:template>
2606
2607<xsl:template match="*" mode="list.of.figures.titlepage.recto.mode">
2608  <!-- if an element isn't found in this mode, -->
2609  <!-- try the generic titlepage.mode -->
2610  <xsl:apply-templates select="." mode="titlepage.mode"/>
2611</xsl:template>
2612
2613<xsl:template match="*" mode="list.of.figures.titlepage.verso.mode">
2614  <!-- if an element isn't found in this mode, -->
2615  <!-- try the generic titlepage.mode -->
2616  <xsl:apply-templates select="." mode="titlepage.mode"/>
2617</xsl:template>
2618
2619<xsl:template name="list.of.examples.titlepage.recto">
2620  <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="list.of.examples.titlepage.recto.style" space-after="1em" margin-left="-4pc" font-size="17.28pt" font-weight="bold" font-family="{$title.font.family}">
2621<xsl:call-template name="gentext">
2622<xsl:with-param name="key" select="'ListofExamples'"/>
2623</xsl:call-template></fo:block>
2624</xsl:template>
2625
2626<xsl:template name="list.of.examples.titlepage.verso">
2627</xsl:template>
2628
2629<xsl:template name="list.of.examples.titlepage.separator">
2630</xsl:template>
2631
2632<xsl:template name="list.of.examples.titlepage.before.recto">
2633</xsl:template>
2634
2635<xsl:template name="list.of.examples.titlepage.before.verso">
2636</xsl:template>
2637
2638<xsl:template name="list.of.examples.titlepage">
2639  <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
2640    <xsl:call-template name="list.of.examples.titlepage.before.recto"/>
2641    <xsl:call-template name="list.of.examples.titlepage.recto"/>
2642    <xsl:call-template name="list.of.examples.titlepage.before.verso"/>
2643    <xsl:call-template name="list.of.examples.titlepage.verso"/>
2644    <xsl:call-template name="list.of.examples.titlepage.separator"/>
2645  </fo:block>
2646</xsl:template>
2647
2648<xsl:template match="*" mode="list.of.examples.titlepage.recto.mode">
2649  <!-- if an element isn't found in this mode, -->
2650  <!-- try the generic titlepage.mode -->
2651  <xsl:apply-templates select="." mode="titlepage.mode"/>
2652</xsl:template>
2653
2654<xsl:template match="*" mode="list.of.examples.titlepage.verso.mode">
2655  <!-- if an element isn't found in this mode, -->
2656  <!-- try the generic titlepage.mode -->
2657  <xsl:apply-templates select="." mode="titlepage.mode"/>
2658</xsl:template>
2659
2660<xsl:template name="list.of.equations.titlepage.recto">
2661  <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="list.of.equations.titlepage.recto.style" space-after="1em" margin-left="-4pc" font-size="17.28pt" font-weight="bold" font-family="{$title.font.family}">
2662<xsl:call-template name="gentext">
2663<xsl:with-param name="key" select="'ListofEquations'"/>
2664</xsl:call-template></fo:block>
2665</xsl:template>
2666
2667<xsl:template name="list.of.equations.titlepage.verso">
2668</xsl:template>
2669
2670<xsl:template name="list.of.equations.titlepage.separator">
2671</xsl:template>
2672
2673<xsl:template name="list.of.equations.titlepage.before.recto">
2674</xsl:template>
2675
2676<xsl:template name="list.of.equations.titlepage.before.verso">
2677</xsl:template>
2678
2679<xsl:template name="list.of.equations.titlepage">
2680  <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
2681    <xsl:call-template name="list.of.equations.titlepage.before.recto"/>
2682    <xsl:call-template name="list.of.equations.titlepage.recto"/>
2683    <xsl:call-template name="list.of.equations.titlepage.before.verso"/>
2684    <xsl:call-template name="list.of.equations.titlepage.verso"/>
2685    <xsl:call-template name="list.of.equations.titlepage.separator"/>
2686  </fo:block>
2687</xsl:template>
2688
2689<xsl:template match="*" mode="list.of.equations.titlepage.recto.mode">
2690  <!-- if an element isn't found in this mode, -->
2691  <!-- try the generic titlepage.mode -->
2692  <xsl:apply-templates select="." mode="titlepage.mode"/>
2693</xsl:template>
2694
2695<xsl:template match="*" mode="list.of.equations.titlepage.verso.mode">
2696  <!-- if an element isn't found in this mode, -->
2697  <!-- try the generic titlepage.mode -->
2698  <xsl:apply-templates select="." mode="titlepage.mode"/>
2699</xsl:template>
2700
2701<xsl:template name="list.of.unknowns.titlepage.recto">
2702  <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="list.of.unknowns.titlepage.recto.style" space-after="1em" margin-left="-4pc" font-size="17.28pt" font-weight="bold" font-family="{$title.font.family}">
2703<xsl:call-template name="gentext">
2704<xsl:with-param name="key" select="'ListofUnknown'"/>
2705</xsl:call-template></fo:block>
2706</xsl:template>
2707
2708<xsl:template name="list.of.unknowns.titlepage.verso">
2709</xsl:template>
2710
2711<xsl:template name="list.of.unknowns.titlepage.separator">
2712</xsl:template>
2713
2714<xsl:template name="list.of.unknowns.titlepage.before.recto">
2715</xsl:template>
2716
2717<xsl:template name="list.of.unknowns.titlepage.before.verso">
2718</xsl:template>
2719
2720<xsl:template name="list.of.unknowns.titlepage">
2721  <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
2722    <xsl:call-template name="list.of.unknowns.titlepage.before.recto"/>
2723    <xsl:call-template name="list.of.unknowns.titlepage.recto"/>
2724    <xsl:call-template name="list.of.unknowns.titlepage.before.verso"/>
2725    <xsl:call-template name="list.of.unknowns.titlepage.verso"/>
2726    <xsl:call-template name="list.of.unknowns.titlepage.separator"/>
2727  </fo:block>
2728</xsl:template>
2729
2730<xsl:template match="*" mode="list.of.unknowns.titlepage.recto.mode">
2731  <!-- if an element isn't found in this mode, -->
2732  <!-- try the generic titlepage.mode -->
2733  <xsl:apply-templates select="." mode="titlepage.mode"/>
2734</xsl:template>
2735
2736<xsl:template match="*" mode="list.of.unknowns.titlepage.verso.mode">
2737  <!-- if an element isn't found in this mode, -->
2738  <!-- try the generic titlepage.mode -->
2739  <xsl:apply-templates select="." mode="titlepage.mode"/>
2740</xsl:template>
2741
2742</xsl:stylesheet>