Basics of XSL-FO

XSL layout control is based on Formatting Objects, which are rectangular areas similar to boxes in CSS. The rectangular boxes are not necessarily physically represented, but they are the mechanism that rendering engines use to lay out your pages based on XSL-FO. 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 examine 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 ...

Get Special Edition Using XSLT 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.