W3C home > Mailing lists > Public > www-ql@w3.org > July to September 2007

Re: XQuery Update to return values

From: Martin Probst <martin@x-hive.com>
Date: Tue, 31 Jul 2007 08:57:21 +0200
Message-Id: <D78BECB0-1488-4602-BAAD-763E20839C09@x-hive.com>
Cc: "Jonathan Robie" <jonathan.robie@redhat.com>, "Carmelo Montanez" <carmelo@nist.gov>, <www-ql@w3.org>
To: "Wu, Emma" <Emma.Wu@ddytech.com>

Hi Emma,

> What is the syntax that X-Hive/DB supports for returning values? Or  
> are
> there any documents I can have a look at? Thanks.

X-Hive simply allows to mix updating statements with non-updating  
statements, i.e.

declare updating function local:foo() as xs:integer
{
   let $items := ...
   return (
     do delete $items,
     count($items))
}

You can download X-Hive/DB from http://www.x-hive.com/products/db/,  
the download includes documentation.

Regards,
Martin

-- 
Martin Probst
X-Hive Corporation
martin@x-hive.com
Received on Tuesday, 31 July 2007 06:57:52 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 31 July 2007 06:57:52 GMT