The problem is:
The general stereotyp (contained in a foreign package) isn't defined at the genearted profile-file (myProfile.xml).
(Acc. to Help pages "Creating Profiles" etc.)
I just tried it myself:
Given:
- an imported profile "GivenProfile" having
- - a stereotype "GivenInterface" extending metaclass "Interface"
Goal:
- another profile "ExtendingProfile" having
- - a stereotype "InternalService" extending "GivenInterface" extending "Interface"
Steps done:
- within the same .eap
- ProjectBrowser | NewModel (root node)...: "ServiceInterfaces"
- - NewView: "Profiles"
- - - AddDiagram: "Profiles"
- - - - Toolbox | Profile:
- - - - - dragged the Profile-icon to diagram "Profile", name = "ServiceInterfaceProfile", stereotype = "profile" | ok =>
- - - - - - an empty UML-Package "ServiceInterfaceProfile", stereotyped "profile", on the diagram
- - - - - - a ProjectBrowser-Package "ServiceInterfaceProfile", stereotyped "profile" having
- - - - - - - an empty CompositeStructure-diagram "ServiceInterfaceProfile" (auto-generated)
- - - - - - - - dragged the Stereotype-icon to diagram "ServiceInterfaceProfile"
- - - - - - - - - Name: "InternalService"
- - - - - - - - - Stereotype: "stereotype"
- - - - - - - - dragged the Metaclass-icon to diagram "ServiceInterfaceProfile" => "Create New Metaclass" dialog:
- - - - - - - - - IncludeExtended: Yes
- - - - - - - - - Stereotype: "stereotype"
- - - - - - - - - ReferenceElements: empty ("GivenInterface" does NOT show up)
- - - - - - - - - ReferenceConnectors: empty
- - - - - - - - - OK-button => NOT added to the diagram => trying with ReferenceElements = non-empty:
- - - - - - - - dragged the Metaclass-icon to diagram "ServiceInterfaceProfile" => "Create New Metaclass" dialog:
- - - - - - - - - IncludeExtended: Yes
- - - - - - - - - Stereotype: "stereotype"
- - - - - - - - - ReferenceElements: Interface ("GivenInterface" does NOT show up)
- - - - - - - - - ReferenceConnectors: empty
- - - - - - - - - OK-button => added to the diagram as "Interface" having stereotype "metaclass"
Diagram "ServiceInterfaceProfile" still has only
- the stereotype "InternalService"
- the metaclass "Interface"
- no associations between them
- no inheritance on "GivenInterface".
So I think:
- If "InternalService" is to extend the _metaclass_ "Interface" directly:
- - drag an "Extension" (not inheritance) arrow from "InternalService" to metaclass "Interface"
- If "InternalService" is to extend the _stereotype_ "GivenInterface":
- - EA | View | Ressources: ON
- - from Resources panel find and drag the _stereotype_ of "GivenInterface" onto the diagram (but how?

)
- - drag an inheritance arrow from stereotype "InternalService" to _stereotype_ "GivenInterface".
So, after I have only imported the "GivenProfile" having "GivenInterface":
How to drag its stereotype to my diagram or anyhow inherit it?
Sincerely Yours
tomte