Andrei,
you should be able to combine XQuery external variables with a Sedna
UPDATE statement.
e.g. use the executeCommand(...) function, with a command like:
declare variable $x as element() external;
UPDATE insert $warning
preceding doc("hospital")//blood_pressure[systolic gt 180]
Regards,
Charles
> Hello,
>
> I tried to execute updates using XQJ API with any success - message
> reported it unexpects insert from update insert statement.
> I also tried W3C without any success.
> My questions:
> - Is it possible to perform updates with XQuery?
> If yes:
> - Some updates samples? What the syntax is?
> - Can I use external variables with updates?
>
>
> Regards,
> Andrei Lunjov
>
> ------------------------------------------------------------------------------
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
> Spend less time writing and rewriting code and more time creating great
> experiences on the web. Be a part of the beta today.
> http://p.sf.net/sfu/beautyoftheweb
> _______________________________________________
> Sedna-discussion mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sedna-discussion
>
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Sedna-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sedna-discussion