Name
xs:complexType(local definition) — Complex type local definition (local definitions cannot be referenced).
Synopsis
<xs:complexType
id = xs:ID
mixed = xs:boolean : “false”
{any attributes with non-schema namespace}
>
Content: (xs:annotation?, (xs:simpleContent | xs:complexContent | (,
(xs:group | xs:all | xs:choice | xs:sequence)?,
((xs:attribute | xs:attributeGroup)*, xs:anyAttribute?
?))))
</xs:complexType>
May be included in: xs:element (within xs:all), xs:element (reference or local definition), xs:element (global definition)
Description
Complex type definition can be created several ways. It can be done
by derivation using an xs:simpleContent (for
simple content models) or an xs:complexContent
(for simple content model) element, or it can be described, using
xs:sequence (for an ordered sequence of elements),
an xs:choice (for an alternative beyond several
elements), xs:all (for a unordered list of
elements) or xs:group (to reference a group of elements), and
xs:attribute,
xs:attributeGroup, and
xs:anyAttribute to define the list of its
attributes.
Complex types describe all the constraints on the element, character,
and attribute nodes that may be included within an element except
those described by xs:unique,
xs:key, and xs:keyref, which
are defined directly under the xs:element element
definitions.
Restrictions
Constraints defined by xs:unique,
xs:key, and xs:keyref are not
defined within complex types but directly under the
xs:element element definitions.
Local definitions ...