- From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
- Date: 19 Aug 2002 10:52:37 +0100
- To: "Brown, Lee" <Lee.Brown@standardregister.com> (by way of "C. M. Sperberg-McQueen" <cmsmcq@acm.org>)
- Cc: W3C XML Schema Comments list <www-xml-schema-comments@w3.org>
"Brown, Lee" <Lee.Brown@standardregister.com> (by way of "C. M. Sperberg-McQueen" <cmsmcq@acm.org>) writes: > I have a question about enumerations, if I have the following schema > definition, can I have an empty string value for the attribute CarType, like > CarType="" ? > > <xsd:schema targetNamespace="http://www.abc.com" > xmlns:xsd="http://www.w3.org/2000/10/XMLSchema"> > <xsd:attribute name="CarType"> > <xsd:simpleType> > <xsd:restriction base="xsd:NMTOKEN"> > <xsd:enumeration value="Buick" /> > <xsd:enumeration value="Chevy" /> > <xsd:enumeration value="Ford" /> > <xsd:enumeration value="Mercedes" /> > </xsd:restriction> > </xsd:simpleType> > </xsd:attribute> > </xsd:schema> No -- the enumerations define all the allowed values, and "" is not among them. 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 Monday, 19 August 2002 05:52:41 UTC