- Timestamp:
- 10/08/2013 08:03:29 PM (11 years ago)
- Branches:
- 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, 12.2, 12.2-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/loongarch-12.2, xry111/mips64el, xry111/multilib, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 58675ce
- Parents:
- 09a35dd
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
stylesheets/lfs-xsl/docbook-xsl-1.78.1/xhtml-1_1/titlepage.xsl
r09a35dd r15c7d39 5 5 6 6 <!-- ******************************************************************** 7 $Id $7 $Id: titlepage.xsl 9360 2012-05-12 23:39:14Z bobstayton $ 8 8 ******************************************************************** 9 9 … … 40 40 <xsl:attribute-set name="dedication.titlepage.verso.style"/> 41 41 42 <xsl:attribute-set name="acknowledgements.titlepage.recto.style"/> 43 <xsl:attribute-set name="acknowledgements.titlepage.verso.style"/> 44 42 45 <xsl:attribute-set name="preface.titlepage.recto.style"/> 43 46 <xsl:attribute-set name="preface.titlepage.verso.style"/> … … 60 63 <xsl:attribute-set name="setindex.titlepage.recto.style"/> 61 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"/> 62 71 63 72 <xsl:attribute-set name="section.titlepage.recto.style"/> … … 109 118 <xsl:template match="abbrev" mode="titlepage.mode"> 110 119 <span> 111 <xsl:apply-templates select="." mode="class.attribute"/> 120 <xsl:apply-templates select="." mode="common.html.attributes"/> 121 <xsl:call-template name="id.attribute"/> 112 122 <xsl:apply-templates mode="titlepage.mode"/> 113 123 <br/> … … 117 127 <xsl:template match="abstract" mode="titlepage.mode"> 118 128 <div> 119 <xsl:apply-templates select="." mode="class.attribute"/> 129 <xsl:apply-templates select="." mode="common.html.attributes"/> 130 <xsl:call-template name="id.attribute"/> 120 131 <xsl:call-template name="anchor"/> 121 132 <xsl:if test="$abstract.notitle.enabled = 0"> … … 144 155 <xsl:when test="$suppress-numbers = '0' and @linenumbering = 'numbered' and $use.extensions != '0' and $linenumbering.extension != '0'"> 145 156 <div> 146 <xsl:apply-templates select="." mode="c lass.attribute"/>157 <xsl:apply-templates select="." mode="common.html.attributes"/> 147 158 <xsl:call-template name="paragraph"> 148 159 <xsl:with-param name="content"> … … 157 168 <xsl:otherwise> 158 169 <div> 159 <xsl:apply-templates select="." mode="c lass.attribute"/>170 <xsl:apply-templates select="." mode="common.html.attributes"/> 160 171 <xsl:call-template name="paragraph"> 161 172 <xsl:with-param name="content"> … … 172 183 <xsl:template match="affiliation" mode="titlepage.mode"> 173 184 <div> 174 <xsl:apply-templates select="." mode="class.attribute"/> 185 <xsl:apply-templates select="." mode="common.html.attributes"/> 186 <xsl:call-template name="id.attribute"/> 175 187 <xsl:apply-templates mode="titlepage.mode"/> 176 188 </div> … … 179 191 <xsl:template match="artpagenums" mode="titlepage.mode"> 180 192 <span> 181 <xsl:apply-templates select="." mode="class.attribute"/> 193 <xsl:apply-templates select="." mode="common.html.attributes"/> 194 <xsl:call-template name="id.attribute"/> 182 195 <xsl:apply-templates mode="titlepage.mode"/> 183 196 <br/> … … 191 204 <xsl:template name="credits.div"> 192 205 <div> 193 <xsl:apply-templates select="." mode="class.attribute"/> 206 <xsl:apply-templates select="." mode="common.html.attributes"/> 207 <xsl:call-template name="id.attribute"/> 194 208 <xsl:if test="self::editor[position()=1] and not($editedby.enabled = 0)"> 195 209 <h4 class="editedby"><xsl:call-template name="gentext.edited.by"/></h4> 196 210 </xsl:if> 197 211 <h3> 198 <xsl:apply-templates select="." mode="c lass.attribute"/>212 <xsl:apply-templates select="." mode="common.html.attributes"/> 199 213 <xsl:choose> 200 214 <xsl:when test="orgname"> … … 226 240 <xsl:template match="authorblurb|personblurb" mode="titlepage.mode"> 227 241 <div> 228 <xsl:apply-templates select="." mode="class.attribute"/> 242 <xsl:apply-templates select="." mode="common.html.attributes"/> 243 <xsl:call-template name="id.attribute"/> 229 244 <xsl:apply-templates mode="titlepage.mode"/> 230 245 </div> … … 233 248 <xsl:template match="authorgroup" mode="titlepage.mode"> 234 249 <div> 235 <xsl:apply-templates select="." mode="class.attribute"/> 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 236 256 <xsl:call-template name="anchor"/> 237 257 <xsl:apply-templates mode="titlepage.mode"/> … … 241 261 <xsl:template match="authorinitials" mode="titlepage.mode"> 242 262 <span> 243 <xsl:apply-templates select="." mode="class.attribute"/> 263 <xsl:apply-templates select="." mode="common.html.attributes"/> 264 <xsl:call-template name="id.attribute"/> 244 265 <xsl:apply-templates mode="titlepage.mode"/> 245 266 <br/> … … 257 278 <xsl:template match="collab" mode="titlepage.mode"> 258 279 <span> 259 <xsl:apply-templates select="." mode="class.attribute"/> 280 <xsl:apply-templates select="." mode="common.html.attributes"/> 281 <xsl:call-template name="id.attribute"/> 260 282 <xsl:apply-templates mode="titlepage.mode"/> 261 283 <br/> … … 265 287 <xsl:template match="collabname" mode="titlepage.mode"> 266 288 <span> 267 <xsl:apply-templates select="." mode="class.attribute"/> 289 <xsl:apply-templates select="." mode="common.html.attributes"/> 290 <xsl:call-template name="id.attribute"/> 268 291 <xsl:apply-templates mode="titlepage.mode"/> 269 292 </span> … … 272 295 <xsl:template match="confgroup" mode="titlepage.mode"> 273 296 <div> 274 <xsl:apply-templates select="." mode="class.attribute"/> 297 <xsl:apply-templates select="." mode="common.html.attributes"/> 298 <xsl:call-template name="id.attribute"/> 275 299 <xsl:apply-templates mode="titlepage.mode"/> 276 300 </div> … … 279 303 <xsl:template match="confdates" mode="titlepage.mode"> 280 304 <span> 281 <xsl:apply-templates select="." mode="class.attribute"/> 305 <xsl:apply-templates select="." mode="common.html.attributes"/> 306 <xsl:call-template name="id.attribute"/> 282 307 <xsl:apply-templates mode="titlepage.mode"/> 283 308 <br/> … … 287 312 <xsl:template match="confsponsor" mode="titlepage.mode"> 288 313 <span> 289 <xsl:apply-templates select="." mode="class.attribute"/> 314 <xsl:apply-templates select="." mode="common.html.attributes"/> 315 <xsl:call-template name="id.attribute"/> 290 316 <xsl:apply-templates mode="titlepage.mode"/> 291 317 <br/> … … 295 321 <xsl:template match="conftitle" mode="titlepage.mode"> 296 322 <span> 297 <xsl:apply-templates select="." mode="class.attribute"/> 323 <xsl:apply-templates select="." mode="common.html.attributes"/> 324 <xsl:call-template name="id.attribute"/> 298 325 <xsl:apply-templates mode="titlepage.mode"/> 299 326 <br/> … … 307 334 <xsl:template match="contractnum" mode="titlepage.mode"> 308 335 <span> 309 <xsl:apply-templates select="." mode="class.attribute"/> 336 <xsl:apply-templates select="." mode="common.html.attributes"/> 337 <xsl:call-template name="id.attribute"/> 310 338 <xsl:apply-templates mode="titlepage.mode"/> 311 339 <br/> … … 315 343 <xsl:template match="contractsponsor" mode="titlepage.mode"> 316 344 <span> 317 <xsl:apply-templates select="." mode="class.attribute"/> 345 <xsl:apply-templates select="." mode="common.html.attributes"/> 346 <xsl:call-template name="id.attribute"/> 318 347 <xsl:apply-templates mode="titlepage.mode"/> 319 348 <br/> … … 325 354 <xsl:when test="not($contrib.inline.enabled = 0)"> 326 355 <span> 327 <xsl:apply-templates select="." mode="class.attribute"/> 356 <xsl:apply-templates select="." mode="common.html.attributes"/> 357 <xsl:call-template name="id.attribute"/> 328 358 <xsl:apply-templates mode="titlepage.mode"/> 329 359 </span><xsl:text> </xsl:text> … … 331 361 <xsl:otherwise> 332 362 <div> 333 <xsl:apply-templates select="." mode="class.attribute"/> 363 <xsl:apply-templates select="." mode="common.html.attributes"/> 364 <xsl:call-template name="id.attribute"/> 334 365 <p><xsl:apply-templates mode="titlepage.mode"/></p> 335 366 </div> … … 339 370 340 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 341 377 <p> 342 <xsl:apply-templates select="." mode="class.attribute"/> 378 <xsl:apply-templates select="." mode="common.html.attributes"/> 379 <xsl:call-template name="id.attribute"/> 343 380 <xsl:call-template name="gentext"> 344 381 <xsl:with-param name="key" select="'Copyright'"/> … … 390 427 <xsl:template match="corpauthor" mode="titlepage.mode"> 391 428 <h3> 392 <xsl:apply-templates select="." mode="class.attribute"/> 429 <xsl:apply-templates select="." mode="common.html.attributes"/> 430 <xsl:call-template name="id.attribute"/> 393 431 <xsl:apply-templates mode="titlepage.mode"/> 394 432 </h3> … … 397 435 <xsl:template match="corpcredit" mode="titlepage.mode"> 398 436 <span> 399 <xsl:apply-templates select="." mode="class.attribute"/> 437 <xsl:apply-templates select="." mode="common.html.attributes"/> 438 <xsl:call-template name="id.attribute"/> 400 439 <xsl:apply-templates mode="titlepage.mode"/> 401 440 <br/> … … 405 444 <xsl:template match="corpname" mode="titlepage.mode"> 406 445 <span> 407 <xsl:apply-templates select="." mode="class.attribute"/> 446 <xsl:apply-templates select="." mode="common.html.attributes"/> 447 <xsl:call-template name="id.attribute"/> 408 448 <xsl:apply-templates mode="titlepage.mode"/> 409 449 <br/> … … 413 453 <xsl:template match="date" mode="titlepage.mode"> 414 454 <span> 415 <xsl:apply-templates select="." mode="class.attribute"/> 455 <xsl:apply-templates select="." mode="common.html.attributes"/> 456 <xsl:call-template name="id.attribute"/> 416 457 <xsl:apply-templates mode="titlepage.mode"/> 417 458 <br/> … … 421 462 <xsl:template match="edition" mode="titlepage.mode"> 422 463 <p> 423 <xsl:apply-templates select="." mode="class.attribute"/> 464 <xsl:apply-templates select="." mode="common.html.attributes"/> 465 <xsl:call-template name="id.attribute"/> 424 466 <xsl:apply-templates mode="titlepage.mode"/> 425 467 <xsl:call-template name="gentext.space"/> … … 437 479 <xsl:template match="firstname" mode="titlepage.mode"> 438 480 <span> 439 <xsl:apply-templates select="." mode="class.attribute"/> 481 <xsl:apply-templates select="." mode="common.html.attributes"/> 482 <xsl:call-template name="id.attribute"/> 440 483 <xsl:apply-templates mode="titlepage.mode"/> 441 484 <br/> … … 450 493 <xsl:template match="honorific" mode="titlepage.mode"> 451 494 <span> 452 <xsl:apply-templates select="." mode="class.attribute"/> 495 <xsl:apply-templates select="." mode="common.html.attributes"/> 496 <xsl:call-template name="id.attribute"/> 453 497 <xsl:apply-templates mode="titlepage.mode"/> 454 498 <br/> … … 458 502 <xsl:template match="isbn" mode="titlepage.mode"> 459 503 <span> 460 <xsl:apply-templates select="." mode="class.attribute"/> 504 <xsl:apply-templates select="." mode="common.html.attributes"/> 505 <xsl:call-template name="id.attribute"/> 461 506 <xsl:apply-templates mode="titlepage.mode"/> 462 507 <br/> … … 466 511 <xsl:template match="issn" mode="titlepage.mode"> 467 512 <span> 468 <xsl:apply-templates select="." mode="class.attribute"/> 513 <xsl:apply-templates select="." mode="common.html.attributes"/> 514 <xsl:call-template name="id.attribute"/> 469 515 <xsl:apply-templates mode="titlepage.mode"/> 470 516 <br/> … … 474 520 <xsl:template match="biblioid" mode="titlepage.mode"> 475 521 <span> 476 <xsl:apply-templates select="." mode="class.attribute"/> 522 <xsl:apply-templates select="." mode="common.html.attributes"/> 523 <xsl:call-template name="id.attribute"/> 477 524 <xsl:apply-templates mode="titlepage.mode"/> 478 525 <br/> … … 485 532 <xsl:template match="invpartnumber" mode="titlepage.mode"> 486 533 <span> 487 <xsl:apply-templates select="." mode="class.attribute"/> 534 <xsl:apply-templates select="." mode="common.html.attributes"/> 535 <xsl:call-template name="id.attribute"/> 488 536 <xsl:apply-templates mode="titlepage.mode"/> 489 537 <br/> … … 493 541 <xsl:template match="issuenum" mode="titlepage.mode"> 494 542 <span> 495 <xsl:apply-templates select="." mode="class.attribute"/> 543 <xsl:apply-templates select="." mode="common.html.attributes"/> 544 <xsl:call-template name="id.attribute"/> 496 545 <xsl:apply-templates mode="titlepage.mode"/> 497 546 <br/> … … 501 550 <xsl:template match="jobtitle" mode="titlepage.mode"> 502 551 <span> 503 <xsl:apply-templates select="." mode="class.attribute"/> 552 <xsl:apply-templates select="." mode="common.html.attributes"/> 553 <xsl:call-template name="id.attribute"/> 504 554 <xsl:apply-templates mode="titlepage.mode"/> 505 555 <br/> … … 512 562 <xsl:template match="legalnotice" mode="titlepage.mode"> 513 563 <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable> 564 514 565 <xsl:choose> 515 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 516 573 <xsl:variable name="filename"> 517 574 <xsl:call-template name="make-relative-filename"> 518 <xsl:with-param name="base.dir" select="$ base.dir"/>519 <xsl:with-param name="base.name" select=" concat($id,$html.ext)"/>575 <xsl:with-param name="base.dir" select="$chunk.base.dir"/> 576 <xsl:with-param name="base.name" select="$file"/> 520 577 </xsl:call-template> 521 578 </xsl:variable> … … 525 582 </xsl:variable> 526 583 527 <xsl:variable name="href"> 528 <xsl:apply-templates mode="chunk-filename" select="."/> 529 </xsl:variable> 530 531 <a href="{$href}"> 584 <a href="{$file}"> 532 585 <xsl:copy-of select="$title"/> 533 586 </a> … … 547 600 <xsl:call-template name="body.attributes"/> 548 601 <div> 549 <xsl:apply-templates select="." mode="class.attribute"/> 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> 550 606 <xsl:apply-templates mode="titlepage.mode"/> 551 607 </div> … … 558 614 <xsl:otherwise> 559 615 <div> 560 <xsl:apply-templates select="." mode="class.attribute"/> 561 <a id="{$id}"/> 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> 562 623 <xsl:apply-templates mode="titlepage.mode"/> 563 624 </div> … … 567 628 568 629 <xsl:template match="legalnotice/title" mode="titlepage.mode"> 569 <p class="legalnotice-title">< b><xsl:apply-templates/></b></p>630 <p class="legalnotice-title"><strong xmlns:xslo="http://www.w3.org/1999/XSL/Transform"><xsl:apply-templates/></strong></p> 570 631 </xsl:template> 571 632 572 633 <xsl:template match="lineage" mode="titlepage.mode"> 573 634 <span> 574 <xsl:apply-templates select="." mode="class.attribute"/> 635 <xsl:apply-templates select="." mode="common.html.attributes"/> 636 <xsl:call-template name="id.attribute"/> 575 637 <xsl:apply-templates mode="titlepage.mode"/> 576 638 <br/> … … 586 648 </xsl:if> 587 649 <span> 588 <xsl:apply-templates select="." mode="class.attribute"/> 650 <xsl:apply-templates select="." mode="common.html.attributes"/> 651 <xsl:call-template name="id.attribute"/> 589 652 <xsl:apply-templates mode="titlepage.mode"/> 590 653 <br/> … … 594 657 <xsl:template match="orgname" mode="titlepage.mode"> 595 658 <span> 596 <xsl:apply-templates select="." mode="class.attribute"/> 659 <xsl:apply-templates select="." mode="common.html.attributes"/> 660 <xsl:call-template name="id.attribute"/> 597 661 <xsl:apply-templates mode="titlepage.mode"/> 598 662 <br/> … … 643 707 <xsl:template match="othername" mode="titlepage.mode"> 644 708 <span> 645 <xsl:apply-templates select="." mode="class.attribute"/> 709 <xsl:apply-templates select="." mode="common.html.attributes"/> 710 <xsl:call-template name="id.attribute"/> 646 711 <xsl:apply-templates mode="titlepage.mode"/> 647 712 <br/> … … 651 716 <xsl:template match="pagenums" mode="titlepage.mode"> 652 717 <span> 653 <xsl:apply-templates select="." mode="class.attribute"/> 718 <xsl:apply-templates select="." mode="common.html.attributes"/> 719 <xsl:call-template name="id.attribute"/> 654 720 <xsl:apply-templates mode="titlepage.mode"/> 655 721 <br/> … … 659 725 <xsl:template match="printhistory" mode="titlepage.mode"> 660 726 <div> 661 <xsl:apply-templates select="." mode="class.attribute"/> 727 <xsl:apply-templates select="." mode="common.html.attributes"/> 728 <xsl:call-template name="id.attribute"/> 662 729 <xsl:apply-templates mode="titlepage.mode"/> 663 730 </div> … … 666 733 <xsl:template match="productname" mode="titlepage.mode"> 667 734 <span> 668 <xsl:apply-templates select="." mode="class.attribute"/> 735 <xsl:apply-templates select="." mode="common.html.attributes"/> 736 <xsl:call-template name="id.attribute"/> 669 737 <xsl:apply-templates mode="titlepage.mode"/> 670 738 <br/> … … 674 742 <xsl:template match="productnumber" mode="titlepage.mode"> 675 743 <span> 676 <xsl:apply-templates select="." mode="class.attribute"/> 744 <xsl:apply-templates select="." mode="common.html.attributes"/> 745 <xsl:call-template name="id.attribute"/> 677 746 <xsl:apply-templates mode="titlepage.mode"/> 678 747 <br/> … … 700 769 <xsl:template match="publishername" mode="titlepage.mode"> 701 770 <span> 702 <xsl:apply-templates select="." mode="class.attribute"/> 771 <xsl:apply-templates select="." mode="common.html.attributes"/> 772 <xsl:call-template name="id.attribute"/> 703 773 <xsl:apply-templates mode="titlepage.mode"/> 704 774 <br/> … … 708 778 <xsl:template match="pubsnumber" mode="titlepage.mode"> 709 779 <span> 710 <xsl:apply-templates select="." mode="class.attribute"/> 780 <xsl:apply-templates select="." mode="common.html.attributes"/> 781 <xsl:call-template name="id.attribute"/> 711 782 <xsl:apply-templates mode="titlepage.mode"/> 712 783 <br/> … … 741 812 <xsl:variable name="contents"> 742 813 <div> 743 <xsl:apply-templates select="." mode="class.attribute"/> 744 <table border="1" width="100%" summary="Revision history"> 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> 745 830 <tr> 746 <th align=" left" valign="top" colspan="{$numcols}">747 < b>831 <th align="{$direction.align.start}" valign="top" colspan="{$numcols}"> 832 <strong xmlns:xslo="http://www.w3.org/1999/XSL/Transform"> 748 833 <xsl:call-template name="gentext"> 749 834 <xsl:with-param name="key" select="'RevHistory'"/> 750 835 </xsl:call-template> 751 </ b>836 </strong> 752 837 </th> 753 838 </tr> … … 761 846 <xsl:choose> 762 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 763 856 <xsl:variable name="filename"> 764 857 <xsl:call-template name="make-relative-filename"> 765 <xsl:with-param name="base.dir" select="$ base.dir"/>766 <xsl:with-param name="base.name" select=" concat($id,$html.ext)"/>858 <xsl:with-param name="base.dir" select="$chunk.base.dir"/> 859 <xsl:with-param name="base.name" select="$file"/> 767 860 </xsl:call-template> 768 861 </xsl:variable> 769 862 770 <a href="{ concat($id,$html.ext)}">863 <a href="{$file}"> 771 864 <xsl:copy-of select="$title"/> 772 865 </a> … … 813 906 <xsl:variable name="revremark" select="revremark|revdescription"/> 814 907 <tr> 815 <td align=" left">908 <td align="{$direction.align.start}"> 816 909 <xsl:if test="$revnumber"> 817 910 <xsl:call-template name="gentext"> … … 822 915 </xsl:if> 823 916 </td> 824 <td align=" left">917 <td align="{$direction.align.start}"> 825 918 <xsl:apply-templates select="$revdate[1]" mode="titlepage.mode"/> 826 919 </td> 827 920 <xsl:choose> 828 921 <xsl:when test="$revauthor"> 829 <td align=" left">922 <td align="{$direction.align.start}"> 830 923 <xsl:for-each select="$revauthor"> 831 924 <xsl:apply-templates select="." mode="titlepage.mode"/> … … 844 937 <xsl:if test="$revremark"> 845 938 <tr> 846 <td align=" left" colspan="{$numcols}">939 <td align="{$direction.align.start}" colspan="{$numcols}"> 847 940 <xsl:apply-templates select="$revremark[1]" mode="titlepage.mode"/> 848 941 </td> … … 877 970 <xsl:template match="seriesvolnums" mode="titlepage.mode"> 878 971 <span> 879 <xsl:apply-templates select="." mode="class.attribute"/> 972 <xsl:apply-templates select="." mode="common.html.attributes"/> 973 <xsl:call-template name="id.attribute"/> 880 974 <xsl:apply-templates mode="titlepage.mode"/> 881 975 <br/> … … 885 979 <xsl:template match="shortaffil" mode="titlepage.mode"> 886 980 <span> 887 <xsl:apply-templates select="." mode="class.attribute"/> 981 <xsl:apply-templates select="." mode="common.html.attributes"/> 982 <xsl:call-template name="id.attribute"/> 888 983 <xsl:apply-templates mode="titlepage.mode"/> 889 984 <br/> … … 896 991 <xsl:template match="subtitle" mode="titlepage.mode"> 897 992 <h2> 898 <xsl:apply-templates select="." mode="class.attribute"/> 993 <xsl:apply-templates select="." mode="common.html.attributes"/> 994 <xsl:call-template name="id.attribute"/> 899 995 <xsl:apply-templates mode="titlepage.mode"/> 900 996 </h2> … … 903 999 <xsl:template match="surname" mode="titlepage.mode"> 904 1000 <span> 905 <xsl:apply-templates select="." mode="class.attribute"/> 1001 <xsl:apply-templates select="." mode="common.html.attributes"/> 1002 <xsl:call-template name="id.attribute"/> 906 1003 <xsl:apply-templates mode="titlepage.mode"/> 907 1004 <br/> … … 927 1024 928 1025 <h1> 929 <xsl:apply-templates select="." mode="class.attribute"/> 930 <xsl:if test="$generate.id.attributes = 0"> 931 <a id="{$id}"/> 932 </xsl:if> 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> 933 1034 <xsl:choose> 934 1035 <xsl:when test="$show.revisionflag != 0 and @revisionflag"> … … 950 1051 <xsl:template match="volumenum" mode="titlepage.mode"> 951 1052 <span> 952 <xsl:apply-templates select="." mode="class.attribute"/> 953 <xsl:apply-templates mode="titlepage.mode"/> 954 <br/> 955 </span> 956 </xsl:template> 957 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 958 1104 <!-- ==================================================================== --> 959 1105
Note:
See TracChangeset
for help on using the changeset viewer.