The following tutorials demonstrate some common XSLT tasks.
This set of task-based, hands-on exercises shows you how to create an XSLT solution. The scenario is to design a simple regional sales reporting system for a fictitious book publishing enterprise, Scootney Publishing. This involves creating an XML document to represent the quarterly sales data, specifying template rules in an XSLT style sheet to handle business logic, and presenting the sales results in a format that can be viewed from the Web.
You will work with the following three files throughout the exercises.
File name | Description |
---|---|
Sales.xml | An XML document that contains the input data. |
Transform.xsl | An XSLT style sheet used to transform the input data. |
Ancillary.xml | An XML file from which the XSLT style sheet extracts additional data. |
Bold text will be used to highlight parts of the code that are relevant and important in each step. Files created at the end of each step might represent only a part of the final solution. As a reference, the complete listings of these three files, plus the output in HTML, are shown in Final Results of the XSLT How Do I? Examples, at the end of this section.
To complete the exercises, you need the following: