if (block == null) {
// body of saxon:iterate is empty: it's a no-op.
return Literal.makeEmptySequence();
}
try {
return new IterateInstr(select, makeExpressionVisitor().simplify(block), finallyExp);
} catch (XPathException err) {
compileError(err);
return null;
}
}