Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » Problem with tags including ":"
Problem with tags including ":" [message #1824119] Wed, 08 April 2020 09:00 Go to next message
Andreas Bäuerle is currently offline Andreas BäuerleFriend
Messages: 11
Registered: April 2020
Junior Member
Hello and thanks for taking a look at my problem!

I am currently working on an ATL transformation. The target model has the requirement to only allow for certain xml-tags. Just like in:

<uml:Model xmi:version="2.1" xmlns:xmi="anything" xmlns:uml="anything" xmi:id="anything" name="backwardstransform">
</uml:Model>


I did some research and managed to find the solution for both xmi:id and xmi:type. However I still cant handle uml:Model.

Is there any way that ATL, outputs them as a tag?

Sincerely, Andreas
Re: Problem with tags including ":" [message #1830720 is a reply to message #1824119] Sat, 01 August 2020 13:24 Go to previous message
Dennis Wagelaar is currently offline Dennis WagelaarFriend
Messages: 581
Registered: September 2012
Location: Belgium
Senior Member

EMF normally takes care of the XML/XMI syntax, not ATL. ATL just writes out a graph of (E-)objects, and then asks EMF to save them to file. The example you gave is a standard UML model, so you can probably just use the Eclipse UML plug-in, which takes care of the correct XMI syntax. You can tweak how EMF loads and saves files using custom ResourceFactory classes, and tweaking their options. EMF customization usually means writing your own java code or Eclipse plug-in. Here's a nice write-up of what you can do with EMF model loading and saving: https://www.vogella.com/tutorials/EclipseEMFPersistence/article.html

Cheers,
Dennis
Previous Topic:if else statment in a rule transformation
Next Topic:ATL problem with nested source model
Goto Forum:
  


Current Time: Sat Nov 11 08:18:10 GMT 2023

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

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

Back to the top