]> granicus.if.org Git - docbook-dsssl/commitdiff
Changed "ancestor::title" to "(ancestor::title and (@id or @xml:id))".
authorMauritz Jeanson <mj@johanneberg.com>
Tue, 17 Mar 2009 16:26:23 +0000 (16:26 +0000)
committerMauritz Jeanson <mj@johanneberg.com>
Tue, 17 Mar 2009 16:26:23 +0000 (16:26 +0000)
This enables proper formatting of inline elements in titles in TOCs,
as long as these inlines don't have id or xml:id attributes.

xsl/common/titles.xsl

index 2d87a9498ea5484185812a1e32f5294396199772..82f0d3f1a5aac09751c2e2170a8896e87aa6e7c5 100644 (file)
@@ -653,7 +653,7 @@ title of the element. This does not include the label.
                     descendant-or-self::olink or
                     descendant-or-self::xref or
                     descendant-or-self::indexterm or
-                    ancestor::title">
+                   (ancestor::title and (@id or @xml:id))">
 
       <xsl:apply-templates mode="no.anchor.mode"/>
     </xsl:when>