return result != null ? result : "";
}
@Override
public String getNamespaceURI(String prefix) {
ElementFrame frame = getCurrentFrame();
while (null != frame) {
int index = frame.prefixes.indexOf(prefix);
if (index != -1) {
return frame.uris.get(index);
}
if (frame.parent == null) {
return ((Element)frame.getElement()).lookupNamespaceURI(prefix);
}
frame = frame.parent;
}
return null;