1 <?xml version="1.0" encoding="ASCII"?><!--This file was created automatically by html2xhtml--><!--from the HTML stylesheets.--><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:d="http://docbook.org/ns/docbook" xmlns="http://www.w3.org/1999/xhtml" exclude-result-prefixes="d" version="1.0">
3 <!-- ********************************************************************
5 This file is part of the XSL DocBook Stylesheet distribution.
6 See ../README or http://cdn.docbook.org/release/xsl/current/ for
7 copyright and other information.
9 ******************************************************************** -->
11 <!-- ==================================================================== -->
13 <xsl:attribute-set name="book.titlepage.recto.style"/>
14 <xsl:attribute-set name="book.titlepage.verso.style"/>
16 <xsl:attribute-set name="article.titlepage.recto.style"/>
17 <xsl:attribute-set name="article.titlepage.verso.style"/>
19 <xsl:attribute-set name="set.titlepage.recto.style"/>
20 <xsl:attribute-set name="set.titlepage.verso.style"/>
22 <xsl:attribute-set name="part.titlepage.recto.style"/>
23 <xsl:attribute-set name="part.titlepage.verso.style"/>
25 <xsl:attribute-set name="partintro.titlepage.recto.style"/>
26 <xsl:attribute-set name="partintro.titlepage.verso.style"/>
28 <xsl:attribute-set name="reference.titlepage.recto.style"/>
29 <xsl:attribute-set name="reference.titlepage.verso.style"/>
31 <xsl:attribute-set name="refentry.titlepage.recto.style"/>
32 <xsl:attribute-set name="refentry.titlepage.verso.style"/>
34 <xsl:attribute-set name="dedication.titlepage.recto.style"/>
35 <xsl:attribute-set name="dedication.titlepage.verso.style"/>
37 <xsl:attribute-set name="acknowledgements.titlepage.recto.style"/>
38 <xsl:attribute-set name="acknowledgements.titlepage.verso.style"/>
40 <xsl:attribute-set name="preface.titlepage.recto.style"/>
41 <xsl:attribute-set name="preface.titlepage.verso.style"/>
43 <xsl:attribute-set name="chapter.titlepage.recto.style"/>
44 <xsl:attribute-set name="chapter.titlepage.verso.style"/>
46 <xsl:attribute-set name="appendix.titlepage.recto.style"/>
47 <xsl:attribute-set name="appendix.titlepage.verso.style"/>
49 <xsl:attribute-set name="bibliography.titlepage.recto.style"/>
50 <xsl:attribute-set name="bibliography.titlepage.verso.style"/>
52 <xsl:attribute-set name="glossary.titlepage.recto.style"/>
53 <xsl:attribute-set name="glossary.titlepage.verso.style"/>
55 <xsl:attribute-set name="index.titlepage.recto.style"/>
56 <xsl:attribute-set name="index.titlepage.verso.style"/>
58 <xsl:attribute-set name="setindex.titlepage.recto.style"/>
59 <xsl:attribute-set name="setindex.titlepage.verso.style"/>
61 <xsl:attribute-set name="sidebar.titlepage.recto.style"/>
62 <xsl:attribute-set name="sidebar.titlepage.verso.style"/>
64 <xsl:attribute-set name="topic.titlepage.recto.style"/>
65 <xsl:attribute-set name="topic.titlepage.verso.style"/>
67 <xsl:attribute-set name="section.titlepage.recto.style"/>
68 <xsl:attribute-set name="section.titlepage.verso.style"/>
70 <xsl:attribute-set name="sect1.titlepage.recto.style" use-attribute-sets="section.titlepage.recto.style"/>
71 <xsl:attribute-set name="sect1.titlepage.verso.style" use-attribute-sets="section.titlepage.verso.style"/>
73 <xsl:attribute-set name="sect2.titlepage.recto.style" use-attribute-sets="section.titlepage.recto.style"/>
74 <xsl:attribute-set name="sect2.titlepage.verso.style" use-attribute-sets="section.titlepage.verso.style"/>
76 <xsl:attribute-set name="sect3.titlepage.recto.style" use-attribute-sets="section.titlepage.recto.style"/>
77 <xsl:attribute-set name="sect3.titlepage.verso.style" use-attribute-sets="section.titlepage.verso.style"/>
79 <xsl:attribute-set name="sect4.titlepage.recto.style" use-attribute-sets="section.titlepage.recto.style"/>
80 <xsl:attribute-set name="sect4.titlepage.verso.style" use-attribute-sets="section.titlepage.verso.style"/>
82 <xsl:attribute-set name="sect5.titlepage.recto.style" use-attribute-sets="section.titlepage.recto.style"/>
83 <xsl:attribute-set name="sect5.titlepage.verso.style" use-attribute-sets="section.titlepage.verso.style"/>
85 <xsl:attribute-set name="simplesect.titlepage.recto.style" use-attribute-sets="section.titlepage.recto.style"/>
86 <xsl:attribute-set name="simplesect.titlepage.verso.style" use-attribute-sets="section.titlepage.verso.style"/>
88 <xsl:attribute-set name="table.of.contents.titlepage.recto.style"/>
89 <xsl:attribute-set name="table.of.contents.titlepage.verso.style"/>
91 <xsl:attribute-set name="list.of.tables.titlepage.recto.style"/>
92 <xsl:attribute-set name="list.of.tables.contents.titlepage.verso.style"/>
94 <xsl:attribute-set name="list.of.figures.titlepage.recto.style"/>
95 <xsl:attribute-set name="list.of.figures.contents.titlepage.verso.style"/>
97 <xsl:attribute-set name="list.of.equations.titlepage.recto.style"/>
98 <xsl:attribute-set name="list.of.equations.contents.titlepage.verso.style"/>
100 <xsl:attribute-set name="list.of.examples.titlepage.recto.style"/>
101 <xsl:attribute-set name="list.of.examples.contents.titlepage.verso.style"/>
103 <xsl:attribute-set name="list.of.unknowns.titlepage.recto.style"/>
104 <xsl:attribute-set name="list.of.unknowns.contents.titlepage.verso.style"/>
106 <xsl:attribute-set name="dialogue.titlepage.recto.style"/>
107 <xsl:attribute-set name="dialogue.titlepage.verso.style"/>
109 <xsl:attribute-set name="drama.titlepage.recto.style"/>
110 <xsl:attribute-set name="drama.titlepage.verso.style"/>
112 <xsl:attribute-set name="poetry.titlepage.recto.style"/>
113 <xsl:attribute-set name="poetry.titlepage.verso.style"/>
116 <!-- ==================================================================== -->
118 <xsl:template match="*" mode="titlepage.mode">
119 <!-- if an element isn't found in this mode, try the default mode -->
120 <xsl:apply-templates select="."/>
123 <xsl:template match="d:abbrev" mode="titlepage.mode">
125 <xsl:apply-templates select="." mode="common.html.attributes"/>
126 <xsl:call-template name="id.attribute"/>
127 <xsl:apply-templates mode="titlepage.mode"/>
132 <xsl:template match="d:abstract" mode="titlepage.mode">
134 <xsl:apply-templates select="." mode="common.html.attributes"/>
135 <xsl:call-template name="id.attribute"/>
136 <xsl:call-template name="anchor"/>
137 <xsl:if test="$abstract.notitle.enabled = 0">
138 <xsl:call-template name="formal.object.heading">
139 <xsl:with-param name="title">
140 <xsl:apply-templates select="." mode="title.markup"/>
144 <xsl:apply-templates mode="titlepage.mode"/>
145 <xsl:call-template name="process.footnotes"/>
149 <xsl:template match="d:abstract/d:title" mode="titlepage.mode">
152 <xsl:template match="d:address" mode="titlepage.mode">
153 <xsl:param name="suppress-numbers" select="'0'"/>
155 <xsl:variable name="rtf">
156 <xsl:apply-templates mode="titlepage.mode"/>
160 <xsl:when test="$suppress-numbers = '0' and @linenumbering = 'numbered' and $use.extensions != '0' and $linenumbering.extension != '0'">
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="number.rtf.lines">
166 <xsl:with-param name="rtf" select="$rtf"/>
175 <xsl:apply-templates select="." mode="common.html.attributes"/>
176 <xsl:call-template name="paragraph">
177 <xsl:with-param name="content">
178 <xsl:call-template name="make-verbatim">
179 <xsl:with-param name="rtf" select="$rtf"/>
188 <xsl:template match="d:affiliation" mode="titlepage.mode">
190 <xsl:apply-templates select="." mode="common.html.attributes"/>
191 <xsl:call-template name="id.attribute"/>
192 <xsl:apply-templates mode="titlepage.mode"/>
196 <xsl:template match="d:artpagenums" mode="titlepage.mode">
198 <xsl:apply-templates select="." mode="common.html.attributes"/>
199 <xsl:call-template name="id.attribute"/>
200 <xsl:apply-templates mode="titlepage.mode"/>
205 <xsl:template match="d:author|d:editor" mode="titlepage.mode">
206 <xsl:call-template name="credits.div"/>
209 <xsl:template name="credits.div">
211 <xsl:apply-templates select="." mode="common.html.attributes"/>
212 <xsl:call-template name="id.attribute"/>
213 <xsl:if test="self::d:editor and count(preceding-sibling::d:editor) = 0 and not($editedby.enabled = 0)">
214 <h4 class="editedby"><xsl:call-template name="gentext.edited.by"/></h4>
217 <xsl:apply-templates select="." mode="common.html.attributes"/>
219 <xsl:when test="d:orgname">
220 <xsl:apply-templates/>
223 <xsl:call-template name="person.name"/>
227 <xsl:if test="not($contrib.inline.enabled = 0)">
228 <xsl:apply-templates mode="titlepage.mode" select="d:contrib"/>
230 <xsl:apply-templates mode="titlepage.mode" select="d:affiliation"/>
231 <xsl:apply-templates mode="titlepage.mode" select="d:email"/>
232 <xsl:if test="not($blurb.on.titlepage.enabled = 0)">
234 <xsl:when test="$contrib.inline.enabled = 0">
235 <xsl:apply-templates mode="titlepage.mode" select="d:contrib|d:authorblurb|d:personblurb"/>
238 <xsl:apply-templates mode="titlepage.mode" select="d:authorblurb|d:personblurb"/>
245 <xsl:template match="d:authorblurb|d:personblurb" mode="titlepage.mode">
247 <xsl:apply-templates select="." mode="common.html.attributes"/>
248 <xsl:call-template name="id.attribute"/>
249 <xsl:apply-templates mode="titlepage.mode"/>
253 <xsl:template match="d:authorgroup" mode="titlepage.mode">
255 <xsl:apply-templates select="." mode="common.html.attributes"/>
256 <xsl:call-template name="id.attribute"/>
257 <xsl:if test="parent::d:refentryinfo">
261 <xsl:call-template name="anchor"/>
262 <xsl:apply-templates mode="titlepage.mode"/>
266 <xsl:template match="d:authorinitials" mode="titlepage.mode">
268 <xsl:apply-templates select="." mode="common.html.attributes"/>
269 <xsl:call-template name="id.attribute"/>
270 <xsl:apply-templates mode="titlepage.mode"/>
275 <xsl:template match="d:bibliomisc" mode="titlepage.mode">
276 <xsl:apply-templates mode="titlepage.mode"/>
279 <xsl:template match="d:bibliomset" mode="titlepage.mode">
280 <xsl:apply-templates mode="titlepage.mode"/>
283 <xsl:template match="d:collab" mode="titlepage.mode">
285 <xsl:apply-templates select="." mode="common.html.attributes"/>
286 <xsl:call-template name="id.attribute"/>
287 <xsl:apply-templates mode="titlepage.mode"/>
292 <xsl:template match="d:collabname" mode="titlepage.mode">
294 <xsl:apply-templates select="." mode="common.html.attributes"/>
295 <xsl:call-template name="id.attribute"/>
296 <xsl:apply-templates mode="titlepage.mode"/>
300 <xsl:template match="d:confgroup" mode="titlepage.mode">
302 <xsl:apply-templates select="." mode="common.html.attributes"/>
303 <xsl:call-template name="id.attribute"/>
304 <xsl:apply-templates mode="titlepage.mode"/>
308 <xsl:template match="d:confdates" mode="titlepage.mode">
310 <xsl:apply-templates select="." mode="common.html.attributes"/>
311 <xsl:call-template name="id.attribute"/>
312 <xsl:apply-templates mode="titlepage.mode"/>
317 <xsl:template match="d:confsponsor" mode="titlepage.mode">
319 <xsl:apply-templates select="." mode="common.html.attributes"/>
320 <xsl:call-template name="id.attribute"/>
321 <xsl:apply-templates mode="titlepage.mode"/>
326 <xsl:template match="d:conftitle" mode="titlepage.mode">
328 <xsl:apply-templates select="." mode="common.html.attributes"/>
329 <xsl:call-template name="id.attribute"/>
330 <xsl:apply-templates mode="titlepage.mode"/>
335 <xsl:template match="d:confnum" mode="titlepage.mode">
339 <xsl:template match="d:contractnum" mode="titlepage.mode">
341 <xsl:apply-templates select="." mode="common.html.attributes"/>
342 <xsl:call-template name="id.attribute"/>
343 <xsl:apply-templates mode="titlepage.mode"/>
348 <xsl:template match="d:contractsponsor" mode="titlepage.mode">
350 <xsl:apply-templates select="." mode="common.html.attributes"/>
351 <xsl:call-template name="id.attribute"/>
352 <xsl:apply-templates mode="titlepage.mode"/>
357 <xsl:template match="d:contrib" mode="titlepage.mode">
359 <xsl:when test="not($contrib.inline.enabled = 0)">
361 <xsl:apply-templates select="." mode="common.html.attributes"/>
362 <xsl:call-template name="id.attribute"/>
363 <xsl:apply-templates mode="titlepage.mode"/>
364 </span><xsl:text> </xsl:text>
368 <xsl:apply-templates select="." mode="common.html.attributes"/>
369 <xsl:call-template name="id.attribute"/>
370 <p><xsl:apply-templates mode="titlepage.mode"/></p>
376 <xsl:template match="d:copyright" mode="titlepage.mode">
378 <xsl:if test="generate-id() = generate-id(//d:refentryinfo/d:copyright[1]) and ($stylesheet.result.type = 'html' or $stylesheet.result.type = 'xhtml')">
383 <xsl:apply-templates select="." mode="common.html.attributes"/>
384 <xsl:call-template name="id.attribute"/>
385 <xsl:call-template name="gentext">
386 <xsl:with-param name="key" select="'Copyright'"/>
388 <xsl:call-template name="gentext.space"/>
389 <xsl:call-template name="dingbat">
390 <xsl:with-param name="dingbat">copyright</xsl:with-param>
392 <xsl:call-template name="gentext.space"/>
393 <xsl:call-template name="copyright.years">
394 <xsl:with-param name="years" select="d:year"/>
395 <xsl:with-param name="print.ranges" select="$make.year.ranges"/>
396 <xsl:with-param name="single.year.ranges" select="$make.single.year.ranges"/>
398 <xsl:call-template name="gentext.space"/>
399 <xsl:apply-templates select="d:holder" mode="titlepage.mode"/>
403 <xsl:template match="d:year" mode="titlepage.mode">
405 <xsl:when test="$show.revisionflag != 0 and @revisionflag">
406 <span class="{@revisionflag}">
407 <xsl:apply-templates mode="titlepage.mode"/>
411 <xsl:apply-templates mode="titlepage.mode"/>
416 <xsl:template match="d:holder" mode="titlepage.mode">
418 <xsl:when test="$show.revisionflag != 0 and @revisionflag">
419 <span class="{@revisionflag}">
420 <xsl:apply-templates mode="titlepage.mode"/>
424 <xsl:apply-templates mode="titlepage.mode"/>
427 <xsl:if test="position() < last()">
428 <xsl:text>, </xsl:text>
432 <xsl:template match="d:corpauthor" mode="titlepage.mode">
434 <xsl:apply-templates select="." mode="common.html.attributes"/>
435 <xsl:call-template name="id.attribute"/>
436 <xsl:apply-templates mode="titlepage.mode"/>
440 <xsl:template match="d:corpcredit" mode="titlepage.mode">
442 <xsl:apply-templates select="." mode="common.html.attributes"/>
443 <xsl:call-template name="id.attribute"/>
444 <xsl:apply-templates mode="titlepage.mode"/>
449 <xsl:template match="d:corpname" mode="titlepage.mode">
451 <xsl:apply-templates select="." mode="common.html.attributes"/>
452 <xsl:call-template name="id.attribute"/>
453 <xsl:apply-templates mode="titlepage.mode"/>
458 <xsl:template match="d:date" mode="titlepage.mode">
460 <xsl:apply-templates select="." mode="common.html.attributes"/>
461 <xsl:call-template name="id.attribute"/>
462 <xsl:apply-templates mode="titlepage.mode"/>
467 <xsl:template match="d:edition" mode="titlepage.mode">
469 <xsl:apply-templates select="." mode="common.html.attributes"/>
470 <xsl:call-template name="id.attribute"/>
471 <xsl:apply-templates mode="titlepage.mode"/>
472 <xsl:call-template name="gentext.space"/>
473 <xsl:call-template name="gentext">
474 <xsl:with-param name="key" select="'Edition'"/>
479 <xsl:template match="d:email" mode="titlepage.mode">
480 <!-- use the normal e-mail handling code -->
481 <xsl:apply-templates select="."/>
484 <xsl:template match="d:firstname" mode="titlepage.mode">
486 <xsl:apply-templates select="." mode="common.html.attributes"/>
487 <xsl:call-template name="id.attribute"/>
488 <xsl:apply-templates mode="titlepage.mode"/>
493 <xsl:template match="d:graphic" mode="titlepage.mode">
494 <!-- use the normal graphic handling code -->
495 <xsl:apply-templates select="."/>
498 <xsl:template match="d:honorific" mode="titlepage.mode">
500 <xsl:apply-templates select="." mode="common.html.attributes"/>
501 <xsl:call-template name="id.attribute"/>
502 <xsl:apply-templates mode="titlepage.mode"/>
507 <xsl:template match="d:isbn" mode="titlepage.mode">
509 <xsl:apply-templates select="." mode="common.html.attributes"/>
510 <xsl:call-template name="id.attribute"/>
511 <xsl:apply-templates mode="titlepage.mode"/>
516 <xsl:template match="d:issn" mode="titlepage.mode">
518 <xsl:apply-templates select="." mode="common.html.attributes"/>
519 <xsl:call-template name="id.attribute"/>
520 <xsl:apply-templates mode="titlepage.mode"/>
525 <xsl:template match="d:biblioid" mode="titlepage.mode">
527 <xsl:apply-templates select="." mode="common.html.attributes"/>
528 <xsl:call-template name="id.attribute"/>
529 <xsl:apply-templates mode="titlepage.mode"/>
534 <xsl:template match="d:itermset" mode="titlepage.mode">
537 <xsl:template match="d:invpartnumber" mode="titlepage.mode">
539 <xsl:apply-templates select="." mode="common.html.attributes"/>
540 <xsl:call-template name="id.attribute"/>
541 <xsl:apply-templates mode="titlepage.mode"/>
546 <xsl:template match="d:issuenum" mode="titlepage.mode">
548 <xsl:apply-templates select="." mode="common.html.attributes"/>
549 <xsl:call-template name="id.attribute"/>
550 <xsl:apply-templates mode="titlepage.mode"/>
555 <xsl:template match="d:jobtitle" mode="titlepage.mode">
557 <xsl:apply-templates select="." mode="common.html.attributes"/>
558 <xsl:call-template name="id.attribute"/>
559 <xsl:apply-templates mode="titlepage.mode"/>
564 <xsl:template match="d:keywordset" mode="titlepage.mode">
567 <xsl:template match="d:legalnotice" mode="titlepage.mode">
568 <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
571 <xsl:when test="$generate.legalnotice.link != 0">
573 <!-- Compute name of legalnotice file -->
574 <xsl:variable name="file">
575 <xsl:call-template name="ln.or.rh.filename"/>
578 <xsl:variable name="filename">
579 <xsl:call-template name="make-relative-filename">
580 <xsl:with-param name="base.dir" select="$chunk.base.dir"/>
581 <xsl:with-param name="base.name" select="$file"/>
585 <xsl:variable name="title">
586 <xsl:apply-templates select="." mode="title.markup"/>
590 <xsl:copy-of select="$title"/>
593 <xsl:call-template name="write.chunk">
594 <xsl:with-param name="filename" select="$filename"/>
595 <xsl:with-param name="quiet" select="$chunk.quietly"/>
596 <xsl:with-param name="content">
597 <xsl:call-template name="user.preroot"/>
600 <xsl:call-template name="system.head.content"/>
601 <xsl:call-template name="head.content"/>
602 <xsl:call-template name="user.head.content"/>
605 <xsl:call-template name="body.attributes"/>
607 <xsl:apply-templates select="." mode="common.html.attributes"/>
608 <xsl:call-template name="id.attribute">
609 <xsl:with-param name="conditional" select="0"/>
611 <xsl:apply-templates mode="titlepage.mode"/>
615 <xsl:value-of select="$chunk.append"/>
621 <xsl:apply-templates select="." mode="common.html.attributes"/>
622 <xsl:call-template name="id.attribute">
623 <xsl:with-param name="conditional" select="0"/>
625 <xsl:call-template name="anchor">
626 <xsl:with-param name="conditional" select="0"/>
628 <xsl:apply-templates mode="titlepage.mode"/>
634 <xsl:template match="d:legalnotice/d:title" mode="titlepage.mode">
635 <p class="legalnotice-title"><strong><xsl:apply-templates/></strong></p>
638 <xsl:template match="d:lineage" mode="titlepage.mode">
640 <xsl:apply-templates select="." mode="common.html.attributes"/>
641 <xsl:call-template name="id.attribute"/>
642 <xsl:apply-templates mode="titlepage.mode"/>
647 <xsl:template match="d:modespec" mode="titlepage.mode">
650 <xsl:template match="d:orgdiv" mode="titlepage.mode">
651 <xsl:if test="preceding-sibling::*[1][self::d:orgname]">
652 <xsl:text> </xsl:text>
655 <xsl:apply-templates select="." mode="common.html.attributes"/>
656 <xsl:call-template name="id.attribute"/>
657 <xsl:apply-templates mode="titlepage.mode"/>
662 <xsl:template match="d:orgname" mode="titlepage.mode">
664 <xsl:apply-templates select="." mode="common.html.attributes"/>
665 <xsl:call-template name="id.attribute"/>
666 <xsl:apply-templates mode="titlepage.mode"/>
671 <xsl:template match="d:othercredit" mode="titlepage.mode">
673 <xsl:when test="not($othercredit.like.author.enabled = 0)">
674 <xsl:variable name="contrib" select="string(d:contrib)"/>
676 <xsl:when test="d:contrib">
677 <xsl:if test="not(preceding-sibling::d:othercredit[string(d:contrib)=$contrib])">
678 <xsl:call-template name="paragraph">
679 <xsl:with-param name="class" select="local-name(.)"/>
680 <xsl:with-param name="content">
681 <xsl:apply-templates mode="titlepage.mode" select="d:contrib"/>
682 <xsl:text>: </xsl:text>
683 <xsl:call-template name="person.name"/>
684 <xsl:apply-templates mode="titlepage.mode" select="d:affiliation"/>
685 <xsl:apply-templates select="following-sibling::d:othercredit[string(d:contrib)=$contrib]" mode="titlepage.othercredits"/>
691 <xsl:call-template name="paragraph">
692 <xsl:with-param name="class" select="local-name(.)"/>
693 <xsl:with-param name="content">
694 <xsl:call-template name="person.name"/>
697 <xsl:apply-templates mode="titlepage.mode" select="d:affiliation"/>
702 <xsl:call-template name="credits.div"/>
707 <xsl:template match="d:othercredit" mode="titlepage.othercredits">
708 <xsl:text>, </xsl:text>
709 <xsl:call-template name="person.name"/>
712 <xsl:template match="d:othername" mode="titlepage.mode">
714 <xsl:apply-templates select="." mode="common.html.attributes"/>
715 <xsl:call-template name="id.attribute"/>
716 <xsl:apply-templates mode="titlepage.mode"/>
721 <xsl:template match="d:pagenums" mode="titlepage.mode">
723 <xsl:apply-templates select="." mode="common.html.attributes"/>
724 <xsl:call-template name="id.attribute"/>
725 <xsl:apply-templates mode="titlepage.mode"/>
730 <xsl:template match="d:printhistory" mode="titlepage.mode">
732 <xsl:apply-templates select="." mode="common.html.attributes"/>
733 <xsl:call-template name="id.attribute"/>
734 <xsl:apply-templates mode="titlepage.mode"/>
738 <xsl:template match="d:productname" mode="titlepage.mode">
740 <xsl:apply-templates select="." mode="common.html.attributes"/>
741 <xsl:call-template name="id.attribute"/>
742 <xsl:apply-templates mode="titlepage.mode"/>
747 <xsl:template match="d:productnumber" mode="titlepage.mode">
749 <xsl:apply-templates select="." mode="common.html.attributes"/>
750 <xsl:call-template name="id.attribute"/>
751 <xsl:apply-templates mode="titlepage.mode"/>
756 <xsl:template match="d:pubdate" mode="titlepage.mode">
757 <xsl:call-template name="paragraph">
758 <xsl:with-param name="class" select="local-name(.)"/>
759 <xsl:with-param name="content">
760 <xsl:apply-templates mode="titlepage.mode"/>
765 <xsl:template match="d:publisher" mode="titlepage.mode">
766 <xsl:call-template name="paragraph">
767 <xsl:with-param name="class" select="local-name(.)"/>
768 <xsl:with-param name="content">
769 <xsl:apply-templates mode="titlepage.mode"/>
774 <xsl:template match="d:publishername" mode="titlepage.mode">
776 <xsl:apply-templates select="." mode="common.html.attributes"/>
777 <xsl:call-template name="id.attribute"/>
778 <xsl:apply-templates mode="titlepage.mode"/>
783 <xsl:template match="d:pubsnumber" mode="titlepage.mode">
785 <xsl:apply-templates select="." mode="common.html.attributes"/>
786 <xsl:call-template name="id.attribute"/>
787 <xsl:apply-templates mode="titlepage.mode"/>
792 <xsl:template match="d:releaseinfo" mode="titlepage.mode">
793 <xsl:call-template name="paragraph">
794 <xsl:with-param name="class" select="local-name(.)"/>
795 <xsl:with-param name="content">
796 <xsl:apply-templates mode="titlepage.mode"/>
801 <xsl:template match="d:revhistory" mode="titlepage.mode">
802 <xsl:variable name="numcols">
804 <xsl:when test=".//d:authorinitials|.//d:author">3</xsl:when>
805 <xsl:otherwise>2</xsl:otherwise>
809 <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
811 <xsl:variable name="title">
812 <xsl:call-template name="gentext">
813 <xsl:with-param name="key">RevHistory</xsl:with-param>
817 <xsl:variable name="contents">
819 <xsl:apply-templates select="." mode="common.html.attributes"/>
820 <xsl:call-template name="id.attribute"/>
822 <xsl:if test="$css.decoration != 0">
823 <xsl:attribute name="style">
824 <xsl:text>border-style:solid; width:100%;</xsl:text>
827 <!-- include summary attribute if not HTML5 -->
828 <xsl:if test="$div.element != 'section'">
829 <xsl:attribute name="summary">
830 <xsl:call-template name="gentext">
831 <xsl:with-param name="key">revhistory</xsl:with-param>
836 <th align="{$direction.align.start}" valign="top" colspan="{$numcols}">
838 <xsl:call-template name="gentext">
839 <xsl:with-param name="key" select="'RevHistory'"/>
844 <xsl:apply-templates mode="titlepage.mode">
845 <xsl:with-param name="numcols" select="$numcols"/>
846 </xsl:apply-templates>
852 <xsl:when test="$generate.revhistory.link != 0">
854 <!-- Compute name of revhistory file -->
855 <xsl:variable name="file">
856 <xsl:call-template name="ln.or.rh.filename">
857 <xsl:with-param name="is.ln" select="false()"/>
861 <xsl:variable name="filename">
862 <xsl:call-template name="make-relative-filename">
863 <xsl:with-param name="base.dir" select="$chunk.base.dir"/>
864 <xsl:with-param name="base.name" select="$file"/>
869 <xsl:copy-of select="$title"/>
872 <xsl:call-template name="write.chunk">
873 <xsl:with-param name="filename" select="$filename"/>
874 <xsl:with-param name="quiet" select="$chunk.quietly"/>
875 <xsl:with-param name="content">
876 <xsl:call-template name="user.preroot"/>
879 <xsl:call-template name="system.head.content"/>
880 <xsl:call-template name="head.content">
881 <xsl:with-param name="title">
882 <xsl:value-of select="$title"/>
883 <xsl:if test="../../d:title">
884 <xsl:value-of select="concat(' (', ../../d:title, ')')"/>
888 <xsl:call-template name="user.head.content"/>
891 <xsl:call-template name="body.attributes"/>
892 <xsl:copy-of select="$contents"/>
901 <xsl:copy-of select="$contents"/>
906 <xsl:template match="d:revhistory/d:revision" mode="titlepage.mode">
907 <xsl:param name="numcols" select="'3'"/>
908 <xsl:variable name="revnumber" select="d:revnumber"/>
909 <xsl:variable name="revdate" select="d:date"/>
910 <xsl:variable name="revauthor" select="d:authorinitials|d:author"/>
911 <xsl:variable name="revremark" select="d:revremark|d:revdescription"/>
913 <td align="{$direction.align.start}">
914 <xsl:if test="$revnumber">
915 <xsl:call-template name="gentext">
916 <xsl:with-param name="key" select="'Revision'"/>
918 <xsl:call-template name="gentext.space"/>
919 <xsl:apply-templates select="$revnumber[1]" mode="titlepage.mode"/>
922 <td align="{$direction.align.start}">
923 <xsl:apply-templates select="$revdate[1]" mode="titlepage.mode"/>
926 <xsl:when test="$revauthor">
927 <td align="{$direction.align.start}">
928 <xsl:for-each select="$revauthor">
929 <xsl:apply-templates select="." mode="titlepage.mode"/>
930 <xsl:if test="position() != last()">
931 <xsl:text>, </xsl:text>
936 <xsl:when test="$numcols > 2">
942 <xsl:if test="$revremark">
944 <td align="{$direction.align.start}" colspan="{$numcols}">
945 <xsl:apply-templates select="$revremark[1]" mode="titlepage.mode"/>
951 <xsl:template match="d:revision/d:revnumber" mode="titlepage.mode">
952 <xsl:apply-templates mode="titlepage.mode"/>
955 <xsl:template match="d:revision/d:date" mode="titlepage.mode">
956 <xsl:apply-templates mode="titlepage.mode"/>
959 <xsl:template match="d:revision/d:authorinitials" mode="titlepage.mode">
960 <xsl:apply-templates mode="titlepage.mode"/>
963 <xsl:template match="d:revision/d:author" mode="titlepage.mode">
964 <xsl:apply-templates mode="titlepage.mode"/>
967 <xsl:template match="d:revision/d:revremark" mode="titlepage.mode">
968 <xsl:apply-templates mode="titlepage.mode"/>
971 <xsl:template match="d:revision/d:revdescription" mode="titlepage.mode">
972 <xsl:apply-templates mode="titlepage.mode"/>
975 <xsl:template match="d:seriesvolnums" mode="titlepage.mode">
977 <xsl:apply-templates select="." mode="common.html.attributes"/>
978 <xsl:call-template name="id.attribute"/>
979 <xsl:apply-templates mode="titlepage.mode"/>
984 <xsl:template match="d:shortaffil" mode="titlepage.mode">
986 <xsl:apply-templates select="." mode="common.html.attributes"/>
987 <xsl:call-template name="id.attribute"/>
988 <xsl:apply-templates mode="titlepage.mode"/>
993 <xsl:template match="d:subjectset" mode="titlepage.mode">
996 <xsl:template match="d:subtitle" mode="titlepage.mode">
998 <xsl:apply-templates select="." mode="common.html.attributes"/>
999 <xsl:call-template name="id.attribute"/>
1000 <xsl:apply-templates mode="titlepage.mode"/>
1004 <xsl:template match="d:surname" mode="titlepage.mode">
1006 <xsl:apply-templates select="." mode="common.html.attributes"/>
1007 <xsl:call-template name="id.attribute"/>
1008 <xsl:apply-templates mode="titlepage.mode"/>
1013 <xsl:template match="d:title" mode="titlepage.mode">
1014 <xsl:variable name="id">
1016 <!-- if title is in an *info wrapper, get the grandparent -->
1017 <xsl:when test="contains(local-name(..), 'info')">
1018 <xsl:call-template name="object.id">
1019 <xsl:with-param name="object" select="../.."/>
1020 </xsl:call-template>
1023 <xsl:call-template name="object.id">
1024 <xsl:with-param name="object" select=".."/>
1025 </xsl:call-template>
1031 <xsl:apply-templates select="." mode="common.html.attributes"/>
1033 <xsl:when test="$generate.id.attributes = 0">
1040 <xsl:when test="$show.revisionflag != 0 and @revisionflag">
1041 <span class="{@revisionflag}">
1042 <xsl:apply-templates mode="titlepage.mode"/>
1046 <xsl:apply-templates mode="titlepage.mode"/>
1052 <xsl:template match="d:titleabbrev" mode="titlepage.mode">
1053 <!-- nop; title abbreviations don't belong on the title page! -->
1056 <xsl:template match="d:volumenum" mode="titlepage.mode">
1058 <xsl:apply-templates select="." mode="common.html.attributes"/>
1059 <xsl:call-template name="id.attribute"/>
1060 <xsl:apply-templates mode="titlepage.mode"/>
1065 <!-- This template computes the filename for legalnotice and revhistory chunks -->
1066 <xsl:template name="ln.or.rh.filename">
1067 <xsl:param name="node" select="."/>
1068 <xsl:param name="is.ln" select="true()"/>
1070 <xsl:variable name="dbhtml-filename">
1071 <xsl:call-template name="pi.dbhtml_filename">
1072 <xsl:with-param name="node" select="$node"/>
1073 </xsl:call-template>
1077 <!-- 1. If there is a dbhtml_filename PI, use that -->
1078 <xsl:when test="$dbhtml-filename != ''">
1079 <xsl:value-of select="$dbhtml-filename"/>
1081 <xsl:when test="($node/@id or $node/@xml:id) and not($use.id.as.filename = 0)">
1082 <!-- * 2. If this legalnotice/revhistory has an ID, then go ahead and use -->
1083 <!-- * just the value of that ID as the basename for the file -->
1084 <!-- * (that is, without prepending an "ln-" or "rh-" to it) -->
1085 <xsl:value-of select="($node/@id|$node/@xml:id)[1]"/>
1086 <xsl:value-of select="$html.ext"/>
1088 <xsl:when test="not ($node/@id or $node/@xml:id) or $use.id.as.filename = 0">
1089 <!-- * 3. Otherwise, if this legalnotice/revhistory does not have an ID, or -->
1090 <!-- * if $use.id.as.filename = 0 -->
1091 <!-- * then we generate an ID... -->
1092 <xsl:variable name="id">
1093 <xsl:value-of select="generate-id($node)"/>
1095 <!-- * ...and then we take that generated ID, prepend a -->
1096 <!-- * prefix to it, and use that as the basename for the file -->
1098 <xsl:when test="$is.ln">
1099 <xsl:value-of select="concat('ln-',$id,$html.ext)"/>
1102 <xsl:value-of select="concat('rh-',$id,$html.ext)"/>
1109 <!-- ==================================================================== -->