Integrating XSLT and XSL-FO

Of course, XSL-FO is a part of the XSL Recommendation, and as such, you shouldn't think of it as being entirely separate from other extremely useful aspects of XSL and XSLT. In fact, one of the most powerful applications of XSL-FO involves building the XSL-FO sheets dynamically using XSL Transformations.

In the examples we have used so far in this chapter, we have inserted the data our stylesheets are formatting directly into the stylesheet itself. However, separating content from display is one of the points of a structured markup language such as XML. One way in which we can use an XSL-FO stylesheet while still having our data separate in an XML file is through XSLT.

For example, let's say we had a very simple table, ...

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.