<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>24693</bug_id>
          
          <creation_ts>2014-02-17 14:49:58 +0000</creation_ts>
          <short_desc>Dynamic XQuery Module Import</short_desc>
          <delta_ts>2014-09-15 09:28:09 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>Functions and Operators 3.1</component>
          <version>Working drafts</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Adam Retter">adam</reporter>
          <assigned_to name="Michael Kay">mike</assigned_to>
          <cc>andrew_coleman</cc>
    
    <cc>jim.melton</cc>
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>100753</commentid>
    <comment_count>0</comment_count>
    <who name="Adam Retter">adam</who>
    <bug_when>2014-02-17 14:49:58 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109120</commentid>
    <comment_count>1</comment_count>
    <who name="Jim Melton">jim.melton</who>
    <bug_when>2014-07-19 18:02:29 +0000</bug_when>
    <thetext>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&apos;t have the resources, but I&apos;m trying one last time to give you the opportunity.  (Just in case you are not receiving my email, I&apos;m also adding a comment to the bug that contains this request.)

Hope this helps,
   Jim</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109654</commentid>
    <comment_count>2</comment_count>
    <who name="Andrew Coleman">andrew_coleman</who>
    <bug_when>2014-07-31 13:36:09 +0000</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111510</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2014-09-15 09:28:09 +0000</bug_when>
    <thetext>Note that the function is now called load-xquery-module.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>