Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] Transformation failure with model references serialized with absolute paths(ATL transformation fails with model references serialized with absolute paths)
[ATL] Transformation failure with model references serialized with absolute paths [message #832793] Fri, 30 March 2012 15:49 Go to next message
Óscar Sánchez is currently offline Óscar SánchezFriend
Messages: 2
Registered: March 2012
Junior Member
I was writting an ATL transformation with two input models M1 and M2, where M1 has references to M2. I tried to execute a rule for the elements of M2 by using the references in M1, but there was an unexpected output: the elements of M2 where embedded in the output model, though there is no reference in the target metamodel to any other one.

After going into the problem and do lots of tests, I realized that in the M1 model the references have the following form:

href="file:/C:/..."

Then, I changed all the absolute URIs to relative ones in the following way:

href="../..."

and then, the ATL transformation worked well. Then, my question: is this a bug? can I use ATL with models which contain inter-model references expressed in absolute paths?

Thanks.

[Updated on: Fri, 30 March 2012 15:50]

Report message to a moderator

Re: [ATL] Transformation failure with model references serialized with absolute paths [message #834648 is a reply to message #832793] Mon, 02 April 2012 08:00 Go to previous messageGo to next message
Sylvain EVEILLARD is currently offline Sylvain EVEILLARDFriend
Messages: 556
Registered: July 2009
Senior Member
You have to load the models the same way the models reference each other.
So if the M1 model references M2 using absolute URIs, you have to load the models using absolute URIs.
Re: [ATL] Transformation failure with model references serialized with absolute paths [message #839898 is a reply to message #834648] Mon, 09 April 2012 11:26 Go to previous messageGo to next message
Óscar Sánchez is currently offline Óscar SánchezFriend
Messages: 2
Registered: March 2012
Junior Member
It still does not work...

Model references from M1 to M2 are expressed in this way:

href="file:/C:/eclipse/workspace/project/models/model.xmi#..."

Then, in the ATL configuration I load model M2 using this path:

ext:C:\eclipse\workspace\project\models\model.xmi

But it does not work Sad
Re: [ATL] Transformation failure with model references serialized with absolute paths [message #839920 is a reply to message #839898] Mon, 09 April 2012 12:13 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

As Sylvain wrote: "You have to load the models the same way the models
reference each other. ".

file:/C:/eclipse/workspace/project/models/model.xmi#... is a hostless
absolute path with the file scheme.

ext:C:\eclipse\workspace\project\models\model.xmi is a relative path
with the ext scheme, whatever that is.

Regards

Ed Willink

On 09/04/2012 12:26, Óscar Sánchez wrote:
> It still does not work...
>
> Model references from M1 to M2 are expressed in this way:
>
> href="file:/C:/eclipse/workspace/project/models/model.xmi#..."
>
> Then, in the ATL configuration I load model M2 using this path:
>
> ext:C:\eclipse\workspace\project\models\model.xmi
>
> But it does not work :(
Previous Topic:[QVT] not keyword recognized as a keyword
Next Topic:[ATL] what about two nested "distinct..foreach" ?
Goto Forum:
  


Current Time: Fri Apr 26 06:51:32 GMT 2024

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

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

Back to the top