Problem is trickier here (than for xdoc plugin).
Indeed, attributes are ok, but flat lists are a pain.
Right now, plugin is generating xs:all elements, which doesn't allow for maxOccurs. So that would mean detecting from parent class when child association is flat list, and generating a xs:sequence instead of the xs:all for this element.
Is this solution acceptable?