Use relative queries instead of absolute queries in XPath expressions ? [message #9951] |
Tue, 23 October 2007 09:28 |
Guillaume Porcher![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=guillaume.porcher%40bull.net) Messages: 3 Registered: July 2009 |
Junior Member |
|
|
Hi,
I have a problem with the BPEL designer.
I just created a new BPEL process (synchronous process template). I want
to assign the content of the input message to the output message.
I create an Assign action, and a new Copy.
When I choose "input -> payload -> input" (variable / part / element) in
the from part of the copy, the designer generates an XPath query
"/tns:input".
I wonder why an absolute query is created there instead of a relative
query.
I think the context node in BPEL for XPath queries is the message part.
If the query is an absolute query ("/tns:input") the node is searched from
the document root (the message) and so the node "input" is not found.
If the query is relative ("tns:input"), the node is searched from the node
context.
I think this is shown in the examples of the section 8.2.6 of the BPEL
spec .
Is there a bug in the designer or did I misunderstand something in the
spec ?
Regards,
Guillaume Porcher
|
|
|
Powered by
FUDForum. Page generated in 0.02981 seconds