Step 1: Creating the Sales.xml File

For this tutorial, you will create a Sales.xml file.

To create the Sales.xml file

  1. Use the Copy and Paste commands to place the following text into your HTML editor.

    <?xml version="1.0" ?>
    <sales>
       <summary>
          <heading>Lucerne Publishing</heading> 
          <subhead>Regional Sales Report</subhead> 
          <description>Sales report for the West Coast, Central and East Coast regions.</description> 
       </summary>
       <data>
          <region>
             <name>West Coast</name> 
             <quarter number="1" books_sold="24000" /> 
             <quarter number="2" books_sold="38600" /> 
             <quarter number="3" books_sold="44030" /> 
             <quarter number="4" books_sold="21000" /> 
          </region>
          <region>
             <name>Central</name> 
             <quarter number="1" books_sold="11000" /> 
             <quarter number="2" books_sold="16080" /> 
             <quarter number="3" books_sold="25000" /> 
             <quarter number="4" books_sold="29000" /> 
          </region>
          <region>
             <name>East Coast</name> 
             <quarter number="1" books_sold="27000" /> 
             <quarter number="2" books_sold="31400" /> 
             <quarter number="3" books_sold="40100" /> 
             <quarter number="4" books_sold="30000" /> 
          </region>
       </data>
    </sales>
    
  2. Save the file as Sales.xml.

  3. To view the file in Internet Explorer, open Sales.xml.

The next step is to create the XML style sheet that will create a sales report from this data.

See Also

Step 2: Matching Patterns | Tutorial: Getting Started with XSLT | Exploring XSLT Capabilities | XSLT Developer Guide

 Last updated on Saturday, April 10, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.