From 196c986c59ce2ee22c6f4bc5e97ee41abb024e54 Mon Sep 17 00:00:00 2001 From: Bob Stayton Date: Tue, 1 Oct 2002 05:07:41 +0000 Subject: [PATCH] Changed the section.level template to return a number that matches the section level (sect1 = 1, etc.). --- xsl/common/common.xsl | 67 ++++++++++++++++++++++--------------------- 1 file changed, 35 insertions(+), 32 deletions(-) diff --git a/xsl/common/common.xsl b/xsl/common/common.xsl index 27fe4ef5e..c4f37b6bf 100644 --- a/xsl/common/common.xsl +++ b/xsl/common/common.xsl @@ -183,11 +183,10 @@ simplemsgentry This template calculates the hierarchical level of a section. -Hierarchically, components are top level, so a -sect1 is at level 2, sect3 is -at level 3, etc. +The element sect1 is at level 1, sect2 is +at level 2, etc. -Recursive sections are calculated down to the sixth level. +Recursive sections are calculated down to the fifth level. @@ -202,7 +201,7 @@ Defaults to the context node. -The section level, 2, 3, etc. +The section level, 1, 2, etc. @@ -210,42 +209,42 @@ Defaults to the context node. - 2 - 3 - 4 - 5 - 6 + 1 + 2 + 3 + 4 + 5 - 6 - 5 - 4 - 3 - 2 + 5 + 4 + 3 + 2 + 1 - 2 - 3 - 4 + 1 + 2 + 3 - 3 - 4 - 5 - 6 - 6 + 2 + 3 + 4 + 5 + 5 - 6 - 5 - 4 - 3 + 5 + 4 + 3 + 2 - 2 + 1 - 2 + 1 @@ -275,12 +274,16 @@ Defaults to the context node. |ancestor::refsect3 |ancestor::refsect2 |ancestor::refsect1)[last()]"/> + 1 - - - + + + + + + -- 2.50.1