Skip to main content



      Home
Home » Modeling » QVT-OML » one input model and variable number of output models(one input model and variable number of output model)
one input model and variable number of output models [message #1160284] Mon, 28 October 2013 23:37 Go to next message
Eclipse UserFriend
I build a model for a whole software system with UML,and now I want to transform the UML model to xhtml model.
I have made the xhtml.ecore,but the number of xhtml model is variable.One <<config>><class> mapping one Form.However,I don't know how to generate variable number of output models.

I suppose this result:

one uml model as input model , mutiple xhtml files are generated!
Re: one input model and variable number of output models [message #1160524 is a reply to message #1160284] Tue, 29 October 2013 03:17 Go to previous message
Eclipse UserFriend
Hi

One reasonable way to achieve this would be to map from a UML input
model to a Set of XHTML output models.

The OMG QVTo grammar would appear to allow Set(XHTML) as the output
type; however Eclipse QVTo doesn't.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=420585 raised.

For now, one solution might be to define a trivial MultiXHTML model that
uses EMF's capability to break compositions across multiple files so
that each child XHTML is in a separate file. (I've not used this
capability so cannot offer further advice.)

Regards

Ed Willink


On 29/10/2013 04:37, BaiChuan Nie wrote:
> I build a model for a whole software system with UML,and now I want to
> transform the UML model to xhtml model.
> I have made the xhtml.ecore,but the number of xhtml model is
> variable.One <<config>><class> mapping one Form.However,I don't know
> how to generate variable number of output models.
>
> I suppose this result:
>
> one uml model as input model , mutiple xhtml files are generated!
Previous Topic:metamodel declaration & UML profile
Next Topic:Writing it as extension for QVTo in Java
Goto Forum:
  


Current Time: Sun Jul 06 11:20:18 EDT 2025

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

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

Back to the top