XSLT Basics

XSLT is designed to be used with XML documents to transform data into a form appropriate for presentation in a particular context or into an alternate XML structure. In this chapter, you examine the basics of how to use XSLT to create HTML documents.

The output from an XSLT transformation can be another XML format (this is discussed in Chapter 11, “XSLT—Transforming XML Structure”), HTML documents (the main subject of this chapter), or plain text (not discussed in this book).

Why XSLT Is Needed

XML was originally intended to be transmitted across the Web, but since XML 1.0 was finalized in 1998, the implementation of XML in Web browsers has been slow and patchy. XML’s failure to take over the Web browser does not mean that it is ...

Get Sams Teach Yourself XML in 10 Minutes 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.