W3C home > Mailing lists > Public > xmlschema-dev@w3.org > January 2006

list of pre-defined value

From: dirk dewolf <dirkdewolf78@hotmail.com>
Date: Sat, 07 Jan 2006 13:40:01 +0100
Message-ID: <BAY7-F8BA5DD0BAFE8E2B8CA7A1C7200@phx.gbl>
To: xmlschema-dev@w3.org

How can I define a space separated list of values for an attribute using 
NMTOKENS. The values one may use must be predefined.

The below code does not seem to work. The attribute value does not allow for 
the containment of a LIST of the values; yet appears to be restricted to one 
value only.

<xs:restriction base="xs:NMTOKENS">
<xs:enumeration value="value1"/>
<xs:enumeration value="value2"/>
<xs:enumeration value="value3"/>
<xs:enumeration value="value4"/>
<xs:enumeration value="value5"/>

many thanks

Free blogging with MSN Spaces  http://spaces.msn.com/?mkt=nl-be
Received on Saturday, 7 January 2006 17:13:37 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:09 UTC