Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Acceleo] Using a multiple package source model
[Acceleo] Using a multiple package source model [message #543019] Mon, 28 June 2010 08:25 Go to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

I'm trying to apply Acceleo to an input model that uses a multi-package
input model.

The model complies with QVTRelation which 'extends' QVTBase which
'extends' ...

The [module ] declaration therefore specifies QVTRelation and allows the
QVTRelation types to be used, but there appears to be no way to use
QVTBase types in an expression: e.g.

[let domain : Domain ...
or
[let domain : qvtbase::Domain ...

Is there a workaround? this looks like the same specification bug that
QVTr had in failing to recognise that a TypedModel is a multi-package.
The QVTr spec therefore evolved to allow a {list,of,packages} in its
transformation declaration.

Perhaps the [module declaration should allow a comma-separated list of
package URIs.

Regards

Ed Willink
Re: [Acceleo] Using a multiple package source model [message #543105 is a reply to message #543019] Mon, 28 June 2010 12:18 Go to previous messageGo to next message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1902
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------060207050209050202080803
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi,

Acceleo does accept a comma separated list of package URIs.

Laurent Goubet
Obeo

Ed Willink wrote:
> Hi
>
> I'm trying to apply Acceleo to an input model that uses a multi-package
> input model.
>
> The model complies with QVTRelation which 'extends' QVTBase which
> 'extends' ...
>
> The [module ] declaration therefore specifies QVTRelation and allows the
> QVTRelation types to be used, but there appears to be no way to use
> QVTBase types in an expression: e.g.
>
> [let domain : Domain ...
> or
> [let domain : qvtbase::Domain ...
>
> Is there a workaround? this looks like the same specification bug that
> QVTr had in failing to recognise that a TypedModel is a multi-package.
> The QVTr spec therefore evolved to allow a {list,of,packages} in its
> transformation declaration.
>
> Perhaps the [module declaration should allow a comma-separated list of
> package URIs.
>
> Regards
>
> Ed Willink


--------------060207050209050202080803
Content-Type: text/x-vcard; charset=utf-8;
name="laurent_goubet.vcf"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="laurent_goubet.vcf"

begin:vcard
fn:Laurent Goubet
n:Goubet;Laurent
org:<a href="http://www.obeo.fr">Obeo</a>
email;internet:laurent.goubet@obeo.fr
url:http://www.obeo.fr
version:2.1
end:vcard


--------------060207050209050202080803--
Re: [Acceleo] Using a multiple package source model [message #543239 is a reply to message #543105] Mon, 28 June 2010 18:32 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi Laurent

Great it works beautifully.

Just needs an OMG issue and a tweak to the Acceleo documentation.

Regards

Ed



On 28/06/2010 13:18, Laurent Goubet wrote:
> Hi,
>
> Acceleo does accept a comma separated list of package URIs.
>
> Laurent Goubet
> Obeo
>
> Ed Willink wrote:
>> Hi
>>
>> I'm trying to apply Acceleo to an input model that uses a
>> multi-package input model.
>>
>> The model complies with QVTRelation which 'extends' QVTBase which
>> 'extends' ...
>>
>> The [module ] declaration therefore specifies QVTRelation and allows
>> the QVTRelation types to be used, but there appears to be no way to
>> use QVTBase types in an expression: e.g.
>>
>> [let domain : Domain ...
>> or
>> [let domain : qvtbase::Domain ...
>>
>> Is there a workaround? this looks like the same specification bug that
>> QVTr had in failing to recognise that a TypedModel is a multi-package.
>> The QVTr spec therefore evolved to allow a {list,of,packages} in its
>> transformation declaration.
>>
>> Perhaps the [module declaration should allow a comma-separated list of
>> package URIs.
>>
>> Regards
>>
>> Ed Willink
>
Re: [Acceleo] Using a multiple package source model [message #543347 is a reply to message #543239] Tue, 29 June 2010 07:50 Go to previous message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1902
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------010404080305000307070501
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Ed,

Section 8.1 (Metamodel) of the MOFM2T 1.0 specification defines the
"input" reference as 1..*. Section 8.2 (Concrete Syntax) sports too many
issues as regards the metamodel and specification itself to be taken at
face value.

As for the Acceleo documentation, I agree that it does need something on
this.

Laurent Goubet
Obeo

Ed Willink wrote:
> Hi Laurent
>
> Great it works beautifully.
>
> Just needs an OMG issue and a tweak to the Acceleo documentation.
>
> Regards
>
> Ed
>
>
>
> On 28/06/2010 13:18, Laurent Goubet wrote:
>> Hi,
>>
>> Acceleo does accept a comma separated list of package URIs.
>>
>> Laurent Goubet
>> Obeo
>>
>> Ed Willink wrote:
>>> Hi
>>>
>>> I'm trying to apply Acceleo to an input model that uses a
>>> multi-package input model.
>>>
>>> The model complies with QVTRelation which 'extends' QVTBase which
>>> 'extends' ...
>>>
>>> The [module ] declaration therefore specifies QVTRelation and allows
>>> the QVTRelation types to be used, but there appears to be no way to
>>> use QVTBase types in an expression: e.g.
>>>
>>> [let domain : Domain ...
>>> or
>>> [let domain : qvtbase::Domain ...
>>>
>>> Is there a workaround? this looks like the same specification bug that
>>> QVTr had in failing to recognise that a TypedModel is a multi-package.
>>> The QVTr spec therefore evolved to allow a {list,of,packages} in its
>>> transformation declaration.
>>>
>>> Perhaps the [module declaration should allow a comma-separated list of
>>> package URIs.
>>>
>>> Regards
>>>
>>> Ed Willink
>>
>


--------------010404080305000307070501
Content-Type: text/x-vcard; charset=utf-8;
name="laurent_goubet.vcf"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="laurent_goubet.vcf"

begin:vcard
fn:Laurent Goubet
n:Goubet;Laurent
org:<a href="http://www.obeo.fr">Obeo</a>
email;internet:laurent.goubet@obeo.fr
url:http://www.obeo.fr
version:2.1
end:vcard


--------------010404080305000307070501--
Previous Topic:[Xpand] Setting up outlet path through Java
Next Topic:[xPand]Problems generating large strings with xPand
Goto Forum:
  


Current Time: Fri Apr 26 19:48:49 GMT 2024

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

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

Back to the top