Exchanging and Transforming Data Using XML and XSLT

5 Day Course
Hands On
Code M1913

This course has been retired. The Transforming XML using XSLT Style Sheets course is recommended as an alternative.

Modules

Hide all

Overview of XML and XSLT (6 topics)

  • Representing Data with XML
  • Transforming XML Documents with XSLT
  • Using XML and XSLT to Build Solutions <ul> After completing this module, students wll be able to: </ul>
  • Describe the syntax of XML documents.
  • Describe the purpose of XSLT style sheets
  • Describe typical problems that XSLT style sheets are used to solve.

Selecting and Navigating Nodes Using XPath (10 topics)

  • Introducing XPath
  • Accessing Node Information
  • Navigating a Document Using Location Paths
  • Using Operators and Functions in Location Paths
  • Lab 2.1: Accessing Node Information
  • Lab 2.2: Selecting and Navigating Nodes Using XPath <ul> After completing this module, you will be able to use Xpath to traverse nodes in a tree. This includes: </ul>
  • Using XPath expressions within the Document Object Model (DOM) methods selectNodes() and selectSingleNode().
  • Writing XPath location paths to select specific nodes from an XML document.
  • Writing conditional expressions in XPath.
  • Using XPath operators and functions to write more sophisticated expressions.

Introducing XSLT (6 topics)

  • Introducing XSLT
  • Template Rules
  • Enhancing Template Rules
  • Lab: Defining and Using Template Rules <ul> After completing this module, you will be able to explain and implement the rules for using templates in XSLT. This includes: </ul>
  • Applying an XSLT style sheet to an XML document, both statically and dynamically.
  • Defining and instantiating template rules to make use of the transformation capabilities of XSLT.

Refining and Combining Style Sheets (10 topics)

  • Sorting Document Content
  • Controlling Document Output
  • Including and Importing Style Sheets
  • Lab: Refining and Combining XSLT Style Sheets <ul> After completing this module, you will be able to sort the contents of an XML document and use style sheets. This includes: </ul>
  • Specifying a sort order for the result document, alphabetically or numerically, in ascending or descending order.
  • Specifing number formats for the result document.
  • Specifing whether white space in the result document is stripped or preserved.
  • Including one style sheet inside another.
  • Importing one style sheet into another.
  • Overriding imported template rules in the main style sheet.

Programming with XSLT (11 topics)

  • Named Templates
  • Variables and Parameters
  • Performing Repetition and Conditional Processing
  • Using XSLT Extension Elements and Functions
  • Lab: Programming with XSLT <ul> After completing this module, you will be able to write code to perform tasks in XSLT. This includes: </ul>
  • Defining and calling named templates.
  • Using named templates to organize a style sheet effectively.
  • Defining variables to represent complex expressions.
  • Defining parameters for a template rule or a style sheet.
  • Performing repetition and conditional logic within a template.
  • Using extension elements and extension functions.

Defining XML Grammar and Data Types (10 topics)

  • Defining and Using XML Schemas
  • Defining Elements in an XML Schema
  • Defining Attributes in an XML Schema
  • Defining Data Types in an XML Schema
  • XML Schemas and ADO
  • Lab: Defining XML Grammar and Data Types <ul> After completing this module, you will be able to create and use an XML Schema. This includes: </ul>
  • Creating an XML Schema definition.
  • Applying an XML Schema to an XML document.
  • Using an XML Schema to define the grammar of an XML document.
  • Using an XML Schema to describe the content data types in an XML document.

Creating and Changing XML Structure with XSLT (5 topics)

  • Creating New Structure Using XSLT <ul> After completing this module, you will be able to create a new XML structure by using XSLT. This includes: </ul>
  • Creating new elements in a result document.
  • Defining attributes and namespaces for new elements.
  • Inserting numbered text into a result document.
  • Adding processing instructions and comments to a result document as necessary.

Cross-Referencing Documents Using XSLT (8 topics)

  • Accessing Multiple XML Documents in a Style Sheet
  • Introducing Cross-References
  • Generating Cross-References in Result Documents
  • Lab: Cross-Referencing Documents Using XSLT <ul> After completing this module, you will be able to cross-reference documents by using XSLT. This includes: </ul>
  • Writing XSLT style sheets that access and transform multiple XML documents.
  • Defining keys to identify nodes in an XML document.
  • Using keys to access nodes in the same XML document or a different XML document.
  • Generating cross-references in the result document of an XSLT transformation.

Manipulating XML Documents Using SAX (6 topics)

  • Overview of SAX
  • Using SAX Interfaces
  • Lab: Manipulating XML Documents Using Sax <ul> After completing this module, you will be able to use the SAX interfaces to manipulate XML documents. This includes: </ul>
  • Identifying situations where it is more useful to manipulate XML documents by using SAX than by using the DOM.
  • Choosing the correct SAX COM interface and methods to handle typical programming tasks associated with manipulating an XML document.
  • Creating an application with Visual Basic that uses SAX to manipulate an XML document.

Putting It All Together (12 topics)

  • Scope and Purpose of the Northwind Traders Web Site
  • Lab: Northwind Traders Web Site <ul> After completing this module, you will be able to use all of the skills you learned in this course to transform and manage data by using XSLT. This includes: </ul>
  • Making appropriate use of XSLT and XML technical features.
  • Creating XML documents from a database by using Microsoft ActiveX Data Objects (ADO) in an ASP page.
  • Writing style sheets to transform XML into HTML or another XML grammar.
  • Applying a style sheet dynamically at the Web browser or the Web server.
  • Embedding XML documents and XSLT style sheets as data islands in HTML.
  • Using the DOM to modify an XSLT style sheet dynamically.
  • Using the DOM to create new XML content dynamically.
  • Integrating ASP pages and XSLT style sheets with COM.
  • Posting XML data from a Web browser to a Web server.
  • Designing and using XML Schemas to validate XML structure and content.

Prerequisites

  • A moderate degree of Web development experience using HTML and XML.
  • A moderate degree of experience scripting with Visual Basic for Applications, VBScript, or JavaScript.
  • Some prior experience using COM objects, Active Server Pages (ASP pages), and either Visual Basic or Microsoft Visual C++®.
  • Taking one or more of the following courses will help the students meet the prerequisites and get more out of the course: Course 1905, Building XML-Based Web Applications Course 1013, Mastering Microsoft Visual Basic 6 Development Course 1017, Mastering Web Application Development Using Microsoft Visual InterDev 6

Sections