one input model and variable number of output models [message #1160284] |
Mon, 28 October 2013 23:37  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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!
|
|
|
Powered by
FUDForum. Page generated in 0.03515 seconds