Document Top Level Structure Rules

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.

If you want to write an XSL-FO (XSL Formatting Objects) document to define formatting objects for visual presentation, you need to follow the following XSL-FO document structure rules.

1. XSL-FO document must be valid XML document with "" as the namespace.

2. The root element must be "root" acting as the XSL-FO formatting objects container.

3. Sub elements of the "root" element are:

Here is an outline of an XSL-FO document structure:

<fo:root xmlns:fo="">
  ... Required element to define page layouts

  ... Optional element to hold global declarations

  ... Optional element to hold bookmarks
  ... Presentation objects to be formatted on a sequence of pages
  ... Container of page-sequence and/or page-sequence-wrapper
  ... Required at least one page-sequence or page-sequence-wrapper


Last update: 2016.

Table of Contents

 About This XSL-FO Tutorial 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

Document Top Level Structure Rules

 Example -

 Example -

 Example -

 Page Layout Masters

 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


 PDF Printing Version