XSL-FO flowObject

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

Definition and Usage

Content from the <fo:flow> object fills the XSL-FO page.

The <fo:flow> object contains all elements to be printed to the page.

When the page is full, the same master page will be reused until all text is printed.

The <fo:flow> object has a "flow-name" attribute that defines where the content goes.


Syntax

<fo:flow>
<!--
Contents:(block|block-container|
table-and-caption|table|
list-block)+
-->
</fo:flow>

Attributes

Attributes
flow-name

Example 1

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 EXAMPLE</fo:block>
</fo:flow>
</fo:page-sequence>

</fo:root>

The output of the above code is shown below:

Hello EXAMPLE



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