[PATCH sgml-doctools] Add support for PDF bookmarks in the xorg stylesheet

Gaetan Nadon memsize at videotron.ca
Sat Dec 11 15:54:45 PST 2010

From: Matt Dew <matt at osource.org>

PDF files can optionally include an active table of contents
that is displayed alongside the pages in the PDF viewer.
These references are called bookmarks.

PDF bookmarks are generated using special functions in each XSL-FO processor
because XSL cannot produce them directly.

Signed-off-by: Gaetan Nadon <memsize at videotron.ca>

No visible problems when building xorg-docs using fop 0.95.
Can you try on some other docs?
I suppose with don't have docs with bookmarks as of yet.

 xorg.xsl |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/xorg.xsl b/xorg.xsl
index cf6c649..d3b0612 100644
--- a/xorg.xsl
+++ b/xorg.xsl
@@ -41,6 +41,10 @@ DEALINGS IN THE SOFTWARE.
   <!-- Index links should point to indexterm location, not start of section -->
   <xsl:param name="index.links.to.section" select="0"/>
+  <!-- PDF bookmarks extensions for FOP version 0.90 and later will be used. -->
+  <xsl:param name="fop.extensions" select="0"></xsl:param>
+  <xsl:param name="fop1.extensions" select="1"></xsl:param>
      Speed up ps & pdf creation by not creating pages with "draft" image,
      thus not needing to wait for http fetch of draft.png from docbook website.

More information about the xorg-devel mailing list