From: Mauritz Jeanson Date: Sat, 28 Mar 2009 14:17:17 +0000 (+0000) Subject: Added a new parameter, bookmarks.collapse, that controls the initial state X-Git-Tag: release/1.79.1~6^2~1052 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=97b68bbdf72ca5dfffe2bc66bc01b62ddc0fd741;p=docbook-dsssl Added a new parameter, bookmarks.collapse, that controls the initial state of the bookmark tree. When the parameter has a non-zero value (the default), only the top-level bookmarks are displayed initially. Otherwise, the whole tree of bookmarks is displayed. This is implemented for FOP 0.9X. Closes FR #1792326. --- diff --git a/xsl/fo/fop1.xsl b/xsl/fo/fop1.xsl index 566b0fb53..99d0663ed 100644 --- a/xsl/fo/fop1.xsl +++ b/xsl/fo/fop1.xsl @@ -15,6 +15,13 @@ + + + hide + show + + + @@ -40,6 +47,9 @@ + + + @@ -48,6 +58,9 @@ + + + diff --git a/xsl/fo/param.ent b/xsl/fo/param.ent index efb729051..52879e605 100644 --- a/xsl/fo/param.ent +++ b/xsl/fo/param.ent @@ -338,3 +338,4 @@ + diff --git a/xsl/fo/param.xweb b/xsl/fo/param.xweb index 79a448e1a..3aaf75397 100644 --- a/xsl/fo/param.xweb +++ b/xsl/fo/param.xweb @@ -269,6 +269,7 @@ generate.section.toc.level; §ion.container.element; &monospace.verbatim.font.width; &exsl.node.set.available; +&bookmarks.collapse; Graphics &graphic.default.extension; @@ -568,6 +569,7 @@ around all these parameters. + diff --git a/xsl/params/bookmarks.collapse.xml b/xsl/params/bookmarks.collapse.xml new file mode 100644 index 000000000..332005692 --- /dev/null +++ b/xsl/params/bookmarks.collapse.xml @@ -0,0 +1,31 @@ + + +bookmarks.collapse +boolean + + +bookmarks.collapse +Specifies the initial state of bookmarks + + + + + + + + +Description + +If non-zero, the bookmark tree is collapsed so that only the +top-level bookmarks are displayed initially. Otherwise, the whole tree +of bookmarks is displayed. + +This parameter currently works with FOP 0.93 or later. + + +