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/callout.xsl

    r09a35dd r15c7d39  
    99
    1010<!-- ********************************************************************
    11      $Id$
     11     $Id: callout.xsl 9668 2012-11-28 00:47:59Z bobstayton $
    1212     ********************************************************************
    1313
     
    8585
    8686<xsl:template match="co">
    87   <fo:inline>
    88     <xsl:call-template name="anchor"/>
    89     <xsl:apply-templates select="." mode="callout-bug"/>
    90   </fo:inline>
     87  <xsl:param name="coref"/>
     88  <!-- link to the callout? -->
     89  <xsl:variable name="linkend">
     90    <xsl:choose>
     91      <!-- if more than one target, choose the first -->
     92      <xsl:when test="contains(normalize-space(@linkends), ' ')">
     93        <xsl:value-of select="substring-before(normalize-space(@linkends), ' ')"/>
     94      </xsl:when>
     95      <xsl:when test="string-length(normalize-space(@linkends)) != 0">
     96        <xsl:value-of select="normalize-space(@linkends)"/>
     97      </xsl:when>
     98      <xsl:otherwise>
     99      </xsl:otherwise>
     100    </xsl:choose>
     101  </xsl:variable>
     102
     103  <xsl:choose>
     104    <xsl:when test="string-length($linkend) != 0">
     105      <fo:basic-link internal-destination="{$linkend}">
     106        <xsl:choose>
     107          <xsl:when test="$coref">
     108            <xsl:call-template name="anchor">
     109              <xsl:with-param name="node" select="$coref"/>
     110              <xsl:with-param name="conditional" select="0"/>
     111            </xsl:call-template>
     112          </xsl:when>
     113          <xsl:otherwise>
     114            <xsl:call-template name="anchor">
     115              <xsl:with-param name="conditional" select="0"/>
     116            </xsl:call-template>
     117          </xsl:otherwise>
     118        </xsl:choose>
     119        <xsl:apply-templates select="." mode="callout-bug"/>
     120      </fo:basic-link>
     121    </xsl:when>
     122    <xsl:otherwise>
     123      <fo:inline>
     124        <xsl:choose>
     125          <xsl:when test="$coref">
     126            <xsl:call-template name="anchor">
     127              <xsl:with-param name="node" select="$coref"/>
     128              <xsl:with-param name="conditional" select="0"/>
     129            </xsl:call-template>
     130          </xsl:when>
     131          <xsl:otherwise>
     132            <xsl:call-template name="anchor">
     133              <xsl:with-param name="conditional" select="0"/>
     134            </xsl:call-template>
     135          </xsl:otherwise>
     136        </xsl:choose>
     137        <xsl:apply-templates select="." mode="callout-bug"/>
     138      </fo:inline>
     139    </xsl:otherwise>
     140  </xsl:choose>
    91141</xsl:template>
    92142
    93143<xsl:template match="coref">
    94   <!-- tricky; this relies on the fact that we can process the "co" that's -->
     144  <!-- this relies on the fact that we can process the "co" that's -->
    95145  <!-- "over there" as if it were "right here" -->
    96146
     
    110160    </xsl:when>
    111161    <xsl:otherwise>
    112       <fo:inline>
    113         <xsl:call-template name="anchor"/>
    114         <xsl:apply-templates select="$co" mode="callout-bug"/>
    115       </fo:inline>
     162      <!-- process it as if it were the co itself -->
     163      <xsl:apply-templates select="$co">
     164        <xsl:with-param name="coref" select="."/>
     165      </xsl:apply-templates>
    116166    </xsl:otherwise>
    117167  </xsl:choose>
     
    144194        <xsl:attribute name="src">
    145195          <xsl:choose>
    146             <xsl:when test="$passivetex.extensions != 0
    147                             or $fop.extensions != 0
     196            <xsl:when test="$fop.extensions != 0
    148197                            or $arbortext.extensions != 0">
    149198              <xsl:value-of select="$filename"/>
     
    175224              <xsl:when test="$conum = 9">&#10110;</xsl:when>
    176225              <xsl:when test="$conum = 10">&#10111;</xsl:when>
     226              <xsl:when test="$conum = 11">&#9451;</xsl:when>
     227              <xsl:when test="$conum = 12">&#9452;</xsl:when>
     228              <xsl:when test="$conum = 13">&#9453;</xsl:when>
     229              <xsl:when test="$conum = 14">&#9454;</xsl:when>
     230              <xsl:when test="$conum = 15">&#9455;</xsl:when>
     231              <xsl:when test="$conum = 16">&#9456;</xsl:when>
     232              <xsl:when test="$conum = 17">&#9457;</xsl:when>
     233              <xsl:when test="$conum = 18">&#9458;</xsl:when>
     234              <xsl:when test="$conum = 19">&#9459;</xsl:when>
     235              <xsl:when test="$conum = 20">&#9460;</xsl:when>
     236            </xsl:choose>
     237          </xsl:when>
     238          <xsl:when test="$callout.unicode.start.character = 9312">
     239            <xsl:choose>
     240              <xsl:when test="$conum = 1">&#9312;</xsl:when>
     241              <xsl:when test="$conum = 2">&#9313;</xsl:when>
     242              <xsl:when test="$conum = 3">&#9314;</xsl:when>
     243              <xsl:when test="$conum = 4">&#9315;</xsl:when>
     244              <xsl:when test="$conum = 5">&#9316;</xsl:when>
     245              <xsl:when test="$conum = 6">&#9317;</xsl:when>
     246              <xsl:when test="$conum = 7">&#9318;</xsl:when>
     247              <xsl:when test="$conum = 8">&#9319;</xsl:when>
     248              <xsl:when test="$conum = 9">&#9320;</xsl:when>
     249              <xsl:when test="$conum = 10">&#9321;</xsl:when>
     250              <xsl:when test="$conum = 11">&#9322;</xsl:when>
     251              <xsl:when test="$conum = 12">&#9323;</xsl:when>
     252              <xsl:when test="$conum = 13">&#9324;</xsl:when>
     253              <xsl:when test="$conum = 14">&#9325;</xsl:when>
     254              <xsl:when test="$conum = 15">&#9326;</xsl:when>
     255              <xsl:when test="$conum = 16">&#9327;</xsl:when>
     256              <xsl:when test="$conum = 17">&#9328;</xsl:when>
     257              <xsl:when test="$conum = 18">&#9329;</xsl:when>
     258              <xsl:when test="$conum = 19">&#9330;</xsl:when>
     259              <xsl:when test="$conum = 20">&#9331;</xsl:when>
    177260            </xsl:choose>
    178261          </xsl:when>
Note: See TracChangeset for help on using the changeset viewer.