if (dom instanceof MultiDOM) {
final MultiDOM multiDOM = (MultiDOM) dom;
// Create DOMAdapter and register with MultiDOM
DOMAdapter domAdapter = new DOMAdapter(idom,
translet.getNamesArray(),
translet.getNamespaceArray());
multiDOM.addDOMAdapter(domAdapter);
NodeIterator iter1 = multiDOM.getAxisIterator(Axis.CHILD);
NodeIterator iter2 = multiDOM.getAxisIterator(Axis.CHILD);
NodeIterator iter = new AbsoluteIterator(
new StepIterator(iter1, iter2));
iter.setStartNode(DOM.ROOTNODE | domAdapter.getMultiDOMMask());
return iter;
}
else {
runTimeError(RUN_TIME_INTERNAL_ERR, "nodeList2Iterator()");
return null;