com.werken.xpath

Class ElementNamespaceContext

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

Author: bob mcwhirter (bob @ werken.com)

Constructor Summary
ElementNamespaceContext(Element element)
Construct the NamespaceContext from a JDOM Element
Method Summary
StringtranslateNamespacePrefix(String prefix)
Translate a namespace prefix into a URI Translate the prefix used in a component of an XPath into its expanded namespace URI.

Constructor Detail

ElementNamespaceContext

public ElementNamespaceContext(Element element)
Construct the NamespaceContext from a JDOM Element

Parameters: element The JDOM element to use for prefix->nsURI mapping

Method Detail

translateNamespacePrefix

public 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: prefix The namespace prefix

Returns: The URI matching the prefix

See Also: ContextSupport

Copyright B) 2000 bob mcwhirter and The Werken & Sons Company. All Rights Reserved.