Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » emof:Package
emof:Package [message #87441] Wed, 06 August 2008 05:26 Go to next message
Swetha is currently offline SwethaFriend
Messages: 12
Registered: July 2009
Junior Member
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 16:16 Go to previous messageGo to next message
William Piers is currently offline William PiersFriend
Messages: 301
Registered: July 2009
Senior Member
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 05:29 Go to previous message
Swetha is currently offline SwethaFriend
Messages: 12
Registered: July 2009
Junior Member
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 Apr 23 16:23:28 GMT 2024

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

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

Back to the top