# EXSLT - exsl:node-set - Implementer Page

Version: 4 Status: revised User Page: index.html XML Definition: exsl.node-set.xml Function Package: exsl.node-set.zip #### Function Syntax
    node-set exsl: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:
Processor | Processor Version | Implemented Version
--- | --- | ---
4XSLT, from 4Suite. | 0.12.0a3 | 4
SAXON from Michael Kay | 6.3 | 2
jd.xslt from Johannes Döbler | 1.0.8 | 2
libxslt from Daniel Veillard; implementation by Thomas Broyer | 1.0.19 | 2
Xalan-J from Apache | 2.4.D1 | 4
There are currently no third-party implementations of `exsl:node-set`. ## Use Cases Use Case Package: exsl.node-set.use-cases.zip The following use cases illustrate the functionality of `exsl:node-set`.
Details | Calling Stylesheet | XML Data | Expected Result | Category | Template
--- | --- | --- | --- | --- | ---
1 | exsl.node-set.1.xsl | exsl.node-set.data.1.xml | exsl.node-set.result.1.xml | example | N
2 | exsl.node-set.2.xsl | exsl.node-set.data.2.xml | exsl.node-set.result.2.xml | example | N
## Change History Previous Version: exsl.node-set.3.html
Version | Modified | By | Details
--- | --- | --- | ---
4 | 2002-06-10 | Jeni Tennison | Made explicit that `exsl:node-set()` should not have any side effects.
4.1 | 2002-08-20 | Craig Stewart | Added Xalan-J implementation to the list.
4.2 | 2002-11-12 | Craig Stewart | Fixed an error in the description of the function and updated the 4XSLT version to 0.12.0a3 and that it now supports v4 of exsl:node-set.
## Copyright This material is in the public domain.

http://www.exslt.org/exsl/functions/node-set/exsl.node-set.html last modified 2002-11-12