What Is "page-sequence-master"

This section describes page-sequence-master, which declares a sequence of layouts with existing 'simple-page-master' layouts.

In the previous tutorial, we have learned how to apply a "simple-page-master" to a "page-sequence". As you can see from the output, "simple-page-master" is good enough to generate a simple book, which has the same layout on each every page.

If you want to generate a book that has different layouts on different pages, like cover page, first page of a chapter, index pages, etc., you need to learn the "page-sequence-master" declaration element.

What Is "page-sequence-master"? "page-sequence-master" is an XSL-FO page layout sequence declaration element. It declares a sequence of layouts with existing "simple-page-master" layouts using the following structure:

  <fo:page-sequence-master master-name="...">

   <!-- optional -->
   <fo:single-page-master-reference master-reference="..."/>

   <!-- optional -->
   <fo:repeatable-page-master-reference master-reference="..."
    maximum-repeats="..."/>

   <!-- optional -->
   <fo:repeatable-page-master-alternatives 
    maximum-repeats="...">
    <fo:conditional-page-master-reference master-reference="..." .../>
    <fo:conditional-page-master-reference master-reference="..." .../>
    ...
   </fo:repeatable-page-master-alternatives>

   ...
  </fo:page-sequence-master>

As you can see from the above structure, a "page-sequence-master" is made by 3 types of optional sub sequences of layouts:

Once a "page-sequence-master" is declared, it can be applied to a "page-sequence" in the same way as the "simple-page-master". But you need to remember the following rules to be able to use "page-sequence-master" correctly:

Table of Contents

 About This Book

 Introduction of XSL-FO

 Apache™ FOP (Formatting Objects Processor)

 RenderX XEP as an XSL-FO Tool

 Introduction of Area Model

 XSL-FO Document Basics and Examples

Page Layout Masters

 Layout Declarations

 simple-page-master - Simple Page Layout

 simple-page-master Attributes and Sub Elements

 simple-page-master/region-body Sub Element

 region-before and region-after Sub Elements

 region-start and region-end Sub Elements

 "Body" Region Margin and "Side" Region Extent

 Precedence of Side Region Corners

 Page Layout and Page Sequence Mapping

What Is "page-sequence-master"

 Layout Sequence Example - Cover and Content

 Wheat Is "repeatable-page-master-alternatives"?

 Layout Sequence Example - Odd and Even Pages

 Block-Level Formatting Objects

 Inline-Level Formatting Objects

 Including Graphics in XSL-FO document

 Table of Rows and Columns

 List, Item, Label, and Body

 Floating Blocks - "float" and "footnote"

 Hyperlinks, Table of Contents and Indexes

 Headers and Footers using "static-content"

 Font Attributes and Font Families

 Apache FOP Font Configurations

 RenderX XEP Font Configurations

 Converting HTML to PDF

 References

 Full Version in PDF/ePUB