Pages

A template is used to define page characteristics. The dimensions of the page itself, and the margins that surround the area of the page that can be written to, are both specified using attributes on the Simple Page Master element.

Height and width

The height and width of the page is specified using the Page Height and Page Width attributes (an A4 page has a height of 29.7cm and a width of 21.0cm):

<simple-page-master master-name="Prelims"
                    page-height="29.7cm"
                    page-width="21.0cm">
  ...
</simple-page-master>

The value 'auto' is used when the page size is not known by the formatter. The value 'indefinite' specifies that the size of the page should be driven by the content. This is appropriate for the height dimension when the information ...

Get XSL companion, The now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.