XSL-FO page-sequenceObject

XSL-FO 参考手册XSL-FO Reference Manual

Definition and Usage

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

Each page layout contains a <fo:page-sequence> object. The sub-objects of <fo:page-sequence> define the content of the page.

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


Syntax

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

Attributes

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

Example 1

The XSL-FO document structure is as follows:

<?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="A4">
<!-- Page template goes here -->
</fo:simple-page-master>
</fo:layout-master-set>

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

</fo:root>

Example 2

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="A4">
</fo:simple-page-master>
</fo:layout-master-set>

<fo:page-sequence master-reference="A4">
<fo:flow flow-name="xsl-region-body">
<fo:block>Hello RUOOOB</fo:block>
</fo:flow>
</fo:page-sequence>

</fo:root>

The output of the above code is as follows:

Hello RUOOOB



XSL-FO 参考手册XSL-FO Reference Manual Other Extensions