Course
Transforming XML using XSLT
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.
Duration: 2 days
Who is it for: This training course is aimed at developers who need to be able to create XSLT files to transform XML into other formats.
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.
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
Modules
Introduction to XSLT
- Uses of XSLT
- XSLT transformation mechanism
- XSLT Templates
XPath
- Accessing elements
- Accessing attributes
- XPath axes
- XPath predicates
XPath Functions
- Number functions
- Formatting functions
- Text functions
- Working with Regular Expressions
More on Templates
- Named templates
- Priority values
- Passing parameters
- Default templates
- Defining custom XSLT functions
XSLT Flow Control
- The for-each construct
- Using groups and for-each-group
- The if construct
- The choose, when, otherwise construct
Creating XML Output
- The element tag
- The attribute tag
- The copy tag
- The copy-of tag
- Multiple output documents
- Controlling the output
Combining Stylesheets
- Importing stylesheets
- Including stylesheets
- Using apply-imports
Advanced XSLT Features
- Using keys
- Adding functions
- Passing variables from processors
- The fallback element
Enquire about this course
"*" indicates required fields