Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Cannot create genmodel from valid schema.(two xs:IDs causes error)
Cannot create genmodel from valid schema. [message #1763490] Tue, 16 May 2017 16:39 Go to next message
Geoffry Roberts is currently offline Geoffry RobertsFriend
Messages: 52
Registered: July 2016
I have a 3rd party schema I cannot change. Genmodel is throwing and error because there the schema specifies an element and an attribute with the type xs:ID.

Is there a workaround?

I have posted parts of the schema below. It is an IEEE thing and I must assume has been correctly done. My issue is with the parts in red.

Thanks so much

some schema elements
[code] <xs:complexType name="notesType">
<xs:element name="note" minOccurs="0" maxOccurs="unbounded">
<xs:element name="label" type="xs:ID"/>
<xs:element name="semantics" type="String" minOccurs="0"/>
<xs:any namespace="##other" minOccurs="0"/>
<xs:attributeGroup ref="commonAttributes"/>
<xs:any namespace="##other" minOccurs="0"/>
<xs:attributeGroup ref="commonAttributes"/>
more schema elements
[code] <xs:attributeGroup name="commonAttributes">
<xs:attribute name="notes" type="xs:IDREFS" use="optional"/>
<xs:attribute name="idtag" type="xs:ID" use="optional"/>
<xs:anyAttribute namespace="##other"/>
more schema elements
Re: Cannot create genmodel from valid schema. [message #1763503 is a reply to message #1763490] Tue, 16 May 2017 18:38 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 32163
Registered: July 2009
Senior Member
It seems bogus to me, The "label" element isn't optional and although "idtag" is optional, no element in XML can have more than one ID, so no instance could ever make use of "idtag" and be valid. But I suppose you can just ignore it and continue with the wizard.

Ed Merks
Professional Support:
Previous Topic:[EMFStore]: What do I to invoke LADPUserVerifier Class
Next Topic:convert ecore to xmi
Goto Forum:

Current Time: Thu Jan 27 06:30:25 GMT 2022

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

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

Back to the top