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

Re: Enumerations inside elements with attributes

From: Naga Chendica <nchendica@certivo.net>
Date: Mon, 10 Nov 2003 12:49:25 -0800
Message-ID: <C3DAAC806B53614C864B3595468DC0EB206473@ushqxch01.certivo.net>
To: <xmlschema-dev@w3.org>

Hello,

http://lists.w3.org/Archives/Public/xmlschema-dev/2000Aug/0036.html#options2
Reference to the link, 
I want to use enumerated values for the attribute source in the listed example, 
Is it possible?



<element name="fruit" xmlns="http://www.w3.org/2000/08/XMLSchema">
 <complexType>
  <simpleContent>
    <extension>
     <simpleType>
       <restriction base="string">
        <enumeration value="apple"/>
        <enumeration value="orange"/>
        <enumeration value="peach"/>
       </restriction>
     </simpleType>
     <attribute name="source" type="string"/> --> I want to add enumerated values to the source like Canada, USA etc. is it possible.
    </extension>
  <simpleContent>
 </complexType>
</element>



Thanks,
Malli
Received on Monday, 10 November 2003 15:52:52 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:03 UTC