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

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

会员登陆

帐号

密码

回答

记住密码

忘记密码? 注册

XSL-FO root 对象


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

Definition and Usage
定义和用法

The <fo:root> object is the root (top) node for XSL-FO documents.
<fo:root>对象是XSL-FO文档的根(顶级)节点

The children of the <fo:root> object are a single <fo:layout-master-set> object (which holds all masters used in the document), an optional <fo:declarations> object, and one or more <fo:page-sequence> objects.
<fo:root>对象的子类是单个<fo:layout-master-set>对象(该对象保留了在文档中使用的所有页面主[master]),是一个可供选择的<fo:declarations>对象,以及是一个或多个<fo:page-sequence对象。

Note: An XSL-FO document can contain multiple <fo:page-sequences> (e.g. each chapter of a document could be a separate <fo:page-sequence> - this would allow chapter-specific content, such as the chapter title, to be placed within the header or footer).
注意:一个XSL-FO文档可以包含多个<fo:page-sequences>对象(如:文档的每个章节都可以作为一个独立的<fo:page-sequence>对象-它允许使用chapter-specific [具体的章节]内容,如:章节的标题,它可以被放置在页眉或页脚)。


Syntax
语法

<fo:root>
  <!--
	Children:layout-master-set,declarations?,
	page-sequence+
  -->
</fo:root>

Properties
属性

属性
media-usage

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>

评论 (0) All