]> granicus.if.org Git - docbook-dsssl/commitdiff
refentry title in title.markup mode now follows $allow-anchors setting
authorBob Stayton <bobs@sagehill.net>
Thu, 7 Mar 2002 09:40:28 +0000 (09:40 +0000)
committerBob Stayton <bobs@sagehill.net>
Thu, 7 Mar 2002 09:40:28 +0000 (09:40 +0000)
to prevent index entries from appearing in the TOC.

xsl/common/titles.xsl

index 6baacf2c7e1b96a33193766d6fcc742f16528d0c..2e038c0e7984af9302c4335901faa8192832f197 100644 (file)
@@ -171,7 +171,15 @@ title of the element. This does not include the label.
 </xsl:template>
 
 <xsl:template match="refentrytitle|refname" mode="title.markup">
-  <xsl:apply-templates/>
+  <xsl:param name="allow-anchors" select="0"/>
+  <xsl:choose>
+    <xsl:when test="$allow-anchors != 0">
+      <xsl:apply-templates/>
+    </xsl:when>
+    <xsl:otherwise>
+      <xsl:apply-templates mode="no.anchor.mode"/>
+    </xsl:otherwise>
+  </xsl:choose>
 </xsl:template>
 
 <xsl:template match="section