网络学院 w3pop社区 网络资源 IT新闻

w3pop.com :: 网络学院 :: XSL-FO :: XSL-FO flow 对象

会员登陆

帐号

密码

回答

记住密码

忘记密码? 注册

XSL-FO flow 对象


作者:w3pop.com 翻译/整理:w3pop.com 发布:2007-04-29 浏览:550 :: ::

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