Changeset 41a6268


Ignore:
Timestamp:
05/23/2004 04:39:23 PM (20 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.0, 6.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, v5_1, v5_1-pre1, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
062d1f3
Parents:
e7f6273f
Message:

Change to stylesheet to provide toc links (from Manuel)

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@2207 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stylesheets/xhtml/lfs-toc.xsl

    re7f6273f r41a6268  
    8080  </xsl:template>
    8181
    82     <!--Adding the h* tags and dropping redundats links-->
     82    <!--Adding the h* tags -->
    8383  <xsl:template name="toc.line">
    8484    <xsl:param name="toc-context" select="."/>
     
    9898      <xsl:when test="local-name(.) = 'chapter' or local-name(.) = 'preface'">
    9999        <h4>
    100           <xsl:variable name="label">
    101             <xsl:apply-templates select="." mode="label.markup"/>
    102           </xsl:variable>
    103           <xsl:copy-of select="$label"/>
    104           <xsl:if test="$label != ''">
    105             <xsl:value-of select="$autotoc.label.separator"/>
    106           </xsl:if>
    107           <xsl:apply-templates select="." mode="titleabbrev.markup"/>
     100          <a>
     101            <xsl:attribute name="href">
     102              <xsl:call-template name="href.target">
     103                <xsl:with-param name="context" select="$toc-context"/>
     104              </xsl:call-template>
     105            </xsl:attribute>
     106            <xsl:variable name="label">
     107              <xsl:apply-templates select="." mode="label.markup"/>
     108            </xsl:variable>
     109            <xsl:copy-of select="$label"/>
     110            <xsl:if test="$label != ''">
     111              <xsl:value-of select="$autotoc.label.separator"/>
     112            </xsl:if>
     113            <xsl:apply-templates select="." mode="titleabbrev.markup"/>
     114          </a>
    108115        </h4>
    109116      </xsl:when>
    110117      <xsl:when test="local-name(.) = 'part'">
    111118        <h3>
    112           <xsl:variable name="label">
    113             <xsl:apply-templates select="." mode="label.markup"/>
    114           </xsl:variable>
    115           <xsl:copy-of select="$label"/>
    116           <xsl:if test="$label != ''">
    117             <xsl:value-of select="$autotoc.label.separator"/>
    118           </xsl:if>
    119           <xsl:apply-templates select="." mode="titleabbrev.markup"/>
     119          <a>
     120            <xsl:attribute name="href">
     121              <xsl:call-template name="href.target">
     122                <xsl:with-param name="context" select="$toc-context"/>
     123              </xsl:call-template>
     124            </xsl:attribute>
     125            <xsl:variable name="label">
     126              <xsl:apply-templates select="." mode="label.markup"/>
     127            </xsl:variable>
     128            <xsl:copy-of select="$label"/>
     129            <xsl:if test="$label != ''">
     130              <xsl:value-of select="$autotoc.label.separator"/>
     131            </xsl:if>
     132            <xsl:apply-templates select="." mode="titleabbrev.markup"/>
     133          </a>
    120134        </h3>
    121135      </xsl:when>
Note: See TracChangeset for help on using the changeset viewer.