XML information pipe

Ihre Spezialisten für XML

Banner Werbung

XSLT 1.0 reference

XSLT  |  elements

apply-imports | apply-templates | attribute | attribute-set | call-template | choose | comment | ceiling | copy | copy-of | decimal-format | element | fallback | for-each | if | import | include | key | message | namespace-alias | number | otherwise | output | param | preserve-space | processing-instruction | sort | strip-space | stylesheet | template | text | transform | value-of | variable | when | with-param |


apply-templates

In the absence of a @select attribute, the <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 <sort>ing specification is present.


Parent elements:

attribute | comment | copy | element | fallback | for-each | if | message | otherwise | param | processing-instruction | template | variable | when | with-param |


Child elements:

sort | with-param |


Attributes:

mode | select |



Examples:

Example 1 | Example 2 | Example 3 | Example 4 | Example 5 | Example 6 | Example 7 | Example 8 | Example 9 | Example 10 |

Locate in the official documentation

XSLT 1.0 reference