}
case Type.NODE: {
AxisIterator allChildren = doc.iterateAxis(Axis.DESCENDANT);
MappingFunction attsOrSelf = new MappingFunction() {
public SequenceIterator map(Item item) {
return new PrependIterator((NodeInfo)item, ((NodeInfo)item).iterateAxis(Axis.ATTRIBUTE));
}
};
SequenceIterator attributesOrSelf = new MappingIterator(allChildren, attsOrSelf);
ItemMappingFunction test = new ItemMappingFunction() {
public Item mapItem(Item item) throws XPathException {