- From: Costello, Roger L. <costello@mitre.org>
- Date: Tue, 14 Jul 2009 15:47:21 -0400
- To: "xmlschema-dev@w3.org" <xmlschema-dev@w3.org>
Hi Folks, Consider these two element declarations: <element name="A" type="anySimpleType" /> <element name="B" type="anyAtomicType" /> This is my understanding of the difference between anySimpleType and anyAtomicType: The value of <A> can be any primitive type or a list type, e.g. <A xsi:type="xs:string">Hello World</A> <A xsi:type="xs:decimal">12.39</A> <A xsi:type="xs:boolean">true</A> <A xsi:type="ex:LotteryNumbers">3 8 19</A> where ex:LotteryNumbers is defined as a list type: <xs:simpleType name="LotteryNumbers"> <xs:list itemType="xs:positiveInteger" /> </xs:simpleType> The value of <B> can only be a primitive type, e.g. <B xsi:type="xs:string">Hello World</B> <B xsi:type="xs:decimal">12.39</B> <B xsi:type="xs:boolean">true</B> Thus, the difference between anyAtomicType and anySimpleType is that an anySimpleType value can be a list type, whereas that's not legal for anyAtomicType. Correct? /Roger
Received on Tuesday, 14 July 2009 19:47:58 UTC