Transformations

Some rendering applications are able to accept an XML document and a stylesheet, and immediately present the content of the document using the formatting rules defined in the stylesheet. But many more formatting applications (mostly created before XML was invented) expect the input to be in a different markup language, of which the most well-known modern example is HTML.

Transformation stylesheets

In order to utilize the power of existing systems, some stylesheet languages focus on transforming XML documents into new documents that conform to the typesetting languages these systems can process.

Presently, such stylesheets are mostly used to convert XML documents into HTML documents, though alternatives such as WML, E-Book and ...

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.