]> granicus.if.org Git - docbook-dsssl/commitdiff
Fix ugly prev/next bug introduced by my attempt to work around Xalan problems
authorNorman Walsh <ndw@nwalsh.com>
Sun, 12 May 2002 11:22:15 +0000 (11:22 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Sun, 12 May 2002 11:22:15 +0000 (11:22 +0000)
xsl/html/chunk.xsl

index af42e570e721ef6ce9944f8fee86995cdfe97eb4..2e0c49e4a08b3e1fb468d27f687a6923326df7b4 100644 (file)
              |ancestor::appendix[1]
              |ancestor::part[1]
              |ancestor::reference[1]
-             |ancestor::article[1])[last()]
-            |$prev-v1|$prev-v2"/>
+             |ancestor::article[1]
+             |$prev-v1
+             |$prev-v2)[last()]"/>
 
   <xsl:variable name="next-v1"
     select="(following::sect1[$chunk.section.depth &gt; 0
              |descendant::setindex[1]
              |descendant::part[1]
              |descendant::reference[1]
-             |descendant::refentry[1])[1]
-            |$next-v1|$next-v2"/>
+             |descendant::refentry[1]
+             |$next-v1
+             |$next-v2)[1]"/>
 
   <xsl:call-template name="process-chunk">
     <xsl:with-param name="prev" select="$prev"/>
              |ancestor::appendix[1]
              |ancestor::part[1]
              |ancestor::reference[1]
-             |ancestor::article[1])[last()]
-            |$prev-v1|$prev-v2"/>
+             |ancestor::article[1]
+             |$prev-v1
+             |$prev-v2)[last()]"/>
 
   <xsl:variable name="next-v1"
     select="(following::sect1[$chunk.section.depth &gt; 0][1]
              |descendant::setindex[1]
              |descendant::part[1]
              |descendant::reference[1]
-             |descendant::refentry[1])[1]
-            |$next-v1|$next-v2"/>
+             |descendant::refentry[1]
+             |$next-v1
+             |$next-v2)[1]"/>
 
   <xsl:call-template name="process-chunk">
     <xsl:with-param name="prev" select="$prev"/>