[ATL] Wrong XML output with EMF metamodel conform XSD [message #1064202] |
Tue, 18 June 2013 08:59 |
Victor Pavon Messages: 50 Registered: April 2012 Location: Spain |
Member |
|
|
Hello,
I have an EMF metamodel that I have generated conform an XSD file using the EMF wizard. I use the generated metamodel as target metamodel in an ATL transformation. I hope to obtain a file like that:
<?xml version="1.0" encoding="UTF-8"?>
<rest-config>
<action-mappings/>
</rest-config>
The code that I paste before I the style of a model created using the EMF tree editor, of the metamodel that I generated.
But when I run the transformation I obtained an XMI file like that, when I set the file extension as *.xmi and *.xml in ATL run configuration:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:RestConfig="platform:/resource/rest/resource/rest-config.xsd">
<RestConfig:RestConfigType>
<RestConfig:ActionMappingsType/>
<RestConfig:RestConfigType>
</xmi:XMI>
And when I set in the ATL configuration the output file extension as memtamodele extension (*.restconfig) and I obtain something like that:
<?xml version="1.0" encoding="ISO-8859-1"?>
<rest-config_._type xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../rest/resource/rest-config.xsd" name="elemento">
<action-mappings/>
<rest-config_._type/>
¿How can obtain that ATL give an output like EMF tree editor?
Best regard, Víctor.
Víctor Pavón,
Research at Quercus Software Engineering Group
University of Extremadura, Spain.
[Updated on: Tue, 18 June 2013 11:56] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01338 seconds