Hi this is probably an odd question but i would like to know how i can declare a function in Xbase.
I was told this is how :
declare function prefix:name($parameter as DataType)
as returnDataType {
..code..
};
I did this :
declare function local:test($i as xs:integer?)
as xs:integer
{
return $i
};
But it keep saying that i have a syntax problem
Expecting expression.