XML technologies / XML Schema / Data type reference / xs:NMTOKENS
(Excerpt from “XML Schema” by Eric van der Vlist)
List of XML 1.0 name tokens (NMTOKEN)
Derived from: xs:NMTOKEN
Primitive type: none
Known subtypes: none
Facets: xs:enumeration, xs:length, xs:maxLength, xs:minLength, xs:whiteSpace
Definition
<xs:simpleType name="NMTOKENS" id="NMTOKENS">
<xs:restriction>
<xs:simpleType>
<xs:list>
<xs:simpleType>
<xs:restriction base="xs:NMTOKEN"/>
</xs:simpleType>
</xs:list>
</xs:simpleType>
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>Description
xs:NMTOKENS is derived as a list of xs:NMTOKEN and represents a whitespace-separated list of XML 1.0 name tokens.
Restrictions
None.
Example
Valid values include "Snoopy", "CMS", "1950-10-04", "0836217462 0836217463" or "brachte die klassische Musik in die Peanuts-Comics ein" (here the sentence is treated as a list of words).
Invalid values include "brachte die klassische Musik in die "Peanuts"-Comics ein" (quotation marks are forbidden) or "kühn,dreist" (commas are forbidden).
Copyright © 2003 O'Reilly Verlag GmbH & Co. KG
You may print the online version for your private use.
Otherwise, this chapter from “XML Schema” is subject to the same conditions as the bound edition. The work, including all its parts, is protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
O’Reilly Verlag GmbH & Co. KG, Balthasarstraße 81, 50670 Köln, kommentar(at)oreilly.de