Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » xsi:schemaLocation in output XMI(xsi:schemaLocation)
xsi:schemaLocation in output XMI [message #1764595] Wed, 31 May 2017 14:40 Go to next message
Carlos Sáenz  is currently offline Carlos Sáenz Friend
Messages: 6
Registered: May 2017
Junior Member

I properly translate a .xmi UML model into another model which follows a custom .ecore metamodel using a simple set of ATL rules. The point is that the output .xmi model doesn't have the "xsi:schemaLocation" attribute, and when I try to open the file in Eclipse I get the following error: "org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri '<metamodel_namespace>' not found.

This problem is solved when I manually add xsi:schemaLocation in the XMI tag, for example:
<xmi:XMI xmi:version="2.0" xmlns:xmi="<xmi_namespace>" xmlns:prov="<metamodel_namespace>" xsi:schemaLocation="<metamodel_namespace> file<custome_metamodel_path>.ecore">

I consider that adding the xsi:schemaLocation attribute manually is not a suitable solution, and I would like to know if anyone knows a possible solution to add the xsi:schemaLocation automatically when I generate the output model.



Re: xsi:schemaLocation in output XMI [message #1765126 is a reply to message #1764595] Tue, 06 June 2017 20:54 Go to previous message
Dennis Wagelaar is currently offline Dennis WagelaarFriend
Messages: 379
Registered: September 2012
Location: Belgium
Senior Member


Previous Topic:Lazy rule: problem with a counter
Next Topic:Executing an operation of a class
Goto Forum:

Current Time: Thu Nov 15 08:47:05 GMT 2018

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

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

Back to the top