You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Raymond Feng (JIRA)" <tu...@ws.apache.org> on 2008/03/14 16:14:24 UTC

[jira] Assigned: (TUSCANY-2078) Namespace context is not carried with the xpath string expression

     [ https://issues.apache.org/jira/browse/TUSCANY-2078?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Raymond Feng reassigned TUSCANY-2078:
-------------------------------------

    Assignee: Raymond Feng

> 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
>            Assignee: 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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org