Name
xs:Name — XML 1.O names.
Derived from:
xs:token
Primary:
xs:string
Known subtypes:
xs:NCName
Facets:
xs:enumeration, xs:length, xs:maxLength, xs:minLength, xs:pattern, xs:whiteSpace
<xs:simpleType name="Name" id="Name"> <xs:restriction base="xs:token"> <xs:pattern value="\i\c*"/> </xs:restriction> </xs:simpleType>
Description
The lexical and value spaces of xs:Name
are the
tokens (NMTOKEN
) that conform to the definition of
a name in XML 1.0.
Restrictions
Following XML 1.0, those names may contain colons
(“:”), but no special meaning is
attached to these characters. Another datatype
(xs:QName
) should be used for qualified names when
they use namespaces prefixes.
Example
Valid values include "Snoopy"
,
"CMS"
, or "_1950-10-04_10:00"
.
Invalid values include "0836217462"
(a
xs:Name
cannot start with a number) or
"bold,brash"
(commas are forbidden).
Get XML Schema 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.