/** Translate a namespace prefix to its URI. * * @param prefix the prefix * * @return the namespace URI mapped to the prefix */ public String translateNamespacePrefixToUri(String prefix) { return getContextSupport().translateNamespacePrefixToUri( prefix ); }
/** Returns the URI of the current prefix or "" if no URI can be found */ protected String getURI(Object node, Context context) { String uri = context.getNavigator().translateNamespacePrefixToUri( prefix, node ); if ( uri == null ) { uri = context.getContextSupport().translateNamespacePrefixToUri( prefix ); } if ( uri == null ) { uri = ""; } return uri; } }
uri = support.translateNamespacePrefixToUri(prefix); if (uri == null) { throw new UnresolvableException("XPath expression uses unbound namespace prefix " + prefix); String uri = null; if (hasPrefix) { uri = support.translateNamespacePrefixToUri(prefix); if (uri == null) { throw new UnresolvableException("XPath expression uses unbound namespace prefix " + prefix);
myUri = contextSupport.translateNamespacePrefixToUri(this.prefix); if (myUri == null) { throw new UnresolvableException("Cannot resolve namespace prefix '"+this.prefix+"'");