当前位置: 首页 > 网络学院 > XML相关教程 > XSL-FO > XSL-FO flow 对象

XSL-FO
XSL-FO 介绍
XSL-FO 文档
XSL-FO 区域
XSL-FO 输出
XSL-FO 流程
XSL-FO 页面
XSL-FO 块状区域
XSL-FO 列表
XSL-FO 表格
XSL-FO 和 XSLT
XSL-FO 软件
XSL-FO 参考资料

XSL-FO flow 对象


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 213 ::
收藏到网摘: n/a

Definition and Usage
定义和用法

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"属性,它是用于定义内容走向的地址的。


Syntax
语法

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

Properties
属性

属性
flow-name

Example 1
案例1

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

 

 

 

 

 

 

 

 

 


评论 (0) All

登陆 | 还没注册?