break;
default:
throw new XPathException(this, "Wrong axis specified");
}
} else {
final MemoryNodeSet ctxNodes = contextSequence.toMemNodeSet();
final MemoryNodeSet nodes = set.toMemNodeSet();
switch(axis) {
case Constants.DESCENDANT_SELF_AXIS:
result = ctxNodes.selectDescendants(nodes);
break;
case Constants.CHILD_AXIS: