[Bug 18654] New: equality between anySimpleType and string

https://www.w3.org/Bugs/Public/show_bug.cgi?id=18654

           Summary: equality between anySimpleType and string
           Product: XML Schema Test Suite
           Version: 2006-11-06
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Sun Tests
        AssignedTo: cmsmcq@blackmesatech.com
        ReportedBy: xml.dev@altova.com
         QAContact: public-xml-schema-testsuite@w3.org


In test 'Positive' of group 'valueconstraint00901m1' a fixed value constraint
"alpha beta" of type "xs:anySimpleType" must be compared with the value "alpha
beta" of an instance specified type definition "xs:string". 

See http://www.w3.org/TR/xmlschema11-1/#cvc-elt:
5.2.2.2.2 If E's ·governing type definition· is a Simple Type Definition or a
Complex Type Definition with {content type}.{variety} = simple, then the
·actual value· of E is equal or identical to D.{value constraint}.{value}. 

But the datatypes spec says: "values from different primitive data spaces are
made artificially unequal even if they might otherwise be considered equal".

xs:anySimpleType is a special data type, xs:string a primitive data type. So in
my opinion they can't have equal or identical values.

But this is a little bit different for XSD 1.0 - see
http://www.w3.org/TR/xmlschema-1/#cvc-elt:
5.2.2.2.2 If the {content type} of the ·actual type definition· is a simple
type definition, then the ·actual value· of the item must match the canonical
lexical representation of the {value constraint} value.

So in my opinion the expected result must be invalid for XSD 1.1, and valid for
XSD 1.0.

Best regards,
Andreas Meissl

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Wednesday, 22 August 2012 08:46:08 UTC