[QVTO] [message #494620] |
Sun, 01 November 2009 05:32  |
Eclipse User |
|
|
|
Hallo,
by the transformation from UML::Package to XSD::XSDschema, I become the following error : "Cannot infer model extent for the type 'xsd::XSDSchema'. Specify extent explicitly". I don't know what does mean.
please help me.
thanks!
|
|
|
|
|
Re: [QVTO] [message #495963 is a reply to message #495901] |
Fri, 06 November 2009 14:11   |
Eclipse User |
|
|
|
Originally posted by: dvorak.radek.gmail.com
Hi Youssef,
You declare 2 input model parameters, so the compiler complains it can't
find an output model extent where to create new objects.
Note that your second model parameter does not specify direction kind,
taking [in] by default.
I admit, it is a bad message ;). we have to improve that.
Regards,
/Radek
On Fri, 06 Nov 2009 16:07:25 +0100, Youssef <aitlaydi.youssef@gmail.com>
wrote:
> Hallo Radek,
>
> thank you for your answer.
> a code seems:
> modeltype UML "strict" uses 'http://www.eclipse.org/uml2/3.0.0/UML';
> modeltype XSD "strict" uses 'http://www.eclipse.org/xsd/2002/XSD';
>
>
> transformation uml2xsd(in uml:UML, xsd:XSD);
>
> main() {
> uml.objectsOfType(UML::Package) -> map package2schema();
> }
>
> mapping UML::Package::package2schema() : XSD::XSDSchema {
> // here the error
> // Cannot infer model extent for the type
> 'xsd::XSDSchema'. Specify extent explicitly
> }
|
|
|
|
Re: [QVTO] [message #496491 is a reply to message #495965] |
Tue, 10 November 2009 05:19  |
Eclipse User |
|
|
|
Hi Youssef,
I saw one of your contributions in the Eclipse news group on UML to XML transformation using QVT. Since i am new to this, can you please mail me how did you achive it with some examples
Regds
Rahul.
|
|
|
Powered by
FUDForum. Page generated in 0.15739 seconds