How Do I?

MSXML 5.0 SDK

Microsoft XML Core Services (MSXML) 5.0 for Microsoft Office - XSLT Developer's Guide

How Do I?

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.

Before you start

To complete the exercises, you need the following:

  • MSXML 4.0 or later, available from the MSDNĀ® Online Downloads.
  • Microsoft Internet Explorer 5.0 or later.
  • An HTML or text editor, such as Notepad.
  • Optionally, Internet Explorer Tools for Validating XML and Viewing XSLT Output Other Resources. This utility allows you to access the View XSL Output and Validate XML commands by right-clicking on Internet Explorer.