Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] Empty generated model
[ATL] Empty generated model [message #59205] Thu, 23 August 2007 19:10 Go to next message
Eclipse UserFriend
Originally posted by: donvichenzo.gmail.com

Hello everybody,

I'm new to modeling (it's for a student project) and I have to realize a
model transformation by ATL (ADT Eclipse plugin).

My project is Albums2Songs

Here is the model (sample-Albums.ecore) to transform that I wrote in XMI
language :

<?xml version="1.0" encoding="ISO-8859-1"?>
<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
xmlns="Albums">
<Album albumName="Dany Brillant [Best Of]">
<contient trackName="Suzette"/>
<contient trackName="Y A Qu Les Filles Qui M Interessent"/>
<contient trackName="Dormir Avec Toi"/>
<contient trackName="C Est Ca Qui Est Bon"/>
<contient trackName="Elle Dit Non Non Non"/>
<contient trackName="C Est Pas Vrai"/>
<contient trackName="Redonne Moi Ma Chance"/>
<contient trackName="J Aime La Musique"/>
<contient trackName="Cherie"/>
<contient trackName="Tu As Brise Ma Vie"/>
<contient trackName="Les Parfums De L Orient"/>
<contient trackName="Quand Je Vois Tes Yeux"/>
<contient trackName="Dis Moi"/>
<contient trackName="Une Fille Comme Ca"/>
<contient trackName="Ronsard 96"/>
</Album>
<Album albumName="Claude Nougaro [Best Of]">
<contient trackName="Nougayork"/>
<contient trackName="Toulouse"/>
<contient trackName="Pacifique"/>
<contient trackName="Lady Liberty"/>
<contient trackName="Tu Verras (O Que Sera)"/>
<contient trackName="C
Re: [ATL] Empty generated model [message #59236 is a reply to message #59205] Fri, 24 August 2007 08:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: quentin.glineur.obeo.fr

This is a multi-part message in MIME format.
--------------000900080607050707080200
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

Hi,

First thing: It is maybe a problem of copy/paste but the URL definition
of the ecore namespace in your metamodels contains spaces (and it should
not).

Now, ATL 2004 does not support multiple variables in the "from" part. To
use such a functionality, you have to specify a ATL 2006 compilation with
-- @atlcompiler atl2006
at the beginning of your transformation.

However, if it will work, I do not think that the result will be the one
you are expecting... I shall let you check ;)
Tell me if you have further problems.

Regards,

Quentin GLINEUR

VIDONI a
Re: [ATL] Empty generated model [message #59490 is a reply to message #59236] Fri, 24 August 2007 20:18 Go to previous message
Eclipse UserFriend
Originally posted by: donvichenzo.gmail.com

Quentin Glineur <quentin.glineur@obeo.fr> wrote in
news:fam6ed$g1$1@build.eclipse.org:

> Hi,
>
> First thing: It is maybe a problem of copy/paste but the URL
> definition of the ecore namespace in your metamodels contains spaces
> (and it should not).
>
> Now, ATL 2004 does not support multiple variables in the "from" part.
> To use such a functionality, you have to specify a ATL 2006
> compilation with -- @atlcompiler atl2006
> at the beginning of your transformation.
>
> However, if it will work, I do not think that the result will be the
> one you are expecting... I shall let you check ;)
> Tell me if you have further problems.
>
> Regards,
>
> Quentin GLINEUR
>


Many thanks for your quickly answer Quentin ;)

For "spaces" in urls, it's a copy/paste error,
then I add "-- @atlcompiler atl2006" at the beginning of the ATL file
and it works better but not perfect as you can see :


<?xml version="1.0" encoding="ISO-8859-1"?>
<xmi:XMI xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI" xmlns="Songs">
<Song songName="Claude Nougaro [Best Of] : Vive L'Alexandrin"/>
<Song songName="Claude Nougaro [Best Of] : J Aime La Musique"/>
<Song songName="Claude Nougaro [Best Of] : C Est Pas Vrai"/>
<Song songName="Claude Nougaro [Best Of] : Elle Dit Non Non Non"/>
<Song songName="Claude Nougaro [Best Of] : Lady Liberty"/>
<Song songName="Claude Nougaro [Best Of] : Suzette"/>
<Song songName="Claude Nougaro [Best Of] : Ronsard 96"/>
<Song songName="Claude Nougaro [Best Of] : Les Parfums De L Orient"/>
<Song songName="Claude Nougaro [Best Of] : Los Angeles Eldorado"/>
<Song songName="Claude Nougaro [Best Of] : Il Faut Tourner La Page"/>
<Song songName="Claude Nougaro [Best Of] : Kin
Previous Topic:[ATL] Java code
Next Topic:[ATL] "OclUndefined has no property" when compiling ATL
Goto Forum:
  


Current Time: Wed Apr 14 16:58:10 GMT 2021

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

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

Back to the top