- From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
- Date: 28 Nov 2002 08:43:42 +0000
- To: Stefan Wachter <Stefan.Wachter@gmx.de>
- Cc: Chris Evans <CEvans@confluence.com>, xmlschema-dev@w3.org
Stefan Wachter <Stefan.Wachter@gmx.de> writes: > Use an enumeration of QNames: > > <simpleType name="xxx"> > <restriction base="QName"> > <enumeration value="xs:string"/> > <enumeration value="xs:double"/> > .... > </restriction> > </simpleType> That comes close, but note you'll also need to bind xs to the correct namespace _in the schema_. So your example might be a bit better expressed as <xs:simpleType name="xxx"> <xs:restriction base="QName"> <xs:enumeration value="xs:string"/> <xs:enumeration value="xs:double"/> .... </xs:restriction> </xs:simpleType> ht -- Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh W3C Fellow 1999--2002, 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/ [mail really from me _always_ has this .sig -- mail without it is forged spam]
Received on Thursday, 28 November 2002 03:43:42 UTC