import module namespace ref = "http://www.zorba-xquery.com/modules/reflection";

declare function local:plus($param as xs:integer) as xs:integer
{
  $param + 1

};

ref:invoke(xs:QName("local:plus"), "text")




(: Example configuration (taken from zorba testsuite):

Error: http://www.w3.org/2005/xqt-errors:XPTY0004

---------------------------------------------------------------------------------------


---------------------------------------------------------------------------------------




Test returns an error code.
:)