当前位置: 首页 > 网络学院 > XML相关教程 > XSL-FO > XSL-FO flow 对象
XSL-FO pages are filled with content from the <fo:flow> object.
XSL-FO页面中包含了来自<fo:flow>对象的内容。
The <fo:flow> object contains all elements to be printed to the page.
<fo:flow>对象包含了全部被输出到页面的元素。
When the page is full, the same page master will be used over (and over) again until all the text is printed.
当页面内容饱和时,将反复使用相同的页主直到文本内容被全部输出。
The <fo:flow> object has a "flow-name" property that defines where the content will go.
<fo:flow>对象拥有一个"flow-name"属性,它是用于定义内容走向的地址的。
<fo:flow> <!-- Contents:(block|block-container| table-and-caption|table| list-block)+ --> </fo:flow> |
属性 |
---|
flow-name |
A "real" XSL-FO example:
一个“真正的”XSL-FO案例:
<?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
|