[ATL] Empty generated model [message #59205] |
Thu, 23 August 2007 15:10  |
Eclipse User |
|
|
|
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 #59490 is a reply to message #59236] |
Fri, 24 August 2007 16:18  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.06113 seconds