public class SimpleNamespaceContext extends Object implements NamespaceContext, Serializable
| Constructor and Description |
|---|
SimpleNamespaceContext() |
SimpleNamespaceContext(Map namespaces) |
| Modifier and Type | Method and Description |
|---|---|
void |
addElementNamespaces(Navigator nav,
Object element)
Adds all the namespace declarations that are in scope on the given
element.
|
void |
addNamespace(String prefix,
String namespaceUri) |
String |
translateNamespacePrefixToUri(String prefix)
Translate the provided namespace prefix into
the matching bound namespace URI.
|
public SimpleNamespaceContext()
public SimpleNamespaceContext(Map namespaces)
public void addElementNamespaces(Navigator nav, Object element) throws UnsupportedAxisException
<xsl:if test="condition/xpath/expression">.nav - the navigator for use in conjunction with
elementelement - the element to copy the namespaces fromUnsupportedAxisExceptionpublic String translateNamespacePrefixToUri(String prefix)
NamespaceContextIn XPath, there is no such thing as a 'default namespace'. The empty prefix always resolves to the empty namespace URI.
translateNamespacePrefixToUri in interface NamespaceContextprefix - The namespace prefix to resolve.Copyright © 2013. All Rights Reserved.