Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Are these three XSD the same? [Thread Next] Re: Are these three XSD the same?To: NULL Date: 5/9/2009 12:44:00 AM RC <raymond.chui@n...> writes: > <xs:simepleType name="myType1"> > <xs:restriction base="xs:string"> > <xs:enumeration value="boolean" /> > <xs:enumeration value="integer" /> > <xs:enumeration value="double" /> > <xs:enumeration value="string" /> > </xs:restriction> > </xs:simpleType> > <xs:simepleType name="myType2"> > <xs:restriction base="xs:string"> > <xs:pattern value="boolean" /> > <xs:pattern value="integer" /> > <xs:pattern value="double" /> > <xs:pattern value="string" /> > </xs:restriction> > </xs:simpleType> > <xs:simepleType name="myType3"> > <xs:restriction base="xs:string"> > <xs:pattern value="boolean|integer|double|string" /> > </xs:restriction> > </xs:simpleType> It depends on what you mean by "same". They don't have the same names, and they don't have the same facet structure. But they do (as far as I can tell) define the same datatype, accept the same input XML, and map the input literals to the same values. -- C. M. Sperberg-McQueen Black Mesa Technologies LLC | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
