[xquery-talk] functions with out parameters

Michael Kay mhk at mhk.me.uk
Tue Aug 15 12:05:21 PDT 2006


> 
> Hi all, I need to design somehow xquery functions with inout 
> parameters. 

Why?

> AFAIN xquery only supports input parameters. Do 
> you have any idea how to achieve that?

Either design your functions so they only do one job, returning one result;
or return a composite result as a sequence or as a constructed XML document.

I suspect you are simply trying to code in XQuery as if it were some other
language you have used in the past, and you need to recognize that using a
different language can require a different approach.

Michael Kay
http://www.saxonica.com/



More information about the talk mailing list