Subject: | complexContent and extension tags in schema definition are not being recognized |
I am using an XSD with a complexType defined by extending another
complexType, via the complexContent and extension tags:
<xsd:complexType name="PurchasedRequestType">
<xsd:complexContent>
<xsd:extension base="bons0:RequestType">
<xsd:sequence>
... xsd:elements here...
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
However, only the elements defined in the base RequestType type
(credentialInfo) are being recognized - all other elements passed are
being rejected. When I rewrite the PurchasedRequestType definition to
not refer to RequestType, but instead list all sequence elements
directly, explain() produces the expected output (listing all the
eligible elements).
Since the schema definition cannot be published, I am sending these to
Mark in private email, along with full reproduction steps and the
explain() output from the original schema as well as a version patched
to not use the extension tag.