Thanks. I realized the syntax error a couple of minutes ago. I was trying out a more complex example meanwhile.
2011/4/26 Leo Wörteler lw@basex.org
Hi Sony,
Am 26.04.2011 18:38, schrieb Sony Vijay:
let $node := copy $c :=
<entry> <title>entry title</title> <content>entry content</content> </entry> modify ( return replace value of node $c//title with 'new entry title', return replace value of node $c//content with 'new entry content' ) return $c replace node doc('doc1')/entry with $node
Please check beforehand that your queries don't contain obvious syntax errors like the one above. This can be easily accomplished by copy-pasting them into the BaseX GUI [1], which highlights errors quite nicely.
This does not work.
Try deleting both 'return' keywords in the 'modify' clause and adding one at the beginning of the last line. And please keep in mind that this mailing list should be primarily about BaseX, not XQuery syntax.
HTH, Leo __________ [1] http://basex.org/products/download/all-downloads/