Transforming XML using XSLT
Contact Us for Dates
2 days practical workshop for up to 12 people.
Contact us for Onsite Price
eXtensible Stylesheet Language for Transformations is a core XML technology for both presentation and middleware layers of enterprise applications. This training course teaches students to write their own XSLT files to transform XML into HTML, XHTML, or some other form of XML.
Layout
The training course combines lectures with practical exercises that help the delegates to put what they have learned on the training course into practice. The exercises specifically build on what has been recently taught and are built up as the training course progresses.
Training Course Objectives
- Understand the XSLT mechanism
- Write XSLT Templates
- Understand the role of the pre-defined templates
- Write XPath expressions for use in XSLT
- Use XPath functions
- Define parameterised stylesheets
- Use variables in XSLT
- Use the XSLT flow control elements
- Create XML output from XSLT
- Use regular expressions from XSLT
- Work with XSLT groups
- Understand and work with sequences
- Working with XML Schema
- Working with multiple result documents
- Defining custom XSLT functions
Who it is for
This training course is aimed at developers who need to be able to create XSLT files to transform XML into other formats.
Training Course Prerequisites
- Delegates must be familiar with XML. XML experience can come from the ?XML Overview? training course. It is also helpful if delegates have programming experience in some programming or scripting language.
Chapters
Chapter 1 Introduction to XSLT
- Uses of XSLT
- XSLT transformation mechanism
- XSLT Templates
Chapter 2 XPath
- Accessing elements
- Accessing attributes
- XPath axes
- XPath predicates
Chapter 3 XPath Functions
- Number functions
- Formatting functions
- Text functions
- Working with Regular Expressions
Chapter 4 More on Templates
- Named templates
- Priority values
- Passing parameters
- Default templates
- Defining custom XSLT functions
Chapter 5 XSLT Flow Control
- The for-each construct
- Using groups and for-each-group
- The if construct
- The choose, when, otherwise construct
Chapter 6 Creating XML Output
- The element tag
- The attribute tag
- The copy tag
- The copy-of tag
- Multiple output documents
- Controlling the output
Chapter 7 Combining Stylesheets
- Importing stylesheets
- Including stylesheets
- Using apply-imports
Chapter 8 Advanced XSLT Features
- Using keys
- Adding functions
- Passing variables from processors
- The fallback element