public Expression compile(Executable exec) throws XPathException {
Expression action = compileSequenceConstructor(exec, iterateAxis(Axis.CHILD), true);
if (action == null) {
action = Literal.makeEmptySequence();
}
While w = new While(test, action);
return w;
}