Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forums[ATL /AM3 XML Extractor ]
https://www.eclipse.org/forums/index.php/mv/msg/536359/1122211/#msg_1122211
I want to know if AM3 is available in kepler.
Thank you,]]>kicha bicha2013-10-01T10:36:00-00:00Re: [ATL /AM3 XML Extractor ]
https://www.eclipse.org/forums/index.php/mv/msg/536359/1122350/#msg_1122350
No, AM3 plugins are not upgraded anymore.
If you want to use ANT Tasks for chaining ATL transformations, please directly use the ATL ANT Tasks (cf. the ATL User Guide - ATL Tools section).
Best regards,]]>Hugo Bruneliere2013-10-01T13:24:26-00:00Re: [ATL /AM3 XML Extractor ]
https://www.eclipse.org/forums/index.php/mv/msg/536359/1122388/#msg_1122388
Thanks for your reponse.
I want to transforme my model UML + profile To file XML (conform of metamodel Xsd).
I work with Eclipse Kepler.
how to extract XML file?
That you have an example to extract XML file
Regards,]]>kicha bicha2013-10-01T14:12:13-00:00Re: [ATL /AM3 XML Extractor ]
https://www.eclipse.org/forums/index.php/mv/msg/536359/1122413/#msg_1122413
To use it, you can download its sources from here and then build the plugin to be included in your Eclipse install (according to your Eclipse version, e.g., Kepler).
Best regards,]]>Hugo Bruneliere2013-10-01T14:46:47-00:00Re: [ATL /AM3 XML Extractor ]
https://www.eclipse.org/forums/index.php/mv/msg/536359/1122440/#msg_1122440
Table2TabularHTML which contains XML Extractor.
and I replaced am3 by atl in Buil.xml
[atl.saveModel] Saving model example-XML.ecore to file:/C:\Users\aidi\workspace_KeplerR_testAcccelo\Table2TabularHTML\models\example-TabularHTML.html
[atl.saveModel] org.eclipse.m2m.atl.core.ATLCoreException: org.eclipse.m2m.atl.core.extractor xml not found, check the spelling or register it manually
You know the cause of this error?
thanks
]]>kicha bicha2013-10-01T15:24:34-00:00Re: [ATL /AM3 XML Extractor ]
https://www.eclipse.org/forums/index.php/mv/msg/536359/1122444/#msg_1122444
It looks like this is not the case.]]>Hugo Bruneliere2013-10-01T15:27:30-00:00Re: [ATL /AM3 XML Extractor ]
https://www.eclipse.org/forums/index.php/mv/msg/536359/1122455/#msg_1122455
org.eclipse.gmt.am3
org.eclipse.gmt.am3.core
org.eclipse.gmt.am3.extractor.launchers
org.eclipse.gmt.am3.modelhandler.emf
org.eclipse.gmt.am3.platform.core
org.eclipse.gmt.am3.platform.extension.am34eclipseplugins
org.eclipse.gmt.am3.platform.extension.am34linuxpackages
org.eclipse.gmt.am3.platform.extension.am3navigability
org.eclipse.gmt.am3.platform.extension.globalmodelmanagement
org.eclipse.gmt.am3.platform.extension.gmm4amw
org.eclipse.gmt.am3.platform.extension.gmm4asm
org.eclipse.gmt.am3.platform.extension.gmm4atl
org.eclipse.gmt.am3.platform.extension.gmm4compositetransformations
org.eclipse.gmt.am3.platform.extension.modelintent
org.eclipse.gmt.am3.platform.runtime.core
org.eclipse.gmt.am3.platform.ui
org.eclipse.gmt.am3.repository.lightweight
org.eclipse.m2m.atl.projectors.xml
]]>kicha bicha2013-10-01T15:45:32-00:00Re: [ATL /AM3 XML Extractor ]
https://www.eclipse.org/forums/index.php/mv/msg/536359/1122464/#msg_1122464
org.eclipse.m2m.atl.projectors.xml
It is a plugin to complement your ATL install with XML projection capabilities.
The other things you need are already included in ATL.]]>Hugo Bruneliere2013-10-01T15:51:17-00:00Re: [ATL /AM3 XML Extractor ]
https://www.eclipse.org/forums/index.php/mv/msg/536359/1122474/#msg_1122474
I always have same error.
]]>kicha bicha2013-10-01T16:11:02-00:00Re: [ATL /AM3 XML Extractor ]
https://www.eclipse.org/forums/index.php/mv/msg/536359/1122648/#msg_1122648
It looks like this is not the case.]]>Hugo Bruneliere2013-10-01T20:00:41-00:00Re: [ATL /AM3 XML Extractor ]
https://www.eclipse.org/forums/index.php/mv/msg/536359/1123224/#msg_1123224
I am sure that the plugin is installed ,because I see him in the list of the installed plugins,
Same error:
Saving model example-XML.ecore to file:/C:\Users\aidi\workspace_KeplerR_testAcccelo\Table2TabularHTML\models\example-TabularHTML.html
[atl.saveModel] org.eclipse.m2m.atl.core.ATLCoreException: org.eclipse.m2m.atl.core.extractor xml not found, check the spelling or register it manually
[atl.saveModel] at org.eclipse.m2m.atl.core.service.CoreService.getExtractor(CoreService.java:272)
[atl.saveModel] at org.eclipse.m2m.atl.core.ant.tasks.SaveModelTask.execute(SaveModelTask.java:105)
[atl.saveModel] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
[atl.saveModel] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[atl.saveModel] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[atl.saveModel] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[atl.saveModel] at java.lang.reflect.Method.invoke(Unknown Source)
[atl.saveModel] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[atl.saveModel] at org.apache.tools.ant.Task.perform(Task.java:348)
[atl.saveModel] at org.apache.tools.ant.Target.execute(Target.java:392)
[atl.saveModel] at org.apache.tools.ant.Target.performTasks(Target.java:413)
[atl.saveModel] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
[atl.saveModel] at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
[atl.saveModel] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[atl.saveModel] at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
[atl.saveModel] at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
[atl.saveModel] at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:672)
[atl.saveModel] at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:498)
[atl.saveModel] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[atl.saveModel] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[atl.saveModel] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[atl.saveModel] at java.lang.reflect.Method.invoke(Unknown Source)
[atl.saveModel] at org.eclipse.ant.core.AntRunner.run(AntRunner.java:378)
[atl.saveModel] at org.eclipse.ant.internal.launching.launchConfigurations.AntLaunchDelegate$1.run(AntLaunchDelegate.java:284)
[atl.saveModel] at java.lang.Thread.run(Unknown Source)
BUILD FAILED
But when I delete this instruction <extractor name="xml" /> , I do not have error.
]]>kicha bicha2013-10-02T10:26:56-00:00Re: [ATL /AM3 XML Extractor ]
https://www.eclipse.org/forums/index.php/mv/msg/536359/1123406/#msg_1123406
Both the injector and extractor are declared this way in the plugin.xml file of this plugin.]]>Hugo Bruneliere2013-10-02T14:30:30-00:00Re: [ATL /AM3 XML Extractor ]
https://www.eclipse.org/forums/index.php/mv/msg/536359/1123431/#msg_1123431
Thank you for your reponse.
The solution of this problem is to replace XML by xml.
]]>kicha bicha2013-10-02T14:58:55-00:00Re: [ATL /AM3 XML Extractor ]
https://www.eclipse.org/forums/index.php/mv/msg/536359/1124476/#msg_1124476
I want to transforme my model UML + profile To file XML (conform of metamodel Xsd).
do you have an example which corresponds this transformation.
Thank you for your help.
Ouafae]]>kicha bicha2013-10-03T15:21:47-00:00Re: [ATL /AM3 XML Extractor ]
https://www.eclipse.org/forums/index.php/mv/msg/536359/1124490/#msg_1124490
Basically, you have two different options here.
1) You write a specific UML-Profiled to XML transformation (according to the XSD you want to follow) and then you can use the XML extractor to obtain your actual XML document.
2) You use EMF to generate an Ecore (meta)model, let's name it XXX, out of your XSD and then you write the UML-Profiled to XXX transformation (thus using EMF to parameterize the serialization of your XXX model as an XML document corresponding to the initial XSD).
Best regards, ]]>Hugo Bruneliere2013-10-03T15:39:50-00:00Re: [ATL /AM3 XML Extractor ]
https://www.eclipse.org/forums/index.php/mv/msg/536359/1128370/#msg_1128370
in this example i use the second method (EMF to generate an Ecore (meta model).
ATL tranformation:
rule Block2MuseXML{
from museml: MMuml!Class(
thisModule.isBlockStereotyped(museml) and
museml.isMuseMLClassDefinitionStereotyped()
)
to OUT: MMXML!Composite (
name <- museml.name
)
}
I want to put the name of the classes stereotyped in name of the composite
org.eclipse.m2m.atl.engine.emfvm.VMException: Feature name does not exist on Composite
at __applyBlock2MuseXML#14(MuseML2XML.atl[47:7-47:26])
local variables: self=MuseML2XML : ASMModule, link=TransientLink {rule = Block2MuseXML, sourceElements = {museml = org.eclipse.uml2.uml.internal.impl.ClassImpl@12f44f2 (name: Block1, visibility: <unset>) (isLeaf: false, isAbstract: false, isFinalSpecialization: false) (isActive: false)}, targetElements = {OUT = org.eclipse.emf.ecore.impl.DynamicEObjectImpl@41eb8e (eClass: org.eclipse.emf.ecore.impl.EClassImpl@150dee9 (name: Composite) (instanceClassName: null) (abstract: false, interface: false))}, variables = {}}, museml=INuml!Block1, OUT=OUT!<unnamed>
at __exec__#8(MuseML2XML.atl)
]]>kicha bicha2013-10-07T16:13:47-00:00Re: [ATL /AM3 XML Extractor ]
https://www.eclipse.org/forums/index.php/mv/msg/536359/1827006/#msg_1827006
Hugo Bruneliere wrote on Tue, 01 October 2013 14:46
We have implemented an XML injector/extractor that can be called directly via the ATL ANT Tasks or API for instance.
To use it, you can download its sources from here and then build the plugin to be included in your Eclipse install (according to your Eclipse version, e.g., Kepler).
Best regards,
Hi Hugo,
I know this post is quite all but the link you provided is broken.
I would like to ask you if there any xml projector plugin I can add to the current ATL and Eclipse modelling tools.
Best regards,
Paul]]>Paul Hernandez2020-05-06T06:00:12-00:00