Basics of XSL-FO

XSL layout control is based on Formatting Objects, which are rectangular areas similar to boxes in CSS. These areas have a number of properties, and they can contain other areas, images, text, and so on.

An easy way to look at this is to look at some of the objects used to represent tables:

  • fo:table

  • fo:table-column

  • fo:table-row

  • fo:table-cell

Each of these XSL-FO elements represents a different object, some of which contain other objects, such as fo:table which can contain table-column, table-row, and table-cell objects. Those objects in turn contain objects (rows and columns contain cells) or they can contain content: table-cell objects will contain the text or images contained in the table.

Each of these objects will also have ...

Get Special Edition Using XML, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.