W3C home > Mailing lists > Public > xmlschema-dev@w3.org > August 2001

Re: Union of Mixed Type

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 22 Aug 2001 13:35:18 +0100
To: Zhanshou Yu <zyu@prosrm.com>
Cc: "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>
Message-ID: <f5bn14sp915.fsf@cogsci.ed.ac.uk>
Use a union:

<xs:simpleType name="intOrSpace">
 <xs:union memberTypes="xs:int">
  <xs:simpleType>
   <xs:restriction base="xs:string">
    <xs:enumeration value=" "/>
   </xs:restriction>
  </xs:simpleType>
 </xs:union>
</xs:simpleType>

ht
-- 
  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
          W3C Fellow 1999--2001, part-time member of W3C Team
     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
	    Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
		     URL: http://www.ltg.ed.ac.uk/~ht/
Received on Wednesday, 22 August 2001 08:34:56 GMT

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