[Home] [By Thread] [By Date] [Recent Entries]

  • To: "XML Developers List" <xml-dev@l...>
  • Subject: Is possible to have choice type facility for an attribute of schema
  • From: "Baisak, Ranjan" <ranjan_baisak@m...>
  • Date: Tue, 8 Mar 2005 12:48:31 +0530
  • Thread-index: AcUjrwhOcOKRuKS0TwehKLYEmdQryw==
  • Thread-topic: Is possible to have choice type facility for an attribute of schema

Like the way choice is applied for an element, I want same type of functionality for attributes too.
I want sort of like below:
 
<xsd:element name="name">
  <xsd:complexType>
   <xsd:choice>
   <xsd:attribute name="operator" type="OperatorType" default="EQUALS" use="required"/>
   <xsd:attribute name="value" type="xsd:string" use="required"/>
   </xsd:choice>
  </xsd:complexType>
 </xsd:element>
 
regards,
Ranjan

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member