XSLT
Course Description
In this two-day course you will use the features of XSLT and XPath to develop stylesheets that convert XML documents to other XML, HTML, or text. The course begins with an introduction to commonly used tags such as template, apply-templates, and value-of. From there, you will learn how to use XPath nodetypes, axes, and predicates. Flow control and functions are covered next. Finally, you will learn some advanced XSLT features such as variables and parameters.
2 days
Contact us for pricing
Prerequisites
Experience using XML.Course Introduction
Course ObjectivesCourse Overview
Using the Workbook
Suggested References
Introduction to XSLT
Stylesheet, Source, and ResultXSLT Processors
Processor Implementations
XPath Basics
xsl:stylesheet
xsl:template
xsl:value-of
xsl:apply-templates
xsl:output
XPath Nodetypes
XPath ExpressionsXPath Context
XPath Location Steps
Element and Root Nodes
Text and Attribute Nodes
Comment and Processing Instruction Nodes
Namespace Nodes
Wildcards
Whitespace
Default Template Rules
XPath Axes and Predicates
Location Paths and Location StepsPeer Axis Types
More Peer Axis Types
Descendant Axis Types
Ancestor Axis Types
Node Tests
Predicates
Functions
XSLT Flow Control
xsl:ifxsl:choose
xsl:for-each
xsl:sort
Named Templates
Mode
Generating Output with XSLT
Output MethodsHTML Output
Plain Text Output
XML Output
xsl:element and xsl:attribute
Attribute Value Templates
xsl:attribute-set
Text, Processing-Instructions, and Comments
Working with Namespaces
Using XPath and XSLT Functions
XPath Datatypes and FunctionsNode Test Functions
Node Set Functions
Boolean Functions
String Functions
Number Functions
The document() Function
xsl:key and the key() Function
Advanced XSLT
Copying ElementsNumbering
Variables
Parameters
Using Other Stylesheets
apply-imports
Template Rule Conflicts
Extensions