]> granicus.if.org Git - docbook-dsssl/commitdiff
In no.anchor.mode mode, do not output anchors for elements that are descendants
authorMauritz Jeanson <mj@johanneberg.com>
Sun, 30 Sep 2007 08:13:23 +0000 (08:13 +0000)
committerMauritz Jeanson <mj@johanneberg.com>
Sun, 30 Sep 2007 08:13:23 +0000 (08:13 +0000)
of <title>. Previously, having inline elements with @id/@xml:id in <title>s
resulted in anchors both in the TOC and in the main flow. Closes bug #1797492.

xsl/common/titles.xsl

index 35a570662ea1220c76b682110ec9bd0a5d75afb8..87b9f736cbda2910b3a7c82c1ac7056e2d1464b3 100644 (file)
@@ -636,7 +636,8 @@ title of the element. This does not include the label.
                     descendant-or-self::link or
                     descendant-or-self::olink or
                     descendant-or-self::xref or
-                    descendant-or-self::indexterm">
+                    descendant-or-self::indexterm or
+                    ancestor::title">
 
       <xsl:apply-templates mode="no.anchor.mode"/>
     </xsl:when>