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/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/chunk-code.xsl

    r09a35dd r15c7d39  
    55
    66<!-- ********************************************************************
    7      $Id$
     7     $Id: chunk-code.xsl 9328 2012-05-03 16:28:23Z bobstayton $
    88     ********************************************************************
    99
     
    5050    <xsl:call-template name="dbhtml-dir"/>
    5151  </xsl:if>
     52
     53  <xsl:value-of select="$chunked.filename.prefix"/>
    5254
    5355  <xsl:value-of select="$fn"/>
     
    250252        </xsl:when>
    251253        <xsl:otherwise>
     254          <xsl:if test="/set">
     255            <!-- in a set, make sure we inherit the right book info... -->
     256            <xsl:apply-templates mode="recursive-chunk-filename" select="parent::*">
     257              <xsl:with-param name="recursive" select="true()"/>
     258            </xsl:apply-templates>
     259          </xsl:if>
    252260        </xsl:otherwise>
    253261      </xsl:choose>
     
    355363    </xsl:when>
    356364
     365    <xsl:when test="self::topic">
     366      <xsl:choose>
     367        <xsl:when test="/set">
     368          <!-- in a set, make sure we inherit the right book info... -->
     369          <xsl:apply-templates mode="recursive-chunk-filename" select="parent::*">
     370            <xsl:with-param name="recursive" select="true()"/>
     371          </xsl:apply-templates>
     372        </xsl:when>
     373        <xsl:otherwise>
     374        </xsl:otherwise>
     375      </xsl:choose>
     376
     377      <xsl:text>to</xsl:text>
     378      <xsl:number level="any" format="01" from="book"/>
     379      <xsl:if test="not($recursive)">
     380        <xsl:value-of select="$html.ext"/>
     381      </xsl:if>
     382    </xsl:when>
     383
    357384    <xsl:otherwise>
    358385      <xsl:text>chunk-filename-error-</xsl:text>
     
    395422</xsl:template>
    396423
     424<!-- Leave legalnotice chunk out of the list for Next and Prev -->
     425<xsl:template match="legalnotice" mode="find.chunks"/>
     426
    397427<xsl:template match="/">
    398428  <!-- * Get a title for current doc so that we let the user -->
     
    405435         toss the namespace and continue.  Use the docbook5 namespaced
    406436         stylesheets for DocBook5 if you don't want to use this feature.-->
    407     <!-- include extra test for Xalan quirk -->
    408     <xsl:when test="(function-available('exsl:node-set') or                      contains(system-property('xsl:vendor'),                        'Apache Software Foundation'))                     and (*/self::ng:* or */self::db:*)">
    409       <xsl:call-template name="log.message">
    410         <xsl:with-param name="level">Note</xsl:with-param>
    411         <xsl:with-param name="source" select="$doc.title"/>
    412         <xsl:with-param name="context-desc">
    413           <xsl:text>namesp. cut</xsl:text>
    414         </xsl:with-param>
    415         <xsl:with-param name="message">
    416           <xsl:text>stripped namespace before processing</xsl:text>
    417         </xsl:with-param>
    418       </xsl:call-template>
    419       <xsl:variable name="nons">
    420         <xsl:apply-templates mode="stripNS"/>
    421       </xsl:variable>
     437    <xsl:when test="$exsl.node.set.available != 0                      and (*/self::ng:* or */self::db:*)">
     438
    422439      <xsl:call-template name="log.message">
    423440        <xsl:with-param name="level">Note</xsl:with-param>
     
    430447        </xsl:with-param>
    431448      </xsl:call-template>
    432       <xsl:apply-templates select="exsl:node-set($nons)"/>
     449
     450      <xsl:apply-templates select="exsl:node-set($no.namespace)"/>
    433451    </xsl:when>
    434452    <!-- Can't process unless namespace removed -->
     
    491509<xsl:template match="*" mode="process.root">
    492510  <xsl:apply-templates select="."/>
     511  <xsl:call-template name="generate.css.files"/>
    493512</xsl:template>
    494513
    495514<!-- ====================================================================== -->
    496515
    497 <xsl:template match="set|book|part|preface|chapter|appendix                      |article                      |reference|refentry                      |book/glossary|article/glossary|part/glossary                      |book/bibliography|article/bibliography|part/bibliography                      |colophon">
     516<xsl:template match="set|book|part|preface|chapter|appendix                      |article                      |topic                      |reference|refentry                      |book/glossary|article/glossary|part/glossary                      |book/bibliography|article/bibliography|part/bibliography                      |colophon">
    498517  <xsl:choose>
    499518    <xsl:when test="$onechunk != 0 and parent::*">
     
    559578
    560579<!-- ==================================================================== -->
    561 <xsl:template match="set|book|part|preface|chapter|appendix                      |article                      |reference|refentry                      |sect1|sect2|sect3|sect4|sect5                      |section                      |book/glossary|article/glossary|part/glossary                      |book/bibliography|article/bibliography|part/bibliography                      |colophon" mode="enumerate-files">
     580<xsl:template match="set|book|part|preface|chapter|appendix                      |article                      |topic                      |reference|refentry                      |sect1|sect2|sect3|sect4|sect5                      |section                      |book/glossary|article/glossary|part/glossary                      |book/bibliography|article/bibliography|part/bibliography                      |colophon" mode="enumerate-files">
    562581  <xsl:variable name="ischunk"><xsl:call-template name="chunk"/></xsl:variable>
    563582  <xsl:if test="$ischunk='1'">
     
    565584      <xsl:with-param name="base.dir">
    566585        <xsl:if test="$manifest.in.base.dir = 0">
    567           <xsl:value-of select="$base.dir"/>
     586          <xsl:value-of select="$chunk.base.dir"/>
    568587        </xsl:if>
    569588      </xsl:with-param>
     
    585604        <xsl:with-param name="base.dir">
    586605          <xsl:if test="$manifest.in.base.dir = 0">
    587             <xsl:value-of select="$base.dir"/>
     606            <xsl:value-of select="$chunk.base.dir"/>
    588607          </xsl:if>
    589608        </xsl:with-param>
     
    605624      <xsl:with-param name="base.dir">
    606625        <xsl:if test="$manifest.in.base.dir = 0">
    607           <xsl:value-of select="$base.dir"/>
     626          <xsl:value-of select="$chunk.base.dir"/>
    608627        </xsl:if>
    609628      </xsl:with-param>
Note: See TracChangeset for help on using the changeset viewer.