XSL-FO page-sequence 对象
<fo:page-sequence> 对象是作为页面输出元素的容器使用的
<fo:page-sequence> <!--Contents:title?,static-content*,flow--> </fo:page-sequence>
每个页面布局都包含一个 <fo:page-sequence> 对象。<fo:page-sequence> 的子类对象规定了页面的内容
每个 <fo:page-sequence> 对象都引用了一个 <fo:page-sequence-master> 或是一个 <fo:simple-page-master>
属性
属性 |
---|
country |
force-page-count |
format |
grouping-separator |
grouping-size |
id |
initial-page-number |
language |
letter-value |
master-reference |
范例 1
<?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>
范例 2
<?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 简单教程</fo:block> </fo:flow> </fo:page-sequence> </fo:root>
上面代码的输出如下所示:
Hello 简单教程