Implicit stylesheet references

A common approach to selecting a stylesheet is to simply state which stylesheet to use when it is needed. Many command-line or GUI-based tools allow a document to be formatted by specifying the source XML document, then the stylesheet to use, and finally the output file to be created. In the following example, the same XML document is formatted three times, to produce output suitable for different media:

>style  doc1.XML  paperOut.XSL  doc1.FO
>OK
>
>style  doc1.XML  webOut.XSL  doc1.HTM
>OK
>
>style  doc1.XML  wapOut.XSL  doc1.WML
>OK

In a professional publishing application, many XML documents conforming to the same DTD may be formatted together, in a 'batch process', with all the documents formatted using the same stylesheet. ...

Get XML Companion, The, Third 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.