OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Is possible to have choice type facility for an attribute of schema

[ Lists Home | Date Index | Thread Index ]
  • To: "XML Developers List" <xml-dev@lists.xml.org>
  • Subject: Is possible to have choice type facility for an attribute of schema
  • From: "Baisak, Ranjan" <ranjan_baisak@mentorg.com>
  • 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




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS