next = i.nextItem(); var.setValue(next.toSequence()); System.out.println(next.getStringValue());
contextItem = i.nextItem(); if(sequenceType != null)  sequenceType.checkType(contextItem.getType()); var.setValue(contextItem.toSequence()); System.out.println(contextItem.getStringValue());
	public Sequence eval(Sequence contextSequence, Item contextItem) throws XPathException {		context.pushLocalContext(false);		Variable var = new Variable(QName.parse(context, varName));		context.declareVariable(var);		Sequence inSeq = inputSequence.eval(null);		System.out.println(inputSequence.pprint() + " = " + inSeq.getLength());		Item next;		Sequence satisfiesSeq;		boolean found = false;		for(SequenceIterator i = inSeq.iterate(); i.hasNext(); ) {			next = i.nextItem();			var.setValue(next.toSequence());			System.out.println(next.getStringValue());			satisfiesSeq = returnExpr.eval(null);			if(returnExpr.returnsType() == Type.BOOLEAN)				found = satisfiesSeq.effectiveBooleanValue();			else				found = satisfiesSeq.getLength() != 0;			if(found)				break;		}		context.popLocalContext();		return found ? BooleanValue.TRUE : BooleanValue.FALSE;	}