} else {
throw reportMixedItems(loc, context);
}
}
};
return new ItemMappingIterator(new OneItemGoneIterator(result), atomicValueChecker, true);
} else {
ItemMappingFunction nodeChecker = new ItemMappingFunction() {
public Item mapItem(Item item) throws XPathException {
if (item instanceof NodeInfo) {
return item;
} else {
throw reportMixedItems(loc, context);
}
}
};
return new DocumentOrderIterator(
new ItemMappingIterator(new OneItemGoneIterator(result), nodeChecker, true),
GlobalOrderComparer.getInstance());
}
}