XSL-FO layout-master-set 对象
<fo:layout-master-set> 对象保存所有在文档中使用的宿主(master)
<fo:layout-master-set> <!--Contents:(simple-page-master|page-sequence-master)+--> </fo:layout-master-set>
notice: <fo:root> 是 <fo:layout-master-set> 的父类 <fo:layout-master-set>的每个子类的宿主名(master-name)在文档中必须是独一无二的。
范例 1
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>