Name
xs:NMTOKEN — XML 1.0 name token (NMTOKEN).
Known subtypes:
xs:NMTOKENS
Facets:
xs:enumeration, xs:length, xs:maxLength, xs:minLength, xs:pattern,
xs:whiteSpace
<xs:simpleType name="NMTOKEN" id="NMTOKEN">
<xs:restriction base="xs:token">
<xs:pattern value="\c+"/>
</xs:restriction>
</xs:simpleType>
Description
The lexical and value spaces of xs:NMTOKEN
are the
set of XML 1.0 “name tokens,” i.e.,
tokens composed of characters, digits,
“.”,
“:”,
“-”, and the characters defined by
Unicode, such as “combining” or
“extender”.
Restrictions
This type is usually called a
“token.”
Example
Valid values include "Snoopy"
,
"CMS"
, "1950-10-04"
, or
"0836217462"
.
Invalid values include "brought
classical
music
to
the
Peanuts
strip"
(spaces are
forbidden) or "bold,brash"
(commas are forbidden).