[Bug 15912] New: Function items based on collation-dependent functions

https://www.w3.org/Bugs/Public/show_bug.cgi?id=15912

           Summary: Function items based on collation-dependent functions
           Product: XPath / XQuery / XSLT
           Version: Last Call drafts
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XPath 3.0
        AssignedTo: jonathan.robie@gmail.com
        ReportedBy: mike@saxonica.com
         QAContact: public-qt-comments@w3.org


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'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

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Monday, 6 February 2012 15:57:15 UTC