In the absence of a select attribute, the xsl:apply-templates instruction processes all of the children of the current node,
including text nodes. However, text nodes that have been stripped will not be processed. If stripping of whitespace nodes
has not been enabled for an element, then all whitespace in the content of the element will be processed as text, and thus
whitespace between child elements will count in determining the position of a child element as returned by the position function.
A select attribute can be used to process nodes selected by an expression instead of processing all children. The value of
the select attribute is an expression. The expression must evaluate to a node-set. The selected set of nodes is processed
in document order, unless a sorting specification is present
Examples (xslt:xml): Overview
16:1
17:3
18:4
19:5
20:1
26:7
27:7
28:7
29:7
34:3
35:3
36:8
37:8
38:8
39:9
40:8
41:9
45:8
50:10
51:10
53:11
54:12
55:12
59:13
60:3
64:3
65:3
74:2
74:14
76:16
78:17
79:17
80:18
81:19
82:19
83:18
85:4
87:8
88:8
89:8
90:8
91:8
92:8Interactive xlab:
|