where to declare xquery functions?

chrisko

New Member
Let's take the most simple function I can think of written in xquery:\[code\]declare function local:identityFunction($v as xs:integer) { return ($v)}; \[/code\]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".
 
Back
Top