Formatting an XML Document

Writing an entire document using the XSL formatting objects is not an easy task except for short documents. I have a hard time imagining anyone using the formatting objects to write a book, for example. W3C foresaw that difficulty, and that's one of the main reasons that it also introduced the transformation language we took a look at in the previous chapter. You can write a document using your own tags, and you can use XSLT to transform the document so that it uses the XSL formatting objects. In practice, that's almost invariably the way it's done, which means that all you have to supply is an XSLT style sheet that can be used to convert your document to use formatting objects. In this way, an XSLT processor can do ...

Get Inside XML 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.