* and there is no XML Base URI in effect.
* @param frag the URI fragment
* @param ref the context element from which to resolve the URI fragment
*/
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();