Sets (set)

The EXSLT Sets package offers functions that let you perform set manipulation. The namespace for these functions is http://exslt.org/sets.

set:difference()
set:difference() returns the difference between two node-sets. In other words, it returns a node-set whose nodes are in one node-set but not in the other.
set:distinct()
set:distinct() returns a subset of the nodes in the specified node-set, returning only nodes with unique string values.
set:has-same-node()
set:has-same-node() determines whether two node-sets have any nodes in common.
set:intersection()
set:intersection() returns the intersection of two node-sets. In other words, it returns a node-set containing all the nodes that exits in both nodeSet1 and nodeSet2.
set:leading()
set:leading() returns the nodes in one node-set that come before the first node in the other node-set.
set:trailing()
set:trailing() returns the nodes in one node-set that come after the first node in the other node-set.

Browser compatibility

DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
set:difference()Chrome ? Edge ? Firefox Full support 3IE ? Opera ? Safari ? WebView Android ? Chrome Android ? Firefox Android Full support 4Opera Android ? Safari iOS ? Samsung Internet Android ?
set:distinct()Chrome ? Edge ? Firefox Full support 3IE ? Opera ? Safari ? WebView Android ? Chrome Android ? Firefox Android Full support 4Opera Android ? Safari iOS ? Samsung Internet Android ?
set:has-same-node()Chrome ? Edge ? Firefox Full support 3IE ? Opera ? Safari ? WebView Android ? Chrome Android ? Firefox Android Full support 4Opera Android ? Safari iOS ? Samsung Internet Android ?
set:intersection()Chrome ? Edge ? Firefox Full support 3IE ? Opera ? Safari ? WebView Android ? Chrome Android ? Firefox Android Full support 4Opera Android ? Safari iOS ? Samsung Internet Android ?
set:leading()Chrome ? Edge ? Firefox Full support 3IE ? Opera ? Safari ? WebView Android ? Chrome Android ? Firefox Android Full support 4Opera Android ? Safari iOS ? Samsung Internet Android ?
set:trailing()Chrome ? Edge ? Firefox Full support 3IE ? Opera ? Safari ? WebView Android ? Chrome Android ? Firefox Android Full support 4Opera Android ? Safari iOS ? Samsung Internet Android ?

Legend

Full support
Full support
Compatibility unknown
Compatibility unknown