A. Parameters of the XSLT stylesheets used to convert XHTML to XSL-FO
Prev |  |

## A. Parameters of the XSLT stylesheets used to convert XHTML to XSL-FO

Parameter | Value | Default Value | Description
--- | --- | --- | ---
`font-family` | `serif` | `sans-serif` | `serif` | The family of the font used for most body elements (paragraphs, tables, lists, etc).
`font-size` | Length in `pt` | `10pt` | The size of the font used for most body elements (paragraphs, tables, lists, etc). All the other font sizes are computed relatively to this font size.
`hyphenate` | `false` | `true` | `true` | Specifies whether words may be hyphenated.

`img-src-path`

URI ending with '`/`'

`''`

By default, `<img src='foo.gif'/>` is translated to `<fo:external-graphic src='foo.gif'/>`. If this parameter is not empty and if the value of the `src` attribute is a relative URI, then this parameter is prepended to the value of the `src` attribute.

For example, this allows to generate an XSL-FO file where all the references to graphic files are absolute URIs.

`page-footer-margin` | Length | `0.5in` | The height reserved for the page footer.
`page-header-margin` | Length | `0.5in` | The height reserved for the page header.
`page-height` | Length | Dynamic. Depends on `paper-type` and `page-orientation`. | The height of the printed page.
`page-margin-bottom` | Length | `1in` | The distance between the bottom of the page and the bottom of the printed area.
`page-margin-left` | Length | `1in` | The distance between the left of the page and the left of the printed area.
`page-margin-right` | Length | `1in` | The distance between the right of the page and the right of the printed area.
`page-margin-top` | Length | `1in` | The distance between the top of the page and the top of the printed area.
`page-number-print-in-footer` | `false` | `true` | `true` | Specifies whether the page footer should include the page number.
`page-orientation` | `portrait` | `landscape` | `portrait` | The orientation of the printed page .
`page-width` | Length | Dynamic. Depends on `paper-type` and `page-orientation`. | The width of the printed page.

`paper-type`

`2A0` | `4A0` | `A0` | `A1` | `A10` | `A2` | `A3` | `A4` | `A5` | `A6` | `A7` | `A8` | `A9` | `B0` | `B1` | `B10` | `B2` | `B3` | `B4` | `B5` | `B6` | `B7` | `B8` | `B9` | `C0` | `C1` | `C10` | `C2` | `C3` | `C4` | `C5` | `C6` | `C7` | `C8` | `C9` | `USletter`

`USletter`

A convenient way to specify the size of the printed page.

It is also possible to specify a custom paper type by ignoring the `paper-type` parameter and directly specifying the `page-width` and `page-height` parameters.

`root-id` | ID | `''` | If this parameter is not empty, it must be the value of an `id` attribute that occurs in the document being formatted. The entire document will be loaded, but formatting will begin at the element identified, rather than at the root element. For example, this allows to convert a specific `div` element rather than the whole XHTML document.
`text-align` | `justify` | `start` | `justify` | Specifies whether text (e.g. in paragraphs) should be justified (that is, flush left and right) or just left aligned (that is, flush left and ragged right).
`title-print-in-header` | `false` | `true` | `true` | Specifies whether the page header should include the title of the XHTML document being converted.

Prev |  |
5. Spell checking | Home |