}
// Otherwise we must create a union iterator, add the nodes from
// all the DOMs to this iterator, and return the union in the end.
else {
UnionIterator union = new UnionIterator(multiplexer);
NodeIterator iterator = (NodeIterator)arg;
int node;
while ((node = iterator.next()) != DOM.NULL) {
String uri = multiplexer.getNodeValue(node);
union.addIterator(document(uri, baseURI,
translet, multiplexer));
}
return(union);