Fixed ninja binary location logic to use ninja.BIN_DIR. Previous logic no longer...
[scons.git] / SCons / Tool / docbook / docbook-xsl-1.76.1 / fo / titlepage.xsl
blob2e2ec752faf81329f3dd91d2a394c7ea673e746d
1 <?xml version='1.0'?>
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3 xmlns:fo="http://www.w3.org/1999/XSL/Format"
4 version='1.0'>
6 <!-- ********************************************************************
7 $Id: titlepage.xsl 8804 2010-08-09 16:41:43Z bobstayton $
8 ********************************************************************
10 This file is part of the XSL DocBook Stylesheet distribution.
11 See ../README or http://docbook.sf.net/release/xsl/current/ for
12 copyright and other information.
14 ******************************************************************** -->
16 <!-- ==================================================================== -->
18 <xsl:attribute-set name="book.titlepage.recto.style">
19 <xsl:attribute name="font-family">
20 <xsl:value-of select="$title.fontset"/>
21 </xsl:attribute>
22 <xsl:attribute name="font-weight">bold</xsl:attribute>
23 <xsl:attribute name="font-size">12pt</xsl:attribute>
24 <xsl:attribute name="text-align">center</xsl:attribute>
25 </xsl:attribute-set>
27 <xsl:attribute-set name="book.titlepage.verso.style">
28 <xsl:attribute name="font-size">10pt</xsl:attribute>
29 </xsl:attribute-set>
31 <xsl:attribute-set name="article.titlepage.recto.style"/>
32 <xsl:attribute-set name="article.titlepage.verso.style"/>
34 <xsl:attribute-set name="set.titlepage.recto.style"/>
35 <xsl:attribute-set name="set.titlepage.verso.style"/>
37 <xsl:attribute-set name="part.titlepage.recto.style">
38 <xsl:attribute name="text-align">center</xsl:attribute>
39 </xsl:attribute-set>
41 <xsl:attribute-set name="part.titlepage.verso.style"/>
43 <xsl:attribute-set name="partintro.titlepage.recto.style"/>
44 <xsl:attribute-set name="partintro.titlepage.verso.style"/>
46 <xsl:attribute-set name="reference.titlepage.recto.style"/>
47 <xsl:attribute-set name="reference.titlepage.verso.style"/>
49 <xsl:attribute-set name="dedication.titlepage.recto.style"/>
50 <xsl:attribute-set name="dedication.titlepage.verso.style"/>
52 <xsl:attribute-set name="acknowledgements.titlepage.recto.style"/>
53 <xsl:attribute-set name="acknowledgements.titlepage.verso.style"/>
55 <xsl:attribute-set name="preface.titlepage.recto.style"/>
56 <xsl:attribute-set name="preface.titlepage.verso.style"/>
58 <xsl:attribute-set name="chapter.titlepage.recto.style"/>
59 <xsl:attribute-set name="chapter.titlepage.verso.style"/>
61 <xsl:attribute-set name="appendix.titlepage.recto.style"/>
62 <xsl:attribute-set name="appendix.titlepage.verso.style"/>
64 <xsl:attribute-set name="bibliography.titlepage.recto.style"/>
65 <xsl:attribute-set name="bibliography.titlepage.verso.style"/>
67 <xsl:attribute-set name="bibliodiv.titlepage.recto.style"/>
68 <xsl:attribute-set name="bibliodiv.titlepage.verso.style"/>
70 <xsl:attribute-set name="glossary.titlepage.recto.style"/>
71 <xsl:attribute-set name="glossary.titlepage.verso.style"/>
73 <xsl:attribute-set name="glossdiv.titlepage.recto.style"/>
74 <xsl:attribute-set name="glossdiv.titlepage.verso.style"/>
76 <xsl:attribute-set name="index.titlepage.recto.style"/>
77 <xsl:attribute-set name="index.titlepage.verso.style"/>
79 <xsl:attribute-set name="setindex.titlepage.recto.style"/>
80 <xsl:attribute-set name="setindex.titlepage.verso.style"/>
82 <xsl:attribute-set name="indexdiv.titlepage.recto.style"/>
83 <xsl:attribute-set name="indexdiv.titlepage.verso.style"/>
85 <xsl:attribute-set name="colophon.titlepage.recto.style"/>
86 <xsl:attribute-set name="colophon.titlepage.verso.style"/>
88 <xsl:attribute-set name="sidebar.titlepage.recto.style"/>
89 <xsl:attribute-set name="sidebar.titlepage.verso.style"/>
91 <xsl:attribute-set name="qandaset.titlepage.recto.style"/>
92 <xsl:attribute-set name="qandaset.titlepage.verso.style"/>
94 <xsl:attribute-set name="section.titlepage.recto.style">
95 <xsl:attribute name="keep-together.within-column">always</xsl:attribute>
96 </xsl:attribute-set>
98 <xsl:attribute-set name="section.titlepage.verso.style">
99 <xsl:attribute name="keep-together.within-column">always</xsl:attribute>
100 <xsl:attribute name="keep-with-next.within-column">always</xsl:attribute>
101 </xsl:attribute-set>
103 <xsl:attribute-set name="sect1.titlepage.recto.style"
104 use-attribute-sets="section.titlepage.recto.style"/>
105 <xsl:attribute-set name="sect1.titlepage.verso.style"
106 use-attribute-sets="section.titlepage.verso.style"/>
108 <xsl:attribute-set name="sect2.titlepage.recto.style"
109 use-attribute-sets="section.titlepage.recto.style"/>
110 <xsl:attribute-set name="sect2.titlepage.verso.style"
111 use-attribute-sets="section.titlepage.verso.style"/>
113 <xsl:attribute-set name="sect3.titlepage.recto.style"
114 use-attribute-sets="section.titlepage.recto.style"/>
115 <xsl:attribute-set name="sect3.titlepage.verso.style"
116 use-attribute-sets="section.titlepage.verso.style"/>
118 <xsl:attribute-set name="sect4.titlepage.recto.style"
119 use-attribute-sets="section.titlepage.recto.style"/>
120 <xsl:attribute-set name="sect4.titlepage.verso.style"
121 use-attribute-sets="section.titlepage.verso.style"/>
123 <xsl:attribute-set name="sect5.titlepage.recto.style"
124 use-attribute-sets="section.titlepage.recto.style"/>
125 <xsl:attribute-set name="sect5.titlepage.verso.style"
126 use-attribute-sets="section.titlepage.verso.style"/>
128 <xsl:attribute-set name="simplesect.titlepage.recto.style"
129 use-attribute-sets="section.titlepage.recto.style"/>
130 <xsl:attribute-set name="simplesect.titlepage.verso.style"
131 use-attribute-sets="section.titlepage.verso.style"/>
133 <xsl:attribute-set name="refnamediv.titlepage.recto.style"
134 use-attribute-sets="section.titlepage.recto.style"/>
135 <xsl:attribute-set name="refnamediv.titlepage.verso.style"
136 use-attribute-sets="section.titlepage.verso.style"/>
138 <xsl:attribute-set name="refsynopsisdiv.titlepage.recto.style"
139 use-attribute-sets="section.titlepage.recto.style"/>
140 <xsl:attribute-set name="refsynopsisdiv.titlepage.verso.style"
141 use-attribute-sets="section.titlepage.verso.style"/>
143 <xsl:attribute-set name="refsection.titlepage.recto.style"
144 use-attribute-sets="section.titlepage.recto.style"/>
145 <xsl:attribute-set name="refsection.titlepage.verso.style"
146 use-attribute-sets="section.titlepage.verso.style"/>
148 <xsl:attribute-set name="refsect1.titlepage.recto.style"
149 use-attribute-sets="section.titlepage.recto.style"/>
150 <xsl:attribute-set name="refsect1.titlepage.verso.style"
151 use-attribute-sets="section.titlepage.verso.style"/>
153 <xsl:attribute-set name="refsect2.titlepage.recto.style"
154 use-attribute-sets="section.titlepage.recto.style"/>
155 <xsl:attribute-set name="refsect2.titlepage.verso.style"
156 use-attribute-sets="section.titlepage.verso.style"/>
158 <xsl:attribute-set name="refsect3.titlepage.recto.style"
159 use-attribute-sets="section.titlepage.recto.style"/>
160 <xsl:attribute-set name="refsect3.titlepage.verso.style"
161 use-attribute-sets="section.titlepage.verso.style"/>
163 <xsl:attribute-set name="table.of.contents.titlepage.recto.style"/>
164 <xsl:attribute-set name="table.of.contents.titlepage.verso.style"/>
166 <xsl:attribute-set name="list.of.tables.titlepage.recto.style"/>
167 <xsl:attribute-set name="list.of.tables.contents.titlepage.verso.style"/>
169 <xsl:attribute-set name="list.of.figures.titlepage.recto.style"/>
170 <xsl:attribute-set name="list.of.figures.contents.titlepage.verso.style"/>
172 <xsl:attribute-set name="list.of.equations.titlepage.recto.style"/>
173 <xsl:attribute-set name="list.of.equations.contents.titlepage.verso.style"/>
175 <xsl:attribute-set name="list.of.examples.titlepage.recto.style"/>
176 <xsl:attribute-set name="list.of.examples.contents.titlepage.verso.style"/>
178 <xsl:attribute-set name="list.of.procedures.titlepage.recto.style"/>
179 <xsl:attribute-set name="list.of.procedures.contents.titlepage.verso.style"/>
181 <xsl:attribute-set name="list.of.unknowns.titlepage.recto.style"/>
182 <xsl:attribute-set name="list.of.unknowns.contents.titlepage.verso.style"/>
184 <!-- ==================================================================== -->
186 <xsl:template match="*" mode="titlepage.mode">
187 <!-- if an element isn't found in this mode, try the default mode -->
188 <xsl:apply-templates select="."/>
189 </xsl:template>
191 <xsl:template match="abbrev" mode="titlepage.mode">
192 <xsl:apply-templates mode="titlepage.mode"/>
193 </xsl:template>
195 <xsl:template match="abstract" mode="titlepage.mode">
196 <fo:block xsl:use-attribute-sets="abstract.properties">
197 <fo:block xsl:use-attribute-sets="abstract.title.properties">
198 <xsl:choose>
199 <xsl:when test="title|info/title">
200 <xsl:apply-templates select="title|info/title"/>
201 </xsl:when>
202 <xsl:otherwise>
203 <xsl:call-template name="gentext">
204 <xsl:with-param name="key" select="'Abstract'"/>
205 </xsl:call-template>
206 </xsl:otherwise>
207 </xsl:choose>
208 </fo:block>
209 <xsl:apply-templates select="*[not(self::title)]" mode="titlepage.mode"/>
210 </fo:block>
211 </xsl:template>
213 <xsl:template match="abstract/title" mode="titlepage.mode"/>
215 <xsl:template match="abstract/title" mode="titlepage.abstract.title.mode">
216 <xsl:apply-templates mode="titlepage.mode"/>
217 </xsl:template>
219 <xsl:template match="address" mode="titlepage.mode">
220 <!-- use the normal address handling code -->
221 <xsl:apply-templates select="."/>
222 </xsl:template>
224 <xsl:template match="affiliation" mode="titlepage.mode">
225 <fo:block>
226 <xsl:apply-templates mode="titlepage.mode"/>
227 </fo:block>
228 </xsl:template>
230 <xsl:template match="artpagenums" mode="titlepage.mode">
231 <xsl:apply-templates mode="titlepage.mode"/>
232 </xsl:template>
234 <xsl:template match="author" mode="titlepage.mode">
235 <fo:block>
236 <xsl:call-template name="anchor"/>
237 <xsl:choose>
238 <xsl:when test="orgname">
239 <xsl:apply-templates/>
240 </xsl:when>
241 <xsl:otherwise>
242 <xsl:call-template name="person.name"/>
243 <xsl:if test="affiliation/orgname">
244 <xsl:text>, </xsl:text>
245 <xsl:apply-templates select="affiliation/orgname" mode="titlepage.mode"/>
246 </xsl:if>
247 <xsl:if test="email|affiliation/address/email">
248 <xsl:text> </xsl:text>
249 <xsl:apply-templates select="(email|affiliation/address/email)[1]"/>
250 </xsl:if>
251 </xsl:otherwise>
252 </xsl:choose>
253 </fo:block>
254 </xsl:template>
256 <xsl:template match="authorblurb" mode="titlepage.mode">
257 <xsl:apply-templates mode="titlepage.mode"/>
258 </xsl:template>
260 <xsl:template match="authorgroup" mode="titlepage.mode">
261 <fo:wrapper>
262 <xsl:call-template name="anchor"/>
263 <xsl:apply-templates mode="titlepage.mode"/>
264 </fo:wrapper>
265 </xsl:template>
267 <xsl:template match="authorinitials" mode="titlepage.mode">
268 <xsl:apply-templates mode="titlepage.mode"/>
269 </xsl:template>
271 <xsl:template match="bibliomisc" mode="titlepage.mode">
272 <xsl:apply-templates mode="titlepage.mode"/>
273 </xsl:template>
275 <xsl:template match="bibliomset" mode="titlepage.mode">
276 <xsl:apply-templates mode="titlepage.mode"/>
277 </xsl:template>
279 <xsl:template match="collab" mode="titlepage.mode">
280 <xsl:apply-templates mode="titlepage.mode"/>
281 </xsl:template>
283 <xsl:template match="confgroup" mode="titlepage.mode">
284 <fo:block>
285 <xsl:apply-templates mode="titlepage.mode"/>
286 </fo:block>
287 </xsl:template>
289 <xsl:template match="confdates" mode="titlepage.mode">
290 <fo:block>
291 <xsl:apply-templates mode="titlepage.mode"/>
292 </fo:block>
293 </xsl:template>
295 <xsl:template match="conftitle" mode="titlepage.mode">
296 <fo:block>
297 <xsl:apply-templates mode="titlepage.mode"/>
298 </fo:block>
299 </xsl:template>
301 <xsl:template match="confnum" mode="titlepage.mode">
302 <!-- suppress -->
303 </xsl:template>
305 <xsl:template match="contractnum" mode="titlepage.mode">
306 <xsl:apply-templates mode="titlepage.mode"/>
307 </xsl:template>
309 <xsl:template match="contractsponsor" mode="titlepage.mode">
310 <xsl:apply-templates mode="titlepage.mode"/>
311 </xsl:template>
313 <xsl:template match="contrib" mode="titlepage.mode">
314 <xsl:apply-templates mode="titlepage.mode"/>
315 </xsl:template>
317 <xsl:template match="copyright" mode="titlepage.mode">
318 <xsl:call-template name="gentext">
319 <xsl:with-param name="key" select="'Copyright'"/>
320 </xsl:call-template>
321 <xsl:call-template name="gentext.space"/>
322 <xsl:call-template name="dingbat">
323 <xsl:with-param name="dingbat">copyright</xsl:with-param>
324 </xsl:call-template>
325 <xsl:call-template name="gentext.space"/>
326 <xsl:call-template name="copyright.years">
327 <xsl:with-param name="years" select="year"/>
328 <xsl:with-param name="print.ranges" select="$make.year.ranges"/>
329 <xsl:with-param name="single.year.ranges"
330 select="$make.single.year.ranges"/>
331 </xsl:call-template>
332 <xsl:call-template name="gentext.space"/>
333 <xsl:apply-templates select="holder" mode="titlepage.mode"/>
334 </xsl:template>
336 <xsl:template match="year" mode="titlepage.mode">
337 <xsl:apply-templates/>
338 </xsl:template>
340 <xsl:template match="holder" mode="titlepage.mode">
341 <xsl:apply-templates/>
342 <xsl:if test="position() &lt; last()">
343 <xsl:text>, </xsl:text>
344 </xsl:if>
345 </xsl:template>
347 <xsl:template match="corpauthor" mode="titlepage.mode">
348 <xsl:apply-templates mode="titlepage.mode"/>
349 </xsl:template>
351 <xsl:template match="corpcredit" mode="titlepage.mode">
352 <xsl:apply-templates mode="titlepage.mode"/>
353 </xsl:template>
355 <xsl:template match="corpname" mode="titlepage.mode">
356 <xsl:apply-templates mode="titlepage.mode"/>
357 </xsl:template>
359 <xsl:template match="date" mode="titlepage.mode">
360 <xsl:apply-templates mode="titlepage.mode"/>
361 </xsl:template>
363 <xsl:template match="edition" mode="titlepage.mode">
364 <xsl:apply-templates mode="titlepage.mode"/>
365 <xsl:call-template name="gentext.space"/>
366 <xsl:call-template name="gentext">
367 <xsl:with-param name="key" select="'Edition'"/>
368 </xsl:call-template>
369 </xsl:template>
371 <xsl:template match="editor" mode="titlepage.mode">
372 <!-- The first editor is dealt with in the following template,
373 which in turn displays all editors of the same mode. -->
374 </xsl:template>
376 <xsl:template match="editor[1]" priority="2" mode="titlepage.mode">
377 <xsl:call-template name="gentext.edited.by"/>
378 <xsl:call-template name="gentext.space"/>
379 <xsl:call-template name="person.name.list">
380 <xsl:with-param name="person.list" select="../editor"/>
381 </xsl:call-template>
382 </xsl:template>
384 <xsl:template match="firstname" mode="titlepage.mode">
385 <xsl:apply-templates mode="titlepage.mode"/>
386 </xsl:template>
388 <xsl:template match="graphic" mode="titlepage.mode">
389 <!-- use the normal graphic handling code -->
390 <xsl:apply-templates select="."/>
391 </xsl:template>
393 <xsl:template match="honorific" mode="titlepage.mode">
394 <xsl:apply-templates mode="titlepage.mode"/>
395 </xsl:template>
397 <xsl:template match="isbn" mode="titlepage.mode">
398 <xsl:apply-templates mode="titlepage.mode"/>
399 </xsl:template>
401 <xsl:template match="issn" mode="titlepage.mode">
402 <xsl:apply-templates mode="titlepage.mode"/>
403 </xsl:template>
405 <xsl:template match="biblioid" mode="titlepage.mode">
406 <xsl:apply-templates mode="titlepage.mode"/>
407 </xsl:template>
409 <xsl:template match="itermset" mode="titlepage.mode">
410 <!-- discard -->
411 </xsl:template>
413 <xsl:template match="invpartnumber" mode="titlepage.mode">
414 <xsl:apply-templates mode="titlepage.mode"/>
415 </xsl:template>
417 <xsl:template match="issuenum" mode="titlepage.mode">
418 <xsl:apply-templates mode="titlepage.mode"/>
419 </xsl:template>
421 <xsl:template match="jobtitle" mode="titlepage.mode">
422 <fo:block>
423 <xsl:apply-templates mode="titlepage.mode"/>
424 </fo:block>
425 </xsl:template>
427 <xsl:template match="keywordset" mode="titlepage.mode">
428 </xsl:template>
430 <xsl:template match="legalnotice" mode="titlepage.mode">
432 <xsl:variable name="id">
433 <xsl:call-template name="object.id"/>
434 </xsl:variable>
436 <fo:block id="{$id}">
437 <xsl:if test="title"> <!-- FIXME: add param for using default title? -->
438 <xsl:call-template name="formal.object.heading"/>
439 </xsl:if>
440 <xsl:apply-templates mode="titlepage.mode"/>
441 </fo:block>
442 </xsl:template>
444 <xsl:template match="legalnotice/title" mode="titlepage.mode">
445 </xsl:template>
447 <xsl:template match="lineage" mode="titlepage.mode">
448 <xsl:apply-templates mode="titlepage.mode"/>
449 </xsl:template>
451 <xsl:template match="modespec" mode="titlepage.mode">
452 <!-- discard -->
453 </xsl:template>
455 <xsl:template match="orgdiv" mode="titlepage.mode">
456 <xsl:if test="preceding-sibling::*[1][self::orgname]">
457 <xsl:text> </xsl:text>
458 </xsl:if>
459 <xsl:apply-templates mode="titlepage.mode"/>
460 </xsl:template>
462 <xsl:template match="orgname" mode="titlepage.mode">
463 <xsl:apply-templates mode="titlepage.mode"/>
464 </xsl:template>
466 <xsl:template match="othercredit" mode="titlepage.mode">
467 <xsl:variable name="contrib" select="string(contrib)"/>
468 <xsl:choose>
469 <xsl:when test="contrib">
470 <xsl:if test="not(preceding-sibling::othercredit[string(contrib)=$contrib])">
471 <fo:block>
472 <xsl:apply-templates mode="titlepage.mode" select="contrib"/>
473 <xsl:text>: </xsl:text>
474 <xsl:call-template name="person.name"/>
475 <xsl:apply-templates mode="titlepage.mode" select="affiliation"/>
476 <xsl:apply-templates select="following-sibling::othercredit[string(contrib)=$contrib]" mode="titlepage.othercredits"/>
477 </fo:block>
478 </xsl:if>
479 </xsl:when>
480 <xsl:otherwise>
481 <fo:block><xsl:call-template name="person.name"/></fo:block>
482 <xsl:apply-templates mode="titlepage.mode" select="./affiliation"/>
483 </xsl:otherwise>
484 </xsl:choose>
485 </xsl:template>
487 <xsl:template match="othercredit" mode="titlepage.othercredits">
488 <xsl:text>, </xsl:text>
489 <xsl:call-template name="person.name"/>
490 </xsl:template>
492 <xsl:template match="othername" mode="titlepage.mode">
493 <xsl:apply-templates mode="titlepage.mode"/>
494 </xsl:template>
496 <xsl:template match="pagenums" mode="titlepage.mode">
497 <xsl:apply-templates mode="titlepage.mode"/>
498 </xsl:template>
500 <xsl:template match="printhistory" mode="titlepage.mode">
501 <xsl:apply-templates mode="titlepage.mode"/>
502 </xsl:template>
504 <xsl:template match="productname" mode="titlepage.mode">
505 <xsl:apply-templates mode="titlepage.mode"/>
506 </xsl:template>
508 <xsl:template match="productnumber" mode="titlepage.mode">
509 <xsl:apply-templates mode="titlepage.mode"/>
510 </xsl:template>
512 <xsl:template match="pubdate" mode="titlepage.mode">
513 <xsl:apply-templates mode="titlepage.mode"/>
514 </xsl:template>
516 <xsl:template match="publisher" mode="titlepage.mode">
517 <fo:block>
518 <xsl:apply-templates mode="titlepage.mode"/>
519 </fo:block>
520 </xsl:template>
522 <xsl:template match="publishername" mode="titlepage.mode">
523 <xsl:apply-templates mode="titlepage.mode"/>
524 </xsl:template>
526 <xsl:template match="pubsnumber" mode="titlepage.mode">
527 <xsl:apply-templates mode="titlepage.mode"/>
528 </xsl:template>
530 <xsl:template match="releaseinfo" mode="titlepage.mode">
531 <xsl:apply-templates mode="titlepage.mode"/>
532 </xsl:template>
534 <xsl:template match="revhistory" mode="titlepage.mode">
536 <xsl:variable name="explicit.table.width">
537 <xsl:call-template name="pi.dbfo_table-width"/>
538 </xsl:variable>
540 <xsl:variable name="table.width">
541 <xsl:choose>
542 <xsl:when test="$explicit.table.width != ''">
543 <xsl:value-of select="$explicit.table.width"/>
544 </xsl:when>
545 <xsl:when test="$default.table.width = ''">
546 <xsl:text>100%</xsl:text>
547 </xsl:when>
548 <xsl:otherwise>
549 <xsl:value-of select="$default.table.width"/>
550 </xsl:otherwise>
551 </xsl:choose>
552 </xsl:variable>
554 <fo:table table-layout="fixed" width="{$table.width}" xsl:use-attribute-sets="revhistory.table.properties">
555 <fo:table-column column-number="1" column-width="proportional-column-width(1)"/>
556 <fo:table-column column-number="2" column-width="proportional-column-width(1)"/>
557 <fo:table-column column-number="3" column-width="proportional-column-width(1)"/>
558 <fo:table-body start-indent="0pt" end-indent="0pt">
559 <fo:table-row>
560 <fo:table-cell number-columns-spanned="3" xsl:use-attribute-sets="revhistory.table.cell.properties">
561 <fo:block xsl:use-attribute-sets="revhistory.title.properties">
562 <xsl:choose>
563 <xsl:when test="title|info/title">
564 <xsl:apply-templates select="title|info/title" mode="titlepage.mode"/>
565 </xsl:when>
566 <xsl:otherwise>
567 <xsl:call-template name="gentext">
568 <xsl:with-param name="key" select="'RevHistory'"/>
569 </xsl:call-template>
570 </xsl:otherwise>
571 </xsl:choose>
572 </fo:block>
573 </fo:table-cell>
574 </fo:table-row>
575 <xsl:apply-templates select="*[not(self::title)]" mode="titlepage.mode"/>
576 </fo:table-body>
577 </fo:table>
579 </xsl:template>
582 <xsl:template match="revhistory/revision" mode="titlepage.mode">
583 <xsl:variable name="revnumber" select="revnumber"/>
584 <xsl:variable name="revdate" select="date"/>
585 <xsl:variable name="revauthor" select="authorinitials|author"/>
586 <xsl:variable name="revremark" select="revremark|revdescription"/>
587 <fo:table-row>
588 <fo:table-cell xsl:use-attribute-sets="revhistory.table.cell.properties">
589 <fo:block>
590 <xsl:if test="$revnumber">
591 <xsl:call-template name="gentext">
592 <xsl:with-param name="key" select="'Revision'"/>
593 </xsl:call-template>
594 <xsl:call-template name="gentext.space"/>
595 <xsl:apply-templates select="$revnumber[1]" mode="titlepage.mode"/>
596 </xsl:if>
597 </fo:block>
598 </fo:table-cell>
599 <fo:table-cell xsl:use-attribute-sets="revhistory.table.cell.properties">
600 <fo:block>
601 <xsl:apply-templates select="$revdate[1]" mode="titlepage.mode"/>
602 </fo:block>
603 </fo:table-cell>
604 <fo:table-cell xsl:use-attribute-sets="revhistory.table.cell.properties">
605 <fo:block>
606 <xsl:for-each select="$revauthor">
607 <xsl:apply-templates select="." mode="titlepage.mode"/>
608 <xsl:if test="position() != last()">
609 <xsl:text>, </xsl:text>
610 </xsl:if>
611 </xsl:for-each>
612 </fo:block>
613 </fo:table-cell>
614 </fo:table-row>
615 <xsl:if test="$revremark">
616 <fo:table-row>
617 <fo:table-cell number-columns-spanned="3" xsl:use-attribute-sets="revhistory.table.cell.properties">
618 <fo:block>
619 <xsl:apply-templates select="$revremark[1]" mode="titlepage.mode"/>
620 </fo:block>
621 </fo:table-cell>
622 </fo:table-row>
623 </xsl:if>
624 </xsl:template>
626 <xsl:template match="revision/revnumber" mode="titlepage.mode">
627 <xsl:apply-templates mode="titlepage.mode"/>
628 </xsl:template>
630 <xsl:template match="revision/date" mode="titlepage.mode">
631 <xsl:apply-templates mode="titlepage.mode"/>
632 </xsl:template>
634 <xsl:template match="revision/authorinitials" mode="titlepage.mode">
635 <xsl:apply-templates mode="titlepage.mode"/>
636 </xsl:template>
638 <xsl:template match="revision/author" mode="titlepage.mode">
639 <xsl:apply-templates mode="titlepage.mode"/>
640 </xsl:template>
642 <xsl:template match="revision/revremark" mode="titlepage.mode">
643 <xsl:apply-templates mode="titlepage.mode"/>
644 </xsl:template>
646 <xsl:template match="revision/revdescription" mode="titlepage.mode">
647 <xsl:apply-templates mode="titlepage.mode"/>
648 </xsl:template>
650 <xsl:template match="seriesvolnums" mode="titlepage.mode">
651 <xsl:apply-templates mode="titlepage.mode"/>
652 </xsl:template>
654 <xsl:template match="shortaffil" mode="titlepage.mode">
655 <xsl:apply-templates mode="titlepage.mode"/>
656 </xsl:template>
658 <xsl:template match="subjectset" mode="titlepage.mode">
659 <!-- discard -->
660 </xsl:template>
662 <xsl:template match="subtitle" mode="titlepage.mode">
663 <xsl:apply-templates mode="titlepage.mode"/>
664 </xsl:template>
666 <xsl:template match="surname" mode="titlepage.mode">
667 <xsl:apply-templates mode="titlepage.mode"/>
668 </xsl:template>
670 <xsl:template match="title" mode="titlepage.mode">
671 <xsl:apply-templates mode="titlepage.mode"/>
672 </xsl:template>
674 <xsl:template match="titleabbrev" mode="titlepage.mode">
675 <xsl:apply-templates mode="titlepage.mode"/>
676 </xsl:template>
678 <xsl:template match="volumenum" mode="titlepage.mode">
679 <xsl:apply-templates mode="titlepage.mode"/>
680 </xsl:template>
682 <!-- ==================================================================== -->
683 <!-- Book templates -->
685 <!-- Note: these templates cannot use *.titlepage.recto.mode or
686 *.titlepage.verso.mode. If they do then subsequent use of a custom
687 titlepage.templates.xml file will not work correctly. -->
689 <!-- book recto -->
691 <xsl:template match="bookinfo/authorgroup|book/info/authorgroup"
692 mode="titlepage.mode" priority="2">
693 <fo:block>
694 <xsl:call-template name="anchor"/>
695 <xsl:apply-templates mode="titlepage.mode"/>
696 </fo:block>
697 </xsl:template>
699 <!-- book verso -->
701 <xsl:template name="book.verso.title">
702 <fo:block>
703 <xsl:apply-templates mode="titlepage.mode"/>
705 <xsl:if test="following-sibling::subtitle
706 |following-sibling::info/subtitle
707 |following-sibling::bookinfo/subtitle">
708 <xsl:text>: </xsl:text>
710 <xsl:apply-templates select="(following-sibling::subtitle
711 |following-sibling::info/subtitle
712 |following-sibling::bookinfo/subtitle)[1]"
713 mode="book.verso.subtitle.mode"/>
714 </xsl:if>
715 </fo:block>
716 </xsl:template>
718 <xsl:template match="subtitle" mode="book.verso.subtitle.mode">
719 <xsl:apply-templates mode="titlepage.mode"/>
720 <xsl:if test="following-sibling::subtitle">
721 <xsl:text>: </xsl:text>
722 <xsl:apply-templates select="following-sibling::subtitle[1]"
723 mode="book.verso.subtitle.mode"/>
724 </xsl:if>
725 </xsl:template>
727 <xsl:template name="verso.authorgroup">
728 <fo:block>
729 <xsl:call-template name="gentext">
730 <xsl:with-param name="key" select="'by'"/>
731 </xsl:call-template>
732 <xsl:text> </xsl:text>
733 <xsl:call-template name="person.name.list">
734 <xsl:with-param name="person.list" select="author|corpauthor|editor"/>
735 </xsl:call-template>
736 </fo:block>
737 <xsl:apply-templates select="othercredit" mode="titlepage.mode"/>
738 </xsl:template>
740 <xsl:template match="bookinfo/author|book/info/author"
741 mode="titlepage.mode" priority="2">
742 <fo:block>
743 <xsl:call-template name="person.name"/>
744 </fo:block>
745 </xsl:template>
747 <xsl:template match="bookinfo/corpauthor|book/info/corpauthor"
748 mode="titlepage.mode" priority="2">
749 <fo:block>
750 <xsl:apply-templates/>
751 </fo:block>
752 </xsl:template>
754 <xsl:template match="bookinfo/pubdate|book/info/pubdate"
755 mode="titlepage.mode" priority="2">
756 <fo:block>
757 <xsl:call-template name="gentext">
758 <xsl:with-param name="key" select="'pubdate'"/>
759 </xsl:call-template>
760 <xsl:text> </xsl:text>
761 <xsl:apply-templates mode="titlepage.mode"/>
762 </fo:block>
763 </xsl:template>
765 <!-- ==================================================================== -->
767 </xsl:stylesheet>