XML technologies / XML Schema / Using predefined simple data types / List types

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

These data types are lists of entries separated by whitespace. The entries’ type, called the item type or “item type”, is defined during derivation, discussed in the next chapter. List data types can derive from any simple type. Three predefined data types are lists (xs:NMTOKENS, xs:IDREFS and xs:ENTITIES). All list data types require entries separated by one or more whitespace characters.

xs:NMTOKENS

This is a whitespace-separated list of xs:NMTOKEN. Each entry must belong to the lexical space of xs:NMTOKEN.

xs:IDREFS

This is a whitespace-separated list of xs:IDREF. Each entry must belong to the lexical space of xs:IDREF and reference an existing xs:ID in the same document.

xs:ENTITIES

This is a whitespace-separated list of xs:ENTITY. Each entry must belong to the lexical space of xs:ENTITY and match an unparsed entity defined in a DTD.

   

 

 

 

back to top