XML technologies / XML Schema / Data type reference / xs:NMTOKENS

(Excerpt from “XML Schema” by Eric van der Vlist)

List of XML 1.0 name tokens (NMTOKEN)

Derived from: xs:NMTOKEN

Primitive type: none

Known subtypes: none

Facets: xs:enumeration, xs:length, xs:maxLength, xs:minLength, xs:whiteSpace

Definition

<xs:simpleType name="NMTOKENS" id="NMTOKENS">
    <xs:restriction>
        <xs:simpleType>
            <xs:list>
                <xs:simpleType>
                    <xs:restriction base="xs:NMTOKEN"/>
                </xs:simpleType>
            </xs:list>
        </xs:simpleType>
        <xs:minLength value="1"/>
    </xs:restriction>
</xs:simpleType>

Description

xs:NMTOKENS is derived as a list of xs:NMTOKEN and represents a whitespace-separated list of XML 1.0 name tokens.

Restrictions

None.

Example

Valid values include "Snoopy", "CMS", "1950-10-04", "0836217462 0836217463" or "brachte die klassische Musik in die Peanuts-Comics ein" (here the sentence is treated as a list of words).

Invalid values include "brachte die klassische Musik in die "Peanuts"-Comics ein" (quotation marks are forbidden) or "kühn,dreist" (commas are forbidden).

   

 

 

 

back to top