[
https://issues.apache.org/jira/browse/ODE-519?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mark Ford reopened ODE-519:
---------------------------
namespace prefixes are being copied with your fix but regular attributes are
not.
> Attributes and namespace declarations are being removed from an element
> produced from an XQuery expression.
> -----------------------------------------------------------------------------------------------------------
>
> Key: ODE-519
> URL: https://issues.apache.org/jira/browse/ODE-519
> Project: ODE
> Issue Type: Bug
> Components: BPEL Runtime
> Affects Versions: 2.0
> Environment: ServiceMix
> Reporter: Mark Ford
> Assignee: Karthick Sankarachary
> Priority: Critical
> Fix For: 1.3
>
>
> The following element was constructed by an XQuery expression:
> <sref:service-ref
> xmlns:sref="http://docs.oasis-open.org/wsbpel/2.0/serviceref">
> <wsa:EndpointReference xmlns:pp="http://some-namespace"
> xmlns:wsa="http://www.w3.org/2005/08/addressing">
>
> <wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address>
> <wsa:Metadata>
> <Service EndpointName="MyEndpoint">pp:SomeProxy</Service>
> </wsa:Metadata>
> </wsa:EndpointReference>
> </sref:service-ref>
> However, when the value is set on the partner link, it appears to have lost
> its namespace declarations and attributes.
> <service-ref xmlns="http://docs.oasis-open.org/wsbpel/2.0/serviceref">
> <EndpointReference xmlns="http://www.w3.org/2005/08/addressing">
> <Address>http://www.w3.org/2005/08/addressing/anonymous</Address>
> <Metadata>
> <Service>pp:SomeProxy</Service>
> </Metadata>
> </EndpointReference>
> </service-ref>
> - Notice that //Service/@EndpointName is now missing
> - Notice that xmlns:pp="http://some-namespace" is now missing
> This appears to be coming from DOMUtils.cloneNode(Document,Node). The code
> there does not consider the attributes or namespace declarations for the an
> element being cloned.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.