// ISTRUE being used as a dummy value.
usedrefs.put(ref, ISTRUE);
}
LocPathIterator nl =
kmgr.getNodeSetDTMByKey(xctxt, docContext, keyname, ref,
xctxt.getNamespaceContext());
// try
// {
upi.addIterator((LocPathIterator)nl.asIterator(xctxt, docContext));
// }
// catch(CloneNotSupportedException cnse)
// {
// // will never happen.
// }
//mnodeset.addNodesInDocOrder(nl, xctxt); needed??
}
int current = xctxt.getCurrentNode();
upi.setRoot(current, xctxt);
nodes = new XNodeSet(upi);
}
else
{
XMLString ref = arg.xstr();
LocPathIterator nl = kmgr.getNodeSetDTMByKey(xctxt, docContext, keyname,
ref,
xctxt.getNamespaceContext());
try
{
nodes = new XNodeSet((LocPathIterator)nl.cloneWithReset());
}
catch(CloneNotSupportedException cnse)
{
// will never happen.
}