[gme-users] Changing .xme after renaming elements
Zoltan Molnar
zolmol at isis.vanderbilt.edu
Thu Aug 12 11:05:32 CDT 2004
Did you compare the different xmp files? That would show you the
difference between the original and the modified meta.
You could do a search/replace or XSL transf based on that.
I attach the xslt demo script provided with the GME install package ( in
the sf/xslt directory) which makes a "kind search/replace" (changing the
"Basic" kindname to "Primitive") transformation for such cases as yours.
Zoli
> -----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
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Basic2Primitive.xsl
Type: application/octet-stream
Size: 3073 bytes
Desc: Basic2Primitive.xsl
Url : http://list.isis.vanderbilt.edu/pipermail/gme-users/attachments/20040812/f3230112/Basic2Primitive.obj
More information about the gme-users
mailing list