Function Syntax

node-setexsl:node-set(object)

The purpose of the exsl:node-set function is to return a node-set from a result tree fragment. If the argument is a node-set already, it is simply returned as is. If the argument to exsl:node-set is not a node-set or a result tree fragment, then it is converted to a string as by the string() function, and the function returns a node-set consisting of a single text node with that string value.

The exsl:node-set function does not have side-effects: the result tree fragment used as an argument is still available as a result tree fragment after it is passed as an argument to exsl:node-set.

An implementation of this extension
function
in the EXSLT exsl namespace must conform to the behaviour described in this document.

Implementations

Built-in support for exsl:node-set is available in the following XSLT processors: