Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [QVTO](error by transformation from UML to XSD)
[QVTO] [message #494620] Sun, 01 November 2009 10:32 Go to next message
Youssef  is currently offline Youssef Friend
Messages: 16
Registered: July 2009
Junior Member
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 #494946 is a reply to message #494620] Tue, 03 November 2009 11:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dvorak.radek.gmail.com

Hi Youssef,

Would be great if you can provide a code snippet producing the error.
Typically, this is reported for an object instantiation when the compiler
is not
able to determine the model extent (associated with an [out] model
parameter)
in which the new object should live.

Regards,
/Radek

On Sun, 01 Nov 2009 11:32:57 +0100, Youssef <aitlaydi.youssef@gmail.com>
wrote:

> 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 #495901 is a reply to message #494946] Fri, 06 November 2009 15:07 Go to previous messageGo to next message
Youssef  is currently offline Youssef Friend
Messages: 16
Registered: July 2009
Junior Member
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 #495963 is a reply to message #495901] Fri, 06 November 2009 19:11 Go to previous messageGo to next message
Eclipse UserFriend
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 #495965 is a reply to message #495963] Fri, 06 November 2009 19:35 Go to previous messageGo to next message
Youssef  is currently offline Youssef Friend
Messages: 16
Registered: July 2009
Junior Member
Hallo Radek,

thank you, it was a stupid error.
I am sorry
Re: [QVTO] [message #496491 is a reply to message #495965] Tue, 10 November 2009 10:19 Go to previous message
Rahul Chandrashekar is currently offline Rahul ChandrashekarFriend
Messages: 43
Registered: July 2009
Member
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.
Previous Topic:Re: Ecore model from a XML model - not from a XML Schema!
Next Topic:[Query] Defining the meta model
Goto Forum:
  


Current Time: Fri Apr 26 16:31:13 GMT 2024

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

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

Back to the top