This section describes XSL-FO document top level structure rules. Root element must be 'root'. 'layout-master-set' is required to define page layouts. 'page-sequences' or 'page-sequences-wrapper' is required to define page contents.
As we see from previous chapter, each XSL-FO must
have a page layout declared first before specifying formatting objects
to be presented on pages.
So let's look at XSL-FO layout declarations first.
In XSL-FO terminology, a layout is called a "page master".
Here is a list of declaration elements related "page master" supported in XSL 1.1:
- "layout-master-set" - Acts as a container to hold page layout declarations.
- "simple-page-master" - Declares a simple page layout with 5 regions:
region-before, region-after, region-start, region-end, and one or more region-body.
- "region-body" - Declares a region in a page layout located in the center of the page.
- "region-before" - Declares a region in a page layout located at the "before" edge of the page.
- "region-after" - Declares a region in a page layout located at the "after" edge of the page.
- "region-start" - Declares a region in a page layout located at the "start" edge of the page.
- "region-end" - Declares a region in a page layout located at the "end" edge of the page.
- "page-sequence-master" - Declares a sequence of layouts to be used to
generate a sequence of pages.
- "single-page-master-reference" - Specifies that a given page layout is used
at this point to generate a single page in a "page-sequence-master" declaration.
- "repeatable-page-master-reference" - Specifies that a given page layout is used
at this point to generate a specified number of pages repeatedly.
- "repeatable-page-master-alternatives" - Specifies a container of
conditionally given page layouts to be used
to generate a specified number of pages repeatedly.
- "conditional-page-master-reference" - Specifies that a given page layout is used
at this point only when the given condition is satisfied.
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
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
Full Version in PDF/ePUB