The value of the 'depends-on' attribute is a space delimited list of strings
* <xsd:complexType name="Tcomponent" abstract="true"> * <xsd:attribute name="id" type="xsd:ID" /> * <xsd:attribute name="activation" type="Tactivation"> * <xsd:attribute name="depends-on" type="TdependsOn"> * </xsd:complexType> * * <xsd:simpleType name="Tactivation"> * <xsd:restriction base="xsd:NMTOKEN"> * <xsd:enumeration value="eager" /> * <xsd:enumeration value="lazy" /> * </xsd:restriction> * </xsd:simpleType> * * <xsd:simpleType name="TdependsOn"> * <xsd:restriction> * <xsd:simpleType> * <xsd:list itemType="Tidref" /> * </xsd:simpleType> * <xsd:minLength value="1" /> * </xsd:restriction> * </xsd:simpleType>
XmlAttribute javadoc contains examples for attributes bound to List's. For enumerations you may need an adapter.
I am actually not sure if current xb supports this kind of binding. If it doesn't it should.