[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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>
RE: Extensible enumerations in XML Schema

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 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.