Re: XQuery Update to return values

Martin Probst <[email protected]> Tue, 31 Jul 2007 08:57:21 +0200
Newsgroups gmane.comp.web.query-languages
Message-ID <[email protected]>
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
[email protected]