public SequenceIterator iterate(XPathContext context) throws XPathException {
SequenceIterator seq = argument[0].iterate(context);
AtomicValue n0 = (AtomicValue)argument[1].evaluateItem(context);
NumericValue n = (NumericValue)n0;
int pos = (int)n.intValue();
SequenceIterator ins = argument[2].iterate(context);
return new InsertIterator(seq, ins, pos);
}
public static class InsertIterator implements SequenceIterator {