Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » JET2 - multiple input models
JET2 - multiple input models [message #77945] Tue, 03 April 2007 08:17 Go to next message
Eclipse UserFriend
Originally posted by: kim-chi.nguyen.velsys.com

Hi All,

I'm new to JET2 and have been following IBM's tutorial
http://www-128.ibm.com/developerworks/opensource/library/os- ecl-jet/

I would like to know if it is possible to have more than one input model to
a template?

I have the following models:

1) profileA.xml
<app name="profileA">
<component name="c1"/>
<component name="c2"/>
</app>

2) component1.xml
<app name="c1">
<property name="p1" value="x"/>
<property name="p2" value="y"/>
</app>

Am I able to access the attributes(p1, p2, x, y) of component1.xml, given
that I can extract the attribute c1, from profileA.xml in my template file?

Is it possible to build up an input model incrementally like this,
consisting of many *.xml files?

When I go to Run > JET Transformation, I can only enter one file in the
"Transformation Input" field.

Regards,
Kim-Chi
Re: JET2 - multiple input models [message #77962 is a reply to message #77945] Tue, 03 April 2007 10:48 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Kim-Chi,

If you must post a question to multiple newsgroups, please do so with a
single posting to both groups rather than with two separate postings.
The M2T newsgroup was the better place to post this question so look for
an answer there.


Kim-Chi wrote:
> Hi All,
>
> I'm new to JET2 and have been following IBM's tutorial
> http://www-128.ibm.com/developerworks/opensource/library/os- ecl-jet/
>
> I would like to know if it is possible to have more than one input model to
> a template?
>
> I have the following models:
>
> 1) profileA.xml
> <app name="profileA">
> <component name="c1"/>
> <component name="c2"/>
> </app>
>
> 2) component1.xml
> <app name="c1">
> <property name="p1" value="x"/>
> <property name="p2" value="y"/>
> </app>
>
> Am I able to access the attributes(p1, p2, x, y) of component1.xml, given
> that I can extract the attribute c1, from profileA.xml in my template file?
>
> Is it possible to build up an input model incrementally like this,
> consisting of many *.xml files?
>
> When I go to Run > JET Transformation, I can only enter one file in the
> "Transformation Input" field.
>
> Regards,
> Kim-Chi
>
>
>
Re: JET2 - multiple input models [message #604203 is a reply to message #77945] Tue, 03 April 2007 10:48 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Kim-Chi,

If you must post a question to multiple newsgroups, please do so with a
single posting to both groups rather than with two separate postings.
The M2T newsgroup was the better place to post this question so look for
an answer there.


Kim-Chi wrote:
> Hi All,
>
> I'm new to JET2 and have been following IBM's tutorial
> http://www-128.ibm.com/developerworks/opensource/library/os- ecl-jet/
>
> I would like to know if it is possible to have more than one input model to
> a template?
>
> I have the following models:
>
> 1) profileA.xml
> <app name="profileA">
> <component name="c1"/>
> <component name="c2"/>
> </app>
>
> 2) component1.xml
> <app name="c1">
> <property name="p1" value="x"/>
> <property name="p2" value="y"/>
> </app>
>
> Am I able to access the attributes(p1, p2, x, y) of component1.xml, given
> that I can extract the attribute c1, from profileA.xml in my template file?
>
> Is it possible to build up an input model incrementally like this,
> consisting of many *.xml files?
>
> When I go to Run > JET Transformation, I can only enter one file in the
> "Transformation Input" field.
>
> Regards,
> Kim-Chi
>
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:JET2 - multiple input models
Next Topic:fetching non-containment relations eagerly
Goto Forum:
  


Current Time: Thu Apr 25 06:41:45 GMT 2024

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

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

Back to the top