XML Transformations using XSLT

The strength of XML is its ability to be used by different applications and the output mode they work with. However, translations between different XML grammars pose a significant challenge, and with the rapid growth of XML this problem will be faced by most data designers. In addition XML does not provide means to display or format data content.

The eXtensible Stylesheet Language (XSL) has been formulated to help to solve both of these problems. This one-day course provides delegates with the XSLT skills to transform XML into another XML grammar, including transformations into HTML for the web browsers.

Delegates should have an understanding of the underlying concepts of XML - the Introduction to XML course provides a good basis. Delegates should also have had exposure to a programming language such as JavaScript or VBScript. Introductory courses to either JavaScript or VBScript are also available.

Overview and Revision of XML

  • XML as data
  • XML Schemas
  • Namespaces

Introduction to XSLT

  • What is XSLT and why use it?
  • Quick intro to pattern matching and templates
  • XSL standards

Patterns - Match and Output

  • The XPath Language
  • XSLT pattern matching using XPath

Program Flow

  • Reviewing pattern matching flow
  • Using xsl:call template
  • Controlling iteration
  • Decision making
  • Using modes and keys

Creating New Nodes

  • Building the result tree
  • Creating elements and attributes
  • Attribute value templates
  • Creating text nodes and other content

Further Programming Constructs

  • Review of programming constructs
  • Storing and accessing variables
  • Passing data using parameters
  • Numeric support and built-in functions

XSLT Processing

  • Importing/including stylesheets
  • Conflict resolution
  • XSLT data model
  • Output methods

 

This course includes full course notes and course materials. This outline can be tailored to specific client requirements

 

 
 
Top Return to Course List all material on this website © Hugh Livingstone