XSL-FO flow objects
Definition and Usage
From <fo: flow> the contents of the object's fill XSL-FO page.
<Fo: flow> object that contains all the elements to be printed on a page.
When the page is full, you will reuse the same master page until after all the text printed.
<Fo: flow> object has a "flow-name" property, which defines the content will go.
grammar
<fo:flow>
<!--
Contents:(block|block-container|
table-and-caption|table|
list-block)+
-->
</fo:flow>
<!--
Contents:(block|block-container|
table-and-caption|table|
list-block)+
-->
</fo:flow>
Attributes
属性 |
---|
flow-name |
Example 1
A "real" XSL-FO instances:
<?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>
<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 is as follows:
Hello W3CSchool |
XSL-FO Reference Manual