Using XSLT Stylesheets in XML Documents

You use XSLT to manipulate documents, changing and working with their markup as you want. You can use XSLT to translate XML into formatted HTML that is readily viewed, for example. Or, you can change XML into plain text, or another restructured XML document, or even a JavaScript document. XSLT provides a way of gaining access to the content of XML documents and building new documents that use and manipulate that content. For that reason, it's worthy of our study.

One of the most common transformations is from XML documents to HTML documents, and that's the kind of transformation we'll see in the examples in this chapter.

To create an XSLT transformation, you need two documents: the document to transform ...

Get Real World 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.