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 2564 - version_declaration-003 and 004 are collation sensitive
Summary: version_declaration-003 and 004 are collation sensitive
Status: CLOSED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 0.8.0
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Ravindranath (Ravi) Chennoju
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-03 00:20 UTC by Marc Van Cappellen
Modified: 2005-12-05 20:51 UTC (History)
0 users

See Also:


Attachments

Description Marc Van Cappellen 2005-12-03 00:20:00 UTC
Both version_declaration-003 and version_declaration-004 are querying bib2.xml 
ordering on the price element.

Note that some of the price elements have a leading space in their content.
This makes the ordering on price element unnecessary sensitive to the collation.
The expected results assume the codepoint collation, but the default collation 
is implementation defined.

We see the following solutions.
a) these 2 specific queries could set codepoint as default collation in the 
prolog
b) the XQTS guidelines could mandate that the default collation is set to 
codepoint
c) remove the leading spaces from the price elements in bib2.xml
d) add an xs:decimal constructor in the order by clause
e) remove the orde by clause from the query and assume that the results are 
returned in document order

Thanks,
Marc
Comment 1 Ravindranath (Ravi) Chennoju 2005-12-05 20:17:19 UTC
Fixed tests and logs using option#d. Used xs:decimal constructor.
Comment 2 Marc Van Cappellen 2005-12-05 20:51:49 UTC
accepted, closing this item.