I think this behavior is defined by spec for named attributes referenced with ref
. I don't believe there's a way to change it. However, you could get around by not using ref
.
<xs:complexType name="EventElement">
...
<xs:attribute name="EventType" type="j:EventTypeValue" use="required"/>
...
</xs:complexType>
...
<xs:simpleType name="EventTypeValue">
...
</xs:simpleType>