May 28, 2021 XSL-FO
This section describes the role that page-sequence objects play in XSL-FO.
The object is used as a container for page output elements.
Each page layout contains an object that is slt;fo:page-sequence. The sub-class objects of the page-sequence specify the content of the page.
Each fo:page-sequence object refers to a .lt;fo:page-sequence-master;or a .lt;fo:simple-page-master.gt;
<fo:page-sequence>
<!--
Contents:title?,static-content*,flow
-->
</fo:page-sequence>
Attributes |
---|
country |
force-page-count |
format |
grouping-separator |
grouping-size |
id |
initial-page-number |
language |
letter-value |
master-reference |
The structure of the XSL-FO document 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>
A "real" XSL-FO instance:
<?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 W3CSchool</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
The output of the code above looks like this:
Hello W3CSchool |