[xep-support] XEP and support of bookmarks.collapse parameter for PDF output
David Clunie
dclunie at dclunie.com
Tue Jan 7 03:13:24 PST 2014
Hi Bob et al
I have been trying to get my PDF from Docbook bookmarks in a collpased
state, and I noticed examining the "fop1.xsl" and "xep.xsl" stylesheets
that the former contains handling for "bookmarks.collapse", and the
latter does not.
I customized the necessary template as in the attached file
to follow the same pattern as used in fop1.xsl to set a "bookmarks.state"
variable based on the "bookmarks.collapse" parameter, then used it to
add a "starting-state" attribute to each of the "rx:bookmark" elements,
and this seems to do the job.
It would be nice to have this folded back into the a future release
of the docbook-xsl stylesheets, since this seems generally useful.
I am using docbook-xsl-1.78.1.
David
!DSPAM:87,52cbe1629853578412720!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: customize-fo_collapse.xsl
Type: text/xml
Size: 3786 bytes
Desc: not available
URL: <http://lists.renderx.com/pipermail/xep-support/attachments/20140107/78e09829/attachment.xml>
More information about the Xep-support
mailing list