|[ATL] serialise xmi to specific format [message #1232728]
||Fri, 17 January 2014 10:25
Registered: January 2014
Been trying to figure this out for some time now. I have the following output from a ATL transformation:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xmi:XMI xmi:version="20110701" xmlns:xmi="http://www.omg.org/spec/XMI/20110701"
Whereby I have my own self made ecore model as a metamodel for the input, and I am outputting a UML model based on the: uri:http://www.eclipse.org/uml2/3.0.0/UML referenced metamodel. The UML also has an input of a UML profile (rbacDSML).
Somethings I need to do but unsure if this is possible:
* Is it possible to change the XML encoding to UTF-8?
* Is it possible to change the xmi:version to '2.0' and its corresponding xmlns
* Why does the output uml metamodel refer to 4.0.0 and not 3.0.0 (the one specified as the UML metamodel) and is it possible to force the reference to become 3.0.0.
* Is it possible to have the xsi:schemaLocation make reference to a pathmap://RBACDSML/RbacDSML.profile.uml instead of the relative file path?
|Re: [ATL] serialise xmi to specific format [message #1250808 is a reply to message #1232728]
||Wed, 19 February 2014 11:22
| Ronan B
Registered: July 2009
You can alter the xsi:schemaLocation by having your profile in a plugin. Then a pathmap will be the URI. The XML encoding comes from your JVM and/or your Eclipse setting in preferences/workspace/file encoding.
I assume the xmi:version is based on whatever plugins you have installed and what version of XMI they serialise to. I normally see 2.0
Powered by FUDForum
. Page generated in 0.01730 seconds