Hallo,
a customer asks why xs:complexContent is not supported? Can someone tell me why and if it might be supported in future?
Thanks,
Pascal Sch
Hi Pascal
Up to version 4.2 Tamino’s subset of XML Schema does not support
derivation from user-defined types.
Hence, only complex types derived from xs:anyType are supported.
In this special case, the xs:complexContent element is not required
in the schema as there is a more compact description for the scenario:
<xs:complexType name=“A”>
xs:complexContent
<xs:restriction base=“xs:anyType”>
xs:sequence
<xs:element name=“B”/>
</xs:sequence>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
is equivalent to
<xs:complexType name=“A”>
xs:sequence
<xs:element name=“B”/>
</xs:sequence>
</xs:complexType>
However, the next version of Tamino will probably support derivation
from user-defined types and, thus, also xs:complexContent.
Best regards
Uli
PS: there is a separate “Schema [Editor]” topic in the forum
dedicated to schema issues like this