Assume you have a stereotype that extends two metaclasses. When you draw two extensions from one stereotype the export is ok. However, if you are in need of two different sets of stereotype properties and you have two stereotypes with the same name extending each of the metaclasses individually then only one of them gets exported. When editing the XML profile manually you can well create two such stereotypes with the same name and EA interprets them as desired. Simple question: oversight (which I assume and do not really hope for a fix) or intention (where I would like to know the reasoning)?
q.
Hi q,
I've adjusted the quote. I find it useful to restrict the use of metatype to a specific metaclass-stereotype combination.
Now to discuss your use case. I'm not sure I fully understand what you are trying to do, so if you could give a more narrative explanation, with perhaps some examples? With the model approach, I found I had to clarify my thinking a bit as I got into it. Sorting out if it's a viable use case may help that process.
What I'm about to say is my understanding
(and I would welcome any correction from Sparxians or others if it's wrong).
An extension relationship seems to be required if you actually want things to happen via the toolbox.
When you extend multiple metaclasses, you are saying, this stereotype can be applied to more than one metaclass. If you observe my definition above, this means you are defining multiple metatypes (which, consequently, should have unique metatype names).
Now when you define a toolbox item, you can just use the <profile>::<stereotype> approach
if the stereotype is unique and EA will determine the metaclass for you since there is no ambiguity. If however, there are multiple metaclasses possible, then you need to disambiguate with <profile>::<stereotype>(UML::<metaclass) to indicate which metatype (that is, metaclass) is to be created.
So to your use case... It seems to me it ought to be possible to say: Let me define a supplemental stereotype that extends only one metaclass and which the stereotype inherits from to hold one set of Attributes (Tag Properties). Let me define a second supplemental that extends only the other metaclass and which the stereotype also inherits from to hold the other set of Attributes (Tag Properties). Let the common stereotype extend BOTH metaclasses.
Thus when EA instantiates the appropriate metatype (metaclass-stereotype combination) toolbox entry it knows which supplemental stereotype to use to create the tag set required. Is that what you are after?
If so, then (as an exercise for the reader

) create a model (as I've been doing for the recent discussion with Eve on
v15.2 – What is FQN of «stereotype» (from Profiles)? ) and the resultant generate MDG entries and we can help.
@Eve, if I've misunderstood what is possible, please leap in and save q a pile of work.
HTH,
Paolo