Disappearing Elements [message #539406] |
Thu, 10 June 2010 11:53  |
Eclipse User |
|
|
|
I'm using ETL to generate a target Model. In ETL I write,
var eq := new tgtFmula!`EqualPredicate`;
I then create some contents and add it to a parent. However, the contents of the predicate 'disappear' in the persisted model. When I look at the target xml file I see an href associated with the element,
<extensions xsi:type="formulas:EqualPredicate"
href=" platform:/resource/CodeGenerationExamples2/MyEventWrapper.ta sking#/1 "/>
But I am expecting to see something like the following, (which I generate by cloning instead (from the same source)):
<extensions xsi:type="formulas:EqualPredicate">
<left xsi:type="formulas:IdentifierExpression" name="v1"/>
<right xsi:type="formulas:IntegerLiteralExpression" number="0"/>
</extensions>
Where does the href come from? I've not encountered this problem while generating other target elements. The only difference with my current translation is that the source and target meta-models are the same.
cheers, Andy
|
|
|
Re: Disappearing Elements [message #539425 is a reply to message #539406] |
Thu, 10 June 2010 12:55  |
Eclipse User |
|
|
|
Hi Andy,
Not sure what may be going wrong here. Could you please send me a
minimal configuration which I can use to reproduce this?
Cheers,
Dimitris
On 10/06/2010 18:53, Andy wrote:
> I'm using ETL to generate a target Model. In ETL I write,
>
> var eq := new tgtFmula!`EqualPredicate`;
> I then create some contents and add it to a parent. However, the
> contents of the predicate 'disappear' in the persisted model. When I
> look at the target xml file I see an href associated with the element,
>
> <extensions xsi:type="formulas:EqualPredicate" href="
> platform:/resource/CodeGenerationExamples2/MyEventWrapper.ta sking#/1 "/>
>
> But I am expecting to see something like the following, (which I
> generate by cloning instead (from the same source)):
>
> <extensions xsi:type="formulas:EqualPredicate">
> <left xsi:type="formulas:IdentifierExpression" name="v1"/>
> <right xsi:type="formulas:IntegerLiteralExpression" number="0"/>
> </extensions>
>
> Where does the href come from? I've not encountered this problem while
> generating other target elements. The only difference with my current
> translation is that the source and target meta-models are the same.
> cheers, Andy
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03477 seconds