241242243244245246247248249250251
if (action == null) { // body of for-each is empty: it's a no-op. return new Literal(EmptySequence.getInstance()); } try { return new ForEachGroup( select, makeExpressionVisitor().simplify(action), algorithm, key, collator, collationName,
188189190191192193194195196197198
} Block action = new Block(); compileChildren(exec, action, true); try { ForEachGroup inst = new ForEachGroup( select, action.simplify(getStaticContext()), algorithm, key, collator,
237238239240241242243244245246247
if (action == null) { // body of for-each is empty: it's a no-op. return new Literal(EmptySequence.getInstance()); } try { ForEachGroup inst = new ForEachGroup( select, makeExpressionVisitor().simplify(action), algorithm, key, collator,