Project

Profile

Help

suspicious default collation behaviour

Added by Anonymous over 18 years ago

Legacy ID: #3522755 Legacy Poster: marcvc (marcvc)

Michael, consider the following query: declare default collation "http://saxon.sf.net/collation?lang=en;strength=secondary"; declare function local:f1(){"A"}; declare function local:f2(){"a"}; <e>{fn:distinct-values((local:f1(), local:f2()))}</e> , <e>{fn:distinct-values(("A", "a"))}</e> It behaves rather unexpected: <e>A a</e> <e>A</e> Thanks, Marc


Replies (3)

Please register to reply

RE: suspicious default collation behaviour - Added by Anonymous over 18 years ago

Legacy ID: #3522930 Legacy Poster: Michael Kay (mhkay)

Thanks, I have described the problem and published a fix at https://sourceforge.net/tracker/index.php?func=detail&amp;aid=1406154&amp;group_id=29872&amp;atid=397617

RE: suspicious default collation behaviour - Added by Anonymous over 18 years ago

Legacy ID: #3523913 Legacy Poster: marcvc (marcvc)

Michael, I believe to have applied the patch correctly, but there seems to be an unwanted side effect with fn:codepoint-equal. fn:codepoint-equal("a","a") results in FOCH0002, "Unknown collation". Thanks, Marc

RE: suspicious default collation behaviour - Added by Anonymous over 18 years ago

Legacy ID: #3523945 Legacy Poster: Michael Kay (mhkay)

I've added a comment to the original bug entry explaining this problem and fixing it (it's actually a separate error which for some reason was masked by the first bug)

    (1-3/3)

    Please register to reply