#460 Default collation ignored

v8.6.1
closed
Michael Kay
5
2012-10-08
2006-01-14
Michael Kay
No

When a function call (such as distinct-values() or
compare()) takes a collation as an optional argument,
and the collation argument is omitted, the default
collation in the static context is used only in the
case where all the arguments of the function call are
known statically. In other cases, the Unicode codepoint
collation is used.

Source code fix: replace the module
net.sf.saxon.functions.CollatingFunction with the new
version attached.

Discussion

  • Michael Kay
    Michael Kay
    2006-01-14

    Replacement code for net.sf.saxon.functions.CollatingFunction.java

     
  • Michael Kay
    Michael Kay
    2006-01-15

    Logged In: YES
    user_id=251681

    Applying this correction reveals another bug that was
    previously masked. The class
    net.sf.saxon.functions.CodepointEqual.java incorrectly
    inherits from CollatingFunction. The effect of this error is
    that the last argument is now (after the changes to
    CollatingFunction) treated as a collation URI, and typically
    reports an error saying that this collation is unknown.

    Source fix: on line 14 of this file, delete "extends
    CollatingFunction".

     
  • Michael Kay
    Michael Kay
    2006-01-16

    Logged In: YES
    user_id=251681

    Sorry, a typo: in the previous comment, the patch should be:

    on line 14 of net.sf.saxon.functions.CodepointEqual.java,
    replace "extends CollatingFunction" by "extends SystemFunction".