<?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>29800</bug_id>
          
          <creation_ts>2016-08-30 13:16:27 +0000</creation_ts>
          <short_desc>[FO31] fn:load-xquery-module, fn:transform</short_desc>
          <delta_ts>2016-12-16 19:55:35 +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="Tim Mills">tim</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>127259</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2016-08-30 13:16:27 +0000</bug_when>
    <thetext>These functions are classified as &quot;context-independent&quot;, however the text states of the stylesheet-location option that &quot;If the value is a relative reference, it is resolved against the static base URI of the fn:transform function call.&quot; i.e. it depends on the static context.

I&apos;d guess (although it isn&apos;t stated) that in a call to fn:load-xquery-module, a relative $module-uri would be resolved against the static base URI of the function call, making fn:load-xquery-module similarly context-dependent.

Also, if the fn:transform/fn:load-xquery-module function is unsupported by the host language or explicitly disabled by the user, is err:FOXT0001/err:FOQM0006. the appropriate error to raise?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127309</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2016-09-06 16:26:21 +0000</bug_when>
    <thetext>Decided:

1. We agree.

2. Module URIs are namespace URIs therefore relative URIs are deprecated and not resolved.

3. Yes.

We need test cases for processors that don&apos;t support the function except by throwing an error.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127311</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2016-09-06 19:42:50 +0000</bug_when>
    <thetext>I have labelled this functions as context-dependent, and I have expanded the descriptions of error cases to include these.

(Note that FOXT0004 should be used when the fn:transform function has been disabled)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127329</commentid>
    <comment_count>3</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2016-09-07 12:40:26 +0000</bug_when>
    <thetext>I have added tests.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>