Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

XSL-FO root object


May 28, 2021 XSL-FO


Table of contents


XSL-FO root object

XSL-FO root object XSL-FO reference manual

Definitions and usages

The object is the root (top-level) node of the XSL-FO document.

The sub-class of the object is a separate .

Note: An XSL-FO document can contain multiple objects (for example, each chapter of a document can be treated as a separate .lt;fo:page-sequence-gt; object - it allows the use of chapper-specific content, such as the title of a chapter, which can be placed in the header or footer).


Grammar

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

Property

Attributes
media-usage

Instance 1

The structure of the XSL-FO document 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>


XSL-FO root object XSL-FO reference manual