Thank you, Charles,
Now I got it working, thank you!
Another question - what would be the faster way bind documents - as
InputStream or using StAX (if StAX stream is already available) - will
InputStream be parsed into StAX or another form? (I have a SAX pipeline
initially in my case).
And smaller possible bug from me - I occasionally prepended UPDATE with
XML comment <!-- -->, which drove to NPE inside XQJ.
Regards,
Andrei
12.10.2010 20:17, Charles Foster пишет:
> 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