Ignore:
Timestamp:
10/08/2013 08:03:29 PM (11 years ago)
Author:
Matthew Burgess <matthew@…>
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
Message:

Update stylesheets to docbook-xsl-1.78.1.

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

File:
1 moved

Legend:

Unmodified
Added
Removed
  • stylesheets/lfs-xsl/docbook-xsl-1.78.1/xhtml-1_1/titlepage.xsl

    r09a35dd r15c7d39  
    55
    66<!-- ********************************************************************
    7      $Id$
     7     $Id: titlepage.xsl 9360 2012-05-12 23:39:14Z bobstayton $
    88     ********************************************************************
    99
     
    4040<xsl:attribute-set name="dedication.titlepage.verso.style"/>
    4141
     42<xsl:attribute-set name="acknowledgements.titlepage.recto.style"/>
     43<xsl:attribute-set name="acknowledgements.titlepage.verso.style"/>
     44
    4245<xsl:attribute-set name="preface.titlepage.recto.style"/>
    4346<xsl:attribute-set name="preface.titlepage.verso.style"/>
     
    6063<xsl:attribute-set name="setindex.titlepage.recto.style"/>
    6164<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"/>
    6271
    6372<xsl:attribute-set name="section.titlepage.recto.style"/>
     
    109118<xsl:template match="abbrev" mode="titlepage.mode">
    110119  <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"/>
    112122    <xsl:apply-templates mode="titlepage.mode"/>
    113123    <br/>
     
    117127<xsl:template match="abstract" mode="titlepage.mode">
    118128  <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"/>
    120131    <xsl:call-template name="anchor"/>
    121132    <xsl:if test="$abstract.notitle.enabled = 0">
     
    144155    <xsl:when test="$suppress-numbers = '0'                     and @linenumbering = 'numbered'                     and $use.extensions != '0'                     and $linenumbering.extension != '0'">
    145156      <div>
    146         <xsl:apply-templates select="." mode="class.attribute"/>
     157        <xsl:apply-templates select="." mode="common.html.attributes"/>
    147158        <xsl:call-template name="paragraph">
    148159          <xsl:with-param name="content">
     
    157168    <xsl:otherwise>
    158169      <div>
    159         <xsl:apply-templates select="." mode="class.attribute"/>
     170        <xsl:apply-templates select="." mode="common.html.attributes"/>
    160171        <xsl:call-template name="paragraph">
    161172          <xsl:with-param name="content">
     
    172183<xsl:template match="affiliation" mode="titlepage.mode">
    173184  <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"/>
    175187    <xsl:apply-templates mode="titlepage.mode"/>
    176188  </div>
     
    179191<xsl:template match="artpagenums" mode="titlepage.mode">
    180192  <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"/>
    182195    <xsl:apply-templates mode="titlepage.mode"/>
    183196    <br/>
     
    191204<xsl:template name="credits.div">
    192205  <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"/>
    194208    <xsl:if test="self::editor[position()=1] and not($editedby.enabled = 0)">
    195209      <h4 class="editedby"><xsl:call-template name="gentext.edited.by"/></h4>
    196210    </xsl:if>
    197211    <h3>
    198       <xsl:apply-templates select="." mode="class.attribute"/>
     212      <xsl:apply-templates select="." mode="common.html.attributes"/>
    199213      <xsl:choose>
    200214        <xsl:when test="orgname">
     
    226240<xsl:template match="authorblurb|personblurb" mode="titlepage.mode">
    227241  <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"/>
    229244    <xsl:apply-templates mode="titlepage.mode"/>
    230245  </div>
     
    233248<xsl:template match="authorgroup" mode="titlepage.mode">
    234249  <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     
    236256    <xsl:call-template name="anchor"/>
    237257    <xsl:apply-templates mode="titlepage.mode"/>
     
    241261<xsl:template match="authorinitials" mode="titlepage.mode">
    242262  <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"/>
    244265    <xsl:apply-templates mode="titlepage.mode"/>
    245266    <br/>
     
    257278<xsl:template match="collab" mode="titlepage.mode">
    258279  <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"/>
    260282    <xsl:apply-templates mode="titlepage.mode"/>
    261283    <br/>
     
    265287<xsl:template match="collabname" mode="titlepage.mode">
    266288  <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"/>
    268291    <xsl:apply-templates mode="titlepage.mode"/>
    269292  </span>
     
    272295<xsl:template match="confgroup" mode="titlepage.mode">
    273296  <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"/>
    275299    <xsl:apply-templates mode="titlepage.mode"/>
    276300  </div>
     
    279303<xsl:template match="confdates" mode="titlepage.mode">
    280304  <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"/>
    282307    <xsl:apply-templates mode="titlepage.mode"/>
    283308    <br/>
     
    287312<xsl:template match="confsponsor" mode="titlepage.mode">
    288313  <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"/>
    290316    <xsl:apply-templates mode="titlepage.mode"/>
    291317    <br/>
     
    295321<xsl:template match="conftitle" mode="titlepage.mode">
    296322  <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"/>
    298325    <xsl:apply-templates mode="titlepage.mode"/>
    299326    <br/>
     
    307334<xsl:template match="contractnum" mode="titlepage.mode">
    308335  <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"/>
    310338    <xsl:apply-templates mode="titlepage.mode"/>
    311339    <br/>
     
    315343<xsl:template match="contractsponsor" mode="titlepage.mode">
    316344  <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"/>
    318347    <xsl:apply-templates mode="titlepage.mode"/>
    319348    <br/>
     
    325354    <xsl:when test="not($contrib.inline.enabled = 0)">
    326355      <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"/>
    328358        <xsl:apply-templates mode="titlepage.mode"/>
    329359      </span><xsl:text>&#160;</xsl:text>
     
    331361    <xsl:otherwise>
    332362      <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"/>
    334365        <p><xsl:apply-templates mode="titlepage.mode"/></p>
    335366      </div>
     
    339370
    340371<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
    341377  <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"/>
    343380    <xsl:call-template name="gentext">
    344381      <xsl:with-param name="key" select="'Copyright'"/>
     
    390427<xsl:template match="corpauthor" mode="titlepage.mode">
    391428  <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"/>
    393431    <xsl:apply-templates mode="titlepage.mode"/>
    394432  </h3>
     
    397435<xsl:template match="corpcredit" mode="titlepage.mode">
    398436  <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"/>
    400439    <xsl:apply-templates mode="titlepage.mode"/>
    401440    <br/>
     
    405444<xsl:template match="corpname" mode="titlepage.mode">
    406445  <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"/>
    408448    <xsl:apply-templates mode="titlepage.mode"/>
    409449    <br/>
     
    413453<xsl:template match="date" mode="titlepage.mode">
    414454  <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"/>
    416457    <xsl:apply-templates mode="titlepage.mode"/>
    417458    <br/>
     
    421462<xsl:template match="edition" mode="titlepage.mode">
    422463  <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"/>
    424466    <xsl:apply-templates mode="titlepage.mode"/>
    425467    <xsl:call-template name="gentext.space"/>
     
    437479<xsl:template match="firstname" mode="titlepage.mode">
    438480  <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"/>
    440483    <xsl:apply-templates mode="titlepage.mode"/>
    441484    <br/>
     
    450493<xsl:template match="honorific" mode="titlepage.mode">
    451494  <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"/>
    453497    <xsl:apply-templates mode="titlepage.mode"/>
    454498    <br/>
     
    458502<xsl:template match="isbn" mode="titlepage.mode">
    459503  <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"/>
    461506    <xsl:apply-templates mode="titlepage.mode"/>
    462507    <br/>
     
    466511<xsl:template match="issn" mode="titlepage.mode">
    467512  <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"/>
    469515    <xsl:apply-templates mode="titlepage.mode"/>
    470516    <br/>
     
    474520<xsl:template match="biblioid" mode="titlepage.mode">
    475521  <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"/>
    477524    <xsl:apply-templates mode="titlepage.mode"/>
    478525    <br/>
     
    485532<xsl:template match="invpartnumber" mode="titlepage.mode">
    486533  <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"/>
    488536    <xsl:apply-templates mode="titlepage.mode"/>
    489537    <br/>
     
    493541<xsl:template match="issuenum" mode="titlepage.mode">
    494542  <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"/>
    496545    <xsl:apply-templates mode="titlepage.mode"/>
    497546    <br/>
     
    501550<xsl:template match="jobtitle" mode="titlepage.mode">
    502551  <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"/>
    504554    <xsl:apply-templates mode="titlepage.mode"/>
    505555    <br/>
     
    512562<xsl:template match="legalnotice" mode="titlepage.mode">
    513563  <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
     564
    514565  <xsl:choose>
    515566    <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
    516573      <xsl:variable name="filename">
    517574        <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"/>
    520577        </xsl:call-template>
    521578      </xsl:variable>
     
    525582      </xsl:variable>
    526583
    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}">
    532585        <xsl:copy-of select="$title"/>
    533586      </a>
     
    547600              <xsl:call-template name="body.attributes"/>
    548601              <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>
    550606                <xsl:apply-templates mode="titlepage.mode"/>
    551607              </div>
     
    558614    <xsl:otherwise>
    559615      <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>
    562623        <xsl:apply-templates mode="titlepage.mode"/>
    563624      </div>
     
    567628
    568629<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>
    570631</xsl:template>
    571632
    572633<xsl:template match="lineage" mode="titlepage.mode">
    573634  <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"/>
    575637    <xsl:apply-templates mode="titlepage.mode"/>
    576638    <br/>
     
    586648  </xsl:if>
    587649  <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"/>
    589652    <xsl:apply-templates mode="titlepage.mode"/>
    590653    <br/>
     
    594657<xsl:template match="orgname" mode="titlepage.mode">
    595658  <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"/>
    597661    <xsl:apply-templates mode="titlepage.mode"/>
    598662    <br/>
     
    643707<xsl:template match="othername" mode="titlepage.mode">
    644708  <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"/>
    646711    <xsl:apply-templates mode="titlepage.mode"/>
    647712    <br/>
     
    651716<xsl:template match="pagenums" mode="titlepage.mode">
    652717  <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"/>
    654720    <xsl:apply-templates mode="titlepage.mode"/>
    655721    <br/>
     
    659725<xsl:template match="printhistory" mode="titlepage.mode">
    660726  <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"/>
    662729    <xsl:apply-templates mode="titlepage.mode"/>
    663730  </div>
     
    666733<xsl:template match="productname" mode="titlepage.mode">
    667734  <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"/>
    669737    <xsl:apply-templates mode="titlepage.mode"/>
    670738    <br/>
     
    674742<xsl:template match="productnumber" mode="titlepage.mode">
    675743  <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"/>
    677746    <xsl:apply-templates mode="titlepage.mode"/>
    678747    <br/>
     
    700769<xsl:template match="publishername" mode="titlepage.mode">
    701770  <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"/>
    703773    <xsl:apply-templates mode="titlepage.mode"/>
    704774    <br/>
     
    708778<xsl:template match="pubsnumber" mode="titlepage.mode">
    709779  <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"/>
    711782    <xsl:apply-templates mode="titlepage.mode"/>
    712783    <br/>
     
    741812  <xsl:variable name="contents">
    742813    <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>
    745830        <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">
    748833              <xsl:call-template name="gentext">
    749834                <xsl:with-param name="key" select="'RevHistory'"/>
    750835              </xsl:call-template>
    751             </b>
     836            </strong>
    752837          </th>
    753838        </tr>
     
    761846  <xsl:choose>
    762847    <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
    763856      <xsl:variable name="filename">
    764857        <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"/>
    767860        </xsl:call-template>
    768861      </xsl:variable>
    769862
    770       <a href="{concat($id,$html.ext)}">
     863      <a href="{$file}">
    771864        <xsl:copy-of select="$title"/>
    772865      </a>
     
    813906  <xsl:variable name="revremark" select="revremark|revdescription"/>
    814907  <tr>
    815     <td align="left">
     908    <td align="{$direction.align.start}">
    816909      <xsl:if test="$revnumber">
    817910        <xsl:call-template name="gentext">
     
    822915      </xsl:if>
    823916    </td>
    824     <td align="left">
     917    <td align="{$direction.align.start}">
    825918      <xsl:apply-templates select="$revdate[1]" mode="titlepage.mode"/>
    826919    </td>
    827920    <xsl:choose>
    828921      <xsl:when test="$revauthor">
    829         <td align="left">
     922        <td align="{$direction.align.start}">
    830923          <xsl:for-each select="$revauthor">
    831924            <xsl:apply-templates select="." mode="titlepage.mode"/>
     
    844937  <xsl:if test="$revremark">
    845938    <tr>
    846       <td align="left" colspan="{$numcols}">
     939      <td align="{$direction.align.start}" colspan="{$numcols}">
    847940        <xsl:apply-templates select="$revremark[1]" mode="titlepage.mode"/>
    848941      </td>
     
    877970<xsl:template match="seriesvolnums" mode="titlepage.mode">
    878971  <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"/>
    880974    <xsl:apply-templates mode="titlepage.mode"/>
    881975    <br/>
     
    885979<xsl:template match="shortaffil" mode="titlepage.mode">
    886980  <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"/>
    888983    <xsl:apply-templates mode="titlepage.mode"/>
    889984    <br/>
     
    896991<xsl:template match="subtitle" mode="titlepage.mode">
    897992  <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"/>
    899995    <xsl:apply-templates mode="titlepage.mode"/>
    900996  </h2>
     
    903999<xsl:template match="surname" mode="titlepage.mode">
    9041000  <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"/>
    9061003    <xsl:apply-templates mode="titlepage.mode"/>
    9071004    <br/>
     
    9271024
    9281025  <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>
    9331034    <xsl:choose>
    9341035      <xsl:when test="$show.revisionflag != 0 and @revisionflag">
     
    9501051<xsl:template match="volumenum" mode="titlepage.mode">
    9511052  <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   
    9581104<!-- ==================================================================== -->
    9591105
Note: See TracChangeset for help on using the changeset viewer.