当前位置: 首页 > 网络学院 > XML相关教程 > XSL-FO > XSL-FO page-sequence 对象
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>对象。
<fo:page-sequence> <!-- Contents:title?,static-content*,flow --> </fo:page-sequence> |
属性 |
---|
country |
force-page-count |
format |
grouping-separator |
grouping-size |
id |
initial-page-number |
language |
letter-value |
master-reference |
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> |
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
|