Chapter 11 Union and list types

In Chapter 9, “Simple types,” we learned how to define atomic simple types. This chapter covers the other two varieties of simple types: union types and list types.

11.1 Varieties and derivation types

As we saw in Chapter 9, “Simple types,” there are three varieties of simple type: atomic types, list types, and union types.

Atomic types have values that are indivisible, such as 10 and large.

List types have values that are whitespace-separated lists of atomic values, such as <availableSizes>10 large 2</availableSizes>.

Union types may have values that are either atomic values or list values. What differentiates them is that the set of valid values, or “value space,” for the type ...

Get Definitive XML Schema now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.