1 <?xml version="1.0" encoding="ASCII"?>
2 <!--This file was created automatically by html2xhtml-->
3 <!--from the HTML stylesheets.-->
4 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" version="1.0">
6 <!-- ********************************************************************
7 $Id: titlepage.xsl 8491 2009-07-19 10:02:57Z mzjn $
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-set name="book.titlepage.verso.style"/>
21 <xsl:attribute-set name="article.titlepage.recto.style"/>
22 <xsl:attribute-set name="article.titlepage.verso.style"/>
24 <xsl:attribute-set name="set.titlepage.recto.style"/>
25 <xsl:attribute-set name="set.titlepage.verso.style"/>
27 <xsl:attribute-set name="part.titlepage.recto.style"/>
28 <xsl:attribute-set name="part.titlepage.verso.style"/>
30 <xsl:attribute-set name="partintro.titlepage.recto.style"/>
31 <xsl:attribute-set name="partintro.titlepage.verso.style"/>
33 <xsl:attribute-set name="reference.titlepage.recto.style"/>
34 <xsl:attribute-set name="reference.titlepage.verso.style"/>
36 <xsl:attribute-set name="refentry.titlepage.recto.style"/>
37 <xsl:attribute-set name="refentry.titlepage.verso.style"/>
39 <xsl:attribute-set name="dedication.titlepage.recto.style"/>
40 <xsl:attribute-set name="dedication.titlepage.verso.style"/>
42 <xsl:attribute-set name="acknowledgements.titlepage.recto.style"/>
43 <xsl:attribute-set name="acknowledgements.titlepage.verso.style"/>
45 <xsl:attribute-set name="preface.titlepage.recto.style"/>
46 <xsl:attribute-set name="preface.titlepage.verso.style"/>
48 <xsl:attribute-set name="chapter.titlepage.recto.style"/>
49 <xsl:attribute-set name="chapter.titlepage.verso.style"/>
51 <xsl:attribute-set name="appendix.titlepage.recto.style"/>
52 <xsl:attribute-set name="appendix.titlepage.verso.style"/>
54 <xsl:attribute-set name="bibliography.titlepage.recto.style"/>
55 <xsl:attribute-set name="bibliography.titlepage.verso.style"/>
57 <xsl:attribute-set name="glossary.titlepage.recto.style"/>
58 <xsl:attribute-set name="glossary.titlepage.verso.style"/>
60 <xsl:attribute-set name="index.titlepage.recto.style"/>
61 <xsl:attribute-set name="index.titlepage.verso.style"/>
63 <xsl:attribute-set name="setindex.titlepage.recto.style"/>
64 <xsl:attribute-set name="setindex.titlepage.verso.style"/>
66 <xsl:attribute-set name="section.titlepage.recto.style"/>
67 <xsl:attribute-set name="section.titlepage.verso.style"/>
69 <xsl:attribute-set name="sect1.titlepage.recto.style" use-attribute-sets="section.titlepage.recto.style"/>
70 <xsl:attribute-set name="sect1.titlepage.verso.style" use-attribute-sets="section.titlepage.verso.style"/>
72 <xsl:attribute-set name="sect2.titlepage.recto.style" use-attribute-sets="section.titlepage.recto.style"/>
73 <xsl:attribute-set name="sect2.titlepage.verso.style" use-attribute-sets="section.titlepage.verso.style"/>
75 <xsl:attribute-set name="sect3.titlepage.recto.style" use-attribute-sets="section.titlepage.recto.style"/>
76 <xsl:attribute-set name="sect3.titlepage.verso.style" use-attribute-sets="section.titlepage.verso.style"/>
78 <xsl:attribute-set name="sect4.titlepage.recto.style" use-attribute-sets="section.titlepage.recto.style"/>
79 <xsl:attribute-set name="sect4.titlepage.verso.style" use-attribute-sets="section.titlepage.verso.style"/>
81 <xsl:attribute-set name="sect5.titlepage.recto.style" use-attribute-sets="section.titlepage.recto.style"/>
82 <xsl:attribute-set name="sect5.titlepage.verso.style" use-attribute-sets="section.titlepage.verso.style"/>
84 <xsl:attribute-set name="simplesect.titlepage.recto.style" use-attribute-sets="section.titlepage.recto.style"/>
85 <xsl:attribute-set name="simplesect.titlepage.verso.style" use-attribute-sets="section.titlepage.verso.style"/>
87 <xsl:attribute-set name="table.of.contents.titlepage.recto.style"/>
88 <xsl:attribute-set name="table.of.contents.titlepage.verso.style"/>
90 <xsl:attribute-set name="list.of.tables.titlepage.recto.style"/>
91 <xsl:attribute-set name="list.of.tables.contents.titlepage.verso.style"/>
93 <xsl:attribute-set name="list.of.figures.titlepage.recto.style"/>
94 <xsl:attribute-set name="list.of.figures.contents.titlepage.verso.style"/>
96 <xsl:attribute-set name="list.of.equations.titlepage.recto.style"/>
97 <xsl:attribute-set name="list.of.equations.contents.titlepage.verso.style"/>
99 <xsl:attribute-set name="list.of.examples.titlepage.recto.style"/>
100 <xsl:attribute-set name="list.of.examples.contents.titlepage.verso.style"/>
102 <xsl:attribute-set name="list.of.unknowns.titlepage.recto.style"/>
103 <xsl:attribute-set name="list.of.unknowns.contents.titlepage.verso.style"/>
105 <!-- ==================================================================== -->
107 <xsl:template match="*" mode="titlepage.mode">
108 <!-- if an element isn't found in this mode, try the default mode -->
109 <xsl:apply-templates select="."/>
112 <xsl:template match="abbrev" mode="titlepage.mode">
114 <xsl:apply-templates select="." mode="common.html.attributes"/>
115 <xsl:apply-templates mode="titlepage.mode"/>
120 <xsl:template match="abstract" mode="titlepage.mode">
122 <xsl:apply-templates select="." mode="common.html.attributes"/>
123 <xsl:call-template name="anchor"/>
124 <xsl:if test="$abstract.notitle.enabled = 0">
125 <xsl:call-template name="formal.object.heading">
126 <xsl:with-param name="title">
127 <xsl:apply-templates select="." mode="title.markup"/>
131 <xsl:apply-templates mode="titlepage.mode"/>
132 <xsl:call-template name="process.footnotes"/>
136 <xsl:template match="abstract/title" mode="titlepage.mode">
139 <xsl:template match="address" mode="titlepage.mode">
140 <xsl:param name="suppress-numbers" select="'0'"/>
142 <xsl:variable name="rtf">
143 <xsl:apply-templates mode="titlepage.mode"/>
147 <xsl:when test="$suppress-numbers = '0' and @linenumbering = 'numbered' and $use.extensions != '0' and $linenumbering.extension != '0'">
149 <xsl:apply-templates select="." mode="common.html.attributes"/>
150 <xsl:call-template name="paragraph">
151 <xsl:with-param name="content">
152 <xsl:call-template name="number.rtf.lines">
153 <xsl:with-param name="rtf" select="$rtf"/>
162 <xsl:apply-templates select="." mode="common.html.attributes"/>
163 <xsl:call-template name="paragraph">
164 <xsl:with-param name="content">
165 <xsl:call-template name="make-verbatim">
166 <xsl:with-param name="rtf" select="$rtf"/>
175 <xsl:template match="affiliation" mode="titlepage.mode">
177 <xsl:apply-templates select="." mode="common.html.attributes"/>
178 <xsl:apply-templates mode="titlepage.mode"/>
182 <xsl:template match="artpagenums" mode="titlepage.mode">
184 <xsl:apply-templates select="." mode="common.html.attributes"/>
185 <xsl:apply-templates mode="titlepage.mode"/>
190 <xsl:template match="author|editor" mode="titlepage.mode">
191 <xsl:call-template name="credits.div"/>
194 <xsl:template name="credits.div">
196 <xsl:apply-templates select="." mode="common.html.attributes"/>
197 <xsl:if test="self::editor[position()=1] and not($editedby.enabled = 0)">
198 <h4 class="editedby"><xsl:call-template name="gentext.edited.by"/></h4>
201 <xsl:apply-templates select="." mode="common.html.attributes"/>
203 <xsl:when test="orgname">
204 <xsl:apply-templates/>
207 <xsl:call-template name="person.name"/>
211 <xsl:if test="not($contrib.inline.enabled = 0)">
212 <xsl:apply-templates mode="titlepage.mode" select="contrib"/>
214 <xsl:apply-templates mode="titlepage.mode" select="affiliation"/>
215 <xsl:apply-templates mode="titlepage.mode" select="email"/>
216 <xsl:if test="not($blurb.on.titlepage.enabled = 0)">
218 <xsl:when test="$contrib.inline.enabled = 0">
219 <xsl:apply-templates mode="titlepage.mode" select="contrib|authorblurb|personblurb"/>
222 <xsl:apply-templates mode="titlepage.mode" select="authorblurb|personblurb"/>
229 <xsl:template match="authorblurb|personblurb" mode="titlepage.mode">
231 <xsl:apply-templates select="." mode="common.html.attributes"/>
232 <xsl:apply-templates mode="titlepage.mode"/>
236 <xsl:template match="authorgroup" mode="titlepage.mode">
238 <xsl:apply-templates select="." mode="common.html.attributes"/>
239 <xsl:if test="parent::refentryinfo">
243 <xsl:call-template name="anchor"/>
244 <xsl:apply-templates mode="titlepage.mode"/>
248 <xsl:template match="authorinitials" mode="titlepage.mode">
250 <xsl:apply-templates select="." mode="common.html.attributes"/>
251 <xsl:apply-templates mode="titlepage.mode"/>
256 <xsl:template match="bibliomisc" mode="titlepage.mode">
257 <xsl:apply-templates mode="titlepage.mode"/>
260 <xsl:template match="bibliomset" mode="titlepage.mode">
261 <xsl:apply-templates mode="titlepage.mode"/>
264 <xsl:template match="collab" mode="titlepage.mode">
266 <xsl:apply-templates select="." mode="common.html.attributes"/>
267 <xsl:apply-templates mode="titlepage.mode"/>
272 <xsl:template match="collabname" mode="titlepage.mode">
274 <xsl:apply-templates select="." mode="common.html.attributes"/>
275 <xsl:apply-templates mode="titlepage.mode"/>
279 <xsl:template match="confgroup" mode="titlepage.mode">
281 <xsl:apply-templates select="." mode="common.html.attributes"/>
282 <xsl:apply-templates mode="titlepage.mode"/>
286 <xsl:template match="confdates" mode="titlepage.mode">
288 <xsl:apply-templates select="." mode="common.html.attributes"/>
289 <xsl:apply-templates mode="titlepage.mode"/>
294 <xsl:template match="confsponsor" mode="titlepage.mode">
296 <xsl:apply-templates select="." mode="common.html.attributes"/>
297 <xsl:apply-templates mode="titlepage.mode"/>
302 <xsl:template match="conftitle" mode="titlepage.mode">
304 <xsl:apply-templates select="." mode="common.html.attributes"/>
305 <xsl:apply-templates mode="titlepage.mode"/>
310 <xsl:template match="confnum" mode="titlepage.mode">
314 <xsl:template match="contractnum" mode="titlepage.mode">
316 <xsl:apply-templates select="." mode="common.html.attributes"/>
317 <xsl:apply-templates mode="titlepage.mode"/>
322 <xsl:template match="contractsponsor" mode="titlepage.mode">
324 <xsl:apply-templates select="." mode="common.html.attributes"/>
325 <xsl:apply-templates mode="titlepage.mode"/>
330 <xsl:template match="contrib" mode="titlepage.mode">
332 <xsl:when test="not($contrib.inline.enabled = 0)">
334 <xsl:apply-templates select="." mode="common.html.attributes"/>
335 <xsl:apply-templates mode="titlepage.mode"/>
336 </span><xsl:text> </xsl:text>
340 <xsl:apply-templates select="." mode="common.html.attributes"/>
341 <p><xsl:apply-templates mode="titlepage.mode"/></p>
347 <xsl:template match="copyright" mode="titlepage.mode">
349 <xsl:if test="generate-id() = generate-id(//refentryinfo/copyright[1]) and ($stylesheet.result.type = 'html' or $stylesheet.result.type = 'xhtml')">
354 <xsl:apply-templates select="." mode="common.html.attributes"/>
355 <xsl:call-template name="gentext">
356 <xsl:with-param name="key" select="'Copyright'"/>
358 <xsl:call-template name="gentext.space"/>
359 <xsl:call-template name="dingbat">
360 <xsl:with-param name="dingbat">copyright</xsl:with-param>
362 <xsl:call-template name="gentext.space"/>
363 <xsl:call-template name="copyright.years">
364 <xsl:with-param name="years" select="year"/>
365 <xsl:with-param name="print.ranges" select="$make.year.ranges"/>
366 <xsl:with-param name="single.year.ranges" select="$make.single.year.ranges"/>
368 <xsl:call-template name="gentext.space"/>
369 <xsl:apply-templates select="holder" mode="titlepage.mode"/>
373 <xsl:template match="year" mode="titlepage.mode">
375 <xsl:when test="$show.revisionflag != 0 and @revisionflag">
376 <span class="{@revisionflag}">
377 <xsl:apply-templates mode="titlepage.mode"/>
381 <xsl:apply-templates mode="titlepage.mode"/>
386 <xsl:template match="holder" mode="titlepage.mode">
388 <xsl:when test="$show.revisionflag != 0 and @revisionflag">
389 <span class="{@revisionflag}">
390 <xsl:apply-templates mode="titlepage.mode"/>
394 <xsl:apply-templates mode="titlepage.mode"/>
397 <xsl:if test="position() < last()">
398 <xsl:text>, </xsl:text>
402 <xsl:template match="corpauthor" mode="titlepage.mode">
404 <xsl:apply-templates select="." mode="common.html.attributes"/>
405 <xsl:apply-templates mode="titlepage.mode"/>
409 <xsl:template match="corpcredit" mode="titlepage.mode">
411 <xsl:apply-templates select="." mode="common.html.attributes"/>
412 <xsl:apply-templates mode="titlepage.mode"/>
417 <xsl:template match="corpname" mode="titlepage.mode">
419 <xsl:apply-templates select="." mode="common.html.attributes"/>
420 <xsl:apply-templates mode="titlepage.mode"/>
425 <xsl:template match="date" mode="titlepage.mode">
427 <xsl:apply-templates select="." mode="common.html.attributes"/>
428 <xsl:apply-templates mode="titlepage.mode"/>
433 <xsl:template match="edition" mode="titlepage.mode">
435 <xsl:apply-templates select="." mode="common.html.attributes"/>
436 <xsl:apply-templates mode="titlepage.mode"/>
437 <xsl:call-template name="gentext.space"/>
438 <xsl:call-template name="gentext">
439 <xsl:with-param name="key" select="'Edition'"/>
444 <xsl:template match="email" mode="titlepage.mode">
445 <!-- use the normal e-mail handling code -->
446 <xsl:apply-templates select="."/>
449 <xsl:template match="firstname" mode="titlepage.mode">
451 <xsl:apply-templates select="." mode="common.html.attributes"/>
452 <xsl:apply-templates mode="titlepage.mode"/>
457 <xsl:template match="graphic" mode="titlepage.mode">
458 <!-- use the normal graphic handling code -->
459 <xsl:apply-templates select="."/>
462 <xsl:template match="honorific" mode="titlepage.mode">
464 <xsl:apply-templates select="." mode="common.html.attributes"/>
465 <xsl:apply-templates mode="titlepage.mode"/>
470 <xsl:template match="isbn" mode="titlepage.mode">
472 <xsl:apply-templates select="." mode="common.html.attributes"/>
473 <xsl:apply-templates mode="titlepage.mode"/>
478 <xsl:template match="issn" mode="titlepage.mode">
480 <xsl:apply-templates select="." mode="common.html.attributes"/>
481 <xsl:apply-templates mode="titlepage.mode"/>
486 <xsl:template match="biblioid" mode="titlepage.mode">
488 <xsl:apply-templates select="." mode="common.html.attributes"/>
489 <xsl:apply-templates mode="titlepage.mode"/>
494 <xsl:template match="itermset" mode="titlepage.mode">
497 <xsl:template match="invpartnumber" mode="titlepage.mode">
499 <xsl:apply-templates select="." mode="common.html.attributes"/>
500 <xsl:apply-templates mode="titlepage.mode"/>
505 <xsl:template match="issuenum" mode="titlepage.mode">
507 <xsl:apply-templates select="." mode="common.html.attributes"/>
508 <xsl:apply-templates mode="titlepage.mode"/>
513 <xsl:template match="jobtitle" mode="titlepage.mode">
515 <xsl:apply-templates select="." mode="common.html.attributes"/>
516 <xsl:apply-templates mode="titlepage.mode"/>
521 <xsl:template match="keywordset" mode="titlepage.mode">
524 <xsl:template match="legalnotice" mode="titlepage.mode">
525 <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
528 <xsl:when test="$generate.legalnotice.link != 0">
530 <!-- Compute name of legalnotice file -->
531 <xsl:variable name="file">
532 <xsl:call-template name="ln.or.rh.filename"/>
535 <xsl:variable name="filename">
536 <xsl:call-template name="make-relative-filename">
537 <xsl:with-param name="base.dir" select="$base.dir"/>
538 <xsl:with-param name="base.name" select="$file"/>
542 <xsl:variable name="title">
543 <xsl:apply-templates select="." mode="title.markup"/>
547 <xsl:copy-of select="$title"/>
550 <xsl:call-template name="write.chunk">
551 <xsl:with-param name="filename" select="$filename"/>
552 <xsl:with-param name="quiet" select="$chunk.quietly"/>
553 <xsl:with-param name="content">
554 <xsl:call-template name="user.preroot"/>
557 <xsl:call-template name="system.head.content"/>
558 <xsl:call-template name="head.content"/>
559 <xsl:call-template name="user.head.content"/>
562 <xsl:call-template name="body.attributes"/>
564 <xsl:apply-templates select="." mode="common.html.attributes"/>
565 <xsl:apply-templates mode="titlepage.mode"/>
569 <xsl:value-of select="$chunk.append"/>
575 <xsl:apply-templates select="." mode="common.html.attributes"/>
577 <xsl:apply-templates mode="titlepage.mode"/>
583 <xsl:template match="legalnotice/title" mode="titlepage.mode">
584 <p class="legalnotice-title"><b><xsl:apply-templates/></b></p>
587 <xsl:template match="lineage" mode="titlepage.mode">
589 <xsl:apply-templates select="." mode="common.html.attributes"/>
590 <xsl:apply-templates mode="titlepage.mode"/>
595 <xsl:template match="modespec" mode="titlepage.mode">
598 <xsl:template match="orgdiv" mode="titlepage.mode">
599 <xsl:if test="preceding-sibling::*[1][self::orgname]">
600 <xsl:text> </xsl:text>
603 <xsl:apply-templates select="." mode="common.html.attributes"/>
604 <xsl:apply-templates mode="titlepage.mode"/>
609 <xsl:template match="orgname" mode="titlepage.mode">
611 <xsl:apply-templates select="." mode="common.html.attributes"/>
612 <xsl:apply-templates mode="titlepage.mode"/>
617 <xsl:template match="othercredit" mode="titlepage.mode">
619 <xsl:when test="not($othercredit.like.author.enabled = 0)">
620 <xsl:variable name="contrib" select="string(contrib)"/>
622 <xsl:when test="contrib">
623 <xsl:if test="not(preceding-sibling::othercredit[string(contrib)=$contrib])">
624 <xsl:call-template name="paragraph">
625 <xsl:with-param name="class" select="local-name(.)"/>
626 <xsl:with-param name="content">
627 <xsl:apply-templates mode="titlepage.mode" select="contrib"/>
628 <xsl:text>: </xsl:text>
629 <xsl:call-template name="person.name"/>
630 <xsl:apply-templates mode="titlepage.mode" select="affiliation"/>
631 <xsl:apply-templates select="following-sibling::othercredit[string(contrib)=$contrib]" mode="titlepage.othercredits"/>
637 <xsl:call-template name="paragraph">
638 <xsl:with-param name="class" select="local-name(.)"/>
639 <xsl:with-param name="content">
640 <xsl:call-template name="person.name"/>
643 <xsl:apply-templates mode="titlepage.mode" select="affiliation"/>
648 <xsl:call-template name="credits.div"/>
653 <xsl:template match="othercredit" mode="titlepage.othercredits">
654 <xsl:text>, </xsl:text>
655 <xsl:call-template name="person.name"/>
658 <xsl:template match="othername" mode="titlepage.mode">
660 <xsl:apply-templates select="." mode="common.html.attributes"/>
661 <xsl:apply-templates mode="titlepage.mode"/>
666 <xsl:template match="pagenums" mode="titlepage.mode">
668 <xsl:apply-templates select="." mode="common.html.attributes"/>
669 <xsl:apply-templates mode="titlepage.mode"/>
674 <xsl:template match="printhistory" mode="titlepage.mode">
676 <xsl:apply-templates select="." mode="common.html.attributes"/>
677 <xsl:apply-templates mode="titlepage.mode"/>
681 <xsl:template match="productname" mode="titlepage.mode">
683 <xsl:apply-templates select="." mode="common.html.attributes"/>
684 <xsl:apply-templates mode="titlepage.mode"/>
689 <xsl:template match="productnumber" mode="titlepage.mode">
691 <xsl:apply-templates select="." mode="common.html.attributes"/>
692 <xsl:apply-templates mode="titlepage.mode"/>
697 <xsl:template match="pubdate" mode="titlepage.mode">
698 <xsl:call-template name="paragraph">
699 <xsl:with-param name="class" select="local-name(.)"/>
700 <xsl:with-param name="content">
701 <xsl:apply-templates mode="titlepage.mode"/>
706 <xsl:template match="publisher" mode="titlepage.mode">
707 <xsl:call-template name="paragraph">
708 <xsl:with-param name="class" select="local-name(.)"/>
709 <xsl:with-param name="content">
710 <xsl:apply-templates mode="titlepage.mode"/>
715 <xsl:template match="publishername" mode="titlepage.mode">
717 <xsl:apply-templates select="." mode="common.html.attributes"/>
718 <xsl:apply-templates mode="titlepage.mode"/>
723 <xsl:template match="pubsnumber" mode="titlepage.mode">
725 <xsl:apply-templates select="." mode="common.html.attributes"/>
726 <xsl:apply-templates mode="titlepage.mode"/>
731 <xsl:template match="releaseinfo" mode="titlepage.mode">
732 <xsl:call-template name="paragraph">
733 <xsl:with-param name="class" select="local-name(.)"/>
734 <xsl:with-param name="content">
735 <xsl:apply-templates mode="titlepage.mode"/>
740 <xsl:template match="revhistory" mode="titlepage.mode">
741 <xsl:variable name="numcols">
743 <xsl:when test=".//authorinitials|.//author">3</xsl:when>
744 <xsl:otherwise>2</xsl:otherwise>
748 <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
750 <xsl:variable name="title">
751 <xsl:call-template name="gentext">
752 <xsl:with-param name="key">RevHistory</xsl:with-param>
756 <xsl:variable name="contents">
758 <xsl:apply-templates select="." mode="common.html.attributes"/>
759 <table border="1" width="100%" summary="Revision history">
761 <th align="{$direction.align.start}" valign="top" colspan="{$numcols}">
763 <xsl:call-template name="gentext">
764 <xsl:with-param name="key" select="'RevHistory'"/>
769 <xsl:apply-templates mode="titlepage.mode">
770 <xsl:with-param name="numcols" select="$numcols"/>
771 </xsl:apply-templates>
777 <xsl:when test="$generate.revhistory.link != 0">
779 <!-- Compute name of revhistory file -->
780 <xsl:variable name="file">
781 <xsl:call-template name="ln.or.rh.filename">
782 <xsl:with-param name="is.ln" select="false()"/>
786 <xsl:variable name="filename">
787 <xsl:call-template name="make-relative-filename">
788 <xsl:with-param name="base.dir" select="$base.dir"/>
789 <xsl:with-param name="base.name" select="$file"/>
794 <xsl:copy-of select="$title"/>
797 <xsl:call-template name="write.chunk">
798 <xsl:with-param name="filename" select="$filename"/>
799 <xsl:with-param name="quiet" select="$chunk.quietly"/>
800 <xsl:with-param name="content">
801 <xsl:call-template name="user.preroot"/>
804 <xsl:call-template name="system.head.content"/>
805 <xsl:call-template name="head.content">
806 <xsl:with-param name="title">
807 <xsl:value-of select="$title"/>
808 <xsl:if test="../../title">
809 <xsl:value-of select="concat(' (', ../../title, ')')"/>
813 <xsl:call-template name="user.head.content"/>
816 <xsl:call-template name="body.attributes"/>
817 <xsl:copy-of select="$contents"/>
826 <xsl:copy-of select="$contents"/>
831 <xsl:template match="revhistory/revision" mode="titlepage.mode">
832 <xsl:param name="numcols" select="'3'"/>
833 <xsl:variable name="revnumber" select="revnumber"/>
834 <xsl:variable name="revdate" select="date"/>
835 <xsl:variable name="revauthor" select="authorinitials|author"/>
836 <xsl:variable name="revremark" select="revremark|revdescription"/>
838 <td align="{$direction.align.start}">
839 <xsl:if test="$revnumber">
840 <xsl:call-template name="gentext">
841 <xsl:with-param name="key" select="'Revision'"/>
843 <xsl:call-template name="gentext.space"/>
844 <xsl:apply-templates select="$revnumber[1]" mode="titlepage.mode"/>
847 <td align="{$direction.align.start}">
848 <xsl:apply-templates select="$revdate[1]" mode="titlepage.mode"/>
851 <xsl:when test="$revauthor">
852 <td align="{$direction.align.start}">
853 <xsl:for-each select="$revauthor">
854 <xsl:apply-templates select="." mode="titlepage.mode"/>
855 <xsl:if test="position() != last()">
856 <xsl:text>, </xsl:text>
861 <xsl:when test="$numcols > 2">
867 <xsl:if test="$revremark">
869 <td align="{$direction.align.start}" colspan="{$numcols}">
870 <xsl:apply-templates select="$revremark[1]" mode="titlepage.mode"/>
876 <xsl:template match="revision/revnumber" mode="titlepage.mode">
877 <xsl:apply-templates mode="titlepage.mode"/>
880 <xsl:template match="revision/date" mode="titlepage.mode">
881 <xsl:apply-templates mode="titlepage.mode"/>
884 <xsl:template match="revision/authorinitials" mode="titlepage.mode">
885 <xsl:apply-templates mode="titlepage.mode"/>
888 <xsl:template match="revision/author" mode="titlepage.mode">
889 <xsl:apply-templates mode="titlepage.mode"/>
892 <xsl:template match="revision/revremark" mode="titlepage.mode">
893 <xsl:apply-templates mode="titlepage.mode"/>
896 <xsl:template match="revision/revdescription" mode="titlepage.mode">
897 <xsl:apply-templates mode="titlepage.mode"/>
900 <xsl:template match="seriesvolnums" mode="titlepage.mode">
902 <xsl:apply-templates select="." mode="common.html.attributes"/>
903 <xsl:apply-templates mode="titlepage.mode"/>
908 <xsl:template match="shortaffil" mode="titlepage.mode">
910 <xsl:apply-templates select="." mode="common.html.attributes"/>
911 <xsl:apply-templates mode="titlepage.mode"/>
916 <xsl:template match="subjectset" mode="titlepage.mode">
919 <xsl:template match="subtitle" mode="titlepage.mode">
921 <xsl:apply-templates select="." mode="common.html.attributes"/>
922 <xsl:apply-templates mode="titlepage.mode"/>
926 <xsl:template match="surname" mode="titlepage.mode">
928 <xsl:apply-templates select="." mode="common.html.attributes"/>
929 <xsl:apply-templates mode="titlepage.mode"/>
934 <xsl:template match="title" mode="titlepage.mode">
935 <xsl:variable name="id">
937 <!-- if title is in an *info wrapper, get the grandparent -->
938 <xsl:when test="contains(local-name(..), 'info')">
939 <xsl:call-template name="object.id">
940 <xsl:with-param name="object" select="../.."/>
944 <xsl:call-template name="object.id">
945 <xsl:with-param name="object" select=".."/>
952 <xsl:apply-templates select="." mode="common.html.attributes"/>
953 <xsl:if test="$generate.id.attributes = 0">
957 <xsl:when test="$show.revisionflag != 0 and @revisionflag">
958 <span class="{@revisionflag}">
959 <xsl:apply-templates mode="titlepage.mode"/>
963 <xsl:apply-templates mode="titlepage.mode"/>
969 <xsl:template match="titleabbrev" mode="titlepage.mode">
970 <!-- nop; title abbreviations don't belong on the title page! -->
973 <xsl:template match="volumenum" mode="titlepage.mode">
975 <xsl:apply-templates select="." mode="common.html.attributes"/>
976 <xsl:apply-templates mode="titlepage.mode"/>
981 <!-- This template computes the filename for legalnotice and revhistory chunks -->
982 <xsl:template name="ln.or.rh.filename">
983 <xsl:param name="node" select="."/>
984 <xsl:param name="is.ln" select="true()"/>
986 <xsl:variable name="dbhtml-filename">
987 <xsl:call-template name="pi.dbhtml_filename">
988 <xsl:with-param name="node" select="$node"/>
993 <!-- 1. If there is a dbhtml_filename PI, use that -->
994 <xsl:when test="$dbhtml-filename != ''">
995 <xsl:value-of select="$dbhtml-filename"/>
997 <xsl:when test="($node/@id or $node/@xml:id) and not($use.id.as.filename = 0)">
998 <!-- * 2. If this legalnotice/revhistory has an ID, then go ahead and use -->
999 <!-- * just the value of that ID as the basename for the file -->
1000 <!-- * (that is, without prepending an "ln-" or "rh-" to it) -->
1001 <xsl:value-of select="($node/@id|$node/@xml:id)[1]"/>
1002 <xsl:value-of select="$html.ext"/>
1004 <xsl:when test="not ($node/@id or $node/@xml:id) or $use.id.as.filename = 0">
1005 <!-- * 3. Otherwise, if this legalnotice/revhistory does not have an ID, or -->
1006 <!-- * if $use.id.as.filename = 0 -->
1007 <!-- * then we generate an ID... -->
1008 <xsl:variable name="id">
1009 <xsl:value-of select="generate-id($node)"/>
1011 <!-- * ...and then we take that generated ID, prepend a -->
1012 <!-- * prefix to it, and use that as the basename for the file -->
1014 <xsl:when test="$is.ln">
1015 <xsl:value-of select="concat('ln-',$id,$html.ext)"/>
1018 <xsl:value-of select="concat('rh-',$id,$html.ext)"/>
1025 <!-- ==================================================================== -->