From 3e8c34613009b653a8b760f423a8fbb90f04fd32 Mon Sep 17 00:00:00 2001 From: Norman Walsh Date: Mon, 18 Mar 2002 23:19:12 +0000 Subject: [PATCH] Fix ToC section depth calculation --- xsl/html/autotoc.xsl | 68 ++++++++++++++++++++++++++------------------ 1 file changed, 40 insertions(+), 28 deletions(-) diff --git a/xsl/html/autotoc.xsl b/xsl/html/autotoc.xsl index 9f48ec52d..ff52ad638 100644 --- a/xsl/html/autotoc.xsl +++ b/xsl/html/autotoc.xsl @@ -229,6 +229,40 @@ + + + + + + 1 + 2 + 3 + 4 + 5 + 1 + 2 + 3 + + + + + + + 2 + 3 + 4 + 5 + 6 + 2 + 3 + 4 + 1 + + + 0 + + + @@ -250,6 +284,7 @@ + @@ -257,12 +292,12 @@ + and $toc.section.depth > $depth and count($nodes)>0"> + and $toc.section.depth > $depth and count($nodes)>0"> @@ -322,32 +357,9 @@ - - - - yes - - - - yes - - - no - - - - - - - - - - - - - - - + + + -- 2.40.0