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


Name

xsd:NCName — Unqualified names

Synopsis

<xsd:simpleType name="NCName" id="NCName">
 <xsd:restriction base="xsd:Name">
 <xsd:pattern value="[\i-[:]][\c-[:]]*"/>
 </xsd:restriction>
</xsd:simpleType>

Derived from

xsd:Name

Primary

xsd:string

Known subtypes

xsd:ID, xsd:IDREF, xsd:ENTITY

Data parameters (facets)

enumeration, length, maxLength, minLength, pattern

Description

The lexical and value spaces of xsd:NCName are the names (Name) that conform to the definition of a NCName in the Recommendation "Namespaces in XML 1.0." These are all the XML 1.0 names that don't contain colons.

Restrictions

This datatype allows characters such as hyphens and may need additional constraints to match the notion of name in your favorite programming language or database system.

Example

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

Invalid values include _1950-10-04:10-00 and bold:brash (colons are forbidden).


This text is released under the Free Software Foundation GFDL.