Peter Tornberg wrote :
> 
> A followup question to my first one. How would I then construct a schema that 
> allows an element that is an enumeration with an attribute? I.e. An 
> enumeration OrderEvent with attribute OrderID?
> 

You can use
 
<simpleType name="test">
       <restriction base="string">
                <enumeration value="Accepted"/>
                <enumeration value="Rejected"/>
                 ...                                                    
       </restriction>
</simpleType>
<element name="OrderEvent">
        <complexType>
                <simpleContent>
                   <extension base="tNS:test">
                        <attribute name="OrderID" type="string" use="required"/>
                        ...
                   </extension>
                </simpleContent>
        </complexType>
</element>

-Pavani

-- 

Pavani Mukthipudi
Sun Microsystems, Inc.

Phone: 080 - 2298989   Extn: 87390


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to