Name

xs:simpleType

Attributes

final

Used to determine whether or not subtypes of the type can be defined in the schema. If set to list, then this type may not be extended by list. If set to union, then this type may not be extended by union. If set to restriction, then restrictions of this type may not be defined. If set to #all, then neither lists, unions, nor restrictions may be defined.

name

A name for the type, not a namespace-qualified name.

Contents

xs:annotation?, ( xs:restriction | xs:list | xs:union )

xs:simpleType elements may be used directly in xs:schema or xs:redefine elements, in which case they define types identified with their name attribute. Or they may be used in xs:attribute, xs:element, xs:list, xs:restriction, or xs:union elements, in which case they define anonymous types that are used strictly within those contexts.

The nature of the type is defined by restriction, list, or union, but must be based on a simple type (either predefined by XML Schema or user-defined in the schema).

Get XML Pocket Reference, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.