XSLT: Instructions
Template Instructions
xsl:copy
xsl:copy-of
xsl:text
Example: CD Collection
XML Parsed Tree
Generating XHTML using XSLT
Displaying the CD List
Result
Displaying All the Details
Result
Passive Templates
Result
More Active Templates
More Active Template: xsl:for-each
Example: xsl:for-each
Result for each CD
apply-templates
Result for each CD
Active versus Passive
Example: Table
Table Output
Sorting and Selection
Sorting
xsl:sort examples
Sorting by Title
Sorting by Filed: Descending
Sorting by Filed then Author Descending
xsl:if
Only those filed as C05 World
XPath Predicate versus xsl:if
Result with XPath Selection
Result with xsl:if and with XPath filter
Filtering via <xsl:choose>
Colour Code the CDs
Colour Code Using <xsl:choose>
Using the Axes
Colour Code By Examining Siblings
Do Not Repeat Artist's Name
Colour Code By Examining Siblings
Using the Ancestor Axis
Sweet Lorraine CDs
Lonesome Road CDs
Predicate Usage
More Selective XPath Expressions
Searching Down the Tree
Lonesome road Down the Tree
Complex Predicate
One or Other CD
Summary
Multiple Input and Output Documents
Directory File
Result
New Output Document
xsl:attribute and xsl:element
Adding Elements and Attibutes
Attribute Sets