]> granicus.if.org Git - docbook-dsssl/commitdiff
Conditions for auto-generating index are aligned with the rest of stylesheets.
authorJirka Kosek <jirka@kosek.cz>
Wed, 19 Apr 2006 08:45:52 +0000 (08:45 +0000)
committerJirka Kosek <jirka@kosek.cz>
Wed, 19 Apr 2006 08:45:52 +0000 (08:45 +0000)
xsl/html/chunk-common.xsl

index 340f403e10b281ea223b80f68bda1278a1026c8b..d6d07be066969bc12dc1d23bb2ff51c1fb0bdc36 100644 (file)
     <xsl:when test="local-name($node)='part'">1</xsl:when>
     <xsl:when test="local-name($node)='reference'">1</xsl:when>
     <xsl:when test="local-name($node)='refentry'">1</xsl:when>
-    <xsl:when test="local-name($node)='index' and $generate.index != 0
+    <xsl:when test="local-name($node)='index' and ($generate.index != 0 or count($node/*) > 0)
                     and (local-name($node/parent::*) = 'article'
                     or local-name($node/parent::*) = 'book'
                     or local-name($node/parent::*) = 'part'