- From: Sandy Gao <sandygao@ca.ibm.com>
- Date: Mon, 14 Mar 2005 13:19:45 -0500
- To: www-xml-schema-comments@w3.org
- Message-ID: <OF20A4ACF3.E8874EC3-ON85256FC4.0064965A-85256FC4.0064A4DF@ca.ibm.com>
This message didn't seem to reach the archive.
Sandy Gao
Software Developer, IBM Canada
(1-905) 413-3255
sandygao@ca.ibm.com
----- Forwarded by Sandy Gao/Toronto/IBM on 03/14/2005 01:18 PM -----
Khaled Noaman/Toronto/IBM
03/10/2005 10:53 AM
To
www-xml-schema-comments@w3.org
cc
Sandy Gao/Toronto/IBM@IBMCA
Subject
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 Monday, 14 March 2005 18:20:23 UTC