ws-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (Commented) (JIRA)" <>
Subject [jira] [Commented] (AXIOM-388) Add methods to OMElement that allow calculating the namespace context of an element
Date Tue, 25 Oct 2011 21:34:32 GMT


Hudson commented on AXIOM-388:

Integrated in ws-axiom-trunk #641 (See [])
    * AXIOM-388: Added an OMElement#getNamespaceContext method.
* Fixed an issue in OMElement#findNamespace related to namespace prefixes that are redeclared.

veithen : 
Files : 
* /webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/
* /webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/util/namespace/
* /webservices/commons/trunk/modules/axiom/modules/axiom-common-impl/src/main/java/org/apache/axiom/om/impl/common/
* /webservices/commons/trunk/modules/axiom/modules/axiom-common-impl/src/main/java/org/apache/axiom/om/impl/common/
* /webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/
* /webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/
* /webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/
* /webservices/commons/trunk/modules/axiom/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/
* /webservices/commons/trunk/modules/axiom/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/om/element/
* /webservices/commons/trunk/modules/axiom/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/om/element/
* /webservices/commons/trunk/modules/axiom/modules/axiom-testsuite/src/main/resources/org/apache/axiom/ts/om/element/namespacecontext.xml

> Add methods to OMElement that allow calculating the namespace context of an element
> -----------------------------------------------------------------------------------
>                 Key: AXIOM-388
>                 URL:
>             Project: Axiom
>          Issue Type: New Feature
>          Components: API
>            Reporter: Andreas Veithen
>            Assignee: Andreas Veithen
>             Fix For: 1.2.13
> There are a couple of things that the average Java developer is unable to code correctly.
One of these things is calculating the namespace context of an element in an XML document.
> Examples:
> (1) The following change in Axis2 attempts to resolve an issue where the databinding
fails to resolve a QName value if the prefix is declared on the SOAP envelope:
> Strictly speaking this change is incorrect because it only takes into account namespaces
declared on the soap:Envelope, but not on the soap:Body.
> (2) The following change in Synapse adds code to compile an XPath expression retrieved
from an XML configuration document:
> To build the namespace context for the XPath expression, the code uses OMElement#getAllDeclaredNamespaces()
on the element that has the attribute the XPath expression is extracted from. That is incorrect
because namespaces relevant for the interpretation of the XPath expression may also be declared
on ancestors of this element.
> (3) RAMPART-40 introduces code that attempts to build a namespace context by scanning
the entire document tree for namespace declarations (!).
> To avoid these issues and to make life easier for developers, Axiom should define high
level methods that allow to calculate the namespace context of a given element. There should
be actually two methods:
> * One that returns an iterator over all namespace declarations in scope. This method
could be used e.g. to initialize the namespace context of an XPath expression.
> * One that returns a NamespaceContext object that can be used with other XML APIs that
support this interface.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message