From b39b12742fbcc07cf4ea0b4ba26a95394265773f Mon Sep 17 00:00:00 2001 From: Mauritz Jeanson Date: Sun, 30 Sep 2007 08:13:23 +0000 Subject: [PATCH] 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. --- xsl/common/titles.xsl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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> -- 2.50.1