[Sedna-discussion] insert document into collection using XQuery update

2010-09-23 Thread Andrei Lunjov
Hello, I am a newbie, so please excuse me if I'm asking some silly everyone-knows basics :) I have an XQuery, which is to be ran from XQJ API (this will be a mass update), my simplified query (possibly with typos:) is: declare variable $x external; for $a in $x/root/a let $id := $a/id return

Re: [Sedna-discussion] insert document into collection using XQuery update

2010-09-23 Thread Ivan Shcheklein
Hi Andrey, declare variable $x external; for $a in $x/root/a let $id := $a/id return if( exist( collection('aaa')/a[ id = $id ] ) ) then( update insert m.../m into collection('aaa')/a[ id = $id ] ) else ( update insert a id.../id m.../m /a

Re: [Sedna-discussion] insert document into collection using XQuery update

2010-09-23 Thread Andrei Lunjov
Thank you, Ivan. My user's note is - full update functionality is needed much. Luckily I can do things as you advised easily with Cocoon, but still. Thanks for index advice. Andrei Lunjov 23.09.2010 10:00, Ivan Shcheklein ?: Hi Andrey, declare variable $x external; for $a

[Sedna-discussion] [ANN] Sedna 3.4 Released

2010-09-23 Thread Ivan Shcheklein
We are pleased to announce the new Sedna release! Sedna 3.4 binaries and sources are immediately available at: http://modis.ispras.ru/sedna/download or http://sourceforge.net/projects/ sedna/files . * Important Note for Drivers Developers:* Please check that your drivers are compatible with