Jason T. Greene wrote:
<xs:element name="bindingElement"
type="bindingType"/>
<xs:complexType name="classType">
<xs:sequence>
<xs:element ref="bindingElement"/>
</xs:sequence>
</xs:complexType>
// in the sales namespace
<xs:element name="Bar"
substitutionGroup="webbeans:bindingElement"/>
// in the acme namespace
<xs:element name="Foo" type="classType"/>
You also want to make bindingElement abstract (abstract=true).
--
Jason T. Greene
JBoss, a division of Red Hat