[xep-support] XEP and support of bookmarks.collapse parameter for PDF output

From: David Clunie <dclunie@dclunie.com>
Date: Tue Jan 07 2014 - 03:13:24 PST

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!

_______________________________________________
(*) To unsubscribe, please visit http://lists.renderx.com/mailman/options/xep-support
(*) By using the Service, you expressly agree to these Terms of Service http://w
ww.renderx.com/terms-of-service.html

Received on Tue Jan 7 03:13:42 2014

This archive was generated by hypermail 2.1.8 : Tue Jan 07 2014 - 03:13:48 PST