Applying XSLT

From the previous discussion, it’s easy to understand how you might use XSL formatting objects to render XML documents. What’s less evident is how you will use transformations in your applications. XSLT is useful anytime you need to map data stored in single format into one or more formats. The transformations can be from

  • A data format to a presentation format

  • A data format to multiple presentations

  • A data format to another data format

  • A data format to a group of data formats

Converting from a Data Format to a Presentation Format

Let’s look at the simple case first: converting from a data format to a presentation format. For this example, Joe is accessing the human resources database to determine which employees are due for a performance ...

Get Special Edition Using XSLT 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.