Creating Page Sequences: <fo:page-sequence>

What’s a page sequence? A page sequence is a run of pages that share the same characteristics, such as a chapter in a book, and you can format them in a similar way if you wish. The pages in a result document are actually created when the XSL-FO processor processes <fo:pagesequence> elements.

Each <fo:pagesequence> element refers to either an <fo:page-sequence-master>or a page master, and the actual layout of the pages is specified by those masters. You can get fairly involved here, creating sequences where the page number location alternates from side to side on the page, as when you’re creating pages for a book.

The following properties apply to the <fo:pagesequence>object:

  • country

  • format

  • language ...

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.