#119 Do not href label in ToC. I think it's nice. Arguable. =)

output: HTML
closed-fixed
XSL (122)
5
2006-04-27
2004-11-13
No

--- xsl\docbook\html\--\autotoc.xsl.old Mon Oct
25 13:20:32 2004
+++ xsl\docbook\html\--\autotoc.xsl Sat Nov 13
20:54:34 2004
@@ -267,13 +267,23 @@
</xsl:if>
</xsl:template>

+<!-- Make the TOC line like in the DSSSL-version, i.e.
label is not included in href -->
<xsl:template name="toc.line">
<xsl:param name="toc-context" select="."/>
<xsl:param name="depth" select="1"/>
<xsl:param name="depth.from.context" select="8"/>

- <span>
+ <span>
<xsl:attribute name="class"><xsl:value-of
select="local-name(.)"/></xsl:attribute>
+
+ <xsl:variable name="label">
+ <xsl:apply-templates select="."
mode="label.markup"/>
+ </xsl:variable>
+ <xsl:copy-of select="$label"/>
+ <xsl:if test="$label != ''">
+ <xsl:value-of select="$autotoc.label.separator"/>
+ </xsl:if>
+
<a>
<xsl:attribute name="href">
<xsl:call-template name="href.target">
@@ -281,14 +291,6 @@
</xsl:call-template>
</xsl:attribute>

- <xsl:variable name="label">
- <xsl:apply-templates select="."
mode="label.markup"/>
- </xsl:variable>
- <xsl:copy-of select="$label"/>
- <xsl:if test="$label != ''">
- <xsl:value-of select="$autotoc.label.separator"/>
- </xsl:if>
-
<xsl:apply-templates select="."
mode="titleabbrev.markup"/>
</a>
</span>

Discussion

    • milestone: --> output: HTML
     
  • Logged In: YES
    user_id=118135

    Added this and new autotoc.label.in.hyperlink param
    for controlling it.

     
  • Logged In: YES
    user_id=118135

    A fix for this issue has been added to the current codebase.
    Please test the fix with the latest snapshot from:

    http://docbook.sourceforge.net/snapshots/

     
    • assigned_to: nobody --> xmldoc
    • status: open --> closed-fixed