Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » xsi:schemaLocation
xsi:schemaLocation [message #478275] Tue, 31 March 2009 22:41 Go to next message
Lazar Codrut-Lucian is currently offline Lazar Codrut-LucianFriend
Messages: 91
Registered: July 2009
Member
A UML Model with a Profile applied anf with a Stereotype applied on at
least on element has <xmi:XMI> as the root node.
This node has an attribute "xsi:schemaLocation", which contains the
nsURI of the profile, concatenated with the id of the ecore package
generated in the profile uml file.

If I load the uml file in memory and save it, this attribute doesn't get
saved. And the UML Editor will not see the stereotypes as stereotypes
any more, but as instances of the classes from the profile, and they are
visible in the editor next to the Model.

How should I create the "xsi:schemaLocation" attribute and where should
I set it?

Thanks,
Lucian
Re: xsi:schemaLocation [message #478284 is a reply to message #478275] Fri, 03 April 2009 19:25 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Lazar,

The stereotype applications are kept at root level in the file so I'm
thinking that for some reason you may not be saving out the stereotype
applications thereby causing the xsi:schemaLocation referencing the profile
to be automatically removed.
Is it possible for you to post a code snippet indicating how you are loading
and saving your model.

- James.

"Lazar Codrut-Lucian" <lcodrutlucian@yahoo.com> wrote in message
news:gqu60o$j3c$1@build.eclipse.org...
>A UML Model with a Profile applied anf with a Stereotype applied on at
> least on element has <xmi:XMI> as the root node.
> This node has an attribute "xsi:schemaLocation", which contains the
> nsURI of the profile, concatenated with the id of the ecore package
> generated in the profile uml file.
>
> If I load the uml file in memory and save it, this attribute doesn't get
> saved. And the UML Editor will not see the stereotypes as stereotypes
> any more, but as instances of the classes from the profile, and they are
> visible in the editor next to the Model.
>
> How should I create the "xsi:schemaLocation" attribute and where should
> I set it?
>
> Thanks,
> Lucian
Re: xsi:schemaLocation [message #627474 is a reply to message #478275] Fri, 03 April 2009 19:25 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Lazar,

The stereotype applications are kept at root level in the file so I'm
thinking that for some reason you may not be saving out the stereotype
applications thereby causing the xsi:schemaLocation referencing the profile
to be automatically removed.
Is it possible for you to post a code snippet indicating how you are loading
and saving your model.

- James.

"Lazar Codrut-Lucian" <lcodrutlucian@yahoo.com> wrote in message
news:gqu60o$j3c$1@build.eclipse.org...
>A UML Model with a Profile applied anf with a Stereotype applied on at
> least on element has <xmi:XMI> as the root node.
> This node has an attribute "xsi:schemaLocation", which contains the
> nsURI of the profile, concatenated with the id of the ecore package
> generated in the profile uml file.
>
> If I load the uml file in memory and save it, this attribute doesn't get
> saved. And the UML Editor will not see the stereotypes as stereotypes
> any more, but as instances of the classes from the profile, and they are
> visible in the editor next to the Model.
>
> How should I create the "xsi:schemaLocation" attribute and where should
> I set it?
>
> Thanks,
> Lucian
Previous Topic:Binding to UML Classes and Ecore Primitive Types
Next Topic:Problem with Property and eDerivedStructuralFeatureID()
Goto Forum:
  


Current Time: Thu Oct 18 11:02:12 GMT 2018

Powered by FUDForum. Page generated in 0.02225 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top