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()*
First node set
Second node set
Links to specifications
Requires Saxon-PE or Saxon-EE. Available for Java and C/C++ only (not .NET).