Generate XML file from UML-XMI metamodel using xslt [message #226470] |
Wed, 08 August 2007 18:22 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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.
>
|
|
|
Powered by
FUDForum. Page generated in 0.07179 seconds