[ATL] Transformation failure with model references serialized with absolute paths [message #832793] |
Fri, 30 March 2012 15:49  |
Eclipse User |
|
|
|
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] by Moderator Report message to a moderator
|
|
|
|
|
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  |
Eclipse User |
|
|
|
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 :(
|
|
|
Powered by
FUDForum. Page generated in 0.02616 seconds