logo       

supporting user-defined funs in xquery2src: msg#00095

lang.scala

Subject: supporting user-defined funs in xquery2src

Hello,

would it be ok to assume that each namespace prefix f is bound in the same xquery file?

Then adding this could be straightforward. A full implementation that handles imports seems like more work.

cheers,
B.

Molnár Balázs wrote:

Any plans on supporting XQuery function definitions like this one here ?

declare function f:fibo($n as xs:integer) as item() {
if ($n = 0)
then 0
else if ($n = 1)
then 1
else (f:fibo($n - 1) + f:fibo($n -2))
};


regards,
Balazs



--
Burak Emir

http://lamp.epfl.ch/~emir




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise