]> granicus.if.org Git - docbook-dsssl/commitdiff
Fixed bug 743752 where generate.index=0 and empty index
authorBob Stayton <bobs@sagehill.net>
Thu, 19 Jun 2003 07:29:30 +0000 (07:29 +0000)
committerBob Stayton <bobs@sagehill.net>
Thu, 19 Jun 2003 07:29:30 +0000 (07:29 +0000)
left a dead Index link in the TOC.

xsl/html/autotoc.xsl

index 5c46d87fd555a71d33b3495f7d10d79d5e006910..446c9372af02422b9969effead7f6a6704aac9f6 100644 (file)
   <xsl:param name="toc-context" select="."/>
 
   <!-- If the index tag is empty, don't point at it from the TOC -->
-  <xsl:if test="* or $generate.index">
+  <xsl:if test="* or $generate.index != 0">
     <xsl:call-template name="subtoc">
       <xsl:with-param name="toc-context" select="$toc-context"/>
     </xsl:call-template>