Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » ecore model(ecore model for CLiXML rules)
ecore model [message #559257] Thu, 16 September 2010 08:03 Go to next message
Kosala Yapa is currently offline Kosala YapaFriend
Messages: 159
Registered: September 2010
Senior Member
Hi,

Any opinion on how to create an ecore model for the following rule?

<forall var="service" in="/Context/Service">
<or>
<and>
<equal op1="$service/Currency" op2="'GBP'"/>
<lessOrEqual op1="$service/Cost" op2="'0.2'"/>
</and>
<and>
<equal op1="$service/Currency" op2="'Euro'"/>
<lessOrEqual op1="$service/Cost" op2="'0.3'"/>
</and>
</or>
</forall>

This is a part of CliXML rule.

Thanks.
Kosala
Re: ecore model [message #559264 is a reply to message #559257] Thu, 16 September 2010 08:30 Go to previous messageGo to next message
Sylvain EVEILLARD is currently offline Sylvain EVEILLARDFriend
Messages: 556
Registered: July 2009
Senior Member
Use EMF and the CliXML xsd.
Re: ecore model [message #559294 is a reply to message #559264] Thu, 16 September 2010 09:58 Go to previous messageGo to next message
Kosala Yapa is currently offline Kosala YapaFriend
Messages: 159
Registered: September 2010
Senior Member
Thank you very much for your info.

Could you please explain this in detail in steps?

EMF generator model, or empty EMF project, or EMF project.

I tried EMF project, an error comes when i load clix.xsd file, "Problems were detected while validating and converting the XML Schemas"

Error:XSD:The element ' http://www.clixml.org/clix/1.0#author ' may not overlap with a wildcard allowing its namespace: URI file:/.../clix.xsd Line 124 Column 5

K

[Updated on: Thu, 16 September 2010 10:10]

Report message to a moderator

Re: ecore model [message #559315 is a reply to message #559257] Thu, 16 September 2010 11:27 Go to previous messageGo to next message
Sylvain EVEILLARD is currently offline Sylvain EVEILLARDFriend
Messages: 556
Registered: July 2009
Senior Member
You'd better ask those EMF related questions on the corresponding forum I think.
Re: ecore model [message #559398 is a reply to message #559294] Thu, 16 September 2010 14:08 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Kosala,

The schema has errors? If you put it in the workspace, and open it with
the schema editor, does that help figure out what the problems in that
schema are?


Kosala wrote:
> Thank you very much for your info.
>
> Could you please explain this in detail in steps?
>
> EMF generator model, or empty EMF project, or EMF project.
>
> I tried EMF project, an error comes when i load clix.xsd file,
> "Problems were detected while validating and converting the XML Schemas"
>
> K


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: ecore model [message #559473 is a reply to message #559398] Thu, 16 September 2010 18:15 Go to previous message
Kosala Yapa is currently offline Kosala YapaFriend
Messages: 159
Registered: September 2010
Senior Member
Merks,

good idea. I will have a look. Thank you very much.

Kosala
Previous Topic:[ATL] UML <Enumeration> is OclUndefined
Next Topic:ATL issue
Goto Forum:
  


Current Time: Fri Apr 19 21:18:35 GMT 2024

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

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

Back to the top