Re: Enumerations inside elements with attributes

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