XSL-FO layout-master-setObject
XSL-FO Reference Manual
Definition and Usage
The <fo:layout-master-set> object holds all the masters used in the document.
Note:<fo:root> is the parent element of <fo:layout-master-set>.
Note:The master-name of each child of <fo:layout-master-set> must be unique in the document.
Syntax
<fo:layout-master-set>
<!--
Contents:(simple-page-master|page-sequence-master)+
-->
</fo:layout-master-set>
<!--
Contents:(simple-page-master|page-sequence-master)+
-->
</fo:layout-master-set>
Attributes
None
Example 1
The XSL-FO document structure is as follows:
<?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>
<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>
XSL-FO Reference Manual Other Extensions