Debian Codegraph @

docs/xsl-generic/html/titlepage.templates.xsl

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