<?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>24968</bug_id>
          
          <creation_ts>2014-03-07 12:42:06 +0000</creation_ts>
          <short_desc>Two arg fn:collation-key and three arg fn:deep-equal are not context-dependent</short_desc>
          <delta_ts>2014-08-02 13:54:41 +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>XSLT 3.0</component>
          <version>Last Call drafts</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="Abel Braaksma">abel.braaksma</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>102059</commentid>
    <comment_count>0</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2014-03-07 12:42:06 +0000</bug_when>
    <thetext>We have two versions of fn:collation-key [1], the two argument function taking the collation as an argument, hence the two-argument version of this function is not context-dependent.

Likewise, we have two versions of fn:deep-equal [2], the three argument function taking the collation as an argument, making it context-independent.

I think it is best that, in the same way other overloaded functions are described, a line is added for the two and three argument functions respectively, explaining this difference.

[1] http://www.w3.org/TR/xslt-30/#func-collation-key
[2] http://www.w3.org/TR/xslt-30/#func-deep-equal</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102072</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2014-03-07 20:58:41 +0000</bug_when>
    <thetext>The versions of these functions that omit the collation argument are context-dependent because they depend on the default collation.

The versions that take an explicit collation argument are context-dependent because the set of known collation URIs is context dependent; in addition (sadly), they use the static base URI to resolve the collation URI if it is relative.

F+O 3.0 (see for example http://www.w3.org/TR/xpath-functions-30/#func-deep-equal) is a bit more precise about exactly what the context dependencies are, and I will endeavour to add this information for XSLT 3.0 also.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106045</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2014-05-15 14:44:08 +0000</bug_when>
    <thetext>This has been fixed in the current build.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>