On 12/19/07, Matthieu Riou <[EMAIL PROTECTED]> wrote: > > Here c, v, ca and va are actually aliases to the original path. I'd also > propose (optional) that a non-existent path used in *with* gets created if > it doesn't exist when a *with* relies on it. So in my previous example if > customer.payload.ns::customer doesn't exist, we create this XML structure > and set it on customer.
If you meant for it to exist, it would be there. If you didn't mean for it to exist, then I would expect it to fail. The idea of data created magically is too much black magic for me. Assaf So the would get translated to a BPEL equivalent to: > > <if> > <condition>!exists(customer.payload.ns::customer)</condition> > <assign> > <from><literal><ns:customer></ns:customer></literal></from> > <to>$customer.payload</to> > </assign> > </if> > > (same for visitor.payload but the if body wouldn't execute as it's the > source structure in this example) > > <assign> > <copy> > <from>$visitor.payload/ns:customer/ns::fname</from> > <to>$customer.payload/ns:customer/ns::firstname</to> > </copy> > <copy> > <from>$visitor.payload/ns:customer/ns::lname</from> > <to>$customer.payload/ns:customer/ns::lastname</to> > </copy> > (blah blah blah) > </assign> > > What do you think? Looks good? > > Matthieu > -- CTO, Intalio http://www.intalio.com
