XSL-FO Tutorials - Herong's Tutorial Examples - v2.24, by Herong Yang
hello.fo - Sample XSL-FO document
This section provides a sample XSL-FO document, which is an XML document with 'root' element and 'layout-master-set' and 'page-sequence' sub-elements.
Here is is a sample XSL-FO document, hello.fo:
<?xml version="1.1" encoding="utf-8"?> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> <fo:simple-page-master master-name="my_page" margin="0.5in"> <fo:region-body/> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence master-reference="my_page"> <fo:flow flow-name="xsl-region-body"> <fo:block>Hello world!</fo:block> </fo:flow> </fo:page-sequence> </fo:root>
Some notes on the sample XSL-FO document:
Table of Contents
What Is XSL (eXtensible Stylesheet Language)
What Is XSLT (XSL Transformations)
What Is XSL-FO (XSL - Formatting Objects)
►hello.fo - Sample XSL-FO document
Apache™ FOP (Formatting Objects Processor)
XSL-FO Document Basics and Examples
Block-Level Formatting Objects
Inline-Level Formatting Objects
Including Graphics in XSL-FO document
Floating Blocks - "float" and "footnote"
Hyperlinks, Table of Contents and Indexes
Headers and Footers using "static-content"
Font Attributes and Font Families
Apache FOP Font Configurations