O'Reilly logo

Definitive XML Schema by Priscilla Walmsley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required