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 8816 2010-08-10 11:56:35Z 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="sidebar.titlepage.recto.style"/>
67 <xsl:attribute-set name="sidebar.titlepage.verso.style"/>
69 <xsl:attribute-set name="section.titlepage.recto.style"/>
70 <xsl:attribute-set name="section.titlepage.verso.style"/>
72 <xsl:attribute-set name="sect1.titlepage.recto.style" use-attribute-sets="section.titlepage.recto.style"/>
73 <xsl:attribute-set name="sect1.titlepage.verso.style" use-attribute-sets="section.titlepage.verso.style"/>
75 <xsl:attribute-set name="sect2.titlepage.recto.style" use-attribute-sets="section.titlepage.recto.style"/>
76 <xsl:attribute-set name="sect2.titlepage.verso.style" use-attribute-sets="section.titlepage.verso.style"/>
78 <xsl:attribute-set name="sect3.titlepage.recto.style" use-attribute-sets="section.titlepage.recto.style"/>
79 <xsl:attribute-set name="sect3.titlepage.verso.style" use-attribute-sets="section.titlepage.verso.style"/>
81 <xsl:attribute-set name="sect4.titlepage.recto.style" use-attribute-sets="section.titlepage.recto.style"/>
82 <xsl:attribute-set name="sect4.titlepage.verso.style" use-attribute-sets="section.titlepage.verso.style"/>
84 <xsl:attribute-set name="sect5.titlepage.recto.style" use-attribute-sets="section.titlepage.recto.style"/>
85 <xsl:attribute-set name="sect5.titlepage.verso.style" use-attribute-sets="section.titlepage.verso.style"/>
87 <xsl:attribute-set name="simplesect.titlepage.recto.style" use-attribute-sets="section.titlepage.recto.style"/>
88 <xsl:attribute-set name="simplesect.titlepage.verso.style" use-attribute-sets="section.titlepage.verso.style"/>
90 <xsl:attribute-set name="table.of.contents.titlepage.recto.style"/>
91 <xsl:attribute-set name="table.of.contents.titlepage.verso.style"/>
93 <xsl:attribute-set name="list.of.tables.titlepage.recto.style"/>
94 <xsl:attribute-set name="list.of.tables.contents.titlepage.verso.style"/>
96 <xsl:attribute-set name="list.of.figures.titlepage.recto.style"/>
97 <xsl:attribute-set name="list.of.figures.contents.titlepage.verso.style"/>
99 <xsl:attribute-set name="list.of.equations.titlepage.recto.style"/>
100 <xsl:attribute-set name="list.of.equations.contents.titlepage.verso.style"/>
102 <xsl:attribute-set name="list.of.examples.titlepage.recto.style"/>
103 <xsl:attribute-set name="list.of.examples.contents.titlepage.verso.style"/>
105 <xsl:attribute-set name="list.of.unknowns.titlepage.recto.style"/>
106 <xsl:attribute-set name="list.of.unknowns.contents.titlepage.verso.style"/>
108 <!-- ==================================================================== -->
110 <xsl:template match="*" mode="titlepage.mode">
111 <!-- if an element isn't found in this mode, try the default mode -->
112 <xsl:apply-templates select="."/>
115 <xsl:template match="abbrev" mode="titlepage.mode">
117 <xsl:apply-templates select="." mode="common.html.attributes"/>
118 <xsl:apply-templates mode="titlepage.mode"/>
123 <xsl:template match="abstract" mode="titlepage.mode">
125 <xsl:apply-templates select="." mode="common.html.attributes"/>
126 <xsl:call-template name="anchor"/>
127 <xsl:if test="$abstract.notitle.enabled = 0">
128 <xsl:call-template name="formal.object.heading">
129 <xsl:with-param name="title">
130 <xsl:apply-templates select="." mode="title.markup"/>
134 <xsl:apply-templates mode="titlepage.mode"/>
135 <xsl:call-template name="process.footnotes"/>
139 <xsl:template match="abstract/title" mode="titlepage.mode">
142 <xsl:template match="address" mode="titlepage.mode">
143 <xsl:param name="suppress-numbers" select="'0'"/>
145 <xsl:variable name="rtf">
146 <xsl:apply-templates mode="titlepage.mode"/>
150 <xsl:when test="$suppress-numbers = '0' and @linenumbering = 'numbered' and $use.extensions != '0' and $linenumbering.extension != '0'">
152 <xsl:apply-templates select="." mode="common.html.attributes"/>
153 <xsl:call-template name="paragraph">
154 <xsl:with-param name="content">
155 <xsl:call-template name="number.rtf.lines">
156 <xsl:with-param name="rtf" select="$rtf"/>
165 <xsl:apply-templates select="." mode="common.html.attributes"/>
166 <xsl:call-template name="paragraph">
167 <xsl:with-param name="content">
168 <xsl:call-template name="make-verbatim">
169 <xsl:with-param name="rtf" select="$rtf"/>
178 <xsl:template match="affiliation" mode="titlepage.mode">
180 <xsl:apply-templates select="." mode="common.html.attributes"/>
181 <xsl:apply-templates mode="titlepage.mode"/>
185 <xsl:template match="artpagenums" mode="titlepage.mode">
187 <xsl:apply-templates select="." mode="common.html.attributes"/>
188 <xsl:apply-templates mode="titlepage.mode"/>
193 <xsl:template match="author|editor" mode="titlepage.mode">
194 <xsl:call-template name="credits.div"/>
197 <xsl:template name="credits.div">
199 <xsl:apply-templates select="." mode="common.html.attributes"/>
200 <xsl:if test="self::editor[position()=1] and not($editedby.enabled = 0)">
201 <h4 class="editedby"><xsl:call-template name="gentext.edited.by"/></h4>
204 <xsl:apply-templates select="." mode="common.html.attributes"/>
206 <xsl:when test="orgname">
207 <xsl:apply-templates/>
210 <xsl:call-template name="person.name"/>
214 <xsl:if test="not($contrib.inline.enabled = 0)">
215 <xsl:apply-templates mode="titlepage.mode" select="contrib"/>
217 <xsl:apply-templates mode="titlepage.mode" select="affiliation"/>
218 <xsl:apply-templates mode="titlepage.mode" select="email"/>
219 <xsl:if test="not($blurb.on.titlepage.enabled = 0)">
221 <xsl:when test="$contrib.inline.enabled = 0">
222 <xsl:apply-templates mode="titlepage.mode" select="contrib|authorblurb|personblurb"/>
225 <xsl:apply-templates mode="titlepage.mode" select="authorblurb|personblurb"/>
232 <xsl:template match="authorblurb|personblurb" mode="titlepage.mode">
234 <xsl:apply-templates select="." mode="common.html.attributes"/>
235 <xsl:apply-templates mode="titlepage.mode"/>
239 <xsl:template match="authorgroup" mode="titlepage.mode">
241 <xsl:apply-templates select="." mode="common.html.attributes"/>
242 <xsl:if test="parent::refentryinfo">
246 <xsl:call-template name="anchor"/>
247 <xsl:apply-templates mode="titlepage.mode"/>
251 <xsl:template match="authorinitials" mode="titlepage.mode">
253 <xsl:apply-templates select="." mode="common.html.attributes"/>
254 <xsl:apply-templates mode="titlepage.mode"/>
259 <xsl:template match="bibliomisc" mode="titlepage.mode">
260 <xsl:apply-templates mode="titlepage.mode"/>
263 <xsl:template match="bibliomset" mode="titlepage.mode">
264 <xsl:apply-templates mode="titlepage.mode"/>
267 <xsl:template match="collab" mode="titlepage.mode">
269 <xsl:apply-templates select="." mode="common.html.attributes"/>
270 <xsl:apply-templates mode="titlepage.mode"/>
275 <xsl:template match="collabname" mode="titlepage.mode">
277 <xsl:apply-templates select="." mode="common.html.attributes"/>
278 <xsl:apply-templates mode="titlepage.mode"/>
282 <xsl:template match="confgroup" mode="titlepage.mode">
284 <xsl:apply-templates select="." mode="common.html.attributes"/>
285 <xsl:apply-templates mode="titlepage.mode"/>
289 <xsl:template match="confdates" mode="titlepage.mode">
291 <xsl:apply-templates select="." mode="common.html.attributes"/>
292 <xsl:apply-templates mode="titlepage.mode"/>
297 <xsl:template match="confsponsor" mode="titlepage.mode">
299 <xsl:apply-templates select="." mode="common.html.attributes"/>
300 <xsl:apply-templates mode="titlepage.mode"/>
305 <xsl:template match="conftitle" mode="titlepage.mode">
307 <xsl:apply-templates select="." mode="common.html.attributes"/>
308 <xsl:apply-templates mode="titlepage.mode"/>
313 <xsl:template match="confnum" mode="titlepage.mode">
317 <xsl:template match="contractnum" mode="titlepage.mode">
319 <xsl:apply-templates select="." mode="common.html.attributes"/>
320 <xsl:apply-templates mode="titlepage.mode"/>
325 <xsl:template match="contractsponsor" mode="titlepage.mode">
327 <xsl:apply-templates select="." mode="common.html.attributes"/>
328 <xsl:apply-templates mode="titlepage.mode"/>
333 <xsl:template match="contrib" mode="titlepage.mode">
335 <xsl:when test="not($contrib.inline.enabled = 0)">
337 <xsl:apply-templates select="." mode="common.html.attributes"/>
338 <xsl:apply-templates mode="titlepage.mode"/>
339 </span><xsl:text> </xsl:text>
343 <xsl:apply-templates select="." mode="common.html.attributes"/>
344 <p><xsl:apply-templates mode="titlepage.mode"/></p>
350 <xsl:template match="copyright" mode="titlepage.mode">
352 <xsl:if test="generate-id() = generate-id(//refentryinfo/copyright[1]) and ($stylesheet.result.type = 'html' or $stylesheet.result.type = 'xhtml')">
357 <xsl:apply-templates select="." mode="common.html.attributes"/>
358 <xsl:call-template name="gentext">
359 <xsl:with-param name="key" select="'Copyright'"/>
361 <xsl:call-template name="gentext.space"/>
362 <xsl:call-template name="dingbat">
363 <xsl:with-param name="dingbat">copyright</xsl:with-param>
365 <xsl:call-template name="gentext.space"/>
366 <xsl:call-template name="copyright.years">
367 <xsl:with-param name="years" select="year"/>
368 <xsl:with-param name="print.ranges" select="$make.year.ranges"/>
369 <xsl:with-param name="single.year.ranges" select="$make.single.year.ranges"/>
371 <xsl:call-template name="gentext.space"/>
372 <xsl:apply-templates select="holder" mode="titlepage.mode"/>
376 <xsl:template match="year" mode="titlepage.mode">
378 <xsl:when test="$show.revisionflag != 0 and @revisionflag">
379 <span class="{@revisionflag}">
380 <xsl:apply-templates mode="titlepage.mode"/>
384 <xsl:apply-templates mode="titlepage.mode"/>
389 <xsl:template match="holder" mode="titlepage.mode">
391 <xsl:when test="$show.revisionflag != 0 and @revisionflag">
392 <span class="{@revisionflag}">
393 <xsl:apply-templates mode="titlepage.mode"/>
397 <xsl:apply-templates mode="titlepage.mode"/>
400 <xsl:if test="position() < last()">
401 <xsl:text>, </xsl:text>
405 <xsl:template match="corpauthor" mode="titlepage.mode">
407 <xsl:apply-templates select="." mode="common.html.attributes"/>
408 <xsl:apply-templates mode="titlepage.mode"/>
412 <xsl:template match="corpcredit" mode="titlepage.mode">
414 <xsl:apply-templates select="." mode="common.html.attributes"/>
415 <xsl:apply-templates mode="titlepage.mode"/>
420 <xsl:template match="corpname" mode="titlepage.mode">
422 <xsl:apply-templates select="." mode="common.html.attributes"/>
423 <xsl:apply-templates mode="titlepage.mode"/>
428 <xsl:template match="date" mode="titlepage.mode">
430 <xsl:apply-templates select="." mode="common.html.attributes"/>
431 <xsl:apply-templates mode="titlepage.mode"/>
436 <xsl:template match="edition" mode="titlepage.mode">
438 <xsl:apply-templates select="." mode="common.html.attributes"/>
439 <xsl:apply-templates mode="titlepage.mode"/>
440 <xsl:call-template name="gentext.space"/>
441 <xsl:call-template name="gentext">
442 <xsl:with-param name="key" select="'Edition'"/>
447 <xsl:template match="email" mode="titlepage.mode">
448 <!-- use the normal e-mail handling code -->
449 <xsl:apply-templates select="."/>
452 <xsl:template match="firstname" mode="titlepage.mode">
454 <xsl:apply-templates select="." mode="common.html.attributes"/>
455 <xsl:apply-templates mode="titlepage.mode"/>
460 <xsl:template match="graphic" mode="titlepage.mode">
461 <!-- use the normal graphic handling code -->
462 <xsl:apply-templates select="."/>
465 <xsl:template match="honorific" mode="titlepage.mode">
467 <xsl:apply-templates select="." mode="common.html.attributes"/>
468 <xsl:apply-templates mode="titlepage.mode"/>
473 <xsl:template match="isbn" mode="titlepage.mode">
475 <xsl:apply-templates select="." mode="common.html.attributes"/>
476 <xsl:apply-templates mode="titlepage.mode"/>
481 <xsl:template match="issn" mode="titlepage.mode">
483 <xsl:apply-templates select="." mode="common.html.attributes"/>
484 <xsl:apply-templates mode="titlepage.mode"/>
489 <xsl:template match="biblioid" mode="titlepage.mode">
491 <xsl:apply-templates select="." mode="common.html.attributes"/>
492 <xsl:apply-templates mode="titlepage.mode"/>
497 <xsl:template match="itermset" mode="titlepage.mode">
500 <xsl:template match="invpartnumber" mode="titlepage.mode">
502 <xsl:apply-templates select="." mode="common.html.attributes"/>
503 <xsl:apply-templates mode="titlepage.mode"/>
508 <xsl:template match="issuenum" mode="titlepage.mode">
510 <xsl:apply-templates select="." mode="common.html.attributes"/>
511 <xsl:apply-templates mode="titlepage.mode"/>
516 <xsl:template match="jobtitle" mode="titlepage.mode">
518 <xsl:apply-templates select="." mode="common.html.attributes"/>
519 <xsl:apply-templates mode="titlepage.mode"/>
524 <xsl:template match="keywordset" mode="titlepage.mode">
527 <xsl:template match="legalnotice" mode="titlepage.mode">
528 <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
531 <xsl:when test="$generate.legalnotice.link != 0">
533 <!-- Compute name of legalnotice file -->
534 <xsl:variable name="file">
535 <xsl:call-template name="ln.or.rh.filename"/>
538 <xsl:variable name="filename">
539 <xsl:call-template name="make-relative-filename">
540 <xsl:with-param name="base.dir" select="$base.dir"/>
541 <xsl:with-param name="base.name" select="$file"/>
545 <xsl:variable name="title">
546 <xsl:apply-templates select="." mode="title.markup"/>
550 <xsl:copy-of select="$title"/>
553 <xsl:call-template name="write.chunk">
554 <xsl:with-param name="filename" select="$filename"/>
555 <xsl:with-param name="quiet" select="$chunk.quietly"/>
556 <xsl:with-param name="content">
557 <xsl:call-template name="user.preroot"/>
560 <xsl:call-template name="system.head.content"/>
561 <xsl:call-template name="head.content"/>
562 <xsl:call-template name="user.head.content"/>
565 <xsl:call-template name="body.attributes"/>
567 <xsl:apply-templates select="." mode="common.html.attributes"/>
568 <xsl:apply-templates mode="titlepage.mode"/>
572 <xsl:value-of select="$chunk.append"/>
578 <xsl:apply-templates select="." mode="common.html.attributes"/>
580 <xsl:apply-templates mode="titlepage.mode"/>
586 <xsl:template match="legalnotice/title" mode="titlepage.mode">
587 <p class="legalnotice-title"><strong xmlns:xslo="http://www.w3.org/1999/XSL/Transform"><xsl:apply-templates/></strong></p>
590 <xsl:template match="lineage" mode="titlepage.mode">
592 <xsl:apply-templates select="." mode="common.html.attributes"/>
593 <xsl:apply-templates mode="titlepage.mode"/>
598 <xsl:template match="modespec" mode="titlepage.mode">
601 <xsl:template match="orgdiv" mode="titlepage.mode">
602 <xsl:if test="preceding-sibling::*[1][self::orgname]">
603 <xsl:text> </xsl:text>
606 <xsl:apply-templates select="." mode="common.html.attributes"/>
607 <xsl:apply-templates mode="titlepage.mode"/>
612 <xsl:template match="orgname" mode="titlepage.mode">
614 <xsl:apply-templates select="." mode="common.html.attributes"/>
615 <xsl:apply-templates mode="titlepage.mode"/>
620 <xsl:template match="othercredit" mode="titlepage.mode">
622 <xsl:when test="not($othercredit.like.author.enabled = 0)">
623 <xsl:variable name="contrib" select="string(contrib)"/>
625 <xsl:when test="contrib">
626 <xsl:if test="not(preceding-sibling::othercredit[string(contrib)=$contrib])">
627 <xsl:call-template name="paragraph">
628 <xsl:with-param name="class" select="local-name(.)"/>
629 <xsl:with-param name="content">
630 <xsl:apply-templates mode="titlepage.mode" select="contrib"/>
631 <xsl:text>: </xsl:text>
632 <xsl:call-template name="person.name"/>
633 <xsl:apply-templates mode="titlepage.mode" select="affiliation"/>
634 <xsl:apply-templates select="following-sibling::othercredit[string(contrib)=$contrib]" mode="titlepage.othercredits"/>
640 <xsl:call-template name="paragraph">
641 <xsl:with-param name="class" select="local-name(.)"/>
642 <xsl:with-param name="content">
643 <xsl:call-template name="person.name"/>
646 <xsl:apply-templates mode="titlepage.mode" select="affiliation"/>
651 <xsl:call-template name="credits.div"/>
656 <xsl:template match="othercredit" mode="titlepage.othercredits">
657 <xsl:text>, </xsl:text>
658 <xsl:call-template name="person.name"/>
661 <xsl:template match="othername" mode="titlepage.mode">
663 <xsl:apply-templates select="." mode="common.html.attributes"/>
664 <xsl:apply-templates mode="titlepage.mode"/>
669 <xsl:template match="pagenums" mode="titlepage.mode">
671 <xsl:apply-templates select="." mode="common.html.attributes"/>
672 <xsl:apply-templates mode="titlepage.mode"/>
677 <xsl:template match="printhistory" mode="titlepage.mode">
679 <xsl:apply-templates select="." mode="common.html.attributes"/>
680 <xsl:apply-templates mode="titlepage.mode"/>
684 <xsl:template match="productname" mode="titlepage.mode">
686 <xsl:apply-templates select="." mode="common.html.attributes"/>
687 <xsl:apply-templates mode="titlepage.mode"/>
692 <xsl:template match="productnumber" mode="titlepage.mode">
694 <xsl:apply-templates select="." mode="common.html.attributes"/>
695 <xsl:apply-templates mode="titlepage.mode"/>
700 <xsl:template match="pubdate" mode="titlepage.mode">
701 <xsl:call-template name="paragraph">
702 <xsl:with-param name="class" select="local-name(.)"/>
703 <xsl:with-param name="content">
704 <xsl:apply-templates mode="titlepage.mode"/>
709 <xsl:template match="publisher" mode="titlepage.mode">
710 <xsl:call-template name="paragraph">
711 <xsl:with-param name="class" select="local-name(.)"/>
712 <xsl:with-param name="content">
713 <xsl:apply-templates mode="titlepage.mode"/>
718 <xsl:template match="publishername" mode="titlepage.mode">
720 <xsl:apply-templates select="." mode="common.html.attributes"/>
721 <xsl:apply-templates mode="titlepage.mode"/>
726 <xsl:template match="pubsnumber" mode="titlepage.mode">
728 <xsl:apply-templates select="." mode="common.html.attributes"/>
729 <xsl:apply-templates mode="titlepage.mode"/>
734 <xsl:template match="releaseinfo" mode="titlepage.mode">
735 <xsl:call-template name="paragraph">
736 <xsl:with-param name="class" select="local-name(.)"/>
737 <xsl:with-param name="content">
738 <xsl:apply-templates mode="titlepage.mode"/>
743 <xsl:template match="revhistory" mode="titlepage.mode">
744 <xsl:variable name="numcols">
746 <xsl:when test=".//authorinitials|.//author">3</xsl:when>
747 <xsl:otherwise>2</xsl:otherwise>
751 <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
753 <xsl:variable name="title">
754 <xsl:call-template name="gentext">
755 <xsl:with-param name="key">RevHistory</xsl:with-param>
759 <xsl:variable name="contents">
761 <xsl:apply-templates select="." mode="common.html.attributes"/>
762 <table border="1" width="100%" summary="Revision history">
764 <th align="{$direction.align.start}" valign="top" colspan="{$numcols}">
765 <strong xmlns:xslo="http://www.w3.org/1999/XSL/Transform">
766 <xsl:call-template name="gentext">
767 <xsl:with-param name="key" select="'RevHistory'"/>
772 <xsl:apply-templates mode="titlepage.mode">
773 <xsl:with-param name="numcols" select="$numcols"/>
774 </xsl:apply-templates>
780 <xsl:when test="$generate.revhistory.link != 0">
782 <!-- Compute name of revhistory file -->
783 <xsl:variable name="file">
784 <xsl:call-template name="ln.or.rh.filename">
785 <xsl:with-param name="is.ln" select="false()"/>
789 <xsl:variable name="filename">
790 <xsl:call-template name="make-relative-filename">
791 <xsl:with-param name="base.dir" select="$base.dir"/>
792 <xsl:with-param name="base.name" select="$file"/>
797 <xsl:copy-of select="$title"/>
800 <xsl:call-template name="write.chunk">
801 <xsl:with-param name="filename" select="$filename"/>
802 <xsl:with-param name="quiet" select="$chunk.quietly"/>
803 <xsl:with-param name="content">
804 <xsl:call-template name="user.preroot"/>
807 <xsl:call-template name="system.head.content"/>
808 <xsl:call-template name="head.content">
809 <xsl:with-param name="title">
810 <xsl:value-of select="$title"/>
811 <xsl:if test="../../title">
812 <xsl:value-of select="concat(' (', ../../title, ')')"/>
816 <xsl:call-template name="user.head.content"/>
819 <xsl:call-template name="body.attributes"/>
820 <xsl:copy-of select="$contents"/>
829 <xsl:copy-of select="$contents"/>
834 <xsl:template match="revhistory/revision" mode="titlepage.mode">
835 <xsl:param name="numcols" select="'3'"/>
836 <xsl:variable name="revnumber" select="revnumber"/>
837 <xsl:variable name="revdate" select="date"/>
838 <xsl:variable name="revauthor" select="authorinitials|author"/>
839 <xsl:variable name="revremark" select="revremark|revdescription"/>
841 <td align="{$direction.align.start}">
842 <xsl:if test="$revnumber">
843 <xsl:call-template name="gentext">
844 <xsl:with-param name="key" select="'Revision'"/>
846 <xsl:call-template name="gentext.space"/>
847 <xsl:apply-templates select="$revnumber[1]" mode="titlepage.mode"/>
850 <td align="{$direction.align.start}">
851 <xsl:apply-templates select="$revdate[1]" mode="titlepage.mode"/>
854 <xsl:when test="$revauthor">
855 <td align="{$direction.align.start}">
856 <xsl:for-each select="$revauthor">
857 <xsl:apply-templates select="." mode="titlepage.mode"/>
858 <xsl:if test="position() != last()">
859 <xsl:text>, </xsl:text>
864 <xsl:when test="$numcols > 2">
870 <xsl:if test="$revremark">
872 <td align="{$direction.align.start}" colspan="{$numcols}">
873 <xsl:apply-templates select="$revremark[1]" mode="titlepage.mode"/>
879 <xsl:template match="revision/revnumber" mode="titlepage.mode">
880 <xsl:apply-templates mode="titlepage.mode"/>
883 <xsl:template match="revision/date" mode="titlepage.mode">
884 <xsl:apply-templates mode="titlepage.mode"/>
887 <xsl:template match="revision/authorinitials" mode="titlepage.mode">
888 <xsl:apply-templates mode="titlepage.mode"/>
891 <xsl:template match="revision/author" mode="titlepage.mode">
892 <xsl:apply-templates mode="titlepage.mode"/>
895 <xsl:template match="revision/revremark" mode="titlepage.mode">
896 <xsl:apply-templates mode="titlepage.mode"/>
899 <xsl:template match="revision/revdescription" mode="titlepage.mode">
900 <xsl:apply-templates mode="titlepage.mode"/>
903 <xsl:template match="seriesvolnums" mode="titlepage.mode">
905 <xsl:apply-templates select="." mode="common.html.attributes"/>
906 <xsl:apply-templates mode="titlepage.mode"/>
911 <xsl:template match="shortaffil" mode="titlepage.mode">
913 <xsl:apply-templates select="." mode="common.html.attributes"/>
914 <xsl:apply-templates mode="titlepage.mode"/>
919 <xsl:template match="subjectset" mode="titlepage.mode">
922 <xsl:template match="subtitle" mode="titlepage.mode">
924 <xsl:apply-templates select="." mode="common.html.attributes"/>
925 <xsl:apply-templates mode="titlepage.mode"/>
929 <xsl:template match="surname" mode="titlepage.mode">
931 <xsl:apply-templates select="." mode="common.html.attributes"/>
932 <xsl:apply-templates mode="titlepage.mode"/>
937 <xsl:template match="title" mode="titlepage.mode">
938 <xsl:variable name="id">
940 <!-- if title is in an *info wrapper, get the grandparent -->
941 <xsl:when test="contains(local-name(..), 'info')">
942 <xsl:call-template name="object.id">
943 <xsl:with-param name="object" select="../.."/>
947 <xsl:call-template name="object.id">
948 <xsl:with-param name="object" select=".."/>
955 <xsl:apply-templates select="." mode="common.html.attributes"/>
956 <xsl:if test="$generate.id.attributes = 0">
960 <xsl:when test="$show.revisionflag != 0 and @revisionflag">
961 <span class="{@revisionflag}">
962 <xsl:apply-templates mode="titlepage.mode"/>
966 <xsl:apply-templates mode="titlepage.mode"/>
972 <xsl:template match="titleabbrev" mode="titlepage.mode">
973 <!-- nop; title abbreviations don't belong on the title page! -->
976 <xsl:template match="volumenum" mode="titlepage.mode">
978 <xsl:apply-templates select="." mode="common.html.attributes"/>
979 <xsl:apply-templates mode="titlepage.mode"/>
984 <!-- This template computes the filename for legalnotice and revhistory chunks -->
985 <xsl:template name="ln.or.rh.filename">
986 <xsl:param name="node" select="."/>
987 <xsl:param name="is.ln" select="true()"/>
989 <xsl:variable name="dbhtml-filename">
990 <xsl:call-template name="pi.dbhtml_filename">
991 <xsl:with-param name="node" select="$node"/>
996 <!-- 1. If there is a dbhtml_filename PI, use that -->
997 <xsl:when test="$dbhtml-filename != ''">
998 <xsl:value-of select="$dbhtml-filename"/>
1000 <xsl:when test="($node/@id or $node/@xml:id) and not($use.id.as.filename = 0)">
1001 <!-- * 2. If this legalnotice/revhistory has an ID, then go ahead and use -->
1002 <!-- * just the value of that ID as the basename for the file -->
1003 <!-- * (that is, without prepending an "ln-" or "rh-" to it) -->
1004 <xsl:value-of select="($node/@id|$node/@xml:id)[1]"/>
1005 <xsl:value-of select="$html.ext"/>
1007 <xsl:when test="not ($node/@id or $node/@xml:id) or $use.id.as.filename = 0">
1008 <!-- * 3. Otherwise, if this legalnotice/revhistory does not have an ID, or -->
1009 <!-- * if $use.id.as.filename = 0 -->
1010 <!-- * then we generate an ID... -->
1011 <xsl:variable name="id">
1012 <xsl:value-of select="generate-id($node)"/>
1014 <!-- * ...and then we take that generated ID, prepend a -->
1015 <!-- * prefix to it, and use that as the basename for the file -->
1017 <xsl:when test="$is.ln">
1018 <xsl:value-of select="concat('ln-',$id,$html.ext)"/>
1021 <xsl:value-of select="concat('rh-',$id,$html.ext)"/>
1028 <!-- ==================================================================== -->