Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Model-to-Model Transformation » [ATL] how can I the filename of the source model?
[ATL] how can I the filename of the source model? [message #870297] Mon, 07 May 2012 15:20 Go to next message
Javier Belenguer is currently offline Javier BelenguerFriend
Messages: 4
Registered: May 2012
Junior Member
I've just started learning how ATL works, and this may be a trivial question but I can't find a way to do it.

I'm trying to transform a XML file (e.g. "A.xml") into another XML with different structure (e.g. "B.xml") and the new file B.xml has an attribute that references the previous file (something like <base href="A.xml"/>).

Is there any method to get filename of the source model ("A.xml" in the example) being transformed?
Re: [ATL] how can I the filename of the source model? [message #870304 is a reply to message #870297] Mon, 07 May 2012 15:36 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

[Please use the new ATL newsgroup for ATL questions.]

I'm not an ATL expert, but with other tools I find it necessary to pass
such environment context in as a transformation parameter.

Regards

Ed Willink


On 07/05/2012 16:21, Javier Belenguer wrote:
> I've just started learning how ATL works, and this may be a trivial
> question but I can't find a way to do it.
>
> I'm trying to transform a XML file (e.g. "A.xml") into another XML
> with different structure (e.g. "B.xml") and the new file B.xml has an
> attribute that references the previous file (something like <base
> href="A.xml"/>).
>
> Is there any method to get filename of the source model ("A.xml" in
> the example) being transformed?
Re: [ATL] how can I the filename of the source model? [message #870314 is a reply to message #870304] Mon, 07 May 2012 15:55 Go to previous messageGo to next message
Alain Lavoie is currently offline Alain LavoieFriend
Messages: 82
Registered: April 2012
Member
> On 07/05/2012 16:21, Javier Belenguer wrote:
>> I've just started learning how ATL works, and this may be a trivial
>> question but I can't find a way to do it.
>>
>> I'm trying to transform a XML file (e.g. "A.xml") into another XML
>> with different structure (e.g. "B.xml") and the new file B.xml has an
>> attribute that references the previous file (something like <base
>> href="A.xml"/>).
>>
>> Is there any method to get filename of the source model ("A.xml" in
>> the example) being transformed?
>

A solution would be to add an element <File... ="A.xml" ... >
in the source file. This will make the job if you are not
planning to rename this file all the time, but from what I have
seen yet, all files and overall execution configuration is placed in the
run (launch configuration).

Good luck.
[AML] Classification of changes in metamodel [message #882840 is a reply to message #870297] Thu, 07 June 2012 09:48 Go to previous messageGo to next message
lucky informatik is currently offline lucky informatikFriend
Messages: 12
Registered: April 2012
Junior Member
Hi,

I want to use AML for metamodel evolution and model co-evolution. I went through some literature for basic understanding of evolutions on metamodel.I have seen some classifications for metamodel changes in literature for metamodel matching approaches like non-breaking, breakable and resolvable, breakable and non resolvable. I would like to know if these classifications can be taken into account while using AML for metamodel evolution and model co-evolution or are there some other classifications?

Thanks,
Lucky
Re: [AML] Classification of changes in metamodel [message #883022 is a reply to message #882840] Thu, 07 June 2012 16:55 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

AML is/was an extension of ATL, so you should ask on the ATL newsgroup.
I'm not certain that there is any ongoing activity so you may not get an
answer.

You were probably right in trying to ciommunicate on Edaapt, but again
I'm not sure that there is much activity.

My own reaction is that it's only software so you can do whatever you
program/re-use.

Regards

Ed Willink

On 07/06/2012 10:48, lucky informatik wrote:
> Hi,
>
> I want to use AML for metamodel evolution and model co-evolution. I
> went through some literature for basic understanding of evolutions on
> metamodel.I have seen some classifications for metamodel changes in
> literature for metamodel matching approaches like non-breaking,
> breakable and resolvable, breakable and non resolvable. I would like
> to know if these classifications can be taken into account while using
> AML for metamodel evolution and model co-evolution or are there some
> other classifications?
>
> Thanks,
> Lucky
Previous Topic:ATL - if expression error
Next Topic:what about the messages in the list e.m.m2m
Goto Forum:
  


Current Time: Tue Apr 16 17:53:26 GMT 2024

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

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

Back to the top