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 24693 - Dynamic XQuery Module Import
Summary: Dynamic XQuery Module Import
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Functions and Operators 3.1 (show other bugs)
Version: Working drafts
Hardware: All All
: P2 enhancement
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
Depends on:
Reported: 2014-02-17 14:49 UTC by Adam Retter
Modified: 2014-09-15 09:28 UTC (History)
2 users (show)

See Also:


Description Adam Retter 2014-02-17 14:49:58 UTC
Back in July 2011, I proposed adding two naive functions to XQuery 3.0, one for dynamic function invocation and another for dynamic module imports. For the original request see -

One of my wishes was granted, and the function that I described as `fn:function-from-name` was added as `fn:function-lookup`.
See here - and here -

Unfortunately, at the time it was felt by the WG that dynamic module import would take more time than was available, it was suggested this would be deferred until XQuery 3.1.

Now that we are discussing requirements for XQuery 3.1, I would very much like to see a function for dynamic module import discussed again. Whilst XQuery 3.0 has moved us forward, it is still only possible to solve half of each of my use-cases.

If the WG are interested, I would be happy to draft a new proposal about dynamic module import for consideration. Hopefully this proposal would be much more informed than my first attempt.

Thanks Adam.
Comment 1 Jim Melton 2014-07-19 18:02:29 UTC

Earlier this year (2014-02-17), you filed Bugzilla Bug 24693, Dynamic XQuery Module Import.  In the last paragraph of the bug report, you said:

   If the WG are interested, I would be happy to draft a new proposal about dynamic module import for consideration.

The time for incorporating a feature like this is EXTREMELY short (basically, it would have to be adopted at the face-to-face in just over a week), but the WG is sufficiently interested to have requested that I ask if you are still willing to draft such a proposal. 

I sent you a message several weeks ago to this effect, but never heard a response, so I assumed that you had decided you didn't have the resources, but I'm trying one last time to give you the opportunity.  (Just in case you are not receiving my email, I'm also adding a comment to the bug that contains this request.)

Hope this helps,
Comment 2 Andrew Coleman 2014-07-31 13:36:09 UTC
The Working Group voted to accept Jonathan’s revised proposal on fn:import-module. See:
Comment 3 Michael Kay 2014-09-15 09:28:09 UTC
Note that the function is now called load-xquery-module.