Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - Re: Extensible enumerations in XML Schema >Thread Next - RE: UPA Question RE: Extensible enumerations in XML SchemaTo: <george@---------.---> Date: 11/28/2006 10:53:00 AM Hello George, Thanks for your valuable comments :-) Please find my answers inline = below: >-----Original Message----- >From: ext George Cristian Bina [mailto:george@o...] >Subject: Re: Extensible enumerations in XML Schema >You can define the base state to be anySimpleType. Then define >the extendedRequestState as a union: > ><xs:simpleType name="extendedRequestState"> > <xs:union memberTypes="ns0:RequestState"> > <xs:simpleType> > <xs:restriction base="xs:string"> > <xs:enumeration value="open.running.new1"/> > <xs:enumeration value="open.running.new1"/> > <xs:enumeration value="open.running.new1"/> > </xs:restriction> > </xs:simpleType> > </xs:union> > </xs:simpleType> >From my understanding that should also work, when the baseState is a = string, but it does not. What's the reason for that? >As a side note, in Relax NG that is really easy I'm bound to XML Schema, sorry. But interesting to read, how it is done = with Relax NG. _ __ _ _ //\ndreas.[|-bbert-[]/arroum(a)[|\|okia.com `- ` Andreas Ebbert-Karroum =A0=A0 Senior Software Design Engineer Nokia Networks Services / Middleware =A0=A0 phone: +49-211-94123928, fax: +49-211-9412-3838 =A0=A0 Heltorfer Stra=DFe 1, 40472 D=FCsseldorf, Germany ---------------------------------------------------------------------- This message is confidential. If you have received this message in = error, please delete it from your system. You should not copy it for any = purpose, or disclose its contents to any other person. Internet communications = are not secure and therefore Nokia GmbH does not accept legal responsibility for the contents of this message as it has been transmitted over a = public network. Thank you. Nokia GmbH, Nokia Networks is a German Company. Further information about the Company is available from its principal offices at Heltorferstrasse 1, D-40472, D=FCsseldorf, Germany and from the website at http://www.nokia.com/ ---------------------------------------------------------------------- From george@o... Tue Nov 28 10:18:19 2006 Received: from aji.w3.org ([133.27.228.225]) by | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
