This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 6713 - XQTS expected result for upper-case category with "i" flag seems incorrect
Summary: XQTS expected result for upper-case category with "i" flag seems incorrect
Status: RESOLVED INVALID
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Andrew Eisenberg
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL: http://www.w3.org/TR/xpath-functions/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-17 21:42 UTC by Andy Agrawal
Modified: 2009-03-21 02:56 UTC (History)
1 user (show)

See Also:


Attachments

Description Andy Agrawal 2009-03-17 21:42:48 UTC
The test in question is in the "MatchesFunc" group:

(: Name: caselessmatch15 :)
(: Description: Call of matches() with "i" flag and upper-case category :)
matches('m', '\P{Lu}', 'i')

The expected result for it is true, but that is in direct contradiction of the specification:
http://www.w3.org/TR/xpath-functions/#flags

"4. All other constructs are unaffected by the "i" flag. For example, "\p{Lu}" continues to match upper-case letters only."
Comment 1 Michael Kay 2009-03-17 21:47:58 UTC
The regex is \P{Lu} (note the capital P) which matches all characters that are NOT in category Lu.
Comment 2 Andy Agrawal 2009-03-21 02:56:07 UTC
You're right, this isn't a bug. (I had glossed over the capital P). I'm closing it.