set = new ArraySet(1); set.add(n); dset = new DocumentSet(); dset.add(n.doc); rvalue = left.eval(dset, set, n).getBooleanValue(); lvalue = right.eval(dset, set, n).getBooleanValue();
set = new SingleNodeSet(n); rvalue = left.eval(docs, set, n).getBooleanValue(); lvalue = right.eval(docs, set, n).getBooleanValue();
	protected Value booleanCompare(		Expression left,		Expression right,		DocumentSet docs,		NodeSet context,		NodeProxy node) {		ArraySet result = new ArraySet(100);		NodeProxy n;		boolean lvalue;		boolean rvalue;		ArraySet set;		DocumentSet dset;		for (Iterator i = context.iterator(); i.hasNext();) {			n = (NodeProxy) i.next();			set = new ArraySet(1);			set.add(n);			dset = new DocumentSet();			dset.add(n.doc);			rvalue = left.eval(dset, set, n).getBooleanValue();			lvalue = right.eval(dset, set, n).getBooleanValue();			if (lvalue == rvalue)				result.add(n);		}		return new ValueNodeSet(result);	}