| xmi:type instead of xsi:type [message #882348] |
Wed, 06 June 2012 05:35  |
Martin Benedict Messages: 22 Registered: June 2012 |
Junior Member |
|
|
I've started to learn ATL. I have done some M2M-Mappings with ATL. My target model is the UML-model delivered with eclipse. (namespace uri:http:www.eclipse.org:uml2:2.1.0:UML) The atl-script produces a xmi file as I want, but the problem is that the xmi file contains for the type a namespace which couldn't be detected by my uml model.
This is the generated xmi
<uml:Model xmi:version="2.0" xmlns:xmi="...omg.org/XMI" xmlns:xsi=".../XMLSchema-instance" xmlns:uml="..omg.org/spec/UML/20110701" name="COCT_HD080000UV09">
<packagedElement xsi:type="uml:Package" name="R_Specimen universal">
<packagedElement xsi:type="uml:Class" name="ActDefinition"/>
But the packagedElements should have the following attributes for importing to my uml tool.
<packagedElement xmi:type="uml:Package" name="R_Specimen universal">
<packagedElement xmi:type="uml:Class" name="ActDefinition"/>
I have manually changed the namespace and the import to my uml tool works.
How can I reach that the namespace of xmi is used for type instead of the xml schema namespace? Do I have to use another target Metamodel?
|
|
|
|
|
|
|
|
|
|
| Re: xmi:type instead of xsi:type [message #882431 is a reply to message #882423] |
Wed, 06 June 2012 09:01   |
Martin Benedict Messages: 22 Registered: June 2012 |
Junior Member |
|
|
I have written a ATL-plugin where I have defined the XMI option Ed Merks suggested. Now it sucessfully creates xmi:type attributes.
For the namespace of UML have used the eclipse namespace with 3.0.0.
According to Ed Willinks suggestions there will be more work.
The only drawback until now is, that I need a dedicated Java class for doing transformation. My aim was to have an ant script.
Thanks for any help, until now.
[Updated on: Wed, 06 June 2012 09:08] Report message to a moderator
|
|
|
|
|
| Re: xmi:type instead of xsi:type [message #882566 is a reply to message #882516] |
Wed, 06 June 2012 14:37  |
Martin Benedict Messages: 22 Registered: June 2012 |
Junior Member |
|
|
The file is currently name xmi. I will have a try with *.uml
I see, in my first report there was the first mentioned value was occuring. I don't know and I can't reproduce. Perhaps it was reasoned by some experiments with other tools.
The second value ...eclipse.org/uml2/3.0.0/UML is the right one. It occurs always if I generate my model.
EDIT:
I have tested with file extension .uml. Now it works also with my ant script. Great!
Thank You
[Updated on: Wed, 06 June 2012 15:03] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.04022 seconds