return sv.equals(rv) ? BooleanValue.TRUE : BooleanValue.FALSE;
result = sv.equals(rv) ? BooleanValue.TRUE : BooleanValue.FALSE; break;
	public Sequence eval(Sequence contextSequence, Item contextItem)		throws XPathException {		if(contextItem != null)			contextSequence = contextItem.toSequence();		Sequence ls = getLeft().eval(contextSequence, contextItem);		Sequence rs = getRight().eval(contextSequence, contextItem);		if(ls.getLength() == 0 || rs.getLength() == 0)			return Sequence.EMPTY_SEQUENCE;		NodeValue sv = (NodeValue)ls.itemAt(0);		NodeValue rv = (NodeValue)rs.itemAt(0);		if(sv.getImplementationType() != rv.getImplementationType()) {			// different implementations			return BooleanValue.FALSE;		}		switch(relation) {			case Constants.IS:				return sv.equals(rv) ? BooleanValue.TRUE : BooleanValue.FALSE;			case Constants.ISNOT:				return sv.equals(rv) ? BooleanValue.FALSE : BooleanValue.TRUE;			case Constants.BEFORE:				return sv.before(rv) ? BooleanValue.TRUE : BooleanValue.FALSE;			case Constants.AFTER:				return sv.after(rv) ? BooleanValue.TRUE : BooleanValue.FALSE;			default:				throw new XPathException("Illegal argument: unknown relation");		}	}