From http://www.w3schools.com (Copyright Refsnes Data)
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 the content of the pages.
Each fo:page-sequence object references either an <fo:page-sequence-master> or a <fo:simple-page-master>.
<fo:page-sequence> <!-- Contents:title?,static-content*,flow --> </fo:page-sequence> |
Property |
---|
country |
force-page-count |
format |
grouping-separator |
grouping-size |
id |
initial-page-number |
language |
letter-value |
master-reference |
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="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 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 W3Schools</fo:block> </fo:flow> </fo:page-sequence> </fo:root> |
The output from the code above would be something like this:
Hello W3Schools
|
From http://www.w3schools.com (Copyright Refsnes Data)