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

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 page-sequence 对象


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

Definition and Usage
定义和用法

The <fo:page-sequence> object is used as a container for page output elements.
<fo:page-sequence>对象是作为页面输出元素的容器所使用的。

There will be one <fo:page-sequence> object for each page layout. The children of the <fo:page-sequence> provide the content of the pages.
每个页面层中都包含一个<fo:page-sequence>对象。<fo:page-sequence>的子类对象规定了页面的内容。

Each fo:page-sequence object references either an <fo:page-sequence-master> or a <fo:simple-page-master>.
每个 fo:page-sequence 对象都涉及到了一个<fo:page-sequence-master>对象或是一个<fo:simple-page-master>对象。


Syntax
语法

<fo:page-sequence> <!--	Contents:title?,static-content*,flow -->
</fo:page-sequence>

Properties
属性

属性 
country
force-page-count
format
grouping-separator
grouping-size
id
initial-page-number
language
letter-value
master-reference

Example 1
案例1

XSL-FO documents have a structure like this:
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"> <!-- Page template goes here --> </fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="A4"> <!-- Page content goes here -->
</fo:page-sequence>
</fo:root>

Example 2
案例2

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

登陆 | 还没注册?