Q: Fixed value constraint validation for elements

Hi,

In the schema spec [1] , we have the following rule:

        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.

If I have a schema where element 'e1' is declared as anySimpleType with a 
fixed value of '123', and in my instance document, I have element 'e'1 
present with an xsi:type of 'int' and a content of '123'. Would the 
content of element 'e1' be considered valid or invalid?

Regards, 
Khaled

[1] http://www.w3.org/TR/xmlschema-1/#d0e4333

Received on Wednesday, 13 April 2005 00:53:26 UTC