source: stylesheets/lfs-xsl/docbook-xsl-1.78.1/xhtml/titlepage.xsl@ 58675ce

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 7.5 7.6 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 58675ce was 15c7d39, checked in by Matthew Burgess <matthew@…>, 11 years ago

Update stylesheets to docbook-xsl-1.78.1.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10355 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 37.0 KB
Line 
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">
5
6<!-- ********************************************************************
7 $Id: titlepage.xsl 9360 2012-05-12 23:39:14Z bobstayton $
8 ********************************************************************
9
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.
13
14 ******************************************************************** -->
15
16<!-- ==================================================================== -->
17
18<xsl:attribute-set name="book.titlepage.recto.style"/>
19<xsl:attribute-set name="book.titlepage.verso.style"/>
20
21<xsl:attribute-set name="article.titlepage.recto.style"/>
22<xsl:attribute-set name="article.titlepage.verso.style"/>
23
24<xsl:attribute-set name="set.titlepage.recto.style"/>
25<xsl:attribute-set name="set.titlepage.verso.style"/>
26
27<xsl:attribute-set name="part.titlepage.recto.style"/>
28<xsl:attribute-set name="part.titlepage.verso.style"/>
29
30<xsl:attribute-set name="partintro.titlepage.recto.style"/>
31<xsl:attribute-set name="partintro.titlepage.verso.style"/>
32
33<xsl:attribute-set name="reference.titlepage.recto.style"/>
34<xsl:attribute-set name="reference.titlepage.verso.style"/>
35
36<xsl:attribute-set name="refentry.titlepage.recto.style"/>
37<xsl:attribute-set name="refentry.titlepage.verso.style"/>
38
39<xsl:attribute-set name="dedication.titlepage.recto.style"/>
40<xsl:attribute-set name="dedication.titlepage.verso.style"/>
41
42<xsl:attribute-set name="acknowledgements.titlepage.recto.style"/>
43<xsl:attribute-set name="acknowledgements.titlepage.verso.style"/>
44
45<xsl:attribute-set name="preface.titlepage.recto.style"/>
46<xsl:attribute-set name="preface.titlepage.verso.style"/>
47
48<xsl:attribute-set name="chapter.titlepage.recto.style"/>
49<xsl:attribute-set name="chapter.titlepage.verso.style"/>
50
51<xsl:attribute-set name="appendix.titlepage.recto.style"/>
52<xsl:attribute-set name="appendix.titlepage.verso.style"/>
53
54<xsl:attribute-set name="bibliography.titlepage.recto.style"/>
55<xsl:attribute-set name="bibliography.titlepage.verso.style"/>
56
57<xsl:attribute-set name="glossary.titlepage.recto.style"/>
58<xsl:attribute-set name="glossary.titlepage.verso.style"/>
59
60<xsl:attribute-set name="index.titlepage.recto.style"/>
61<xsl:attribute-set name="index.titlepage.verso.style"/>
62
63<xsl:attribute-set name="setindex.titlepage.recto.style"/>
64<xsl:attribute-set name="setindex.titlepage.verso.style"/>
65
66<xsl:attribute-set name="sidebar.titlepage.recto.style"/>
67<xsl:attribute-set name="sidebar.titlepage.verso.style"/>
68
69<xsl:attribute-set name="topic.titlepage.recto.style"/>
70<xsl:attribute-set name="topic.titlepage.verso.style"/>
71
72<xsl:attribute-set name="section.titlepage.recto.style"/>
73<xsl:attribute-set name="section.titlepage.verso.style"/>
74
75<xsl:attribute-set name="sect1.titlepage.recto.style" use-attribute-sets="section.titlepage.recto.style"/>
76<xsl:attribute-set name="sect1.titlepage.verso.style" use-attribute-sets="section.titlepage.verso.style"/>
77
78<xsl:attribute-set name="sect2.titlepage.recto.style" use-attribute-sets="section.titlepage.recto.style"/>
79<xsl:attribute-set name="sect2.titlepage.verso.style" use-attribute-sets="section.titlepage.verso.style"/>
80
81<xsl:attribute-set name="sect3.titlepage.recto.style" use-attribute-sets="section.titlepage.recto.style"/>
82<xsl:attribute-set name="sect3.titlepage.verso.style" use-attribute-sets="section.titlepage.verso.style"/>
83
84<xsl:attribute-set name="sect4.titlepage.recto.style" use-attribute-sets="section.titlepage.recto.style"/>
85<xsl:attribute-set name="sect4.titlepage.verso.style" use-attribute-sets="section.titlepage.verso.style"/>
86
87<xsl:attribute-set name="sect5.titlepage.recto.style" use-attribute-sets="section.titlepage.recto.style"/>
88<xsl:attribute-set name="sect5.titlepage.verso.style" use-attribute-sets="section.titlepage.verso.style"/>
89
90<xsl:attribute-set name="simplesect.titlepage.recto.style" use-attribute-sets="section.titlepage.recto.style"/>
91<xsl:attribute-set name="simplesect.titlepage.verso.style" use-attribute-sets="section.titlepage.verso.style"/>
92
93<xsl:attribute-set name="table.of.contents.titlepage.recto.style"/>
94<xsl:attribute-set name="table.of.contents.titlepage.verso.style"/>
95
96<xsl:attribute-set name="list.of.tables.titlepage.recto.style"/>
97<xsl:attribute-set name="list.of.tables.contents.titlepage.verso.style"/>
98
99<xsl:attribute-set name="list.of.figures.titlepage.recto.style"/>
100<xsl:attribute-set name="list.of.figures.contents.titlepage.verso.style"/>
101
102<xsl:attribute-set name="list.of.equations.titlepage.recto.style"/>
103<xsl:attribute-set name="list.of.equations.contents.titlepage.verso.style"/>
104
105<xsl:attribute-set name="list.of.examples.titlepage.recto.style"/>
106<xsl:attribute-set name="list.of.examples.contents.titlepage.verso.style"/>
107
108<xsl:attribute-set name="list.of.unknowns.titlepage.recto.style"/>
109<xsl:attribute-set name="list.of.unknowns.contents.titlepage.verso.style"/>
110
111<!-- ==================================================================== -->
112
113<xsl:template match="*" mode="titlepage.mode">
114 <!-- if an element isn't found in this mode, try the default mode -->
115 <xsl:apply-templates select="."/>
116</xsl:template>
117
118<xsl:template match="abbrev" mode="titlepage.mode">
119 <span>
120 <xsl:apply-templates select="." mode="common.html.attributes"/>
121 <xsl:call-template name="id.attribute"/>
122 <xsl:apply-templates mode="titlepage.mode"/>
123 <br/>
124 </span>
125</xsl:template>
126
127<xsl:template match="abstract" mode="titlepage.mode">
128 <div>
129 <xsl:apply-templates select="." mode="common.html.attributes"/>
130 <xsl:call-template name="id.attribute"/>
131 <xsl:call-template name="anchor"/>
132 <xsl:if test="$abstract.notitle.enabled = 0">
133 <xsl:call-template name="formal.object.heading">
134 <xsl:with-param name="title">
135 <xsl:apply-templates select="." mode="title.markup"/>
136 </xsl:with-param>
137 </xsl:call-template>
138 </xsl:if>
139 <xsl:apply-templates mode="titlepage.mode"/>
140 <xsl:call-template name="process.footnotes"/>
141 </div>
142</xsl:template>
143
144<xsl:template match="abstract/title" mode="titlepage.mode">
145</xsl:template>
146
147<xsl:template match="address" mode="titlepage.mode">
148 <xsl:param name="suppress-numbers" select="'0'"/>
149
150 <xsl:variable name="rtf">
151 <xsl:apply-templates mode="titlepage.mode"/>
152 </xsl:variable>
153
154 <xsl:choose>
155 <xsl:when test="$suppress-numbers = '0' and @linenumbering = 'numbered' and $use.extensions != '0' and $linenumbering.extension != '0'">
156 <div>
157 <xsl:apply-templates select="." mode="common.html.attributes"/>
158 <xsl:call-template name="paragraph">
159 <xsl:with-param name="content">
160 <xsl:call-template name="number.rtf.lines">
161 <xsl:with-param name="rtf" select="$rtf"/>
162 </xsl:call-template>
163 </xsl:with-param>
164 </xsl:call-template>
165 </div>
166 </xsl:when>
167
168 <xsl:otherwise>
169 <div>
170 <xsl:apply-templates select="." mode="common.html.attributes"/>
171 <xsl:call-template name="paragraph">
172 <xsl:with-param name="content">
173 <xsl:call-template name="make-verbatim">
174 <xsl:with-param name="rtf" select="$rtf"/>
175 </xsl:call-template>
176 </xsl:with-param>
177 </xsl:call-template>
178 </div>
179 </xsl:otherwise>
180 </xsl:choose>
181</xsl:template>
182
183<xsl:template match="affiliation" mode="titlepage.mode">
184 <div>
185 <xsl:apply-templates select="." mode="common.html.attributes"/>
186 <xsl:call-template name="id.attribute"/>
187 <xsl:apply-templates mode="titlepage.mode"/>
188 </div>
189</xsl:template>
190
191<xsl:template match="artpagenums" mode="titlepage.mode">
192 <span>
193 <xsl:apply-templates select="." mode="common.html.attributes"/>
194 <xsl:call-template name="id.attribute"/>
195 <xsl:apply-templates mode="titlepage.mode"/>
196 <br/>
197 </span>
198</xsl:template>
199
200<xsl:template match="author|editor" mode="titlepage.mode">
201 <xsl:call-template name="credits.div"/>
202</xsl:template>
203
204<xsl:template name="credits.div">
205 <div>
206 <xsl:apply-templates select="." mode="common.html.attributes"/>
207 <xsl:call-template name="id.attribute"/>
208 <xsl:if test="self::editor[position()=1] and not($editedby.enabled = 0)">
209 <h4 class="editedby"><xsl:call-template name="gentext.edited.by"/></h4>
210 </xsl:if>
211 <h3>
212 <xsl:apply-templates select="." mode="common.html.attributes"/>
213 <xsl:choose>
214 <xsl:when test="orgname">
215 <xsl:apply-templates/>
216 </xsl:when>
217 <xsl:otherwise>
218 <xsl:call-template name="person.name"/>
219 </xsl:otherwise>
220 </xsl:choose>
221 </h3>
222 <xsl:if test="not($contrib.inline.enabled = 0)">
223 <xsl:apply-templates mode="titlepage.mode" select="contrib"/>
224 </xsl:if>
225 <xsl:apply-templates mode="titlepage.mode" select="affiliation"/>
226 <xsl:apply-templates mode="titlepage.mode" select="email"/>
227 <xsl:if test="not($blurb.on.titlepage.enabled = 0)">
228 <xsl:choose>
229 <xsl:when test="$contrib.inline.enabled = 0">
230 <xsl:apply-templates mode="titlepage.mode" select="contrib|authorblurb|personblurb"/>
231 </xsl:when>
232 <xsl:otherwise>
233 <xsl:apply-templates mode="titlepage.mode" select="authorblurb|personblurb"/>
234 </xsl:otherwise>
235 </xsl:choose>
236 </xsl:if>
237 </div>
238</xsl:template>
239
240<xsl:template match="authorblurb|personblurb" mode="titlepage.mode">
241 <div>
242 <xsl:apply-templates select="." mode="common.html.attributes"/>
243 <xsl:call-template name="id.attribute"/>
244 <xsl:apply-templates mode="titlepage.mode"/>
245 </div>
246</xsl:template>
247
248<xsl:template match="authorgroup" mode="titlepage.mode">
249 <div>
250 <xsl:apply-templates select="." mode="common.html.attributes"/>
251 <xsl:call-template name="id.attribute"/>
252 <xsl:if test="parent::refentryinfo">
253 <h2>Authors</h2>
254 </xsl:if>
255
256 <xsl:call-template name="anchor"/>
257 <xsl:apply-templates mode="titlepage.mode"/>
258 </div>
259</xsl:template>
260
261<xsl:template match="authorinitials" mode="titlepage.mode">
262 <span>
263 <xsl:apply-templates select="." mode="common.html.attributes"/>
264 <xsl:call-template name="id.attribute"/>
265 <xsl:apply-templates mode="titlepage.mode"/>
266 <br/>
267 </span>
268</xsl:template>
269
270<xsl:template match="bibliomisc" mode="titlepage.mode">
271 <xsl:apply-templates mode="titlepage.mode"/>
272</xsl:template>
273
274<xsl:template match="bibliomset" mode="titlepage.mode">
275 <xsl:apply-templates mode="titlepage.mode"/>
276</xsl:template>
277
278<xsl:template match="collab" mode="titlepage.mode">
279 <span>
280 <xsl:apply-templates select="." mode="common.html.attributes"/>
281 <xsl:call-template name="id.attribute"/>
282 <xsl:apply-templates mode="titlepage.mode"/>
283 <br/>
284 </span>
285</xsl:template>
286
287<xsl:template match="collabname" mode="titlepage.mode">
288 <span>
289 <xsl:apply-templates select="." mode="common.html.attributes"/>
290 <xsl:call-template name="id.attribute"/>
291 <xsl:apply-templates mode="titlepage.mode"/>
292 </span>
293</xsl:template>
294
295<xsl:template match="confgroup" mode="titlepage.mode">
296 <div>
297 <xsl:apply-templates select="." mode="common.html.attributes"/>
298 <xsl:call-template name="id.attribute"/>
299 <xsl:apply-templates mode="titlepage.mode"/>
300 </div>
301</xsl:template>
302
303<xsl:template match="confdates" mode="titlepage.mode">
304 <span>
305 <xsl:apply-templates select="." mode="common.html.attributes"/>
306 <xsl:call-template name="id.attribute"/>
307 <xsl:apply-templates mode="titlepage.mode"/>
308 <br/>
309 </span>
310</xsl:template>
311
312<xsl:template match="confsponsor" mode="titlepage.mode">
313 <span>
314 <xsl:apply-templates select="." mode="common.html.attributes"/>
315 <xsl:call-template name="id.attribute"/>
316 <xsl:apply-templates mode="titlepage.mode"/>
317 <br/>
318 </span>
319</xsl:template>
320
321<xsl:template match="conftitle" mode="titlepage.mode">
322 <span>
323 <xsl:apply-templates select="." mode="common.html.attributes"/>
324 <xsl:call-template name="id.attribute"/>
325 <xsl:apply-templates mode="titlepage.mode"/>
326 <br/>
327 </span>
328</xsl:template>
329
330<xsl:template match="confnum" mode="titlepage.mode">
331 <!-- suppress -->
332</xsl:template>
333
334<xsl:template match="contractnum" mode="titlepage.mode">
335 <span>
336 <xsl:apply-templates select="." mode="common.html.attributes"/>
337 <xsl:call-template name="id.attribute"/>
338 <xsl:apply-templates mode="titlepage.mode"/>
339 <br/>
340 </span>
341</xsl:template>
342
343<xsl:template match="contractsponsor" mode="titlepage.mode">
344 <span>
345 <xsl:apply-templates select="." mode="common.html.attributes"/>
346 <xsl:call-template name="id.attribute"/>
347 <xsl:apply-templates mode="titlepage.mode"/>
348 <br/>
349 </span>
350</xsl:template>
351
352<xsl:template match="contrib" mode="titlepage.mode">
353 <xsl:choose>
354 <xsl:when test="not($contrib.inline.enabled = 0)">
355 <span>
356 <xsl:apply-templates select="." mode="common.html.attributes"/>
357 <xsl:call-template name="id.attribute"/>
358 <xsl:apply-templates mode="titlepage.mode"/>
359 </span><xsl:text>&#160;</xsl:text>
360 </xsl:when>
361 <xsl:otherwise>
362 <div>
363 <xsl:apply-templates select="." mode="common.html.attributes"/>
364 <xsl:call-template name="id.attribute"/>
365 <p><xsl:apply-templates mode="titlepage.mode"/></p>
366 </div>
367 </xsl:otherwise>
368 </xsl:choose>
369</xsl:template>
370
371<xsl:template match="copyright" mode="titlepage.mode">
372
373 <xsl:if test="generate-id() = generate-id(//refentryinfo/copyright[1]) and ($stylesheet.result.type = 'html' or $stylesheet.result.type = 'xhtml')">
374 <h2>Copyright</h2>
375 </xsl:if>
376
377 <p>
378 <xsl:apply-templates select="." mode="common.html.attributes"/>
379 <xsl:call-template name="id.attribute"/>
380 <xsl:call-template name="gentext">
381 <xsl:with-param name="key" select="'Copyright'"/>
382 </xsl:call-template>
383 <xsl:call-template name="gentext.space"/>
384 <xsl:call-template name="dingbat">
385 <xsl:with-param name="dingbat">copyright</xsl:with-param>
386 </xsl:call-template>
387 <xsl:call-template name="gentext.space"/>
388 <xsl:call-template name="copyright.years">
389 <xsl:with-param name="years" select="year"/>
390 <xsl:with-param name="print.ranges" select="$make.year.ranges"/>
391 <xsl:with-param name="single.year.ranges" select="$make.single.year.ranges"/>
392 </xsl:call-template>
393 <xsl:call-template name="gentext.space"/>
394 <xsl:apply-templates select="holder" mode="titlepage.mode"/>
395 </p>
396</xsl:template>
397
398<xsl:template match="year" mode="titlepage.mode">
399 <xsl:choose>
400 <xsl:when test="$show.revisionflag != 0 and @revisionflag">
401 <span class="{@revisionflag}">
402 <xsl:apply-templates mode="titlepage.mode"/>
403 </span>
404 </xsl:when>
405 <xsl:otherwise>
406 <xsl:apply-templates mode="titlepage.mode"/>
407 </xsl:otherwise>
408 </xsl:choose>
409</xsl:template>
410
411<xsl:template match="holder" mode="titlepage.mode">
412 <xsl:choose>
413 <xsl:when test="$show.revisionflag != 0 and @revisionflag">
414 <span class="{@revisionflag}">
415 <xsl:apply-templates mode="titlepage.mode"/>
416 </span>
417 </xsl:when>
418 <xsl:otherwise>
419 <xsl:apply-templates mode="titlepage.mode"/>
420 </xsl:otherwise>
421 </xsl:choose>
422 <xsl:if test="position() &lt; last()">
423 <xsl:text>, </xsl:text>
424 </xsl:if>
425</xsl:template>
426
427<xsl:template match="corpauthor" mode="titlepage.mode">
428 <h3>
429 <xsl:apply-templates select="." mode="common.html.attributes"/>
430 <xsl:call-template name="id.attribute"/>
431 <xsl:apply-templates mode="titlepage.mode"/>
432 </h3>
433</xsl:template>
434
435<xsl:template match="corpcredit" mode="titlepage.mode">
436 <span>
437 <xsl:apply-templates select="." mode="common.html.attributes"/>
438 <xsl:call-template name="id.attribute"/>
439 <xsl:apply-templates mode="titlepage.mode"/>
440 <br/>
441 </span>
442</xsl:template>
443
444<xsl:template match="corpname" mode="titlepage.mode">
445 <span>
446 <xsl:apply-templates select="." mode="common.html.attributes"/>
447 <xsl:call-template name="id.attribute"/>
448 <xsl:apply-templates mode="titlepage.mode"/>
449 <br/>
450 </span>
451</xsl:template>
452
453<xsl:template match="date" mode="titlepage.mode">
454 <span>
455 <xsl:apply-templates select="." mode="common.html.attributes"/>
456 <xsl:call-template name="id.attribute"/>
457 <xsl:apply-templates mode="titlepage.mode"/>
458 <br/>
459 </span>
460</xsl:template>
461
462<xsl:template match="edition" mode="titlepage.mode">
463 <p>
464 <xsl:apply-templates select="." mode="common.html.attributes"/>
465 <xsl:call-template name="id.attribute"/>
466 <xsl:apply-templates mode="titlepage.mode"/>
467 <xsl:call-template name="gentext.space"/>
468 <xsl:call-template name="gentext">
469 <xsl:with-param name="key" select="'Edition'"/>
470 </xsl:call-template>
471 </p>
472</xsl:template>
473
474<xsl:template match="email" mode="titlepage.mode">
475 <!-- use the normal e-mail handling code -->
476 <xsl:apply-templates select="."/>
477</xsl:template>
478
479<xsl:template match="firstname" mode="titlepage.mode">
480 <span>
481 <xsl:apply-templates select="." mode="common.html.attributes"/>
482 <xsl:call-template name="id.attribute"/>
483 <xsl:apply-templates mode="titlepage.mode"/>
484 <br/>
485 </span>
486</xsl:template>
487
488<xsl:template match="graphic" mode="titlepage.mode">
489 <!-- use the normal graphic handling code -->
490 <xsl:apply-templates select="."/>
491</xsl:template>
492
493<xsl:template match="honorific" mode="titlepage.mode">
494 <span>
495 <xsl:apply-templates select="." mode="common.html.attributes"/>
496 <xsl:call-template name="id.attribute"/>
497 <xsl:apply-templates mode="titlepage.mode"/>
498 <br/>
499 </span>
500</xsl:template>
501
502<xsl:template match="isbn" mode="titlepage.mode">
503 <span>
504 <xsl:apply-templates select="." mode="common.html.attributes"/>
505 <xsl:call-template name="id.attribute"/>
506 <xsl:apply-templates mode="titlepage.mode"/>
507 <br/>
508 </span>
509</xsl:template>
510
511<xsl:template match="issn" mode="titlepage.mode">
512 <span>
513 <xsl:apply-templates select="." mode="common.html.attributes"/>
514 <xsl:call-template name="id.attribute"/>
515 <xsl:apply-templates mode="titlepage.mode"/>
516 <br/>
517 </span>
518</xsl:template>
519
520<xsl:template match="biblioid" mode="titlepage.mode">
521 <span>
522 <xsl:apply-templates select="." mode="common.html.attributes"/>
523 <xsl:call-template name="id.attribute"/>
524 <xsl:apply-templates mode="titlepage.mode"/>
525 <br/>
526 </span>
527</xsl:template>
528
529<xsl:template match="itermset" mode="titlepage.mode">
530</xsl:template>
531
532<xsl:template match="invpartnumber" mode="titlepage.mode">
533 <span>
534 <xsl:apply-templates select="." mode="common.html.attributes"/>
535 <xsl:call-template name="id.attribute"/>
536 <xsl:apply-templates mode="titlepage.mode"/>
537 <br/>
538 </span>
539</xsl:template>
540
541<xsl:template match="issuenum" mode="titlepage.mode">
542 <span>
543 <xsl:apply-templates select="." mode="common.html.attributes"/>
544 <xsl:call-template name="id.attribute"/>
545 <xsl:apply-templates mode="titlepage.mode"/>
546 <br/>
547 </span>
548</xsl:template>
549
550<xsl:template match="jobtitle" mode="titlepage.mode">
551 <span>
552 <xsl:apply-templates select="." mode="common.html.attributes"/>
553 <xsl:call-template name="id.attribute"/>
554 <xsl:apply-templates mode="titlepage.mode"/>
555 <br/>
556 </span>
557</xsl:template>
558
559<xsl:template match="keywordset" mode="titlepage.mode">
560</xsl:template>
561
562<xsl:template match="legalnotice" mode="titlepage.mode">
563 <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
564
565 <xsl:choose>
566 <xsl:when test="$generate.legalnotice.link != 0">
567
568 <!-- Compute name of legalnotice file -->
569 <xsl:variable name="file">
570 <xsl:call-template name="ln.or.rh.filename"/>
571 </xsl:variable>
572
573 <xsl:variable name="filename">
574 <xsl:call-template name="make-relative-filename">
575 <xsl:with-param name="base.dir" select="$chunk.base.dir"/>
576 <xsl:with-param name="base.name" select="$file"/>
577 </xsl:call-template>
578 </xsl:variable>
579
580 <xsl:variable name="title">
581 <xsl:apply-templates select="." mode="title.markup"/>
582 </xsl:variable>
583
584 <a href="{$file}">
585 <xsl:copy-of select="$title"/>
586 </a>
587
588 <xsl:call-template name="write.chunk">
589 <xsl:with-param name="filename" select="$filename"/>
590 <xsl:with-param name="quiet" select="$chunk.quietly"/>
591 <xsl:with-param name="content">
592 <xsl:call-template name="user.preroot"/>
593 <html>
594 <head>
595 <xsl:call-template name="system.head.content"/>
596 <xsl:call-template name="head.content"/>
597 <xsl:call-template name="user.head.content"/>
598 </head>
599 <body>
600 <xsl:call-template name="body.attributes"/>
601 <div>
602 <xsl:apply-templates select="." mode="common.html.attributes"/>
603 <xsl:call-template name="id.attribute">
604 <xsl:with-param name="conditional" select="0"/>
605 </xsl:call-template>
606 <xsl:apply-templates mode="titlepage.mode"/>
607 </div>
608 </body>
609 </html>
610 <xsl:value-of select="$chunk.append"/>
611 </xsl:with-param>
612 </xsl:call-template>
613 </xsl:when>
614 <xsl:otherwise>
615 <div>
616 <xsl:apply-templates select="." mode="common.html.attributes"/>
617 <xsl:call-template name="id.attribute">
618 <xsl:with-param name="conditional" select="0"/>
619 </xsl:call-template>
620 <xsl:call-template name="anchor">
621 <xsl:with-param name="conditional" select="0"/>
622 </xsl:call-template>
623 <xsl:apply-templates mode="titlepage.mode"/>
624 </div>
625 </xsl:otherwise>
626 </xsl:choose>
627</xsl:template>
628
629<xsl:template match="legalnotice/title" mode="titlepage.mode">
630 <p class="legalnotice-title"><strong xmlns:xslo="http://www.w3.org/1999/XSL/Transform"><xsl:apply-templates/></strong></p>
631</xsl:template>
632
633<xsl:template match="lineage" mode="titlepage.mode">
634 <span>
635 <xsl:apply-templates select="." mode="common.html.attributes"/>
636 <xsl:call-template name="id.attribute"/>
637 <xsl:apply-templates mode="titlepage.mode"/>
638 <br/>
639 </span>
640</xsl:template>
641
642<xsl:template match="modespec" mode="titlepage.mode">
643</xsl:template>
644
645<xsl:template match="orgdiv" mode="titlepage.mode">
646 <xsl:if test="preceding-sibling::*[1][self::orgname]">
647 <xsl:text> </xsl:text>
648 </xsl:if>
649 <span>
650 <xsl:apply-templates select="." mode="common.html.attributes"/>
651 <xsl:call-template name="id.attribute"/>
652 <xsl:apply-templates mode="titlepage.mode"/>
653 <br/>
654 </span>
655</xsl:template>
656
657<xsl:template match="orgname" mode="titlepage.mode">
658 <span>
659 <xsl:apply-templates select="." mode="common.html.attributes"/>
660 <xsl:call-template name="id.attribute"/>
661 <xsl:apply-templates mode="titlepage.mode"/>
662 <br/>
663 </span>
664</xsl:template>
665
666<xsl:template match="othercredit" mode="titlepage.mode">
667<xsl:choose>
668 <xsl:when test="not($othercredit.like.author.enabled = 0)">
669 <xsl:variable name="contrib" select="string(contrib)"/>
670 <xsl:choose>
671 <xsl:when test="contrib">
672 <xsl:if test="not(preceding-sibling::othercredit[string(contrib)=$contrib])">
673 <xsl:call-template name="paragraph">
674 <xsl:with-param name="class" select="local-name(.)"/>
675 <xsl:with-param name="content">
676 <xsl:apply-templates mode="titlepage.mode" select="contrib"/>
677 <xsl:text>: </xsl:text>
678 <xsl:call-template name="person.name"/>
679 <xsl:apply-templates mode="titlepage.mode" select="affiliation"/>
680 <xsl:apply-templates select="following-sibling::othercredit[string(contrib)=$contrib]" mode="titlepage.othercredits"/>
681 </xsl:with-param>
682 </xsl:call-template>
683 </xsl:if>
684 </xsl:when>
685 <xsl:otherwise>
686 <xsl:call-template name="paragraph">
687 <xsl:with-param name="class" select="local-name(.)"/>
688 <xsl:with-param name="content">
689 <xsl:call-template name="person.name"/>
690 </xsl:with-param>
691 </xsl:call-template>
692 <xsl:apply-templates mode="titlepage.mode" select="affiliation"/>
693 </xsl:otherwise>
694 </xsl:choose>
695 </xsl:when>
696 <xsl:otherwise>
697 <xsl:call-template name="credits.div"/>
698 </xsl:otherwise>
699</xsl:choose>
700</xsl:template>
701
702<xsl:template match="othercredit" mode="titlepage.othercredits">
703 <xsl:text>, </xsl:text>
704 <xsl:call-template name="person.name"/>
705</xsl:template>
706
707<xsl:template match="othername" mode="titlepage.mode">
708 <span>
709 <xsl:apply-templates select="." mode="common.html.attributes"/>
710 <xsl:call-template name="id.attribute"/>
711 <xsl:apply-templates mode="titlepage.mode"/>
712 <br/>
713 </span>
714</xsl:template>
715
716<xsl:template match="pagenums" mode="titlepage.mode">
717 <span>
718 <xsl:apply-templates select="." mode="common.html.attributes"/>
719 <xsl:call-template name="id.attribute"/>
720 <xsl:apply-templates mode="titlepage.mode"/>
721 <br/>
722 </span>
723</xsl:template>
724
725<xsl:template match="printhistory" mode="titlepage.mode">
726 <div>
727 <xsl:apply-templates select="." mode="common.html.attributes"/>
728 <xsl:call-template name="id.attribute"/>
729 <xsl:apply-templates mode="titlepage.mode"/>
730 </div>
731</xsl:template>
732
733<xsl:template match="productname" mode="titlepage.mode">
734 <span>
735 <xsl:apply-templates select="." mode="common.html.attributes"/>
736 <xsl:call-template name="id.attribute"/>
737 <xsl:apply-templates mode="titlepage.mode"/>
738 <br/>
739 </span>
740</xsl:template>
741
742<xsl:template match="productnumber" mode="titlepage.mode">
743 <span>
744 <xsl:apply-templates select="." mode="common.html.attributes"/>
745 <xsl:call-template name="id.attribute"/>
746 <xsl:apply-templates mode="titlepage.mode"/>
747 <br/>
748 </span>
749</xsl:template>
750
751<xsl:template match="pubdate" mode="titlepage.mode">
752 <xsl:call-template name="paragraph">
753 <xsl:with-param name="class" select="local-name(.)"/>
754 <xsl:with-param name="content">
755 <xsl:apply-templates mode="titlepage.mode"/>
756 </xsl:with-param>
757 </xsl:call-template>
758</xsl:template>
759
760<xsl:template match="publisher" mode="titlepage.mode">
761 <xsl:call-template name="paragraph">
762 <xsl:with-param name="class" select="local-name(.)"/>
763 <xsl:with-param name="content">
764 <xsl:apply-templates mode="titlepage.mode"/>
765 </xsl:with-param>
766 </xsl:call-template>
767</xsl:template>
768
769<xsl:template match="publishername" mode="titlepage.mode">
770 <span>
771 <xsl:apply-templates select="." mode="common.html.attributes"/>
772 <xsl:call-template name="id.attribute"/>
773 <xsl:apply-templates mode="titlepage.mode"/>
774 <br/>
775 </span>
776</xsl:template>
777
778<xsl:template match="pubsnumber" mode="titlepage.mode">
779 <span>
780 <xsl:apply-templates select="." mode="common.html.attributes"/>
781 <xsl:call-template name="id.attribute"/>
782 <xsl:apply-templates mode="titlepage.mode"/>
783 <br/>
784 </span>
785</xsl:template>
786
787<xsl:template match="releaseinfo" mode="titlepage.mode">
788 <xsl:call-template name="paragraph">
789 <xsl:with-param name="class" select="local-name(.)"/>
790 <xsl:with-param name="content">
791 <xsl:apply-templates mode="titlepage.mode"/>
792 </xsl:with-param>
793 </xsl:call-template>
794</xsl:template>
795
796<xsl:template match="revhistory" mode="titlepage.mode">
797 <xsl:variable name="numcols">
798 <xsl:choose>
799 <xsl:when test=".//authorinitials|.//author">3</xsl:when>
800 <xsl:otherwise>2</xsl:otherwise>
801 </xsl:choose>
802 </xsl:variable>
803
804 <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
805
806 <xsl:variable name="title">
807 <xsl:call-template name="gentext">
808 <xsl:with-param name="key">RevHistory</xsl:with-param>
809 </xsl:call-template>
810 </xsl:variable>
811
812 <xsl:variable name="contents">
813 <div>
814 <xsl:apply-templates select="." mode="common.html.attributes"/>
815 <xsl:call-template name="id.attribute"/>
816 <table>
817 <xsl:if test="$css.decoration != 0">
818 <xsl:attribute name="style">
819 <xsl:text>border-style:solid; width:100%;</xsl:text>
820 </xsl:attribute>
821 </xsl:if>
822 <!-- include summary attribute if not HTML5 -->
823 <xsl:if test="$div.element != 'section'">
824 <xsl:attribute name="summary">
825 <xsl:call-template name="gentext">
826 <xsl:with-param name="key">revhistory</xsl:with-param>
827 </xsl:call-template>
828 </xsl:attribute>
829 </xsl:if>
830 <tr>
831 <th align="{$direction.align.start}" valign="top" colspan="{$numcols}">
832 <strong xmlns:xslo="http://www.w3.org/1999/XSL/Transform">
833 <xsl:call-template name="gentext">
834 <xsl:with-param name="key" select="'RevHistory'"/>
835 </xsl:call-template>
836 </strong>
837 </th>
838 </tr>
839 <xsl:apply-templates mode="titlepage.mode">
840 <xsl:with-param name="numcols" select="$numcols"/>
841 </xsl:apply-templates>
842 </table>
843 </div>
844 </xsl:variable>
845
846 <xsl:choose>
847 <xsl:when test="$generate.revhistory.link != 0">
848
849 <!-- Compute name of revhistory file -->
850 <xsl:variable name="file">
851 <xsl:call-template name="ln.or.rh.filename">
852 <xsl:with-param name="is.ln" select="false()"/>
853 </xsl:call-template>
854 </xsl:variable>
855
856 <xsl:variable name="filename">
857 <xsl:call-template name="make-relative-filename">
858 <xsl:with-param name="base.dir" select="$chunk.base.dir"/>
859 <xsl:with-param name="base.name" select="$file"/>
860 </xsl:call-template>
861 </xsl:variable>
862
863 <a href="{$file}">
864 <xsl:copy-of select="$title"/>
865 </a>
866
867 <xsl:call-template name="write.chunk">
868 <xsl:with-param name="filename" select="$filename"/>
869 <xsl:with-param name="quiet" select="$chunk.quietly"/>
870 <xsl:with-param name="content">
871 <xsl:call-template name="user.preroot"/>
872 <html>
873 <head>
874 <xsl:call-template name="system.head.content"/>
875 <xsl:call-template name="head.content">
876 <xsl:with-param name="title">
877 <xsl:value-of select="$title"/>
878 <xsl:if test="../../title">
879 <xsl:value-of select="concat(' (', ../../title, ')')"/>
880 </xsl:if>
881 </xsl:with-param>
882 </xsl:call-template>
883 <xsl:call-template name="user.head.content"/>
884 </head>
885 <body>
886 <xsl:call-template name="body.attributes"/>
887 <xsl:copy-of select="$contents"/>
888 </body>
889 </html>
890 <xsl:text>
891</xsl:text>
892 </xsl:with-param>
893 </xsl:call-template>
894 </xsl:when>
895 <xsl:otherwise>
896 <xsl:copy-of select="$contents"/>
897 </xsl:otherwise>
898 </xsl:choose>
899</xsl:template>
900
901<xsl:template match="revhistory/revision" mode="titlepage.mode">
902 <xsl:param name="numcols" select="'3'"/>
903 <xsl:variable name="revnumber" select="revnumber"/>
904 <xsl:variable name="revdate" select="date"/>
905 <xsl:variable name="revauthor" select="authorinitials|author"/>
906 <xsl:variable name="revremark" select="revremark|revdescription"/>
907 <tr>
908 <td align="{$direction.align.start}">
909 <xsl:if test="$revnumber">
910 <xsl:call-template name="gentext">
911 <xsl:with-param name="key" select="'Revision'"/>
912 </xsl:call-template>
913 <xsl:call-template name="gentext.space"/>
914 <xsl:apply-templates select="$revnumber[1]" mode="titlepage.mode"/>
915 </xsl:if>
916 </td>
917 <td align="{$direction.align.start}">
918 <xsl:apply-templates select="$revdate[1]" mode="titlepage.mode"/>
919 </td>
920 <xsl:choose>
921 <xsl:when test="$revauthor">
922 <td align="{$direction.align.start}">
923 <xsl:for-each select="$revauthor">
924 <xsl:apply-templates select="." mode="titlepage.mode"/>
925 <xsl:if test="position() != last()">
926 <xsl:text>, </xsl:text>
927 </xsl:if>
928 </xsl:for-each>
929 </td>
930 </xsl:when>
931 <xsl:when test="$numcols &gt; 2">
932 <td>&#160;</td>
933 </xsl:when>
934 <xsl:otherwise/>
935 </xsl:choose>
936 </tr>
937 <xsl:if test="$revremark">
938 <tr>
939 <td align="{$direction.align.start}" colspan="{$numcols}">
940 <xsl:apply-templates select="$revremark[1]" mode="titlepage.mode"/>
941 </td>
942 </tr>
943 </xsl:if>
944</xsl:template>
945
946<xsl:template match="revision/revnumber" mode="titlepage.mode">
947 <xsl:apply-templates mode="titlepage.mode"/>
948</xsl:template>
949
950<xsl:template match="revision/date" mode="titlepage.mode">
951 <xsl:apply-templates mode="titlepage.mode"/>
952</xsl:template>
953
954<xsl:template match="revision/authorinitials" mode="titlepage.mode">
955 <xsl:apply-templates mode="titlepage.mode"/>
956</xsl:template>
957
958<xsl:template match="revision/author" mode="titlepage.mode">
959 <xsl:apply-templates mode="titlepage.mode"/>
960</xsl:template>
961
962<xsl:template match="revision/revremark" mode="titlepage.mode">
963 <xsl:apply-templates mode="titlepage.mode"/>
964</xsl:template>
965
966<xsl:template match="revision/revdescription" mode="titlepage.mode">
967 <xsl:apply-templates mode="titlepage.mode"/>
968</xsl:template>
969
970<xsl:template match="seriesvolnums" mode="titlepage.mode">
971 <span>
972 <xsl:apply-templates select="." mode="common.html.attributes"/>
973 <xsl:call-template name="id.attribute"/>
974 <xsl:apply-templates mode="titlepage.mode"/>
975 <br/>
976 </span>
977</xsl:template>
978
979<xsl:template match="shortaffil" mode="titlepage.mode">
980 <span>
981 <xsl:apply-templates select="." mode="common.html.attributes"/>
982 <xsl:call-template name="id.attribute"/>
983 <xsl:apply-templates mode="titlepage.mode"/>
984 <br/>
985 </span>
986</xsl:template>
987
988<xsl:template match="subjectset" mode="titlepage.mode">
989</xsl:template>
990
991<xsl:template match="subtitle" mode="titlepage.mode">
992 <h2>
993 <xsl:apply-templates select="." mode="common.html.attributes"/>
994 <xsl:call-template name="id.attribute"/>
995 <xsl:apply-templates mode="titlepage.mode"/>
996 </h2>
997</xsl:template>
998
999<xsl:template match="surname" mode="titlepage.mode">
1000 <span>
1001 <xsl:apply-templates select="." mode="common.html.attributes"/>
1002 <xsl:call-template name="id.attribute"/>
1003 <xsl:apply-templates mode="titlepage.mode"/>
1004 <br/>
1005 </span>
1006</xsl:template>
1007
1008<xsl:template match="title" mode="titlepage.mode">
1009 <xsl:variable name="id">
1010 <xsl:choose>
1011 <!-- if title is in an *info wrapper, get the grandparent -->
1012 <xsl:when test="contains(local-name(..), 'info')">
1013 <xsl:call-template name="object.id">
1014 <xsl:with-param name="object" select="../.."/>
1015 </xsl:call-template>
1016 </xsl:when>
1017 <xsl:otherwise>
1018 <xsl:call-template name="object.id">
1019 <xsl:with-param name="object" select=".."/>
1020 </xsl:call-template>
1021 </xsl:otherwise>
1022 </xsl:choose>
1023 </xsl:variable>
1024
1025 <h1>
1026 <xsl:apply-templates select="." mode="common.html.attributes"/>
1027 <xsl:choose>
1028 <xsl:when test="$generate.id.attributes = 0">
1029 <a id="{$id}"/>
1030 </xsl:when>
1031 <xsl:otherwise>
1032 </xsl:otherwise>
1033 </xsl:choose>
1034 <xsl:choose>
1035 <xsl:when test="$show.revisionflag != 0 and @revisionflag">
1036 <span class="{@revisionflag}">
1037 <xsl:apply-templates mode="titlepage.mode"/>
1038 </span>
1039 </xsl:when>
1040 <xsl:otherwise>
1041 <xsl:apply-templates mode="titlepage.mode"/>
1042 </xsl:otherwise>
1043 </xsl:choose>
1044 </h1>
1045</xsl:template>
1046
1047<xsl:template match="titleabbrev" mode="titlepage.mode">
1048 <!-- nop; title abbreviations don't belong on the title page! -->
1049</xsl:template>
1050
1051<xsl:template match="volumenum" mode="titlepage.mode">
1052 <span>
1053 <xsl:apply-templates select="." mode="common.html.attributes"/>
1054 <xsl:call-template name="id.attribute"/>
1055 <xsl:apply-templates mode="titlepage.mode"/>
1056 <br/>
1057 </span>
1058</xsl:template>
1059
1060<!-- This template computes the filename for legalnotice and revhistory chunks -->
1061<xsl:template name="ln.or.rh.filename">
1062 <xsl:param name="node" select="."/>
1063 <xsl:param name="is.ln" select="true()"/>
1064
1065 <xsl:variable name="dbhtml-filename">
1066 <xsl:call-template name="pi.dbhtml_filename">
1067 <xsl:with-param name="node" select="$node"/>
1068 </xsl:call-template>
1069 </xsl:variable>
1070
1071 <xsl:choose>
1072 <!-- 1. If there is a dbhtml_filename PI, use that -->
1073 <xsl:when test="$dbhtml-filename != ''">
1074 <xsl:value-of select="$dbhtml-filename"/>
1075 </xsl:when>
1076 <xsl:when test="($node/@id or $node/@xml:id) and not($use.id.as.filename = 0)">
1077 <!-- * 2. If this legalnotice/revhistory has an ID, then go ahead and use -->
1078 <!-- * just the value of that ID as the basename for the file -->
1079 <!-- * (that is, without prepending an "ln-" or "rh-" to it) -->
1080 <xsl:value-of select="($node/@id|$node/@xml:id)[1]"/>
1081 <xsl:value-of select="$html.ext"/>
1082 </xsl:when>
1083 <xsl:when test="not ($node/@id or $node/@xml:id) or $use.id.as.filename = 0">
1084 <!-- * 3. Otherwise, if this legalnotice/revhistory does not have an ID, or -->
1085 <!-- * if $use.id.as.filename = 0 -->
1086 <!-- * then we generate an ID... -->
1087 <xsl:variable name="id">
1088 <xsl:value-of select="generate-id($node)"/>
1089 </xsl:variable>
1090 <!-- * ...and then we take that generated ID, prepend a -->
1091 <!-- * prefix to it, and use that as the basename for the file -->
1092 <xsl:choose>
1093 <xsl:when test="$is.ln">
1094 <xsl:value-of select="concat('ln-',$id,$html.ext)"/>
1095 </xsl:when>
1096 <xsl:otherwise>
1097 <xsl:value-of select="concat('rh-',$id,$html.ext)"/>
1098 </xsl:otherwise>
1099 </xsl:choose>
1100 </xsl:when>
1101 </xsl:choose>
1102</xsl:template>
1103
1104<!-- ==================================================================== -->
1105
1106</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.