set:difference
Returns the difference between two node sets - those nodes that are in the node set passed as the first argument that are not in the node set passed as the second argument.
difference($nodes1 as item()*, $nodes2 as item()*) ➔ item()*
Arguments  | |||
  | $nodes1  | item()*  | First node set  | 
  | $nodes2  | item()*  | Second node set  | 
Result  | item()*  | ||
Namespace
http://exslt.org/sets
Links to specifications
Saxon availability
Requires Saxon-PE or Saxon-EE. Available for Java and C/C++ only (not .NET).