<?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>15912</bug_id>
          
          <creation_ts>2012-02-06 15:57:07 +0000</creation_ts>
          <short_desc>[XP3] Function items based on collation-dependent functions</short_desc>
          <delta_ts>2013-06-19 09:13:43 +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>XPath 3.0</component>
          <version>Last Call drafts</version>
          <rep_platform>PC</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>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Kay">mike</reporter>
          <assigned_to name="Jonathan Robie">jonathan.robie</assigned_to>
          <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>63750</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2012-02-06 15:57:07 +0000</bug_when>
    <thetext>We have a number of bug reports against tests (*) that use constructs such as contains#2 or deep-equal#2 - constructs which we have disallowed because the functions in question are context-dependent. I think this points to a usability problem which we should fix. Users can work around the problem by defining their own function as a wrapper around the system function, but it&apos;s clumsy, and users are going to trip over this all the time.

I propose that we should remove the ban on forming function items from context-dependent system functions in the case where the only dependency is on the static context. In very many of these cases the dependency is on the default collation. It makes sense to take the default collation from the static context at the point where the function literal appears. There is no ambiguity, as there could be in the case of a dependency on the dynamic context.

* Examples: bug #15911, bug #15642</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65848</commentid>
    <comment_count>1</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2012-03-20 16:23:54 +0000</bug_when>
    <thetext>From the Prague face to face:

Bug 15912 (Context dependent function items). DECIDED to resolve bug 
15912 by splitting the category of functions that are context-dependent 
into two (static-context-dependent and dynamic-context-dependent), and 
permitting use of those that are only static-context-dependent in 
function item literals and dynamic function calls.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65849</commentid>
    <comment_count>2</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2012-03-20 16:29:16 +0000</bug_when>
    <thetext>Leaving open pending WG discussion to specify in more detail.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67429</commentid>
    <comment_count>3</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2012-05-07 18:58:07 +0000</bug_when>
    <thetext>The Working Group has accepted the proposal in the following message:

https://lists.w3.org/Archives/Member/w3c-xsl-query/2012Apr/0000.html

With editorial changes noted here:

https://lists.w3.org/Archives/Member/w3c-xsl-query/2012Apr/0009.html</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>