Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: Extensible enumerations in XML Schema

From: <andreas.ebbert-karroum@-----.--->
To: <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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent