StaticContext context,
	protected Sequence nodeSetCompare(		StaticContext context,		DocumentSet docs,		Sequence contextSequence)		throws XPathException {		NodeSet result = new ExtArrayNodeSet();		// evaluate left expression (returning node set)		NodeSet nodes =			(NodeSet) getLeft().eval(context, docs, contextSequence);		NodeProxy current;		ContextItem c;		Sequence rs;		AtomicValue lv, rv;		for (Iterator i = nodes.iterator(); i.hasNext();) {			current = (NodeProxy) i.next();			c = current.getContext();			do {				lv = current.atomize();				rs = getRight().eval(context, docs, c.getNode().toSequence());				for (SequenceIterator si = rs.iterate(); si.hasNext();) {					if (compareValues(context, lv, si.nextItem().atomize()))						result.add(current);				}			} while ((c = c.getNextItem()) != null);		}		return result;	}