]> granicus.if.org Git - docbook-dsssl/commitdiff
Reordered erroneous test: only link to top-level sections, even if the first one...
authorNorman Walsh <ndw@nwalsh.com>
Mon, 18 Jun 2001 20:37:57 +0000 (20:37 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Mon, 18 Jun 2001 20:37:57 +0000 (20:37 +0000)
xsl/html/chunk-common.xsl

index a658196c3efaa032c4d740b74d735e311f36c2a4..41fefdbfd3348c17a6e293285d9e7644555732bd 100644 (file)
@@ -113,9 +113,9 @@ its parent.
     </xsl:when>
     <xsl:when test="$chunk.sections != 0
                     and name($node)='section'
+                    and count($node/parent::section) = 0
                     and ($chunk.first.sections != 0
-                         or (count($node/parent::section) = 0
-                             and count($node/preceding-sibling::section)))>0">
+                         or count($node/preceding-sibling::section))>0">
       <xsl:text>1</xsl:text>
     </xsl:when>
     <xsl:when test="name($node)='preface'">1</xsl:when>