context.setContextPosition(0); for(SequenceIterator i = contextSequence.iterate(); i.hasNext(); p++) {
for (SequenceIterator i = contextSequence.iterate(); i.hasNext(); p++) {
	private Sequence evalBoolean(Sequence contextSequence, Expression inner) throws XPathException {		Sequence result = new ValueSequence();		int p = 0;        //TODO : as such the following expression is useless : do we have a 0 or 1 based sequence ?		context.setContextPosition(0);		for(SequenceIterator i = contextSequence.iterate(); i.hasNext(); p++) {			Item item = i.nextItem();			context.setContextPosition(p);			Sequence innerSeq = inner.eval(contextSequence, item);			if(innerSeq.effectiveBooleanValue())				result.add(item);		}		return result;	}