| java.lang.Object org.apache.xpath.jaxp.JAXPPrefixResolver
JAXPPrefixResolver | public class JAXPPrefixResolver implements PrefixResolver(Code) | |
This class implements a Default PrefixResolver which
can be used to perform prefix-to-namespace lookup
for the XPath object.
This class delegates the resolution to the passed NamespaceContext
|
Field Summary | |
final public static String | S_XMLNAMESPACEURI The URI for the XML namespace.
(Duplicate of that found in org.apache.xpath.XPathContext). |
S_XMLNAMESPACEURI | final public static String S_XMLNAMESPACEURI(Code) | | The URI for the XML namespace.
(Duplicate of that found in org.apache.xpath.XPathContext).
|
getBaseIdentifier | public String getBaseIdentifier()(Code) | | Return the base identifier.
null |
getNamespaceForPrefix | public String getNamespaceForPrefix(String prefix, org.w3c.dom.Node namespaceContext)(Code) | | Given a prefix and a Context Node, get the corresponding namespace.
Warning: This will not work correctly if namespaceContext
is an attribute node.
Parameters: prefix - Prefix to resolve. Parameters: namespaceContext - Node from which to start searching for axmlns attribute that binds a prefix to a namespace. Namespace that prefix resolves to, or null if prefixis not bound. |
|
|