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 bothnodeSet1
andnodeSet2
.- 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
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
set:difference() | Chrome ? | Edge ? | Firefox Full support 3 | IE ? | Opera ? | Safari ? | WebView Android ? | Chrome Android ? | Firefox Android Full support 4 | Opera Android ? | Safari iOS ? | Samsung Internet Android ? |
set:distinct() | Chrome ? | Edge ? | Firefox Full support 3 | IE ? | Opera ? | Safari ? | WebView Android ? | Chrome Android ? | Firefox Android Full support 4 | Opera Android ? | Safari iOS ? | Samsung Internet Android ? |
set:has-same-node() | Chrome ? | Edge ? | Firefox Full support 3 | IE ? | Opera ? | Safari ? | WebView Android ? | Chrome Android ? | Firefox Android Full support 4 | Opera Android ? | Safari iOS ? | Samsung Internet Android ? |
set:intersection() | Chrome ? | Edge ? | Firefox Full support 3 | IE ? | Opera ? | Safari ? | WebView Android ? | Chrome Android ? | Firefox Android Full support 4 | Opera Android ? | Safari iOS ? | Samsung Internet Android ? |
set:leading() | Chrome ? | Edge ? | Firefox Full support 3 | IE ? | Opera ? | Safari ? | WebView Android ? | Chrome Android ? | Firefox Android Full support 4 | Opera Android ? | Safari iOS ? | Samsung Internet Android ? |
set:trailing() | Chrome ? | Edge ? | Firefox Full support 3 | IE ? | Opera ? | Safari ? | WebView Android ? | Chrome Android ? | Firefox Android Full support 4 | Opera Android ? | Safari iOS ? | Samsung Internet Android ? |
Legend
- Full support
- Full support
- Compatibility unknown
- Compatibility unknown