Namespace context is not carried with the xpath string expression
-----------------------------------------------------------------
Key: TUSCANY-2078
URL: https://issues.apache.org/jira/browse/TUSCANY-2078
Project: Tuscany
Issue Type: Bug
Components: Java SCA Assembly Model
Reporter: Raymond Feng
In the SCA assembly model, there are cases that xpath is used to reference XML
segment. For example, policySet's @appliesTo or property's @source. The xpath
is declared in the context of the owning document. For example,
x:composite/x:component has to be resovled based on the xmlns:x declaration in
the owning document. When the xpath is applied to another document which has
different prefix/namespace mapping, it's broken. One of the solution is to pass
the compiled version of the xpath expression (javax.xpath.XPathExpression)
instead of the raw string.
To reproduce the problem, change the Calculator.composite file in the
sample-calculator-impl-policies module to remove the xmlns:sca declaration
which is not required at all in the composite document.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]