On 28/04/2011 12:33, Christian GrĂ¼n wrote:
Will it be possible for you to provide a working example of using XPath to select nodes-to-be-inserted instead of <snippet>to be inserted</snippet> in your example query above?
Version 1: insert node (<node1/>, <node2/>) into /updating/target
Version 2: let $x := (<node1/>, <node2/>) return insert node $x into /updating/target
Hope this helps, Christian
Hi,
I am still stuck on this one ('cos I generate xquery from within XSLT and it is proving to be hard to embed the XML instance in the xquery so generated).
I can probably serialize the XML, pass it as a string parameter to the xquery on the server side and then create XML back from that string in the xquery - how to do this last step (parse a document from incoming serialized XML)?
Thanks.