Name

xsd:NMTOKENS — List of XML 1.0 name tokens (NMTOKEN)

Synopsis

<xsd:simpleType name="NMTOKENS” id="NMTOKENS">
 <xsd:restriction>
 <xsd:simpleType>
 <xsd:list>
 <xsd:simpleType>
 <xsd:restriction base="xsd:NMTOKEN"/>
 </xsd:simpleType>
 </xsd:list>
 </xsd:simpleType>
 <xsd:minLength value="1"/>
 </xsd:restriction>
</xsd:simpleType>

Derived from

xsd:NMTOKEN

Primary

None

Known subtypes

None

Data parameters (facets)

enumeration, length, maxLength, minLength

Description

xsd:NMTOKENS is derived by list from xsd:NMTOKEN and represents whitespace-separated lists of XML 1.0 name tokens.

Restrictions

None

Example

Valid values include Snoopy, CMS, 1950-10-04, 0836217462 0836217463, and brought classical music to the Peanuts strip (note that, in this case, the sentence is considered to be list of words).

Invalid values include "brought classical music to the Peanuts" "strip" (quotes are forbidden) and bold,brash (commas are forbidden).

Get RELAX NG now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.