Why not to use name spaces? An ID reference would then look like id=myNameSpace.actualID
(From Alex: That's just more characters for people to type and more complicated.)
Posted by funTomas at May 15, 2005 4:14 AMUm... XPath!
var xpath = '//[@scopeid="' + aScopeId + '"]/[@localid="'+ aLocalId +'"]';
var nodes = document.evaluate(xpath, document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
// return (nodes.snapshotLength > 0) ? nodes.snapshotItem(0) : null;
(From Alex: I feel dumb. That's a better solution, though XPath suggests //(scopeidtest)//(localidtest). :) )
Posted by Ben Karel at May 15, 2005 9:39 AM