W3C home > Mailing lists > Public > xmlschema-dev@w3.org > November 2006

RE: Extensible enumerations in XML Schema

From: <andreas.ebbert-karroum@nokia.com>
Date: Tue, 28 Nov 2006 09:53:10 +0100
Message-ID: <64B12EB48D590F4CB3D2A64BD371049A040E6E67@duebe101.NOE.Nokia.com>
To: <george@oxygenxml.com>
Cc: <xmlschema-dev@w3.org>

Hello George,

Thanks for your valuable comments :-) Please find my answers inline below:

>-----Original Message-----
>From: ext George Cristian Bina [mailto:george@oxygenxml.com] 
>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
         Senior Software Design Engineer
                Nokia Networks Services / Middleware 
   phone: +49-211-94123928, fax: +49-211-9412-3838
   Heltorfer Straße 1, 40472 Düsseldorf, 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üsseldorf, Germany and from the
website at http://www.nokia.com/
----------------------------------------------------------------------
Received on Tuesday, 28 November 2006 09:39:36 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:15:11 UTC