net.sf.saxon.exslt
public abstract class Sets extends Object
Method Summary | |
---|---|
static SequenceIterator | difference(SequenceIterator p1, SequenceIterator p2)
Return the difference of two node-sets |
static boolean | hasSameNode(SequenceIterator p1, SequenceIterator p2)
Determine whether two node-sets contain at least one node in common |
static SequenceIterator | intersection(SequenceIterator p1, SequenceIterator p2)
Return the intersection of two node-sets |
static SequenceIterator | leading(XPathContext context, SequenceIterator ns1, SequenceIterator ns2)
Find all the nodes in ns1 that are before the first node in ns2.
|
static SequenceIterator | trailing(XPathContext c, SequenceIterator ns1, SequenceIterator ns2)
Find all the nodes in ns1 that are after the first node in ns2.
|
Parameters: p1 The first node-set p2 The second node-set
Returns: A node-set containing all nodes that are in p1 and not in p2
Parameters: p1 The first node-set p2 The second node-set
Returns: true if p1 and p2 contain at least one node in common (i.e. if the intersection is not empty)
Parameters: p1 The first node-set p2 The second node-set
Returns: A node-set containing all nodes that are in both p1 and p2