source: trunk/documents/UserDoc/DocBookUsersGuides/InstallationGuide/xml/XSLCustomizationLayer/G4BookTitlePageHTML.xsl @ 904

Last change on this file since 904 was 904, checked in by garnier, 16 years ago

ajout de la doc

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