W3C home > Mailing lists > Public > xmlschema-dev@w3.org > October 2002

RE: Multi-selection drop-down list

From: Mark Feblowitz <mfeblowitz@frictionless.com>
Date: Wed, 9 Oct 2002 13:59:10 -0400
Message-ID: <4DBDB4044ABED31183C000508BA0E97F040AC090@fcpostal.frictionless.com>
To: "'Tarek Aridi'" <tarek.aridi@cmg.com>
Cc: xmlschema-dev@w3.org
How about making a simpleType CnfgGrpList that is a list type with an
itemType of GrpList:
 
<xs:simpleType name="CnfgGrpList">
        <xs:list itemType=" GrpList"/>
</xs:simpleType>
<xs:element name="ComnAttr">
        <xs:complexType>
              <xs:sequence>
                    <xs:element name="CnfgGrp" type="CnfgGrpList"/>
              </xs:sequence>
        </xs:complexType>
</xs:element>
 
Don't think you'll be able to do the default thing, though.
 
 
-----Original Message-----
From: Tarek Aridi [mailto:tarek.aridi@cmg.com]
Sent: Wednesday, October 09, 2002 1:27 PM
To: xmlschema-dev@w3.org
Cc: 'taridi@cmguc.com'
Subject: RE: Multi-selection drop-down list
 
Sorry, I meant to say 
I have a need to be able to select one or more values from one drop-down
list.
 
-----Original Message-----
From: Rick Aridi [mailto:jirata@attbi.com] 
Sent: Wednesday, October 09, 2002 1:18 PM
To: 'xmlschema-dev@w3.org'
Cc: 'taridi@cmguc.com'
Subject: Multi-selection drop-down list
 
I have a need to be able to select one or value from one drop-down list:
Extract from sample schema definition:
 
<xs:element name="ComnAttr">
        <xs:complexType>
              <xs:sequence>
                    <xs:element name="CnfgGrp" type="GrpList"
default="General"/>
              </xs:sequence>
        </xs:complexType>
</xs:element>
<xs:simpleType name="GrpList">
        <xs:restriction base="xs:string">
              <xs:enumeration value="LDAP"/>
              <xs:enumeration value="IMAP"/>
              <xs:enumeration value="iPlanet"/>
              <xs:enumeration value="Mirapoint"/>
              <xs:enumeration value="Notification"/>
              <xs:enumeration value="General"/>
              <xs:enumeration value="Logging"/>
              <xs:enumeration value=""/>
        </xs:restriction>
</xs:simpleType>
 
Desired XML CnfgGrp possible value selection:.
 
<CnfgGrp>LDAP IMAP iPlanet</CnfgGrp>
 
Is there a way to define this in the schema definition?
 
Thanks,
Rick Aridi
Confidentiality Notice: This message, including any attachments, is intended
solely for the use of the individual to whom it is addressed and may contain
information that is privileged and confidential. If you have received this
email in error, please delete it. Any disclosure, copying or distribution of
this message is strictly prohibited. Thank you.
Confidentiality Notice: This message, including any attachments, is intended
solely for the use of the individual to whom it is addressed and may contain
information that is privileged and confidential.  If you have received this
email in error, please delete it.  Any disclosure, copying or distribution
of this message is strictly prohibited.  Thank you.
Received on Wednesday, 9 October 2002 13:59:47 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:34 GMT