public abstract class Sets extends Object
Modifier and Type  Method and Description 

static SequenceIterator 
difference(SequenceIterator p1,
SequenceIterator p2)
Return the difference of two nodesets (interpreted as sequences of nodes that must be supplied
in document order)

static boolean 
hasSameNode(SequenceIterator p1,
SequenceIterator p2)
Determine whether two nodesets (interpreted as sequences of nodes that must be supplied
in document order) contain at least one node in common

static SequenceIterator 
intersection(SequenceIterator p1,
SequenceIterator p2)
Return the intersection of two nodesets (interpreted as sequences of nodes that must be supplied
in document order)

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 context,
SequenceIterator ns1,
SequenceIterator ns2)
Find all the nodes in ns1 that are after the first node in ns2.

public static SequenceIterator intersection(SequenceIterator p1, SequenceIterator p2) throws XPathException
p1
 The first nodesetp2
 The second nodesetXPathException
public static SequenceIterator difference(SequenceIterator p1, SequenceIterator p2) throws XPathException
p1
 The first nodesetp2
 The second nodesetXPathException
public static boolean hasSameNode(SequenceIterator p1, SequenceIterator p2) throws XPathException
p1
 The first nodesetp2
 The second nodesetXPathException
public static SequenceIterator leading(XPathContext context, SequenceIterator ns1, SequenceIterator ns2) throws XPathException
ns1
 The first nodesetns2
 The second nodesetXPathException
public static SequenceIterator trailing(XPathContext context, SequenceIterator ns1, SequenceIterator ns2) throws XPathException
ns1
 The first nodesetns2
 The second nodesetXPathException
Copyright (c) 20042014 Saxonica Limited. All rights reserved.