Let's take the most simple function I can think of written in xquery:
declare function local:identityFunction($v as xs:integer)
{
return ($v)
};
Where do I declare it?
I am trying both exist-db and basex, but if I write it in the query processor window, they give me some errors (though normal xqueries work).
For example basex complains with the following message: "Expecting expression".