XML technologies / DocBook / Generating FO (PDF) / Using extensions
(Excerpt from "DocBook-XML: Media-neutral and platform-independent publishing" by Thomas Schraitle)
You have already encountered extensions in Extension functions and elements with a focus on (X)HTML. For XSL-FO similar parameters are available to use proprietary features of the FO formatter.
Use the extensions of your XSL-FO formatter to improve the following features:
Crop marks: These help the printer produce a cleanly trimmed edge in the finished product. In the DocBook stylesheets, only XEP currently supports this, through the parameter
crop.marks.Index: XSL-FO 1.0 defines no method for consolidating page numbers in an index. This cleanup removes duplicate entries and combines consecutive page numbers into a page range. The Antenna House formatter provides an extension through the attribute
axf:suppress-duplicate-page-number, while XEP uses the elementrx:page-index. FOP 0.9x currently includes no such extension.PDF bookmarks: These expose the structure of your document for faster access to chapters, sections, and so on. PDF bookmarks are inserted using the extension element
fo:bookmark(FOP) orrx:bookmark(XEP), and in AXF using the attributeaxf:outline-level.PDF metadata: These include the title, author, subject, and keywords. XEP and AXF use the extension elements
rx:meta-infooraxf:document-info.
The following parameters are currently available to support specific formatters:
Table: Extensions for FO formatters
Parameters | Description |
| enables extensions for Arbortext™. |
| enables extensions for Antenna House Formatter. |
| enables extensions for |
| enables extensions for |
| enables extensions for |
| enables extensions for XEP from RenderX. |
Your document can also be formatted without extensions, but certain features, such as PDF bookmarks, will not be included.
Copyright © 2009 Millin Verlag
You may print the online version for your private use.
Otherwise, this chapter from "DocBook-XML: Medienneutrales und plattformunabhängiges Publizieren" is subject to the same provisions as the printed edition: the work, including all its parts, is protected by copyright. All rights are reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
Millin Verlag, Siebengebirgsring 36, 53797 Lohmar, info(at)millin.de
back to top