Extensible Style Language Transformations
by
John Punin
Table of contents
Extensible Style Language Transformations (XSLT)
Tree operations within XSL
Using XSLT Style Sheets
XML Document (students.xml)
XSLT Style Sheet (students.xsl)
Making a Transformation Happen
XSLT Processors
Running Xalan Java Processor
Creating XSLT Style Sheets
XSLT Style Sheets are well formed XML Documents
Trivial XSL Style Sheet
The xsl:apply-templates Element
The xsl:value-of to get the value of nodes
Handling multiple selections with xsl:for-each
Specifying Patterns for the match Attribute
Specifying Patterns for the match Attribute (2)
Specifying Patterns for the match Attribute (3)
XSL Style Sheet
HTML output file:
Specifying Patterns for the match Attribute (4)
Specifying Patterns for the match Attribute (5)
Specifying Patterns for the match Attribute (6)
XPath
XPath axes
XPath Node tests
XPath Predicates
XPath Node Sets - XPath Predicates (2)
XPath Booleans - XPath Predicates (3)
XPath Numbers - XPath Predicates (3)
XPath Strings - XPath Predicates (3)
XPath Examples
XPath Abbreviated Syntax
XPath Abbreviated Syntax Examples
Default XSLT Rules
Creating Attribute Templates
Creating New Elements
Creating New Attributes
Copying and Sorting Nodes
Using xsl:variable and text output type
Using xsl:if
Controlling Output Type