|
XSL-FO root Object
Definition and Usage
The <fo:root> object is the root (top) node for XSL-FO documents.
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.
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).
Syntax
<fo:root>
<!--
Children:layout-master-set,declarations?,
page-sequence+
-->
</fo:root>
|
Properties
Example 1
XSL-FO documents have a structure like this:
<?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>
|

Need an easy way to get data into XML, or transform XML to another format?
MapForce lets you map XML data to/from any combination of XML, database, flat file, Excel 2007, XBRL, or Web services data.
Then it transforms data instantly or auto-generates royalty-free data integration code for recurrent conversions.
Download a free, fully functional 30-day trial to experience the following features:
- Easy-to-use, graphical data mapping interface
- Instant data transformation
- XSLT 1.0/2.0 and XQuery code generation
- Java, C#, and C++ code generation
- Advanced data processing functions
- Support for all major relational databases including SQL Server, IBM DB2, Oracle, and more
- Visual Studio & Eclipse integration
Download a fully-functional trial today!
|
|
|
|