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
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>
into collection('ettevotja_muudatused')
)
else statement clearly doesn't work, cause I need to specify a document
name and create is somehow.
How can I do this inside such a statement?
And common question - does Sedna have any plans for XQuery Update
Facility http://www.w3.org/TR/xquery-update-10 to implement?
Kind regards,
Andrei Lunjov
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Sedna-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sedna-discussion