Just as CSS brought new richness and interactivity to static HTML pages, XSLT extends the value of XML data. XSLT allows you not only to present XML data, but also to transform it into completely new data that is designed specifically for a particular user, media, or client.
With XSLT, you can do the following:
XSLT excels at mapping one XML-based representation into another. For example, a book retailer might represent a customer order based on one XML Schema, while a book supplier might represent it with another XML Schema. With XSLT, a customer order taken by the book retailer can be transformed into an XML-based representation that matches the book supplier's XML Schema. Once transformed, the book retailer can send the order to the book supplier in an XML format that the book supplier understands.
XSLT transformations are not only useful for backward compatibility for older browsers. They also transform data so that it can be rendered on the new Internet devices on the market, such as Internet-enabled handheld PCs, mobile phones, and TV set-top boxes.
With XSLT, you can output XML to a variety of media, including HTML for the Web and Package Definition Format (PDF) for print.
For example, for an XML-based catalog, you can use one style sheet to present one set of information to retail customers, while using another style sheet to present information to wholesale customers.