From da3f9015c4f017b67b7f853b2362b1dfef1d6b5c Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Tue, 23 Nov 2004 06:55:03 +0000 Subject: [PATCH] RFE #1069397 Add new parameter simplesect.in.toc - default value of 0 causes simplesect to be omitted from TOCs - to cause simplesect to be included in TOCs, you must set the value of simplesect.in.toc to 1 note from Norm: Simplesect elements aren't supposed to appear in the ToC at all. Ugh. The Definitive Guide doesn't really explain that very well. The use case for simplesect is when, for example, every chapter in a book ends with "Exercises" or "For More Information" sections and you don't want those to appear in the ToC. --- xsl/fo/param.ent | 1 + xsl/fo/param.xweb | 2 ++ xsl/html/autotoc.xsl | 8 ++++++-- xsl/html/param.ent | 1 + xsl/html/param.xweb | 2 ++ xsl/params/simplesect.in.toc.xml | 21 +++++++++++++++++++++ 6 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 xsl/params/simplesect.in.toc.xml diff --git a/xsl/fo/param.ent b/xsl/fo/param.ent index da8f41046..6d9a47009 100644 --- a/xsl/fo/param.ent +++ b/xsl/fo/param.ent @@ -199,6 +199,7 @@ + diff --git a/xsl/fo/param.xweb b/xsl/fo/param.xweb index 92e8e7784..72f3701c2 100644 --- a/xsl/fo/param.xweb +++ b/xsl/fo/param.xweb @@ -97,6 +97,7 @@ to be incomplete. Don't forget to read the source, too :-) &toc.indent.width; &toc.margin.properties; &bridgehead.in.toc; +&simplesect.in.toc; &generate.section.toc.level;