com.werken.xpath
public class ElementNamespaceContext extends Object implements NamespaceContext
A NamespaceContext which gets it's mappings from an Element in a JDOM tree.
It currently DOES NOT WORK
| Constructor Summary | |
|---|---|
| ElementNamespaceContext(Element element) Construct the NamespaceContext from a JDOM Element
| |
| Method Summary | |
|---|---|
| String | translateNamespacePrefix(String prefix) Translate a namespace prefix into a URI
Translate the prefix used in a component of an XPath
into its expanded namespace URI.
|
Parameters: element The JDOM element to use for prefix->nsURI mapping
Parameters: prefix The namespace prefix
Returns: The URI matching the prefix
See Also: ContextSupport