From c2985d918f30b5ffd6882f25345b9540ba8c8297 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Thu, 27 Apr 2006 09:40:33 +0000 Subject: [PATCH] Added the autotoc.label.in.hyperlink param. If the value of autotoc.label.in.hyperlink is non-zero, labels are included in hyperlinked titles in the TOC. If it is instead zero, labels are still displayed prior to the hyperlinked titles, but are not hyperlinked along with the titles. Closes patch #1065868. Thanks to anatoly techtonik for the patch. --- xsl/html/autotoc.xsl | 17 ++++++++++++++++ xsl/html/param.ent | 1 + xsl/html/param.xweb | 2 ++ xsl/params/autotoc.label.in.hyperlink.xml | 24 +++++++++++++++++++++++ 4 files changed, 44 insertions(+) create mode 100644 xsl/params/autotoc.label.in.hyperlink.xml diff --git a/xsl/html/autotoc.xsl b/xsl/html/autotoc.xsl index e9016d37f..d381694a0 100644 --- a/xsl/html/autotoc.xsl +++ b/xsl/html/autotoc.xsl @@ -276,6 +276,19 @@ + + + + + + + + + + + + + @@ -283,6 +296,9 @@ + + + @@ -290,6 +306,7 @@ + diff --git a/xsl/html/param.ent b/xsl/html/param.ent index d9211a293..790aedb87 100644 --- a/xsl/html/param.ent +++ b/xsl/html/param.ent @@ -7,6 +7,7 @@ + diff --git a/xsl/html/param.xweb b/xsl/html/param.xweb index 020a22794..5bf21b276 100644 --- a/xsl/html/param.xweb +++ b/xsl/html/param.xweb @@ -83,6 +83,7 @@ stylesheet like this: ToC/LoT/Index Generation &annotate.toc; &autotoc.label.separator; +&autotoc.label.in.hyperlink; &process.source.toc; &process.empty.source.toc; &bridgehead.in.toc; @@ -463,6 +464,7 @@ around all these parameters. + diff --git a/xsl/params/autotoc.label.in.hyperlink.xml b/xsl/params/autotoc.label.in.hyperlink.xml new file mode 100644 index 000000000..15f93d086 --- /dev/null +++ b/xsl/params/autotoc.label.in.hyperlink.xml @@ -0,0 +1,24 @@ + + +autotoc.label.in.hyperlink +boolean + + +autotoc.label.in.hyperlink +Include lable in hyperlinked titles in TOC? + + + + + + +Description + +If the value of +autotoc.label.in.hyperlink is non-zero, labels +are included in hyperlinked titles in the TOC. If it is instead zero, +labels are still displayed prior to the hyperlinked titles, but +are not hyperlinked along with the titles. + + + -- 2.40.0