This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 29914 - [qt3ts] fn-function-lookup-760
Summary: [qt3ts] fn-function-lookup-760
Status: RESOLVED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3 & XPath 3 Test Suite (show other bugs)
Version: Candidate Recommendation
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Tim Mills
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-05 14:26 UTC by Michael Kay
Modified: 2016-10-07 10:35 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2016-10-05 14:26:14 UTC
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.
Comment 1 Tim Mills 2016-10-07 10:35:29 UTC
Fix attempted.  Please confirm.