From: Norman Walsh Date: Tue, 30 Apr 2002 17:51:05 +0000 (+0000) Subject: First attempt to workaround Xalan array-out-of-bounds bug X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c0974b5d321634b48856b15d6debbad340e3c42b;p=docbook-dsssl First attempt to workaround Xalan array-out-of-bounds bug --- diff --git a/xsl/html/chunk.xsl b/xsl/html/chunk.xsl index 6c1715324..3b7b3be3f 100644 --- a/xsl/html/chunk.xsl +++ b/xsl/html/chunk.xsl @@ -63,99 +63,94 @@ - - |ancestor::sect1[$chunk.section.depth > 0 + + + |ancestor::article[1])[last()] + |$prev-v1|$prev-v2"/> - - |following::bibliography[1] - |following::glossary[1] - |following::index[1] - |following::article[1] - |following::setindex[1] - |descendant::book[1] - |descendant::preface[1] - |descendant::chapter[1] - |descendant::appendix[1] - |descendant::article[1] - |descendant::bibliography[1] - |descendant::glossary[1] - |descendant::index[1] - |descendant::colophon[1] - |descendant::setindex[1] - |descendant::part[1] - |descendant::reference[1] - |descendant::refentry[1] - - |descendant::sect1[$chunk.section.depth > 0 + + and not(ancestor::section[not(preceding-sibling::section)])])[1]"/> + + @@ -240,6 +245,22 @@ + + + + + |ancestor::article[1])[last()] + |$prev-v1|$prev-v2"/> + + + + + |descendant::refentry[1])[1] + |$next-v1|$next-v2"/>