Name
xs:Name
Synopsis
xs:Name
is a subtype of xs:token
that is restricted to legal XML
1.0 names. In other words, the value must consist exclusively of
letters, digits, ideographs, and the underscore, hyphen, period,
and colon. Digits, the hyphen, and the period may not be used to
start a name, although they may be used inside the name. These are
all legal values of type xs:Name
:
G127
_128
Limit
xml-stylesheet
svg:rect
亰
Constraining facets that apply to xs:Name
are length
, minLength
, maxLength
, pattern
, enumeration
, and whiteSpace
.
XML 1.1 names that are not legal XML 1.0 names are not allowed. At the time of this writing, the schema working group has not yet decided how or when to update the schema specification to account for the changes in name rules in XML 1.1. They may issue an erratum to the schemas specification, or they may wait until Version 1.1 of the W3C XML Schema specification is published.
Get XML in a Nutshell, 3rd Edition 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.