Using Parameters
XFC gains added flexibility from the Parameters area of the Transformation window. In this area, you can specify any of the DocBook parameters that you want to use when converting a document. The following table shows a few examples.
Option |
Description |
paper.type |
Sets the size of paper for which to format a document intended for print. For example, you can specify USLetter to set your document on an 8.5×11-inch page. |
generate.toc |
Include or exclude a table of contents |
html.stylesheet |
Specifies a Cascading Style Sheet (CSS) for use with (X)HTML, HTML Help, JavaHelp, or WebHelp output. |
fop.extensions |
Includes bookmarks and hyperlinks in a PDF file. |
default.table.width |
Changes the width of the tables in a file. |
You specify each parameter using a name-value pair. For example:
paper.type USLetter alignment left body.font.family sans-serif
Figure 2 shows the Parameters section of the Transformation window populated with sample values. The parameters shown in the figure are for use when converting DocBook XML files to PDF.
Figure 2 Configuring DocBook parameters.
NOTE
Documentation for the various parameters is included with the DocBook XML stylesheets. The best source of information on the parameters is Bob Stayton's excellent book DocBook XSL: The Complete Guide (Sagehill Enterprises, 2003).