SCD で complexType の子要素を選択しようとしていますが、SCD は complexType を選択します。SCD のドキュメントは貧弱で、子要素を適切に選択する方法がわかりません。XSD スニペットは次のとおりです。
<xsd:complexType name="request">
<xsd:sequence>
<xsd:element form="unqualified"
maxOccurs="unbounded" minOccurs="0" name="partner"
type="ns1:Partner" />
<xsd:element form="unqualified"
maxOccurs="unbounded" minOccurs="0" name="foo"
type="xsd:anyType" />
<xsd:element form="unqualified"
maxOccurs="unbounded" minOccurs="0" name="foo2"
type="xsd:anyType" />
</xsd:sequence>
</xsd:complexType>
次のバインディングを作成しました。
<bindings scd="x-schema::tns" xmlns:tns="http:/mynamespace.com/xsd">
<schemaBindings>
<package name="com.otherpackage.xsd" />
</schemaBindings>
<bindings scd="/~tns:request:schemaElement:foo">
<class ref="com.othernamespace.OhterFoo" />
</bindings>
<bindings scd="/~tns:request:schemaElement:foo2">
<class ref="com.othernamespace.OhterFoo" />
</bindings>
</bindings>
私は次のバインディングも試しましたが、これではソースコードも生成されません。
<bindings scd="x-schema::tns" xmlns:tns="http:/mynamespace.com/xsd">
<schemaBindings>
<package name="com.otherpackage.xsd" />
</schemaBindings>
<bindings scd="/type::tns:request/model:sequence/schemaElement::tns:foo">
<class ref="com.othernamespace.OhterFoo" />
</bindings>
<bindings scd="/type::tns:request/model:sequence/schemaElement::tns:foo2">
<class ref="com.othernamespace.OhterFoo" />
</bindings>
</bindings>