Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Generate XML file from UML-XMI metamodel using xslt
Generate XML file from UML-XMI metamodel using xslt [message #226470] Wed, 08 August 2007 18:22 Go to next message
Eclipse UserFriend
Originally posted by: bdhnet22.hotmail.com

Dear members;

can anyone help me in solving this problem:

I have an XMI file generated from UML model by Eclipse (EMF). I need to
write an xslt code that can only extract only class diagrams Stereotype
names, tagged values, class names, class attributes,
properties,association, ... into an XML format file. The generated XMI
file from UML model has huge amount of information so that I tried to
write an xslt code but I am unable to get what I want from it.

Is there any tool, plug-in, tutorial or code that could help me to proceed
with this problem.

I really appreciate your help & thx in advance.

Daoud.
Re: Generate XML file from UML-XMI metamodel using xslt [message #226477 is a reply to message #226470] Wed, 08 August 2007 18:35 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Daoud,

XMI files are kind of messy. I suspect that you'd be better off to read
the model and use the UML2 APIs to extract the meaningful information
you need. A very simple way to visit every object contained by a
resource is to use Resource.getAllContents(), so that might be a quick
way to navigate the model. I don't know enough about XSLT to be able to
give advice on how to do things that way.


daoud wrote:
>
> Dear members;
>
> can anyone help me in solving this problem:
>
> I have an XMI file generated from UML model by Eclipse (EMF). I need
> to write an xslt code that can only extract only class diagrams
> Stereotype names, tagged values, class names, class attributes,
> properties,association, ... into an XML format file. The generated XMI
> file from UML model has huge amount of information so that I tried to
> write an xslt code but I am unable to get what I want from it.
>
> Is there any tool, plug-in, tutorial or code that could help me to
> proceed with this problem.
> I really appreciate your help & thx in advance.
>
> Daoud.
>
Previous Topic:eclipse errors: bad digest, missing help files
Next Topic:How to Configure Eclipse to Debug App on Remote Server?
Goto Forum:
  


Current Time: Wed Jan 15 08:44:00 GMT 2025

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

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

Back to the top