<?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>28752</bug_id>
          
          <creation_ts>2015-06-04 10:48:49 +0000</creation_ts>
          <short_desc>[FO31] load-xquery-module requires implementation providing Module Feature</short_desc>
          <delta_ts>2016-12-16 19:55:19 +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>Candidate Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</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>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Debbie Lockett">debbie</reporter>
          <assigned_to name="Michael Kay">mike</assigned_to>
          
          
          <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>120694</commentid>
    <comment_count>0</comment_count>
    <who name="Debbie Lockett">debbie</who>
    <bug_when>2015-06-04 10:48:49 +0000</bug_when>
    <thetext>Since the load-xquery-module() function is designed to load library modules, it requires the XQuery processor used to provide the optional Module Feature (5.2.4 of XQuery 3.1 Spec). This should be incorporated with the changes to this function relating to the availability of a suitable XQuery processor.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120969</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-06-13 17:39:03 +0000</bug_when>
    <thetext>1. We have recently added the option value:

xquery-version	xs:decimal	The minimum level of the XQuery language that the processor must support. Defaults to the version given in the prolog of the library module; or ·implementation-defined· if this is absent.

and the error code

If no suitable XQuery processor is available, a dynamic error is raised [err:FOQM0006].

I propose that we extend the definition of this error as follows:

If no suitable XQuery processor is available, a dynamic error is raised [err:FOQM0006]. This includes the following cases: (a) No XQuery processor is available; (b) No XQuery processor supporting the requested version of XQuery is available; (c) No XQuery processor supporting the optional Module Feature is available.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121100</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-06-16 15:27:17 +0000</bug_when>
    <thetext>The proposal was accepted.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>