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 exist 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.