module namespace c = "_function-lookup-test.c" ; (: Basex 12.3 requiers the lookup-module to be imported in the module that executes the 'function-lookup'-function in previous versions this was not necessary, the-lookup-module only needed to be imported in the calling module, here: "m.xqm" import module namespace m = "_function-lookup-test.m" ; (: not working when removed :) :) declare %public function c:method ( $qName as xs:QName , $arity as xs:integer ) as function(*)? { function-lookup( $qName , $arity ) otherwise message( "WARNING!: Method not found: " || xs:string( $qName) || "#" || $arity ) } ;