xsd.TypeAlternative

The TypeAlternative class is used by an ElementDeclaration to specify a condition (test) under which a particular type (type_definition) is used as the governing type definition for element information items governed by that ElementDeclaration. Each ElementDeclaration may have multiple Type Alternatives in its TypeTable.

class xsd.TypeAlternative

Attributes

xsd.TypeAlternative.annotations

A sequence of Annotation components.

xsd.TypeAlternative.test

An XPathExpression property record that is used to specify a condition for selecting the governing type declaration of an element declaration. Optional.

xsd.TypeAlternative.type_definition

A Type Definition (xsd.ComplexTypeDefnition or xsd.SimpleTypeDefinition) component. Required.

Special methods

__bool__, __eq__, __ge__, __gt__, __le__, __lt__, __ne__