This work is licensed under a CC |
XSDL Complex Types describe element content if this content is using attributes and/or element content other than only character data. Thus, complex types are used to define the allowed markup structures for a class of documents. Using XSDL's type concepts, it is easier to represent model-level information in a schema, because type hierarchies can represent model-level specializations.
Simple Types | Complex Types | |||
---|---|---|---|---|
Simple Content | Complex Content | |||
Element Only | Mixed | Empty |
,
) and alternatives (|
)#PCDATA
into the content model( #PCDATA | a | b )*
mixed
attribute on the type marks the type as being mixed<xs:element name="p" type="mixedType"/> <xs:complexType name="mixedType" mixed="true"> <xs:choice maxOccurs="unbounded" minOccurs="0"> <xs:element ref="b"/> <xs:element name="i" type="xs:string"/> <xs:element name="u" type="xs:string"/> </xs:choice> <xs:attribute ref="class"/> </xs:complexType>
EMPTY
is usedtype layerto schema languages