} else {
throw new XPathException("not suported "+expr);//TODO: error?
}
}
XSLStylesheet xslt = getXSLContext().getXSLStylesheet();
int pos = 0;
// for (Item item : selected) {
for (SequenceIterator iterInner = selected.iterate(); iterInner.hasNext();) {
Item item = iterInner.nextItem();
context.setContextSequencePosition(pos, selected);
Sequence res = xslt.templates(selected, item);
if (res == null) {
if (item instanceof Text) {
MemTreeBuilder builder = context.getDocumentBuilder();
builder.characters(item.getStringValue());
result.add(item);