Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » Using external parameters in ATL
Using external parameters in ATL [message #1013333] Sat, 23 February 2013 11:01 Go to next message
Bea Perez is currently offline Bea Perez
Messages: 5
Registered: July 2012
Junior Member
Hi!!
I am trying to use external parameters with ATL transformations. I am followed the help at ATL_Howtos.

I have also downloaded the org.eclipse.m2m.atl.projectors.xml plugin developed for Juno from docatlanmod.emn.fr and located it in the Eclipse installation folder. In particular, I have trying to copy it to the droppings and plugins folders, even to the ATL proyect folder in my workspace, but it does not work.

I get the error:

Error loading platform:/resource/ATLProyect/InputModels/parameters.xml: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri 'null' not found. (platform:/resource/ATLProyect/InputModels/parameters.xml, 1, 13)

Could anybody help me?

Thanks in advance!!

Bea
Re: Using external parameters in ATL [message #1013336 is a reply to message #1013333] Sat, 23 February 2013 11:12 Go to previous messageGo to next message
Ed Willink is currently offline Ed Willink
Messages: 4088
Registered: July 2009
Senior Member
Hi

Looks like a bad XML file; nothing to do with ATL.

It's always worth using the Sample (Reflective) Ecore Editor to check
whether your files are useable.

Regards

Ed Willink

On 23/02/2013 11:01, Bea Perez wrote:
> Hi!!
> I am trying to use external parameters with ATL transformations. I am
> followed the help at ATL_Howtos.
> I have also downloaded the org.eclipse.m2m.atl.projectors.xml plugin
> developed for Juno from docatlanmod.emn.fr and located it in the
> Eclipse installation folder. In particular, I have trying to copy it
> to the droppings and plugins folders, even to the ATL proyect folder
> in my workspace, but it does not work.
>
> I get the error:
>
> Error loading
> platform:/resource/ATLProyect/InputModels/parameters.xml:
> org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri
> 'null' not found.
> (platform:/resource/ATLProyect/InputModels/parameters.xml, 1, 13)
>
> Could anybody help me?
>
> Thanks in advance!!
>
> Bea
>
Re: Using external parameters in ATL [message #1013338 is a reply to message #1013336] Sat, 23 February 2013 11:18 Go to previous messageGo to next message
Bea Perez is currently offline Bea Perez
Messages: 5
Registered: July 2012
Junior Member
Thanks Ed Willink!!

I am trying with the simple parameters XML file available at http://wiki.eclipse.org/ATL_Howtos#How_can_I_tune_the_XML_output_of_ATL:

<parameters>
<param name="param1" value="valueX"/>
<param name="param2" value="valueY"/>
</parameters>

Any clue?
Re: Using external parameters in ATL [message #1013342 is a reply to message #1013338] Sat, 23 February 2013 11:34 Go to previous messageGo to next message
Ed Willink is currently offline Ed Willink
Messages: 4088
Registered: July 2009
Senior Member
Hi

I have no familiarity with the example, but XML files start with:

<xml ...

Regards

Ed Willink

On 23/02/2013 11:18, Bea Perez wrote:
> Thanks Ed Willink!!
>
> I am trying with the simple parameters XML file available at
> http://wiki.eclipse.org/ATL_Howtos#How_can_I_tune_the_XML_output_of_ATL:
>
> <parameters>
> <param name="param1" value="valueX"/>
> <param name="param2" value="valueY"/>
> </parameters>
>
> Any clue?
>
Re: Using external parameters in ATL [message #1013347 is a reply to message #1013342] Sat, 23 February 2013 11:51 Go to previous messageGo to next message
Bea Perez is currently offline Bea Perez
Messages: 5
Registered: July 2012
Junior Member
Yes, I have tried with something as:

<?xml version="1.0" encoding="UTF-8"?>
<parameters>
<param name="param1" value="valueX"/>
<param name="param2" value="valueY"/>
</parameters>

but nothing...
Re: Using external parameters in ATL [message #1013356 is a reply to message #1013347] Sat, 23 February 2013 12:33 Go to previous messageGo to next message
Ed Willink is currently offline Ed Willink
Messages: 4088
Registered: July 2009
Senior Member
Hi

I suggest that you learn about basic XML files before trying to tune them.

Regards

Ed Willink


On 23/02/2013 11:51, Bea Perez wrote:
> Yes, I have tried with something as:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <parameters>
> <param name="param1" value="valueX"/>
> <param name="param2" value="valueY"/>
> </parameters>
>
> but nothing...
Re: Using external parameters in ATL [message #1013834 is a reply to message #1013333] Sun, 24 February 2013 12:41 Go to previous messageGo to next message
Dennis Wagelaar is currently offline Dennis Wagelaar
Messages: 166
Registered: September 2012
Senior Member

Op 23-02-13 12:01, Bea Perez schreef:
> Hi!!
> I am trying to use external parameters with ATL transformations. I am followed
> the help at ATL_Howtos.
> I have also downloaded the org.eclipse.m2m.atl.projectors.xml plugin developed
> for Juno from docatlanmod.emn.fr and located it in the Eclipse installation
> folder. In particular, I have trying to copy it to the droppings and plugins
> folders, even to the ATL proyect folder in my workspace, but it does not work.
>
> I get the error:
>
> Error loading platform:/resource/ATLProyect/InputModels/parameters.xml:
> org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri 'null'
> not found. (platform:/resource/ATLProyect/InputModels/parameters.xml, 1, 13)
>
> Could anybody help me?
>
> Thanks in advance!!
>
> Bea
>

EMF is trying to load the XML file instead of ATL's XML injector. Note that
you can only use ATL injectors from within Ant scripts.

Regards,
Dennis


Cheers,
Dennis
Re: Using external parameters in ATL [message #1014168 is a reply to message #1013834] Mon, 25 February 2013 09:35 Go to previous message
Hugo Bruneliere is currently offline Hugo Bruneliere
Messages: 607
Registered: July 2009
Senior Member
Hello,

As said by Dennis, you first need to inject your XML file as an XML model (i.e.; a model that conforms to an XML metamodel).
In order to do this, an XML injector is available from http://docatlanmod.emn.fr/ATL/Plugins/org.eclipse.m2m.atl.projectors.xml_0.4.0.jar (built with/for Eclipse Juno but should work with other versions) and can be launched via ATL Ant scripts or programmatically.
If needed, the sources of this plugin are also available from http://dev.eclipse.org/svnroot/modeling/org.eclipse.mdt.modisco/incubation/trunk/am3/plugins/trunk/org.eclipse.m2m.atl.projectors.xml/

Hugo


------------------------------------------
Hugo Bruneliere - R&D Engineer
AtlanMod research team (Inria, EMN & LINA)
Ecole des Mines de Nantes
Nantes - France
------------------------------------------
Previous Topic:model merging
Next Topic:setValue on reference tag values of stereotyped elements
Goto Forum:
  


Current Time: Wed Oct 22 00:16:48 GMT 2014

Powered by FUDForum. Page generated in 0.01837 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software