- 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, 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
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
stylesheets/lfs-xsl/docbook-xsl-1.78.1/fo/footnote.xsl
r09a35dd r15c7d39 2 2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 3 3 xmlns:fo="http://www.w3.org/1999/XSL/Format" 4 xmlns:xlink="http://www.w3.org/1999/xlink" 4 5 xmlns:exsl="http://exslt.org/common" 5 exclude-result-prefixes="exsl "6 exclude-result-prefixes="exsl xlink" 6 7 version='1.0'> 7 8 8 9 <!-- ******************************************************************** 9 $Id $10 $Id: footnote.xsl 8359 2009-03-20 18:42:06Z bobstayton $ 10 11 ******************************************************************** 11 12 … … 59 60 <xsl:template match="footnoteref"> 60 61 <xsl:variable name="footnote" select="key('id',@linkend)"/> 62 63 <xsl:if test="not(local-name($footnote) = 'footnote')"> 64 <xsl:message terminate="yes"> 65 ERROR: A footnoteref element has a linkend that points to an element that is not a footnote. 66 Typically this happens when an id attribute is accidentally applied to the child of a footnote element. 67 target element: <xsl:value-of select="local-name($footnote)"/> 68 linkend/id: <xsl:value-of select="@linkend"/> 69 </xsl:message> 70 </xsl:if> 71 61 72 <xsl:call-template name="format.footnote.mark"> 62 73 <xsl:with-param name="mark"> … … 88 99 <xsl:otherwise> 89 100 <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 --> 90 118 <!-- FIXME: list in @from is probably not complete --> 91 119 <xsl:number level="any" 92 120 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 " 94 128 format="1"/> 95 129 </xsl:variable> … … 163 197 </xsl:when> 164 198 165 <xsl:when test=" function-available('exsl:node-set')">199 <xsl:when test="$exsl.node.set.available != 0"> 166 200 <fo:block xsl:use-attribute-sets="table.footnote.properties"> 167 201 <xsl:apply-templates select="*[1]" mode="footnote.body.number"/>
Note:
See TracChangeset
for help on using the changeset viewer.