Currently, this will create an error from router.xql:288 as it is assumed that a function exists in this parameter.
If the lookup succeeds (as something is defined with the given name) but it is not a function, the resulting XQuery dynamic error, is not helpful as it simply states that $fn is not a function.
router.xql:284 could additionally verify that $fn instance of function(*).
Currently, this will create an error from
router.xql:288as it is assumed that a function exists in this parameter.If the lookup succeeds (as something is defined with the given name) but it is not a function, the resulting XQuery dynamic error, is not helpful as it simply states that
$fnis not a function.router.xql:284could additionally verify that$fn instance of function(*).