// DOM adapters containing a result tree are not initialised with
// translet-type to DOM-type mapping. This must be done now for
// XPath expressions and patterns to work for the iterator we create.
il.append(classGen.loadTranslet()); // get names array
il.append(new GETFIELD(cpg.addFieldref(TRANSLET_CLASS,
NAMES_INDEX,
NAMES_INDEX_SIG)));
il.append(classGen.loadTranslet()); // get uris array
il.append(new GETFIELD(cpg.addFieldref(TRANSLET_CLASS,
URIS_INDEX,
URIS_INDEX_SIG)));
il.append(classGen.loadTranslet()); // get types array
il.append(new GETFIELD(cpg.addFieldref(TRANSLET_CLASS,
TYPES_INDEX,
TYPES_INDEX_SIG)));
il.append(classGen.loadTranslet()); // get namespaces array
il.append(new GETFIELD(cpg.addFieldref(TRANSLET_CLASS,
NAMESPACE_INDEX,
NAMESPACE_INDEX_SIG)));
// Pass the type mappings to the DOM adapter
final int mapping = cpg.addInterfaceMethodref(DOM_INTF,
"setupMapping",