Repetition and sorting

[Example 74] <C>

The xsl:for-each instruction contains a template, which is applied to each node selected with select attribute.

[Example 3] <C>

Nodes selected with xsl:for-each (This stylesheet and This stylesheet) or xsl:apply-templates (This stylesheet) can be sorted. Order of sorting determines order attribute. This stylesheet sorts in ascending and This stylesheet in descending mode.

[Example 14] <C>

This stylesheet sorts in text and This stylesheet in numeric mode. Notice the important difference. 2 is after 1 in alphabet so 2 goes after 10 in text mode.

[Example 15] <C>

This stylesheet sorts upercase and This stylesheet lowercase letters first.