EXSLT - exsl:node-set - Version 3

Version: 3
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 convert a result tree fragment into a node set. 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.

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:

ProcessorProcessor VersionImplemented Version
4XSLT from Fourthought Inc.0.11.12
SAXON from Michael Kay6.32
jd.xslt from Johannes Döbler1.0.82
libxslt from Daniel Veillard; implementation by Thomas Broyer1.0.22

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.

DetailsCalling StylesheetXML DataExpected ResultCategoryTemplate
1exsl.node-set.1.xslexsl.node-set.data.1.xmlexsl.node-set.result.1.xmlexampleN
2exsl.node-set.2.xslexsl.node-set.data.2.xmlexsl.node-set.result.2.xmlexampleN

Change History

Previous Version: exsl.node-set.2.html

VersionModifiedByDetails
32001-06-08Jeni Tennison

Changed treatment of strings, booleans and numbers - they are now converted to node sets rather than treated as an error.

3.12001-08-15Jeni Tennison

Added vendor implementation in libxslt.

Copyright

http://www.exslt.org/exsl/functions/node-set/exsl.node-set.3.html last modified 2001-08-15