[webbeans-dev] Typing of XML elements

Jason T. Greene jason.greene at redhat.com
Thu Mar 19 11:59:07 EDT 2009


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



More information about the weld-dev mailing list