Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Generated editor and XSD syntax
Generated editor and XSD syntax [message #621403] Fri, 25 September 2009 22:32
Soke Chua is currently offline Soke ChuaFriend
Messages: 2
Registered: September 2009
Junior Member
I am new to EMF. I have an xsd complex element that make use of the <choice> element:

<xsd:complexType name="objectreference">
<xsd:choice maxOccurs="1" minOccurs="1">
<xsd:element ecore:reference="itime:Person" maxOccurs="1" minOccurs="0" name="personreference" type="xsd:anyURI"/>
<xsd:element ecore:reference="itime:OrganizationRole" maxOccurs="1" minOccurs="0" name="rolereference" type="xsd:anyURI"/>
<xsd:element ecore:reference="itime:Service" maxOccurs="1" minOccurs="0" name="servicereference" type="xsd:anyURI"/>

However, the generated editor from the ecore does not honor the <choice> validation and allows value to be entered on all three elements within the <choice> tag.

Am I missing something that is obvious?
Previous Topic:How can I put together TransactionalEditingDomain and a monitored CommandStack
Next Topic:Generated editor and XSD syntax
Goto Forum:

Current Time: Sat Mar 02 21:08:41 GMT 2024

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

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

Back to the top