XSL-FO page-sequence Object

« XSLFO Objects Reference

Definition and Usage

The <fo:page-sequence> object is used as a container for page output elements.

There will be one <fo:page-sequence> object for each page layout. The children of the <fo:page-sequence> provide Content of the pages.

Each fo:page-sequence object references either an <fo:page-sequence-master> or a <fo:simple-page-master>.

Syntax

<fo:page-sequence>
  <!--
    Contents:title?,static-content*,flow
  -->
</fo:page-sequence>

Properties

Property
country
force-page-count
format
grouping-separator
grouping-size
id
initial-page-number
language
letter-value
master-reference

Example

XSL-FO documents have a structure like this:

<?xml version="1.0" encoding="ISO-8859-1"?>

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">

<fo:layout-master-set>
  <fo:simple-page-master master-name="PaperSize">
    <!-- Page template goes here -->
  </fo:simple-page-master>
</fo:layout-master-set>

<fo:page-sequence master-reference="PaperSize">
  <!-- Page content goes here -->
</fo:page-sequence>

</fo:root>

Example

A "real" XSL-FO example:

<?xml version="1.0" encoding="ISO-8859-1"?>

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">

<fo:layout-master-set>
<fo:simple-page-master master-name="PaperSize">
</fo:simple-page-master>
</fo:layout-master-set>

<fo:page-sequence master-reference="PaperSize">
<fo:flow flow-name="xsl-region-body">
<fo:block>NewFile. QcTutorials</fo:block>
</fo:flow>
</fo:page-sequence>

</fo:root>

The output from the code above would be something like this:

NewFile. QcTutorials

 

 

 

 

 

 

 

 

 



« XSLFO Objects Reference

Have Any Suggestion? We Are Waiting To Hear from YOU!

Your Query was successfully sent!