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

    r09a35dd r15c7d39  
    22<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    33                xmlns:fo="http://www.w3.org/1999/XSL/Format"
     4                xmlns:xlink="http://www.w3.org/1999/xlink"
    45                xmlns:exsl="http://exslt.org/common"
    5                 exclude-result-prefixes="exsl"
     6                exclude-result-prefixes="exsl xlink"
    67                version='1.0'>
    78
    89<!-- ********************************************************************
    9      $Id$
     10     $Id: footnote.xsl 8359 2009-03-20 18:42:06Z bobstayton $
    1011     ********************************************************************
    1112
     
    5960<xsl:template match="footnoteref">
    6061  <xsl:variable name="footnote" select="key('id',@linkend)"/>
     62
     63  <xsl:if test="not(local-name($footnote) = 'footnote')">
     64   <xsl:message terminate="yes">
     65ERROR: A footnoteref element has a linkend that points to an element that is not a footnote.
     66Typically this happens when an id attribute is accidentally applied to the child of a footnote element.
     67target element: <xsl:value-of select="local-name($footnote)"/>
     68linkend/id: <xsl:value-of select="@linkend"/>
     69   </xsl:message>
     70  </xsl:if>
     71
    6172  <xsl:call-template name="format.footnote.mark">
    6273    <xsl:with-param name="mark">
     
    8899    <xsl:otherwise>
    89100      <xsl:variable name="fnum">
     101        <!-- * Determine the footnote number to display for this footnote, -->
     102        <!-- * by counting all foonotes, ulinks, and any elements that have -->
     103        <!-- * an xlink:href attribute that meets the following criteria: -->
     104        <!-- * -->
     105        <!-- * - the content of the element is not a URI that is the same -->
     106        <!-- *   URI as the value of the href attribute -->
     107        <!-- * - the href attribute is not an internal ID reference (does -->
     108        <!-- *   not start with a hash sign) -->
     109        <!-- * - the href is not part of an olink reference (the element -->
     110        <!-- * - does not have an xlink:role attribute that indicates it is -->
     111        <!-- *   an olink, and the hrf does not contain a hash sign) -->
     112        <!-- * - the element either has no xlink:type attribute or has -->
     113        <!-- *   an xlink:type attribute whose value is 'simple' -->
     114        <!-- *  -->
     115        <!-- * Note that hyperlinks are counted only if both the value of -->
     116        <!-- * ulink.footnotes is non-zero and the value of ulink.show is -->
     117        <!-- * non-zero -->
    90118        <!-- FIXME: list in @from is probably not complete -->
    91119        <xsl:number level="any"
    92120                    from="chapter|appendix|preface|article|refentry|bibliography"
    93                     count="footnote[not(@label)][not(ancestor::table) and not(ancestor::informaltable)]|ulink[$ulink.footnotes != 0][node()][@url != .][not(ancestor::footnote)][$ulink.show != 0]"
     121                    count="footnote[not(@label)][not(ancestor::table) and not(ancestor::informaltable)]
     122                    |ulink[$ulink.footnotes != 0][node()][@url != .][not(ancestor::footnote)][$ulink.show != 0]
     123                    |*[node()][@xlink:href][not(@xlink:href = .)][not(starts-with(@xlink:href,'#'))]
     124                      [not(contains(@xlink:href,'#') and @xlink:role = $xolink.role)]
     125                      [not(@xlink:type) or @xlink:type='simple']
     126                      [not(ancestor::footnote)][$ulink.footnotes != 0][$ulink.show != 0]
     127                    "
    94128                    format="1"/>
    95129      </xsl:variable>
     
    163197    </xsl:when>
    164198
    165     <xsl:when test="function-available('exsl:node-set')">
     199    <xsl:when test="$exsl.node.set.available != 0">
    166200      <fo:block xsl:use-attribute-sets="table.footnote.properties">
    167201        <xsl:apply-templates select="*[1]" mode="footnote.body.number"/>
Note: See TracChangeset for help on using the changeset viewer.