O'Reilly logo

Special Edition Using XML, Second Edition by - et al. David Gulbransen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required