Subject:User-Defined Functions Author:Minollo I. Date:03 Jun 2004 01:46 PM
The XQuery spec draft has been changed since that book has been printed.
According to the latest draft, you should define your user defined function as:
declare function local:books-by-author($last,$first) as string*
{
...
};
Note the change from "define" to "declare"; and the fact that now user defined functions must have a namespace prefix.