Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » How to read model of any metamodel in Acceleo?
How to read model of any metamodel in Acceleo? [message #1832093] Tue, 08 September 2020 17:33 Go to next message
Fatima Rani is currently offline Fatima RaniFriend
Messages: 15
Registered: April 2020
Junior Member
Hi!

i want to read model of the meta-model in acceleo , what should i provide here?

for example model is:

<?xml version="1.0" encoding="UTF-8"?>
<World xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns="friends">
<people name="Lea" friendOf="//@people.1 //@people.3"/>
<people name="Lissette"/>
<people name="John"/>
<people name="Fatima" friendOf="//@people.1" enemyOf="//@people.2"/>
</World>

i want to parse between different node , ref etc

  • Attachment: acc.png
    (Size: 221.22KB, Downloaded 5 times)
Re: How to read model of any metamodel in Acceleo? [message #1832149 is a reply to message #1832093] Thu, 10 September 2020 07:54 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6842
Registered: July 2009
Senior Member
Hi

You use of metamodel and model is vague.

If you want to use access the metamodel of the model you have provided, you can't since you have an ill-formed model. If you attempt to open it in the Sample Ecore Model Editor you get multiple errors
because xmlns="friends" is not a reference to a registered model, unlike xmlns:xmi="http://www.omg.org/XMI" and becuase there is no associated xsi:schemaLocation to map "friends" to e.g. Friends.ecore.

Regards

Ed Willink




Previous Topic:Acceleo
Next Topic:Acceleo build
Goto Forum:
  


Current Time: Mon Sep 21 20:29:59 GMT 2020

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

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

Back to the top