nodes.add(e);
}
continue;
}
}
DMAttribute idatt = e.getAttribute(XMLConstants.XML_NS_URI, "id");
if(idatt != null && id.equals(idatt.getContent())) {
nodes.add(e);
}
} else {
assert (curNode instanceof DTMElement);
// If no candidate ID value matches the IDREF value of any element or attribute,
// the function returns the empty sequence.
return Collections.<XQNode> emptyList();
}
} else if(byIDRef && nodekind == NodeKind.ATTRIBUTE) {
if(curNode instanceof DMAttribute) {
DMAttribute att = (DMAttribute) curNode;
if(att.isIdrefs()) {
String val = att.typedValue().stringValue();
if(id.equals(val)) {
nodes.add(att);
}
continue;
}