XSLT - XML121
Duration: 2 days
Audience: Developers who wish to transform XML documents into other XML documents, HTML or text using XSLT.
Prerequisites: Experience using XML.
Topics:
Introduction to XSLT
- Stylesheet, Source, and Result
- XSLT Processors
- Processor Implementations
- XPath Basics
- xsl:stylesheet
- xsl:template
- xsl:value-of
- xsl:apply-templates
- xsl:output
XPath Nodetypes
- XPath Expressions
- XPath 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 Steps
- Peer Axis Types
- More Peer Axis Types
- Descendant Axis Types
- Ancestor Axis Types
- Node Tests
- Predicates
- Functions
XSLT Flow Control
- xsl:if
- xsl:choose
- xsl:for-each
- xsl:sort
- Named Templates
- Mode
Generating Output with XSLT
- Output Methods
- HTML 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 Functions
- Node Test Functions
- Node Set Functions
- Boolean Functions
- String Functions
- Number Functions
- id() Function
- The document() Function
- xsl:key and the key() Function
Advanced XSLT
- Copying Elements
- Numbering
- Variables
- Parameters
- Using Other Stylesheets
- Apply-imports
- Template Rule Conflicts
- Extensions
Appendix: XSLT and XPath 2.0 New Features
- XSLT 2.0 Grouping Elements and Functions
- User-Defined XSLT Functions
- Multiple Output and XHTML Documents
- Temporary Trees
- Sequences
- Types
- Stylesheets that are Schema-Aware
- Character Mapping
- Regular Expressions



