XML technologies / DocBook / The DocBook XSL stylesheets / Adjusting output with processing instructions
(Excerpt from "DocBook-XML: Media-neutral and platform-independent publishing" by Thomas Schraitle)
The DocBook stylesheets use processing instructions (Processing instructions, PIs) for various purposes. The following types exist:
Table: Processing instructions for output formats
PI | Output format | Description |
Format-dependent processing instructions | ||
| For XSL-FO output. | |
| HTMLHelp | For HTMLHelp output; not covered in this book. |
| Online | For (X)HTML, Javahelp and Eclipse output. |
Format-independent processing instructions | ||
| Online, XSL-FO | Inserts dates and times; see Inserting the current date and time. |
| Online, XSL-FO | creates a localized version of |
The placeholder PARAM represents data for the respective processing instruction. The syntax is: Name="Wert". For a complete list, see DocBook XSL Stylesheets User Reference: PIs.
Certain properties can be controlled for each output format. For example, this processing instruction controls how a variable list is rendered:
Example: Processing instructions for (X)HTML and XSL-FO
<variablelist>
<?dbhtml list-presentation="table"?>
<?dbfo list-presentation="blocks"?>
<varlistentry> ... </varlistentry>
</variablelist>The processing instruction <?dbhtml?> renders the list in (X)HTML using the element table whereas <?dbfo?> uses a fo:block element for XSL-FO output.
Processing instructions apply only to their containing element. They typically specify width, background color, spacing and similar output-specific properties, potentially overriding global parameters.
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