
Extensible Stylesheet Language (XSL) • 315
6.5.4 XSL-FO: A Complete Example
Let us now use the theory studied so far to go through an example. We will create an XSL-FO page, which
will contain both the data as well as the formatting instructions. Figure 6.77 shows the XSL-FO code.
<?xml version=”1.0”?>
<fo:root xmlns:fo=”http://www.w3.org/1999/XSL/Format”>
<fo:layout-master-set>
<fo:simple-page-master master-name = “one” page-height=”4.5in”>
<fo:region-body margin-top=”1in” margin-bottom=”1in” margin-
left=”1.5in” margin-right=”1.5in”/>
<fo:region-before extent=”1.5in” margin-top=”0.3in” margin-
bottom=”0.3in” margin-left=”0.3in” margin-right=”0.3in”/> ...