ContextItem context = current.getContext();
if (context==null) {
throw new XPathException(this,"Context is missing for node set comparison");
}
do {
final AtomicValue lv = current.atomize();
final Sequence rs = getRight().eval(context.getNode().toSequence());
if (!rs.hasOne())
{throw new XPathException(this,
"Type error: sequence with less or more than one item is not allowed here");}
if (compareAtomic(collator, lv, rs.itemAt(0).atomize(), Constants.TRUNC_NONE, relation))