EXSLT - Sets

Implementer Page: set.html
Module Package: set.zip

EXSLT - Sets covers those extension elements and functions that provide facilities to do with set manipulation.

XSLT processors may support any number of the extension elements and functions given in this module.

Using EXSLT will only make your stylesheet portable amongst the implementations that support EXSLT. Note that there is no requirement for XSLT processors that are compliant to XSLT to support the extensions described within EXSLT.


The namespace for EXSLT - Sets is:


Throughout this document, the prefix set is used to refer to this namespace. Any other prefix can be used within a particular stylesheet (though a prefix must be specified to enable the extension functions to be recognised as extensions).

To use these extensions, you need to declare this namespace as an extension namespace in your stylesheet. If your processor supports this module, then that's all you need to do, but if it doesn't, then you need to use a specific third-party implementation or the module stylesheet. Typically, your stylesheet will look like:

<xsl:stylesheet version="1.0"

<xsl:import href="set.xsl" />



Core Functions

The following extension functions are considered stable and are core to EXSLT - Sets. Processors that claim support of EXSLT - Sets support these functions.

set:differencenode-set set:difference(node-set, node-set)set.difference.zip
set:intersectionnode-set set:intersection(node-set, node-set)set.intersection.zip
set:distinctnode-set set:distinct(node-set)set.distinct.zip
set:has-same-nodeboolean set:has-same-node(node-set, node-set)set.has-same-node.zip
set:leadingnode-set set:leading(node-set, node-set)set.leading.zip
set:trailingnode-set set:trailing(node-set, node-set)set.trailing.zip

http://www.exslt.org/set/index.html last modified 2001-05-22