Chapter 12. XML output

One of the most significant tasks that XSLT is suitable to perform is XML-to-XML transformations. In many cases, this would be done to prepare a document for publishing (using HTML or XSL). Indeed, the primary purpose of XSLT is to create XML documents that conform to the XSL DTD. But there is no real reason why it should be restricted to this application. XSLT is a good, general-purpose XML transformation tool. It therefore includes a number of features for outputting XML structures, including elements, attributes, comments and processing instructions. It is also able to copy-through fragments of a source XML document directly to the output.

Get XSL companion, The 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.