This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
The test is: <created by="Tim Mills" on="2016-08-19"/> <test>let $module := function-lookup(fn:QName('http://www.w3.org/2005/xpath-functions', 'load-xquery-module'), 1)("http://www.w3.org/fots/fn/load-xquery-module/valid/module") return let $vars := $module("variables"), $fns := $module("functions") return let $var-values := ($vars(QName($module-ns, "var1")), $vars(QName($module-ns, "var2"))), $fns-values := ($fns(QName($module-ns, "func1"))(0)(), $fns(QName($module-ns, "func2"))(0)()) return ($var-values, $fns-values) </test> It uses a variable $module-ns which has not been declared.
Fix attempted. Please confirm.