This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
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 - https://lists.w3.org/Archives/Member/w3c-xsl-query/2011Jul/0043.html 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 - https://lists.w3.org/Archives/Member/w3c-xsl-query/2011Aug/0141.html and here - http://www.w3.org/TR/xpath-functions-30/#func-function-lookup. 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.
Adam, 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, Jim
The Working Group voted to accept Jonathan’s revised proposal on fn:import-module. See: https://lists.w3.org/Archives/Member/w3c-xsl-query/2014Jul/0083.html
Note that the function is now called load-xquery-module.