- From: <bugzilla@wiggum.w3.org>
- Date: Thu, 04 Jan 2007 13:41:05 +0000
- To: public-xml-schema-testsuite@w3.org
- CC:
http://www.w3.org/Bugs/Public/show_bug.cgi?id=4148 Summary: SUN tests: dependency on float/double formatting Product: XML Schema Test Suite Version: 2006-11-06 Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P2 Component: Sun Tests AssignedTo: ht@inf.ed.ac.uk ReportedBy: mike@saxonica.com QAContact: public-xml-schema-testsuite@w3.org In the Sun ElemDecl test set, tests <test set="ElemDecl" group="valueconstraint00501m1" name="Positive"/> <test set="ElemDecl" group="valueconstraint00501m2" name="Positive"/> the essence of the test is to check that the fixed value declared for an element is valid against the definition of the type invoked using xsi:type. The rules state that the canonical lexical representation of the fixed value must be valid against this type. In these two tests the fixed value is a floating point value. Although Part 2 defines a "canonical representation" for float and double, it is not truly canonical, in that multiple representations are permitted. Specifically, an implementation can return 9.999999776482582E-3 as the canonical representation of the value 0.01, and this will violate the pattern facet, causing the instance to be invalid.
Received on Thursday, 4 January 2007 13:41:15 UTC