From: Jirka Kosek Date: Fri, 7 Feb 2003 10:11:30 +0000 (+0000) Subject: Added paramater toc.max.depth which controls maximal depth of ToC as requested by... X-Git-Tag: release/1.79.1~6^2~4790 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=24cf191b2f13d7a310dc2f4b51d4d081546f6ba2;p=docbook-dsssl Added paramater toc.max.depth which controls maximal depth of ToC as requested by PHP-DOC group. --- diff --git a/xsl/html/Makefile.param b/xsl/html/Makefile.param index 9b5a5ed63..8fa48e860 100644 --- a/xsl/html/Makefile.param +++ b/xsl/html/Makefile.param @@ -194,6 +194,7 @@ PARAMS=../params/admon.graphics.xml \ ../params/textinsert.extension.xml \ ../params/toc.list.type.xml \ ../params/toc.section.depth.xml \ + ../params/toc.max.depth.xml \ ../params/ulink.target.xml \ ../params/use.embed.for.svg.xml \ ../params/use.extensions.xml \ @@ -222,4 +223,12 @@ PARAMS=../params/admon.graphics.xml \ ../params/table.cell.border.thickness.xml \ ../params/table.frame.border.color.xml \ ../params/table.frame.border.style.xml \ - ../params/table.frame.border.thickness.xml + ../params/table.frame.border.thickness.xml \ + ../params/ignore.image.scaling.xml \ + ../params/footnote.number.format.xml \ + ../params/table.footnote.number.format.xml \ + ../params/footnote.number.symbols.xml \ + ../params/table.footnote.number.symbols.xml \ + ../params/entry.propagates.style.xml \ + ../params/glossentry.show.acronym.xml \ + ../params/xref.with.number.and.title.xml diff --git a/xsl/html/autotoc.xsl b/xsl/html/autotoc.xsl index 820e7e61b..3fd1a4da5 100644 --- a/xsl/html/autotoc.xsl +++ b/xsl/html/autotoc.xsl @@ -235,6 +235,8 @@ + + @@ -266,12 +268,14 @@ + and $toc.section.depth > $depth and count($nodes)>0 + and $toc.max.depth > $depth.from.context"> + and $toc.section.depth > $depth and count($nodes)>0 + and $toc.max.depth > $depth.from.context"> diff --git a/xsl/html/param.ent b/xsl/html/param.ent index a2bed3a4c..d5df1edd9 100644 --- a/xsl/html/param.ent +++ b/xsl/html/param.ent @@ -194,6 +194,7 @@ + diff --git a/xsl/html/param.xweb b/xsl/html/param.xweb index 40016402b..bd89ec7fe 100644 --- a/xsl/html/param.xweb +++ b/xsl/html/param.xweb @@ -94,6 +94,7 @@ to be incomplete. Don't forget to read the source, too :-) &manual.toc; &toc.list.type; &toc.section.depth; +&toc.max.depth; &generate.toc; &generate.section.toc.level; &generate.index; @@ -603,6 +604,7 @@ around all these parameters. + diff --git a/xsl/params/toc.max.depth.xml b/xsl/params/toc.max.depth.xml new file mode 100644 index 000000000..d96d02658 --- /dev/null +++ b/xsl/params/toc.max.depth.xml @@ -0,0 +1,20 @@ + + +toc.max.depth +integer + + +toc.max.depth +How maximaly deep should be each TOC? + + + +8 + + +Description + +Specifies the maximal depth of TOC on all levels. + + +