} catch (XPathException err) {
err.setXPathContext(context);
err.maybeSetLocation(getSourceLocator());
throw err;
}
controller.closeResult(out, c2);
if (command == APIcommand.UPDATE_HTML){
PendingUpdateList list = controller.getPendingUpdateList();
if (action == REPLACE_CONTENT && command == APIcommand.UPDATE_HTML) {
int existingChildren = targetNode.getChildCount();