Project

Profile

Help

Bug #658

closed

Default collation ignored

Added by Anonymous almost 19 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
XPath conformance
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Legacy ID:
sf-1406154
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Platforms:

Description

SourceForge user: mhkay

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.


Files

CollatingFunction.java (9.56 KB) CollatingFunction.java Anonymous, 2006-01-14 22:23
Actions #1

Updated by Anonymous almost 19 years ago

SourceForge user: mhkay

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".

Actions #2

Updated by Anonymous almost 19 years ago

SourceForge user: mhkay

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".

Please register to edit this issue

Also available in: Atom PDF