to the main page about the tutorial  THE XML REVOLUTION  -  TECHNOLOGIES FOR THE FUTURE WEB back up next

XSL Formatting Objects

A small example:
<?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="my-page">
      <fo:region-body margin="1in"/>
    </fo:simple-page-master>
  </fo:layout-master-set>

  <fo:page-sequence master-name="my-page"> 
    <fo:flow flow-name="xsl-region-body"> 
      <fo:block font-family="Times" font-size="14pt">
        <fo:inline font-weight="bold">Hello</fo:inline>, world!
      </fo:block> 
    </fo:flow>
  </fo:page-sequence>

</fo:root>
- XSL-FO documents are almost always created using XSLT!

XSL-FO is not supported by existing browsers, but can be tried out using FOP that translates into PDF.

back COPYRIGHT © 2000-2003 ANDERS MØLLER & MICHAEL I. SCHWARTZBACH next