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
Member
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:sequence>
<xs:element name="note" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="label" type="xs:ID"/>
<xs:element name="semantics" type="String" minOccurs="0"/>
<xs:any namespace="##other" minOccurs="0"/>
</xs:sequence>
<xs:attributeGroup ref="commonAttributes"/>
</xs:complexType>
</xs:element>
<xs:any namespace="##other" minOccurs="0"/>
</xs:sequence>
<xs:attributeGroup ref="commonAttributes"/>
</xs:complexType>
/code]
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"/>
</xs:attributeGroup>
/code]
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: 29394
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.
Previous Topic:[EMFStore]: What do I to invoke LADPUserVerifier Class
Next Topic:convert ecore to xmi
Goto Forum:
  


Current Time: Mon Jun 25 02:47:55 GMT 2018

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

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

Back to the top