From: Mauritz Jeanson Date: Sun, 30 Sep 2007 08:13:23 +0000 (+0000) Subject: In no.anchor.mode mode, do not output anchors for elements that are descendants X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d068e53f7360866b25e9be1029ca8470f9e2a42c;p=docbook-dsssl In no.anchor.mode mode, do not output anchors for elements that are descendants of . 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. --- diff --git a/xsl/common/titles.xsl b/xsl/common/titles.xsl index 35a570662..87b9f736c 100644 --- a/xsl/common/titles.xsl +++ b/xsl/common/titles.xsl @@ -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>