Skip to main content



      Home
Home » Archived » M2M (model-to-model transformation) » emof:Package
emof:Package [message #87441] Wed, 06 August 2008 01:26 Go to next message
Eclipse UserFriend
Hi,

I am trying to write ATL rules for mapping from a MetaModel A to MetaModel
B.
The MetaModel, I am using has the following lines of codes in the begining

<?xml version="1.0" encoding="UTF-8"?>
<emof:Package xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:emof="http://schema.omg.org/spec/mof/2.0/emof.xmi" xmi:id="xyz"
name="xyz" uri="http://xyz">

I am getting the following error:

SEVERE: org.xml.sax.SAXParseException: The prefix "emof" for element
"emof:Package" is not bound.
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1Diagnos ticWrappedException:
org.xml.sax.SAXParseException: The prefix "emof" for element
"emof:Package" is not bound.


I am currently using Eclipse Ganymede 3.4 verison.

I am a bit confused.I want to know whether ATL accepts the EMOF format
and also any hints how we can solve this issue.



Regards,
Swetha.
[ATL] Re: emof:Package [message #87576 is a reply to message #87441] Wed, 06 August 2008 12:16 Go to previous messageGo to next message
Eclipse UserFriend
Hello,

ATL doesn't support .emof files as metamodels, but EMF does. So you can
programmatically load your metamodel using the EMOF Factory and then
reserialize it into .ecore file.

But I will investigate on why ATL can't recognize emof files.

Best regards,

William

Swetha a écrit :
> Hi,
>
> I am trying to write ATL rules for mapping from a MetaModel A to
> MetaModel B.
> The MetaModel, I am using has the following lines of codes in the begining
>
> <?xml version="1.0" encoding="UTF-8"?>
> <emof:Package xmi:version="2.0"
> xmlns:xmi="http://www.omg.org/XMI"
> xmlns:emof="http://schema.omg.org/spec/mof/2.0/emof.xmi" xmi:id="xyz"
> name="xyz" uri="http://xyz">
>
> I am getting the following error:
>
> SEVERE: org.xml.sax.SAXParseException: The prefix "emof" for element
> "emof:Package" is not bound.
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1Diagnos ticWrappedException:
> org.xml.sax.SAXParseException: The prefix "emof" for element
> "emof:Package" is not bound.
>
>
> I am currently using Eclipse Ganymede 3.4 verison.
>
> I am a bit confused.I want to know whether ATL accepts the EMOF format
> and also any hints how we can solve this issue.
>
>
>
> Regards,
> Swetha.
>
Re: [ATL] Re: emof:Package [message #87638 is a reply to message #87576] Thu, 07 August 2008 01:29 Go to previous message
Eclipse UserFriend
Hi Williams,

Thanks for replying.

Can you please explain me how I can programmatically load my metamodel
using the EMOF Factory and then reserialize it into .ecore file.


Regards,
Swetha.
Previous Topic:[ATL] allowInterModelReferences = true by code
Next Topic:[ATL] Filtering target elements based on global variable
Goto Forum:
  


Current Time: Tue Jul 22 15:52:23 EDT 2025

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

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

Back to the top