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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access