Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Enum Tuple in XSD? Enum Tuple in XSD?To: NULL Date: 7/3/2008 10:36:00 AM Hello, I want to create a simple Type which has an enum of values as restriction similar to this: <xs:simpleType name="UnitType"> <xs:restriction base="xs:string"> <xs:enumeration value="min"/> <xs:enumeration value="sec"/> <xs:enumeration value="hrs"/> </xs:restriction> </xs:simpleType> I have another simpleType which contains another enum as restriction: <xs:simpleType name="ParamName"> <xs:restriction base="xs:string"> <xs:enumeration value="A"/> <xs:enumeration value="B"/> <xs:enumeration value="C"/> </xs:restriction> </xs:simpleType> Now I want to combine those two lists and allow only certain combinations e.g. "A min", "A sec", "B hrs", "C min". Is there any possibility to achieve that in a Schema? Thanks, Martin | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
