Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » Re: [ATL] how can I the filename of the source model?
Re: [ATL] how can I the filename of the source model? [message #870303] Mon, 07 May 2012 11:36 Go to next message
Ed Willink is currently offline Ed Willink
Messages: 4012
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 #870313 is a reply to message #870303] Mon, 07 May 2012 11:55 Go to previous message
Alain Lavoie is currently offline Alain Lavoie
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.
Previous Topic:Welcome to the new ATL newsgroup (formerly M2M)
Next Topic:Problems transform two objects referencing the same third
Goto Forum:
  


Current Time: Wed Jul 30 07:10:36 EDT 2014

Powered by FUDForum. Page generated in 0.01913 seconds