]> granicus.if.org Git - docbook-dsssl/commitdiff
TOC entry for refpurpose should use no.anchor.mode to prevent duplicate ids
authorBob Stayton <bobs@sagehill.net>
Mon, 30 Jan 2012 21:43:47 +0000 (21:43 +0000)
committerBob Stayton <bobs@sagehill.net>
Mon, 30 Jan 2012 21:43:47 +0000 (21:43 +0000)
when indexterm is inside refpurpose.

xsl/html/autotoc.xsl

index 03a87ab368d7061c84c6a0e8b370760f353b987e..522febe13423a31c64eaea001cd32d06e8bb38f5 100644 (file)
         <!-- * DocBook 5 says inlinemediaobject (among other things) -->
         <!-- * is allowed in refpurpose; so we need to run -->
         <!-- * apply-templates on refpurpose here, instead of value-of  -->
-        <xsl:apply-templates select="refnamediv/refpurpose"/>
+        <xsl:apply-templates select="refnamediv/refpurpose" mode="no.anchor.mode"/>
       </xsl:if>
     </span>
   </xsl:element>