2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3 xmlns:fo="http://www.w3.org/1999/XSL/Format"
6 <!-- ********************************************************************
7 $Id: titlepage.xsl 9993 2015-09-17 21:13:32Z 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"/>
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>
27 <xsl:attribute-set name="book.titlepage.verso.style">
28 <xsl:attribute name="font-size">10pt</xsl:attribute>
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>
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>
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>
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="dialogue.titlepage.recto.style"/>
134 <xsl:attribute-set name="dialogue.titlepage.verso.style"/>
135 <xsl:attribute-set name="drama.titlepage.recto.style"/>
136 <xsl:attribute-set name="drama.titlepage.verso.style"/>
137 <xsl:attribute-set name="poetry.titlepage.recto.style"/>
138 <xsl:attribute-set name="poetry.titlepage.verso.style"/>
140 <xsl:attribute-set name="topic.titlepage.recto.style"/>
141 <xsl:attribute-set name="topic.titlepage.verso.style"/>
143 <xsl:attribute-set name="refnamediv.titlepage.recto.style"
144 use-attribute-sets="section.titlepage.recto.style"/>
145 <xsl:attribute-set name="refnamediv.titlepage.verso.style"
146 use-attribute-sets="section.titlepage.verso.style"/>
148 <xsl:attribute-set name="refsynopsisdiv.titlepage.recto.style"
149 use-attribute-sets="section.titlepage.recto.style"/>
150 <xsl:attribute-set name="refsynopsisdiv.titlepage.verso.style"
151 use-attribute-sets="section.titlepage.verso.style"/>
153 <xsl:attribute-set name="refsection.titlepage.recto.style"
154 use-attribute-sets="section.titlepage.recto.style"/>
155 <xsl:attribute-set name="refsection.titlepage.verso.style"
156 use-attribute-sets="section.titlepage.verso.style"/>
158 <xsl:attribute-set name="refsect1.titlepage.recto.style"
159 use-attribute-sets="section.titlepage.recto.style"/>
160 <xsl:attribute-set name="refsect1.titlepage.verso.style"
161 use-attribute-sets="section.titlepage.verso.style"/>
163 <xsl:attribute-set name="refsect2.titlepage.recto.style"
164 use-attribute-sets="section.titlepage.recto.style"/>
165 <xsl:attribute-set name="refsect2.titlepage.verso.style"
166 use-attribute-sets="section.titlepage.verso.style"/>
168 <xsl:attribute-set name="refsect3.titlepage.recto.style"
169 use-attribute-sets="section.titlepage.recto.style"/>
170 <xsl:attribute-set name="refsect3.titlepage.verso.style"
171 use-attribute-sets="section.titlepage.verso.style"/>
173 <xsl:attribute-set name="table.of.contents.titlepage.recto.style"/>
174 <xsl:attribute-set name="table.of.contents.titlepage.verso.style"/>
176 <xsl:attribute-set name="list.of.tables.titlepage.recto.style"/>
177 <xsl:attribute-set name="list.of.tables.contents.titlepage.verso.style"/>
179 <xsl:attribute-set name="list.of.figures.titlepage.recto.style"/>
180 <xsl:attribute-set name="list.of.figures.contents.titlepage.verso.style"/>
182 <xsl:attribute-set name="list.of.equations.titlepage.recto.style"/>
183 <xsl:attribute-set name="list.of.equations.contents.titlepage.verso.style"/>
185 <xsl:attribute-set name="list.of.examples.titlepage.recto.style"/>
186 <xsl:attribute-set name="list.of.examples.contents.titlepage.verso.style"/>
188 <xsl:attribute-set name="list.of.procedures.titlepage.recto.style"/>
189 <xsl:attribute-set name="list.of.procedures.contents.titlepage.verso.style"/>
191 <xsl:attribute-set name="list.of.unknowns.titlepage.recto.style"/>
192 <xsl:attribute-set name="list.of.unknowns.contents.titlepage.verso.style"/>
194 <xsl:attribute-set name="component.list.of.tables.titlepage.recto.style"/>
195 <xsl:attribute-set name="component.list.of.tables.contents.titlepage.verso.style"/>
197 <xsl:attribute-set name="component.list.of.figures.titlepage.recto.style"/>
198 <xsl:attribute-set name="component.list.of.figures.contents.titlepage.verso.style"/>
200 <xsl:attribute-set name="component.list.of.equations.titlepage.recto.style"/>
201 <xsl:attribute-set name="component.list.of.equations.contents.titlepage.verso.style"/>
203 <xsl:attribute-set name="component.list.of.examples.titlepage.recto.style"/>
204 <xsl:attribute-set name="component.list.of.examples.contents.titlepage.verso.style"/>
206 <xsl:attribute-set name="component.list.of.procedures.titlepage.recto.style"/>
207 <xsl:attribute-set name="component.list.of.procedures.contents.titlepage.verso.style"/>
209 <xsl:attribute-set name="component.list.of.unknowns.titlepage.recto.style"/>
210 <xsl:attribute-set name="component.list.of.unknowns.contents.titlepage.verso.style"/>
212 <!-- ==================================================================== -->
214 <xsl:template match="*" mode="titlepage.mode">
215 <!-- if an element isn't found in this mode, try the default mode -->
216 <xsl:apply-templates select="."/>
219 <xsl:template match="abbrev" mode="titlepage.mode">
220 <xsl:apply-templates mode="titlepage.mode"/>
223 <xsl:template match="abstract" mode="titlepage.mode">
224 <fo:block xsl:use-attribute-sets="abstract.properties">
225 <fo:block xsl:use-attribute-sets="abstract.title.properties">
227 <xsl:when test="title|info/title">
228 <xsl:apply-templates select="title|info/title"/>
231 <xsl:call-template name="gentext">
232 <xsl:with-param name="key" select="'Abstract'"/>
237 <xsl:apply-templates select="*[not(self::title)]" mode="titlepage.mode"/>
241 <xsl:template match="abstract/title" mode="titlepage.mode"/>
243 <xsl:template match="abstract/title" mode="titlepage.abstract.title.mode">
244 <xsl:apply-templates mode="titlepage.mode"/>
247 <xsl:template match="address" mode="titlepage.mode">
248 <!-- use the normal address handling code -->
249 <xsl:apply-templates select="."/>
252 <xsl:template match="affiliation" mode="titlepage.mode">
254 <xsl:apply-templates mode="titlepage.mode"/>
258 <xsl:template match="artpagenums" mode="titlepage.mode">
259 <xsl:apply-templates mode="titlepage.mode"/>
262 <xsl:template match="author" mode="titlepage.mode">
264 <xsl:call-template name="anchor"/>
266 <xsl:when test="orgname">
267 <xsl:apply-templates/>
270 <xsl:call-template name="person.name"/>
271 <xsl:if test="affiliation/orgname">
272 <xsl:text>, </xsl:text>
273 <xsl:apply-templates select="affiliation/orgname" mode="titlepage.mode"/>
275 <xsl:if test="email|affiliation/address/email">
276 <xsl:text> </xsl:text>
277 <xsl:apply-templates select="(email|affiliation/address/email)[1]"/>
284 <xsl:template match="authorblurb" mode="titlepage.mode">
285 <xsl:apply-templates mode="titlepage.mode"/>
288 <xsl:template match="authorgroup" mode="titlepage.mode">
290 <xsl:call-template name="anchor"/>
291 <xsl:apply-templates mode="titlepage.mode"/>
295 <xsl:template match="authorinitials" mode="titlepage.mode">
296 <xsl:apply-templates mode="titlepage.mode"/>
299 <xsl:template match="bibliomisc" mode="titlepage.mode">
300 <xsl:apply-templates mode="titlepage.mode"/>
303 <xsl:template match="bibliomset" mode="titlepage.mode">
304 <xsl:apply-templates mode="titlepage.mode"/>
307 <xsl:template match="collab" mode="titlepage.mode">
308 <xsl:apply-templates mode="titlepage.mode"/>
311 <xsl:template match="collabname" mode="titlepage.mode">
312 <xsl:apply-templates mode="titlepage.mode"/>
315 <xsl:template match="confgroup" mode="titlepage.mode">
317 <xsl:apply-templates mode="titlepage.mode"/>
321 <xsl:template match="confdates" mode="titlepage.mode">
323 <xsl:apply-templates mode="titlepage.mode"/>
327 <xsl:template match="conftitle" mode="titlepage.mode">
329 <xsl:apply-templates mode="titlepage.mode"/>
333 <xsl:template match="confnum" mode="titlepage.mode">
337 <xsl:template match="contractnum" mode="titlepage.mode">
338 <xsl:apply-templates mode="titlepage.mode"/>
341 <xsl:template match="contractsponsor" mode="titlepage.mode">
342 <xsl:apply-templates mode="titlepage.mode"/>
345 <xsl:template match="contrib" mode="titlepage.mode">
346 <xsl:apply-templates mode="titlepage.mode"/>
349 <xsl:template match="copyright" mode="titlepage.mode">
350 <xsl:call-template name="gentext">
351 <xsl:with-param name="key" select="'Copyright'"/>
353 <xsl:call-template name="gentext.space"/>
354 <xsl:call-template name="dingbat">
355 <xsl:with-param name="dingbat">copyright</xsl:with-param>
357 <xsl:call-template name="gentext.space"/>
358 <xsl:call-template name="copyright.years">
359 <xsl:with-param name="years" select="year"/>
360 <xsl:with-param name="print.ranges" select="$make.year.ranges"/>
361 <xsl:with-param name="single.year.ranges"
362 select="$make.single.year.ranges"/>
364 <xsl:call-template name="gentext.space"/>
365 <xsl:apply-templates select="holder" mode="titlepage.mode"/>
368 <xsl:template match="year" mode="titlepage.mode">
369 <xsl:apply-templates/>
372 <xsl:template match="holder" mode="titlepage.mode">
373 <xsl:apply-templates/>
374 <xsl:if test="position() < last()">
375 <xsl:text>, </xsl:text>
379 <xsl:template match="corpauthor" mode="titlepage.mode">
380 <xsl:apply-templates mode="titlepage.mode"/>
383 <xsl:template match="corpcredit" mode="titlepage.mode">
384 <xsl:apply-templates mode="titlepage.mode"/>
387 <xsl:template match="corpname" mode="titlepage.mode">
388 <xsl:apply-templates mode="titlepage.mode"/>
391 <xsl:template match="date" mode="titlepage.mode">
392 <xsl:apply-templates mode="titlepage.mode"/>
395 <xsl:template match="edition" mode="titlepage.mode">
396 <xsl:apply-templates mode="titlepage.mode"/>
397 <xsl:call-template name="gentext.space"/>
398 <xsl:call-template name="gentext">
399 <xsl:with-param name="key" select="'Edition'"/>
403 <xsl:template match="editor" mode="titlepage.mode">
404 <!-- The first editor is dealt with in the following template,
405 which in turn displays all editors of the same mode. -->
408 <xsl:template match="editor[1]" priority="2" mode="titlepage.mode">
409 <xsl:call-template name="gentext.edited.by"/>
410 <xsl:call-template name="gentext.space"/>
411 <xsl:call-template name="person.name.list">
412 <xsl:with-param name="person.list" select="../editor"/>
416 <xsl:template match="firstname" mode="titlepage.mode">
417 <xsl:apply-templates mode="titlepage.mode"/>
420 <xsl:template match="graphic" mode="titlepage.mode">
421 <!-- use the normal graphic handling code -->
422 <xsl:apply-templates select="."/>
425 <xsl:template match="honorific" mode="titlepage.mode">
426 <xsl:apply-templates mode="titlepage.mode"/>
429 <xsl:template match="isbn" mode="titlepage.mode">
430 <xsl:apply-templates mode="titlepage.mode"/>
433 <xsl:template match="issn" mode="titlepage.mode">
434 <xsl:apply-templates mode="titlepage.mode"/>
437 <xsl:template match="biblioid" mode="titlepage.mode">
438 <xsl:apply-templates mode="titlepage.mode"/>
441 <xsl:template match="itermset" mode="titlepage.mode">
442 <xsl:apply-templates select="indexterm"/>
445 <xsl:template match="invpartnumber" mode="titlepage.mode">
446 <xsl:apply-templates mode="titlepage.mode"/>
449 <xsl:template match="issuenum" mode="titlepage.mode">
450 <xsl:apply-templates mode="titlepage.mode"/>
453 <xsl:template match="jobtitle" mode="titlepage.mode">
455 <xsl:apply-templates mode="titlepage.mode"/>
459 <xsl:template match="keywordset" mode="titlepage.mode">
462 <xsl:template match="legalnotice" mode="titlepage.mode">
464 <xsl:variable name="id">
465 <xsl:call-template name="object.id"/>
468 <fo:block id="{$id}">
469 <xsl:if test="title"> <!-- FIXME: add param for using default title? -->
470 <xsl:call-template name="formal.object.heading"/>
472 <xsl:apply-templates mode="titlepage.mode"/>
476 <xsl:template match="legalnotice/title" mode="titlepage.mode">
479 <xsl:template match="lineage" mode="titlepage.mode">
480 <xsl:apply-templates mode="titlepage.mode"/>
483 <xsl:template match="modespec" mode="titlepage.mode">
487 <xsl:template match="orgdiv" mode="titlepage.mode">
488 <xsl:if test="preceding-sibling::*[1][self::orgname]">
489 <xsl:text> </xsl:text>
491 <xsl:apply-templates mode="titlepage.mode"/>
494 <xsl:template match="orgname" mode="titlepage.mode">
495 <xsl:apply-templates mode="titlepage.mode"/>
498 <xsl:template match="othercredit" mode="titlepage.mode">
499 <xsl:variable name="contrib" select="string(contrib)"/>
501 <xsl:when test="contrib">
502 <xsl:if test="not(preceding-sibling::othercredit[string(contrib)=$contrib])">
504 <xsl:apply-templates mode="titlepage.mode" select="contrib"/>
505 <xsl:text>: </xsl:text>
506 <xsl:call-template name="person.name"/>
507 <xsl:apply-templates mode="titlepage.mode" select="affiliation"/>
508 <xsl:apply-templates select="following-sibling::othercredit[string(contrib)=$contrib]" mode="titlepage.othercredits"/>
513 <fo:block><xsl:call-template name="person.name"/></fo:block>
514 <xsl:apply-templates mode="titlepage.mode" select="./affiliation"/>
519 <xsl:template match="othercredit" mode="titlepage.othercredits">
520 <xsl:text>, </xsl:text>
521 <xsl:call-template name="person.name"/>
524 <xsl:template match="othername" mode="titlepage.mode">
525 <xsl:apply-templates mode="titlepage.mode"/>
528 <xsl:template match="pagenums" mode="titlepage.mode">
529 <xsl:apply-templates mode="titlepage.mode"/>
532 <xsl:template match="printhistory" mode="titlepage.mode">
533 <xsl:apply-templates mode="titlepage.mode"/>
536 <xsl:template match="productname" mode="titlepage.mode">
537 <xsl:apply-templates mode="titlepage.mode"/>
540 <xsl:template match="productnumber" mode="titlepage.mode">
541 <xsl:apply-templates mode="titlepage.mode"/>
544 <xsl:template match="pubdate" mode="titlepage.mode">
545 <xsl:apply-templates mode="titlepage.mode"/>
548 <xsl:template match="publisher" mode="titlepage.mode">
550 <xsl:apply-templates mode="titlepage.mode"/>
554 <xsl:template match="publishername" mode="titlepage.mode">
555 <xsl:apply-templates mode="titlepage.mode"/>
558 <xsl:template match="pubsnumber" mode="titlepage.mode">
559 <xsl:apply-templates mode="titlepage.mode"/>
562 <xsl:template match="releaseinfo" mode="titlepage.mode">
563 <xsl:apply-templates mode="titlepage.mode"/>
566 <xsl:template match="revhistory" mode="titlepage.mode">
568 <xsl:variable name="explicit.table.width">
569 <xsl:call-template name="pi.dbfo_table-width"/>
572 <xsl:variable name="table.width">
574 <xsl:when test="$explicit.table.width != ''">
575 <xsl:value-of select="$explicit.table.width"/>
577 <xsl:when test="$default.table.width = ''">
578 <xsl:text>100%</xsl:text>
581 <xsl:value-of select="$default.table.width"/>
586 <fo:table table-layout="fixed" width="{$table.width}" xsl:use-attribute-sets="revhistory.table.properties">
587 <fo:table-column column-number="1" column-width="proportional-column-width(1)"/>
588 <fo:table-column column-number="2" column-width="proportional-column-width(1)"/>
589 <fo:table-column column-number="3" column-width="proportional-column-width(1)"/>
590 <fo:table-body start-indent="0pt" end-indent="0pt">
592 <fo:table-cell number-columns-spanned="3" xsl:use-attribute-sets="revhistory.table.cell.properties">
593 <fo:block xsl:use-attribute-sets="revhistory.title.properties">
595 <xsl:when test="title|info/title">
596 <xsl:apply-templates select="title|info/title" mode="titlepage.mode"/>
599 <xsl:call-template name="gentext">
600 <xsl:with-param name="key" select="'RevHistory'"/>
607 <xsl:apply-templates select="*[not(self::title)]" mode="titlepage.mode"/>
614 <xsl:template match="revhistory/revision" mode="titlepage.mode">
615 <xsl:variable name="revnumber" select="revnumber"/>
616 <xsl:variable name="revdate" select="date"/>
617 <xsl:variable name="revauthor" select="authorinitials|author"/>
618 <xsl:variable name="revremark" select="revremark|revdescription"/>
620 <fo:table-cell xsl:use-attribute-sets="revhistory.table.cell.properties">
622 <xsl:if test="$revnumber">
623 <xsl:call-template name="gentext">
624 <xsl:with-param name="key" select="'Revision'"/>
626 <xsl:call-template name="gentext.space"/>
627 <xsl:apply-templates select="$revnumber[1]" mode="titlepage.mode"/>
631 <fo:table-cell xsl:use-attribute-sets="revhistory.table.cell.properties">
633 <xsl:apply-templates select="$revdate[1]" mode="titlepage.mode"/>
636 <fo:table-cell xsl:use-attribute-sets="revhistory.table.cell.properties">
638 <xsl:for-each select="$revauthor">
639 <xsl:apply-templates select="." mode="titlepage.mode"/>
640 <xsl:if test="position() != last()">
641 <xsl:text>, </xsl:text>
647 <xsl:if test="$revremark">
649 <fo:table-cell number-columns-spanned="3" xsl:use-attribute-sets="revhistory.table.cell.properties">
651 <xsl:apply-templates select="$revremark[1]" mode="titlepage.mode"/>
658 <xsl:template match="revision/revnumber" mode="titlepage.mode">
659 <xsl:apply-templates mode="titlepage.mode"/>
662 <xsl:template match="revision/date" mode="titlepage.mode">
663 <xsl:apply-templates mode="titlepage.mode"/>
666 <xsl:template match="revision/authorinitials" mode="titlepage.mode">
667 <xsl:apply-templates mode="titlepage.mode"/>
670 <xsl:template match="revision/author" mode="titlepage.mode">
671 <xsl:apply-templates mode="titlepage.mode"/>
674 <xsl:template match="revision/revremark" mode="titlepage.mode">
675 <xsl:apply-templates mode="titlepage.mode"/>
678 <xsl:template match="revision/revdescription" mode="titlepage.mode">
679 <xsl:apply-templates mode="titlepage.mode"/>
682 <xsl:template match="seriesvolnums" mode="titlepage.mode">
683 <xsl:apply-templates mode="titlepage.mode"/>
686 <xsl:template match="shortaffil" mode="titlepage.mode">
687 <xsl:apply-templates mode="titlepage.mode"/>
690 <xsl:template match="subjectset" mode="titlepage.mode">
694 <xsl:template match="subtitle" mode="titlepage.mode">
695 <xsl:apply-templates mode="titlepage.mode"/>
698 <xsl:template match="surname" mode="titlepage.mode">
699 <xsl:apply-templates mode="titlepage.mode"/>
702 <xsl:template match="title" mode="titlepage.mode">
703 <xsl:apply-templates mode="titlepage.mode"/>
706 <xsl:template match="titleabbrev" mode="titlepage.mode">
707 <xsl:apply-templates mode="titlepage.mode"/>
710 <xsl:template match="volumenum" mode="titlepage.mode">
711 <xsl:apply-templates mode="titlepage.mode"/>
714 <!-- ==================================================================== -->
715 <!-- Book templates -->
717 <!-- Note: these templates cannot use *.titlepage.recto.mode or
718 *.titlepage.verso.mode. If they do then subsequent use of a custom
719 titlepage.templates.xml file will not work correctly. -->
723 <xsl:template match="bookinfo/authorgroup|book/info/authorgroup"
724 mode="titlepage.mode" priority="2">
726 <xsl:call-template name="anchor"/>
727 <xsl:apply-templates mode="titlepage.mode"/>
733 <xsl:template name="book.verso.title">
735 <xsl:apply-templates mode="titlepage.mode"/>
737 <xsl:if test="following-sibling::subtitle
738 |following-sibling::info/subtitle
739 |following-sibling::bookinfo/subtitle">
740 <xsl:text>: </xsl:text>
742 <xsl:apply-templates select="(following-sibling::subtitle
743 |following-sibling::info/subtitle
744 |following-sibling::bookinfo/subtitle)[1]"
745 mode="book.verso.subtitle.mode"/>
750 <xsl:template match="subtitle" mode="book.verso.subtitle.mode">
751 <xsl:apply-templates mode="titlepage.mode"/>
752 <xsl:if test="following-sibling::subtitle">
753 <xsl:text>: </xsl:text>
754 <xsl:apply-templates select="following-sibling::subtitle[1]"
755 mode="book.verso.subtitle.mode"/>
759 <xsl:template name="verso.authorgroup">
761 <xsl:call-template name="gentext">
762 <xsl:with-param name="key" select="'by'"/>
764 <xsl:text> </xsl:text>
765 <xsl:call-template name="person.name.list">
766 <xsl:with-param name="person.list" select="author|corpauthor|editor"/>
769 <xsl:apply-templates select="othercredit" mode="titlepage.mode"/>
772 <xsl:template match="bookinfo/author|book/info/author"
773 mode="titlepage.mode" priority="2">
775 <xsl:call-template name="person.name"/>
779 <xsl:template match="bookinfo/corpauthor|book/info/corpauthor"
780 mode="titlepage.mode" priority="2">
782 <xsl:apply-templates/>
786 <xsl:template match="bookinfo/pubdate|book/info/pubdate"
787 mode="titlepage.mode" priority="2">
789 <xsl:call-template name="gentext">
790 <xsl:with-param name="key" select="'pubdate'"/>
792 <xsl:text> </xsl:text>
793 <xsl:apply-templates mode="titlepage.mode"/>
797 <!-- ==================================================================== -->