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