Page Sequences and Page Numbering

So far, I’ve used the same page master for all pages in these XSL-FO documents. If the content of a document fills more than one page, the XSL-FO processor uses the same page master for all subsequent pages.

However, you might want to use different page masters for different locations in your document. For example, you may want to format the first page differently from the subsequent pages. Using XSL-FO, you can do this.

Each <fo:page-sequence> element, which I’ve used in all XSL-FO examples, references either a page master or an <fo:page-sequence-master> element. Using the <fo:page-sequence-master> element, you can specify different page masters to use in a sequence.

The following example, pages.fo, shows how ...

Get Inside XSLT 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.