rethink handling of maxOccurs and minOccurs
handle *Ref properly in <content> in odd2odd