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 9286 2012-04-19 10:10:58Z 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="topic.titlepage.recto.style"/>
134 <xsl:attribute-set name="topic.titlepage.verso.style"/>
136 <xsl:attribute-set name="refnamediv.titlepage.recto.style"
137 use-attribute-sets="section.titlepage.recto.style"/>
138 <xsl:attribute-set name="refnamediv.titlepage.verso.style"
139 use-attribute-sets="section.titlepage.verso.style"/>
141 <xsl:attribute-set name="refsynopsisdiv.titlepage.recto.style"
142 use-attribute-sets="section.titlepage.recto.style"/>
143 <xsl:attribute-set name="refsynopsisdiv.titlepage.verso.style"
144 use-attribute-sets="section.titlepage.verso.style"/>
146 <xsl:attribute-set name="refsection.titlepage.recto.style"
147 use-attribute-sets="section.titlepage.recto.style"/>
148 <xsl:attribute-set name="refsection.titlepage.verso.style"
149 use-attribute-sets="section.titlepage.verso.style"/>
151 <xsl:attribute-set name="refsect1.titlepage.recto.style"
152 use-attribute-sets="section.titlepage.recto.style"/>
153 <xsl:attribute-set name="refsect1.titlepage.verso.style"
154 use-attribute-sets="section.titlepage.verso.style"/>
156 <xsl:attribute-set name="refsect2.titlepage.recto.style"
157 use-attribute-sets="section.titlepage.recto.style"/>
158 <xsl:attribute-set name="refsect2.titlepage.verso.style"
159 use-attribute-sets="section.titlepage.verso.style"/>
161 <xsl:attribute-set name="refsect3.titlepage.recto.style"
162 use-attribute-sets="section.titlepage.recto.style"/>
163 <xsl:attribute-set name="refsect3.titlepage.verso.style"
164 use-attribute-sets="section.titlepage.verso.style"/>
166 <xsl:attribute-set name="table.of.contents.titlepage.recto.style"/>
167 <xsl:attribute-set name="table.of.contents.titlepage.verso.style"/>
169 <xsl:attribute-set name="list.of.tables.titlepage.recto.style"/>
170 <xsl:attribute-set name="list.of.tables.contents.titlepage.verso.style"/>
172 <xsl:attribute-set name="list.of.figures.titlepage.recto.style"/>
173 <xsl:attribute-set name="list.of.figures.contents.titlepage.verso.style"/>
175 <xsl:attribute-set name="list.of.equations.titlepage.recto.style"/>
176 <xsl:attribute-set name="list.of.equations.contents.titlepage.verso.style"/>
178 <xsl:attribute-set name="list.of.examples.titlepage.recto.style"/>
179 <xsl:attribute-set name="list.of.examples.contents.titlepage.verso.style"/>
181 <xsl:attribute-set name="list.of.procedures.titlepage.recto.style"/>
182 <xsl:attribute-set name="list.of.procedures.contents.titlepage.verso.style"/>
184 <xsl:attribute-set name="list.of.unknowns.titlepage.recto.style"/>
185 <xsl:attribute-set name="list.of.unknowns.contents.titlepage.verso.style"/>
187 <xsl:attribute-set name="component.list.of.tables.titlepage.recto.style"/>
188 <xsl:attribute-set name="component.list.of.tables.contents.titlepage.verso.style"/>
190 <xsl:attribute-set name="component.list.of.figures.titlepage.recto.style"/>
191 <xsl:attribute-set name="component.list.of.figures.contents.titlepage.verso.style"/>
193 <xsl:attribute-set name="component.list.of.equations.titlepage.recto.style"/>
194 <xsl:attribute-set name="component.list.of.equations.contents.titlepage.verso.style"/>
196 <xsl:attribute-set name="component.list.of.examples.titlepage.recto.style"/>
197 <xsl:attribute-set name="component.list.of.examples.contents.titlepage.verso.style"/>
199 <xsl:attribute-set name="component.list.of.procedures.titlepage.recto.style"/>
200 <xsl:attribute-set name="component.list.of.procedures.contents.titlepage.verso.style"/>
202 <xsl:attribute-set name="component.list.of.unknowns.titlepage.recto.style"/>
203 <xsl:attribute-set name="component.list.of.unknowns.contents.titlepage.verso.style"/>
205 <!-- ==================================================================== -->
207 <xsl:template match="*" mode="titlepage.mode">
208 <!-- if an element isn't found in this mode, try the default mode -->
209 <xsl:apply-templates select="."/>
212 <xsl:template match="abbrev" mode="titlepage.mode">
213 <xsl:apply-templates mode="titlepage.mode"/>
216 <xsl:template match="abstract" mode="titlepage.mode">
217 <fo:block xsl:use-attribute-sets="abstract.properties">
218 <fo:block xsl:use-attribute-sets="abstract.title.properties">
220 <xsl:when test="title|info/title">
221 <xsl:apply-templates select="title|info/title"/>
224 <xsl:call-template name="gentext">
225 <xsl:with-param name="key" select="'Abstract'"/>
230 <xsl:apply-templates select="*[not(self::title)]" mode="titlepage.mode"/>
234 <xsl:template match="abstract/title" mode="titlepage.mode"/>
236 <xsl:template match="abstract/title" mode="titlepage.abstract.title.mode">
237 <xsl:apply-templates mode="titlepage.mode"/>
240 <xsl:template match="address" mode="titlepage.mode">
241 <!-- use the normal address handling code -->
242 <xsl:apply-templates select="."/>
245 <xsl:template match="affiliation" mode="titlepage.mode">
247 <xsl:apply-templates mode="titlepage.mode"/>
251 <xsl:template match="artpagenums" mode="titlepage.mode">
252 <xsl:apply-templates mode="titlepage.mode"/>
255 <xsl:template match="author" mode="titlepage.mode">
257 <xsl:call-template name="anchor"/>
259 <xsl:when test="orgname">
260 <xsl:apply-templates/>
263 <xsl:call-template name="person.name"/>
264 <xsl:if test="affiliation/orgname">
265 <xsl:text>, </xsl:text>
266 <xsl:apply-templates select="affiliation/orgname" mode="titlepage.mode"/>
268 <xsl:if test="email|affiliation/address/email">
269 <xsl:text> </xsl:text>
270 <xsl:apply-templates select="(email|affiliation/address/email)[1]"/>
277 <xsl:template match="authorblurb" mode="titlepage.mode">
278 <xsl:apply-templates mode="titlepage.mode"/>
281 <xsl:template match="authorgroup" mode="titlepage.mode">
283 <xsl:call-template name="anchor"/>
284 <xsl:apply-templates mode="titlepage.mode"/>
288 <xsl:template match="authorinitials" mode="titlepage.mode">
289 <xsl:apply-templates mode="titlepage.mode"/>
292 <xsl:template match="bibliomisc" mode="titlepage.mode">
293 <xsl:apply-templates mode="titlepage.mode"/>
296 <xsl:template match="bibliomset" mode="titlepage.mode">
297 <xsl:apply-templates mode="titlepage.mode"/>
300 <xsl:template match="collab" mode="titlepage.mode">
301 <xsl:apply-templates mode="titlepage.mode"/>
304 <xsl:template match="collabname" mode="titlepage.mode">
305 <xsl:apply-templates mode="titlepage.mode"/>
308 <xsl:template match="confgroup" mode="titlepage.mode">
310 <xsl:apply-templates mode="titlepage.mode"/>
314 <xsl:template match="confdates" mode="titlepage.mode">
316 <xsl:apply-templates mode="titlepage.mode"/>
320 <xsl:template match="conftitle" mode="titlepage.mode">
322 <xsl:apply-templates mode="titlepage.mode"/>
326 <xsl:template match="confnum" mode="titlepage.mode">
330 <xsl:template match="contractnum" mode="titlepage.mode">
331 <xsl:apply-templates mode="titlepage.mode"/>
334 <xsl:template match="contractsponsor" mode="titlepage.mode">
335 <xsl:apply-templates mode="titlepage.mode"/>
338 <xsl:template match="contrib" mode="titlepage.mode">
339 <xsl:apply-templates mode="titlepage.mode"/>
342 <xsl:template match="copyright" mode="titlepage.mode">
343 <xsl:call-template name="gentext">
344 <xsl:with-param name="key" select="'Copyright'"/>
346 <xsl:call-template name="gentext.space"/>
347 <xsl:call-template name="dingbat">
348 <xsl:with-param name="dingbat">copyright</xsl:with-param>
350 <xsl:call-template name="gentext.space"/>
351 <xsl:call-template name="copyright.years">
352 <xsl:with-param name="years" select="year"/>
353 <xsl:with-param name="print.ranges" select="$make.year.ranges"/>
354 <xsl:with-param name="single.year.ranges"
355 select="$make.single.year.ranges"/>
357 <xsl:call-template name="gentext.space"/>
358 <xsl:apply-templates select="holder" mode="titlepage.mode"/>
361 <xsl:template match="year" mode="titlepage.mode">
362 <xsl:apply-templates/>
365 <xsl:template match="holder" mode="titlepage.mode">
366 <xsl:apply-templates/>
367 <xsl:if test="position() < last()">
368 <xsl:text>, </xsl:text>
372 <xsl:template match="corpauthor" mode="titlepage.mode">
373 <xsl:apply-templates mode="titlepage.mode"/>
376 <xsl:template match="corpcredit" mode="titlepage.mode">
377 <xsl:apply-templates mode="titlepage.mode"/>
380 <xsl:template match="corpname" mode="titlepage.mode">
381 <xsl:apply-templates mode="titlepage.mode"/>
384 <xsl:template match="date" mode="titlepage.mode">
385 <xsl:apply-templates mode="titlepage.mode"/>
388 <xsl:template match="edition" mode="titlepage.mode">
389 <xsl:apply-templates mode="titlepage.mode"/>
390 <xsl:call-template name="gentext.space"/>
391 <xsl:call-template name="gentext">
392 <xsl:with-param name="key" select="'Edition'"/>
396 <xsl:template match="editor" mode="titlepage.mode">
397 <!-- The first editor is dealt with in the following template,
398 which in turn displays all editors of the same mode. -->
401 <xsl:template match="editor[1]" priority="2" mode="titlepage.mode">
402 <xsl:call-template name="gentext.edited.by"/>
403 <xsl:call-template name="gentext.space"/>
404 <xsl:call-template name="person.name.list">
405 <xsl:with-param name="person.list" select="../editor"/>
409 <xsl:template match="firstname" mode="titlepage.mode">
410 <xsl:apply-templates mode="titlepage.mode"/>
413 <xsl:template match="graphic" mode="titlepage.mode">
414 <!-- use the normal graphic handling code -->
415 <xsl:apply-templates select="."/>
418 <xsl:template match="honorific" mode="titlepage.mode">
419 <xsl:apply-templates mode="titlepage.mode"/>
422 <xsl:template match="isbn" mode="titlepage.mode">
423 <xsl:apply-templates mode="titlepage.mode"/>
426 <xsl:template match="issn" mode="titlepage.mode">
427 <xsl:apply-templates mode="titlepage.mode"/>
430 <xsl:template match="biblioid" mode="titlepage.mode">
431 <xsl:apply-templates mode="titlepage.mode"/>
434 <xsl:template match="itermset" mode="titlepage.mode">
435 <xsl:apply-templates select="indexterm"/>
438 <xsl:template match="invpartnumber" mode="titlepage.mode">
439 <xsl:apply-templates mode="titlepage.mode"/>
442 <xsl:template match="issuenum" mode="titlepage.mode">
443 <xsl:apply-templates mode="titlepage.mode"/>
446 <xsl:template match="jobtitle" mode="titlepage.mode">
448 <xsl:apply-templates mode="titlepage.mode"/>
452 <xsl:template match="keywordset" mode="titlepage.mode">
455 <xsl:template match="legalnotice" mode="titlepage.mode">
457 <xsl:variable name="id">
458 <xsl:call-template name="object.id"/>
461 <fo:block id="{$id}">
462 <xsl:if test="title"> <!-- FIXME: add param for using default title? -->
463 <xsl:call-template name="formal.object.heading"/>
465 <xsl:apply-templates mode="titlepage.mode"/>
469 <xsl:template match="legalnotice/title" mode="titlepage.mode">
472 <xsl:template match="lineage" mode="titlepage.mode">
473 <xsl:apply-templates mode="titlepage.mode"/>
476 <xsl:template match="modespec" mode="titlepage.mode">
480 <xsl:template match="orgdiv" mode="titlepage.mode">
481 <xsl:if test="preceding-sibling::*[1][self::orgname]">
482 <xsl:text> </xsl:text>
484 <xsl:apply-templates mode="titlepage.mode"/>
487 <xsl:template match="orgname" mode="titlepage.mode">
488 <xsl:apply-templates mode="titlepage.mode"/>
491 <xsl:template match="othercredit" mode="titlepage.mode">
492 <xsl:variable name="contrib" select="string(contrib)"/>
494 <xsl:when test="contrib">
495 <xsl:if test="not(preceding-sibling::othercredit[string(contrib)=$contrib])">
497 <xsl:apply-templates mode="titlepage.mode" select="contrib"/>
498 <xsl:text>: </xsl:text>
499 <xsl:call-template name="person.name"/>
500 <xsl:apply-templates mode="titlepage.mode" select="affiliation"/>
501 <xsl:apply-templates select="following-sibling::othercredit[string(contrib)=$contrib]" mode="titlepage.othercredits"/>
506 <fo:block><xsl:call-template name="person.name"/></fo:block>
507 <xsl:apply-templates mode="titlepage.mode" select="./affiliation"/>
512 <xsl:template match="othercredit" mode="titlepage.othercredits">
513 <xsl:text>, </xsl:text>
514 <xsl:call-template name="person.name"/>
517 <xsl:template match="othername" mode="titlepage.mode">
518 <xsl:apply-templates mode="titlepage.mode"/>
521 <xsl:template match="pagenums" mode="titlepage.mode">
522 <xsl:apply-templates mode="titlepage.mode"/>
525 <xsl:template match="printhistory" mode="titlepage.mode">
526 <xsl:apply-templates mode="titlepage.mode"/>
529 <xsl:template match="productname" mode="titlepage.mode">
530 <xsl:apply-templates mode="titlepage.mode"/>
533 <xsl:template match="productnumber" mode="titlepage.mode">
534 <xsl:apply-templates mode="titlepage.mode"/>
537 <xsl:template match="pubdate" mode="titlepage.mode">
538 <xsl:apply-templates mode="titlepage.mode"/>
541 <xsl:template match="publisher" mode="titlepage.mode">
543 <xsl:apply-templates mode="titlepage.mode"/>
547 <xsl:template match="publishername" mode="titlepage.mode">
548 <xsl:apply-templates mode="titlepage.mode"/>
551 <xsl:template match="pubsnumber" mode="titlepage.mode">
552 <xsl:apply-templates mode="titlepage.mode"/>
555 <xsl:template match="releaseinfo" mode="titlepage.mode">
556 <xsl:apply-templates mode="titlepage.mode"/>
559 <xsl:template match="revhistory" mode="titlepage.mode">
561 <xsl:variable name="explicit.table.width">
562 <xsl:call-template name="pi.dbfo_table-width"/>
565 <xsl:variable name="table.width">
567 <xsl:when test="$explicit.table.width != ''">
568 <xsl:value-of select="$explicit.table.width"/>
570 <xsl:when test="$default.table.width = ''">
571 <xsl:text>100%</xsl:text>
574 <xsl:value-of select="$default.table.width"/>
579 <fo:table table-layout="fixed" width="{$table.width}" xsl:use-attribute-sets="revhistory.table.properties">
580 <fo:table-column column-number="1" column-width="proportional-column-width(1)"/>
581 <fo:table-column column-number="2" column-width="proportional-column-width(1)"/>
582 <fo:table-column column-number="3" column-width="proportional-column-width(1)"/>
583 <fo:table-body start-indent="0pt" end-indent="0pt">
585 <fo:table-cell number-columns-spanned="3" xsl:use-attribute-sets="revhistory.table.cell.properties">
586 <fo:block xsl:use-attribute-sets="revhistory.title.properties">
588 <xsl:when test="title|info/title">
589 <xsl:apply-templates select="title|info/title" mode="titlepage.mode"/>
592 <xsl:call-template name="gentext">
593 <xsl:with-param name="key" select="'RevHistory'"/>
600 <xsl:apply-templates select="*[not(self::title)]" mode="titlepage.mode"/>
607 <xsl:template match="revhistory/revision" mode="titlepage.mode">
608 <xsl:variable name="revnumber" select="revnumber"/>
609 <xsl:variable name="revdate" select="date"/>
610 <xsl:variable name="revauthor" select="authorinitials|author"/>
611 <xsl:variable name="revremark" select="revremark|revdescription"/>
613 <fo:table-cell xsl:use-attribute-sets="revhistory.table.cell.properties">
615 <xsl:if test="$revnumber">
616 <xsl:call-template name="gentext">
617 <xsl:with-param name="key" select="'Revision'"/>
619 <xsl:call-template name="gentext.space"/>
620 <xsl:apply-templates select="$revnumber[1]" mode="titlepage.mode"/>
624 <fo:table-cell xsl:use-attribute-sets="revhistory.table.cell.properties">
626 <xsl:apply-templates select="$revdate[1]" mode="titlepage.mode"/>
629 <fo:table-cell xsl:use-attribute-sets="revhistory.table.cell.properties">
631 <xsl:for-each select="$revauthor">
632 <xsl:apply-templates select="." mode="titlepage.mode"/>
633 <xsl:if test="position() != last()">
634 <xsl:text>, </xsl:text>
640 <xsl:if test="$revremark">
642 <fo:table-cell number-columns-spanned="3" xsl:use-attribute-sets="revhistory.table.cell.properties">
644 <xsl:apply-templates select="$revremark[1]" mode="titlepage.mode"/>
651 <xsl:template match="revision/revnumber" mode="titlepage.mode">
652 <xsl:apply-templates mode="titlepage.mode"/>
655 <xsl:template match="revision/date" mode="titlepage.mode">
656 <xsl:apply-templates mode="titlepage.mode"/>
659 <xsl:template match="revision/authorinitials" mode="titlepage.mode">
660 <xsl:apply-templates mode="titlepage.mode"/>
663 <xsl:template match="revision/author" mode="titlepage.mode">
664 <xsl:apply-templates mode="titlepage.mode"/>
667 <xsl:template match="revision/revremark" mode="titlepage.mode">
668 <xsl:apply-templates mode="titlepage.mode"/>
671 <xsl:template match="revision/revdescription" mode="titlepage.mode">
672 <xsl:apply-templates mode="titlepage.mode"/>
675 <xsl:template match="seriesvolnums" mode="titlepage.mode">
676 <xsl:apply-templates mode="titlepage.mode"/>
679 <xsl:template match="shortaffil" mode="titlepage.mode">
680 <xsl:apply-templates mode="titlepage.mode"/>
683 <xsl:template match="subjectset" mode="titlepage.mode">
687 <xsl:template match="subtitle" mode="titlepage.mode">
688 <xsl:apply-templates mode="titlepage.mode"/>
691 <xsl:template match="surname" mode="titlepage.mode">
692 <xsl:apply-templates mode="titlepage.mode"/>
695 <xsl:template match="title" mode="titlepage.mode">
696 <xsl:apply-templates mode="titlepage.mode"/>
699 <xsl:template match="titleabbrev" mode="titlepage.mode">
700 <xsl:apply-templates mode="titlepage.mode"/>
703 <xsl:template match="volumenum" mode="titlepage.mode">
704 <xsl:apply-templates mode="titlepage.mode"/>
707 <!-- ==================================================================== -->
708 <!-- Book templates -->
710 <!-- Note: these templates cannot use *.titlepage.recto.mode or
711 *.titlepage.verso.mode. If they do then subsequent use of a custom
712 titlepage.templates.xml file will not work correctly. -->
716 <xsl:template match="bookinfo/authorgroup|book/info/authorgroup"
717 mode="titlepage.mode" priority="2">
719 <xsl:call-template name="anchor"/>
720 <xsl:apply-templates mode="titlepage.mode"/>
726 <xsl:template name="book.verso.title">
728 <xsl:apply-templates mode="titlepage.mode"/>
730 <xsl:if test="following-sibling::subtitle
731 |following-sibling::info/subtitle
732 |following-sibling::bookinfo/subtitle">
733 <xsl:text>: </xsl:text>
735 <xsl:apply-templates select="(following-sibling::subtitle
736 |following-sibling::info/subtitle
737 |following-sibling::bookinfo/subtitle)[1]"
738 mode="book.verso.subtitle.mode"/>
743 <xsl:template match="subtitle" mode="book.verso.subtitle.mode">
744 <xsl:apply-templates mode="titlepage.mode"/>
745 <xsl:if test="following-sibling::subtitle">
746 <xsl:text>: </xsl:text>
747 <xsl:apply-templates select="following-sibling::subtitle[1]"
748 mode="book.verso.subtitle.mode"/>
752 <xsl:template name="verso.authorgroup">
754 <xsl:call-template name="gentext">
755 <xsl:with-param name="key" select="'by'"/>
757 <xsl:text> </xsl:text>
758 <xsl:call-template name="person.name.list">
759 <xsl:with-param name="person.list" select="author|corpauthor|editor"/>
762 <xsl:apply-templates select="othercredit" mode="titlepage.mode"/>
765 <xsl:template match="bookinfo/author|book/info/author"
766 mode="titlepage.mode" priority="2">
768 <xsl:call-template name="person.name"/>
772 <xsl:template match="bookinfo/corpauthor|book/info/corpauthor"
773 mode="titlepage.mode" priority="2">
775 <xsl:apply-templates/>
779 <xsl:template match="bookinfo/pubdate|book/info/pubdate"
780 mode="titlepage.mode" priority="2">
782 <xsl:call-template name="gentext">
783 <xsl:with-param name="key" select="'pubdate'"/>
785 <xsl:text> </xsl:text>
786 <xsl:apply-templates mode="titlepage.mode"/>
790 <!-- ==================================================================== -->