Skip to main content



      Home
Home » Modeling » EMF » genmodel from xsd: error
genmodel from xsd: error [message #498669] Tue, 17 November 2009 18:45 Go to next message
Eclipse UserFriend
Hi,

I have an xsd from which I want to generate a genmodel. It works with
the unmodified xsd. However, I'd like to change the type of an attribute
to anyURI and the ecore:reference to an element, but when doing this, I
always get the following error messages:

Fatal: DOM: The prefix "ecore" for attribute "ecore:reference associated
with an element type "xs:attribute" is not bound.

Error: XSD: Element reference '#Parameter' is unresolved.

Can you tell me what they mean? The changes I make to the xsd file are:

<xs:attribute name="Source" type="xs:string" use="required"/>

is changed to

<xs:attribute name="Source" type="xs:anyURI" use="required"
ecore:reference="FB"/>

Thanks,
Matthias
Re: genmodel from xsd: error [message #498714 is a reply to message #498669] Wed, 18 November 2009 05:09 Go to previous message
Eclipse UserFriend
Hi,

I am also a beginner in this field. But what you need in this case is an
XML namespace declaration:
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
Put it into to root element (i.e. xs:schema) so that you can use ecore
attributes everywhere in your document.

Csaba
Previous Topic:[databinding to reference changes]
Next Topic:Resources that are removed from the ResourceSet reappear
Goto Forum:
  


Current Time: Sat Nov 08 00:02:59 EST 2025

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

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

Back to the top