Skip to main content



      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 12:39 Go to next message
Eclipse UserFriend
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 14:38 Go to previous message
Eclipse UserFriend
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: Thu Jun 12 18:45:09 EDT 2025

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

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

Back to the top