[gme-users] Changing .xme after renaming elements

Matthew J. Emerson mjemerson at isis.vanderbilt.edu
Thu Aug 12 15:12:35 CDT 2004


So you have an old metamodel and a new metamodel and you want to
transform models of the old type to be models of the new type?  This
sounds like a job for GReAT to me.

--Matt

-----Original Message-----
From: gme-users-bounces at list.isis.vanderbilt.edu
[mailto:gme-users-bounces at list.isis.vanderbilt.edu] On Behalf Of
Krishnakumar B
Sent: Thursday, August 12, 2004 9:45 AM
To: gme-users
Subject: [gme-users] Changing .xme after renaming elements 

Hi,

I had to make a change to the meta-model as follows:

Original meta
-------------

A child of element named "ComponentContainer" contained a Reference
named
"ComponentType", which referred to a modelProxy named "ComponentDef".
"ComponentDef" is a proxy of model element "Component".

Modified meta
-------------

A child of element named "ComponentContainer" contains a ReferenceProxy
named "ComponentRef", which is a proxy to a Reference named
"ComponentRef".
"ComponentRef" refers to the element "Component" which is the same as
what
the original "ComponentType" referred to.

When I replace all instances of the word "ComponentType" with
"ComponentRef" in a model developed using the original meta, and try to
import the XML file, the import fails with the message:

Error importing XML file (0x80731001): Improper use of object

I have no ideas as to what element was expected and what was found as
the
error message is not very descriptive.

Does anyone know how to achieve what I am trying to do by changing the
XME
file so that GME will allow importing the old models? I don't want to
redo
all the models by hand again (which will take weeks to complete).

I am at a loss as to how to proceed finding the source of the problem.
AFAICS, there is no change in semantics. No element deletion or
addition.

Is there any repository of XSLT scripts that allow such modifications? I
am
sure I am not the first person trying to do something like this.

Any help is much appreciated.

-kitty.
_______________________________________________
gme-users mailing list
gme-users at list.isis.vanderbilt.edu
http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users


More information about the gme-users mailing list