*/
protected Node getNodeByFragment(String frag, Element ref) {
NodeXBL refx = (NodeXBL) ref;
NodeXBL boundElt = (NodeXBL) refx.getXblBoundElement();
if (boundElt != null) {
XBLShadowTreeElement shadow
= (XBLShadowTreeElement) boundElt.getXblShadowTree();
Node n = shadow.getElementById(frag);
if (n != null) {
return n;
}
NodeList nl = refx.getXblDefinitions();
for (int i = 0; i < nl.getLength(); i++) {