by Eric van der Vlist is published by O'Reilly & Associates (ISBN: 0596004214)


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).


This text is released under the Free Software Foundation GFDL.