Name

xsd:Name — XML 1.O name

Synopsis

<xsd:simpleType name="Name” id="Name">
 <xsd:restriction base="xsd:token">
 <xsd:pattern value="\i\c*"/>
 </xsd:restriction>
</xsd:simpleType>

Derived from

xsd:token

Primary

xsd:string

Known subtypes

xsd:NCName

Data parameters (facets)

enumeration, length, maxLength, minLength, pattern

Description

The lexical and value spaces of xsd: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 them. Another datatype (xsd:QName) should be used for qualified names when they use namespace prefixes.

Example

Valid values include Snoopy, CMS, and _1950-10-04_10:00.

Invalid values include 0836217462 (a xsd:Name can’t start with a number) 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.