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/fo/titlepage.xsl

    r09a35dd r15c7d39  
    55
    66<!-- ********************************************************************
    7      $Id$
     7     $Id: titlepage.xsl 9286 2012-04-19 10:10:58Z bobstayton $
    88     ********************************************************************
    99
     
    5050<xsl:attribute-set name="dedication.titlepage.verso.style"/>
    5151
     52<xsl:attribute-set name="acknowledgements.titlepage.recto.style"/>
     53<xsl:attribute-set name="acknowledgements.titlepage.verso.style"/>
     54
    5255<xsl:attribute-set name="preface.titlepage.recto.style"/>
    5356<xsl:attribute-set name="preface.titlepage.verso.style"/>
     
    128131                   use-attribute-sets="section.titlepage.verso.style"/>
    129132
     133<xsl:attribute-set name="topic.titlepage.recto.style"/>
     134<xsl:attribute-set name="topic.titlepage.verso.style"/>
     135
    130136<xsl:attribute-set name="refnamediv.titlepage.recto.style"
    131137                   use-attribute-sets="section.titlepage.recto.style"/>
     
    178184<xsl:attribute-set name="list.of.unknowns.titlepage.recto.style"/>
    179185<xsl:attribute-set name="list.of.unknowns.contents.titlepage.verso.style"/>
     186
     187<xsl:attribute-set name="component.list.of.tables.titlepage.recto.style"/>
     188<xsl:attribute-set name="component.list.of.tables.contents.titlepage.verso.style"/>
     189
     190<xsl:attribute-set name="component.list.of.figures.titlepage.recto.style"/>
     191<xsl:attribute-set name="component.list.of.figures.contents.titlepage.verso.style"/>
     192
     193<xsl:attribute-set name="component.list.of.equations.titlepage.recto.style"/>
     194<xsl:attribute-set name="component.list.of.equations.contents.titlepage.verso.style"/>
     195
     196<xsl:attribute-set name="component.list.of.examples.titlepage.recto.style"/>
     197<xsl:attribute-set name="component.list.of.examples.contents.titlepage.verso.style"/>
     198
     199<xsl:attribute-set name="component.list.of.procedures.titlepage.recto.style"/>
     200<xsl:attribute-set name="component.list.of.procedures.contents.titlepage.verso.style"/>
     201
     202<xsl:attribute-set name="component.list.of.unknowns.titlepage.recto.style"/>
     203<xsl:attribute-set name="component.list.of.unknowns.contents.titlepage.verso.style"/>
    180204
    181205<!-- ==================================================================== -->
     
    191215
    192216<xsl:template match="abstract" mode="titlepage.mode">
    193   <fo:block>
    194     <xsl:call-template name="formal.object.heading">
    195       <xsl:with-param name="title">
    196         <xsl:apply-templates select="." mode="title.markup"/>
    197       </xsl:with-param>
    198     </xsl:call-template>
    199     <xsl:apply-templates mode="titlepage.mode"/>
     217  <fo:block xsl:use-attribute-sets="abstract.properties">
     218    <fo:block xsl:use-attribute-sets="abstract.title.properties">
     219      <xsl:choose>
     220        <xsl:when test="title|info/title">
     221          <xsl:apply-templates select="title|info/title"/>
     222        </xsl:when>
     223        <xsl:otherwise>
     224          <xsl:call-template name="gentext">
     225            <xsl:with-param name="key" select="'Abstract'"/>
     226          </xsl:call-template>
     227        </xsl:otherwise>
     228      </xsl:choose>
     229    </fo:block>
     230    <xsl:apply-templates select="*[not(self::title)]" mode="titlepage.mode"/>
    200231  </fo:block>
    201232</xsl:template>
     
    225256  <fo:block>
    226257    <xsl:call-template name="anchor"/>
    227     <xsl:call-template name="person.name"/>
    228     <xsl:if test="affiliation/orgname">
    229       <xsl:text>, </xsl:text>
    230       <xsl:apply-templates select="affiliation/orgname" mode="titlepage.mode"/>
    231     </xsl:if>
    232     <xsl:if test="email|affiliation/address/email">
    233       <xsl:text> </xsl:text>
    234       <xsl:apply-templates select="(email|affiliation/address/email)[1]"/>
    235     </xsl:if>
     258    <xsl:choose>
     259      <xsl:when test="orgname">
     260        <xsl:apply-templates/>
     261      </xsl:when>
     262      <xsl:otherwise>
     263        <xsl:call-template name="person.name"/>
     264        <xsl:if test="affiliation/orgname">
     265          <xsl:text>, </xsl:text>
     266          <xsl:apply-templates select="affiliation/orgname" mode="titlepage.mode"/>
     267        </xsl:if>
     268        <xsl:if test="email|affiliation/address/email">
     269          <xsl:text> </xsl:text>
     270          <xsl:apply-templates select="(email|affiliation/address/email)[1]"/>
     271        </xsl:if>
     272      </xsl:otherwise>
     273    </xsl:choose>
    236274  </fo:block>
    237275</xsl:template>
     
    261299
    262300<xsl:template match="collab" mode="titlepage.mode">
     301  <xsl:apply-templates mode="titlepage.mode"/>
     302</xsl:template>
     303
     304<xsl:template match="collabname" mode="titlepage.mode">
    263305  <xsl:apply-templates mode="titlepage.mode"/>
    264306</xsl:template>
     
    323365<xsl:template match="holder" mode="titlepage.mode">
    324366  <xsl:apply-templates/>
     367  <xsl:if test="position() &lt; last()">
     368    <xsl:text>, </xsl:text>
     369  </xsl:if>
    325370</xsl:template>
    326371
     
    388433
    389434<xsl:template match="itermset" mode="titlepage.mode">
    390   <!-- discard -->
     435  <xsl:apply-templates select="indexterm"/>
    391436</xsl:template>
    392437
     
    532577  </xsl:variable>
    533578
    534   <fo:table table-layout="fixed" width="{$table.width}" xsl:use-attribute-sets="revhistory.table.properties">
     579 <fo:table table-layout="fixed" width="{$table.width}" xsl:use-attribute-sets="revhistory.table.properties">
    535580    <fo:table-column column-number="1" column-width="proportional-column-width(1)"/>
    536581    <fo:table-column column-number="2" column-width="proportional-column-width(1)"/>
     
    540585        <fo:table-cell number-columns-spanned="3" xsl:use-attribute-sets="revhistory.table.cell.properties">
    541586          <fo:block xsl:use-attribute-sets="revhistory.title.properties">
    542             <xsl:call-template name="gentext">
    543               <xsl:with-param name="key" select="'RevHistory'"/>
    544             </xsl:call-template>
    545           </fo:block>
     587            <xsl:choose>
     588              <xsl:when test="title|info/title">
     589                <xsl:apply-templates select="title|info/title" mode="titlepage.mode"/>
     590              </xsl:when>
     591              <xsl:otherwise>
     592                <xsl:call-template name="gentext">
     593                  <xsl:with-param name="key" select="'RevHistory'"/>
     594                </xsl:call-template>
     595              </xsl:otherwise>
     596            </xsl:choose>
     597          </fo:block>
    546598        </fo:table-cell>
    547599      </fo:table-row>
    548       <xsl:apply-templates mode="titlepage.mode"/>
     600      <xsl:apply-templates select="*[not(self::title)]" mode="titlepage.mode"/>
    549601    </fo:table-body>
    550602  </fo:table>
    551 </xsl:template>
     603
     604</xsl:template>
     605
    552606
    553607<xsl:template match="revhistory/revision" mode="titlepage.mode">
     
    660714<!-- book recto -->
    661715
    662 <xsl:template match="bookinfo/authorgroup|info/authorgroup"
     716<xsl:template match="bookinfo/authorgroup|book/info/authorgroup"
    663717              mode="titlepage.mode" priority="2">
    664718  <fo:block>
     
    709763</xsl:template>
    710764
    711 <xsl:template match="bookinfo/author|info/author"
     765<xsl:template match="bookinfo/author|book/info/author"
    712766              mode="titlepage.mode" priority="2">
    713767  <fo:block>
     
    716770</xsl:template>
    717771
    718 <xsl:template match="bookinfo/corpauthor|info/corpauthor"
     772<xsl:template match="bookinfo/corpauthor|book/info/corpauthor"
    719773              mode="titlepage.mode" priority="2">
    720774  <fo:block>
     
    723777</xsl:template>
    724778
    725 <xsl:template match="bookinfo/pubdate|info/pubdate"
     779<xsl:template match="bookinfo/pubdate|book/info/pubdate"
    726780              mode="titlepage.mode" priority="2">
    727781  <fo:block>
    728782    <xsl:call-template name="gentext">
    729       <xsl:with-param name="key" select="'published'"/>
     783      <xsl:with-param name="key" select="'pubdate'"/>
    730784    </xsl:call-template>
    731785    <xsl:text> </xsl:text>
Note: See TracChangeset for help on using the changeset viewer.