Skip to main content



      Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Generated editor and XSD syntax
Generated editor and XSD syntax [message #488207] Fri, 25 September 2009 18:32 Go to next message
Eclipse UserFriend
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"/>
</xsd:choice>
</xsd:complexType>

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?
Re: Generated editor and XSD syntax [message #488271 is a reply to message #488207] Sun, 27 September 2009 02:32 Go to previous message
Eclipse UserFriend
Soke,

That's https://bugs.eclipse.org/bugs/show_bug.cgi?id=51210. It's best
to ask about EMF on the EMF newsgroup, which I've added to the "to" list
of the reply.


Soke Chua wrote:
> 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"/>
> </xsd:choice>
> </xsd:complexType>
>
> 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?
Re: Generated editor and XSD syntax [message #621404 is a reply to message #488207] Sun, 27 September 2009 02:32 Go to previous message
Eclipse UserFriend
Soke,

That's https://bugs.eclipse.org/bugs/show_bug.cgi?id=51210 It's best
to ask about EMF on the EMF newsgroup, which I've added to the "to" list
of the reply.


Soke Chua wrote:
> 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"/>
> </xsd:choice>
> </xsd:complexType>
>
> 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:Generated editor and XSD syntax
Next Topic:Is it possible to persist hybrid model using Teneo?
Goto Forum:
  


Current Time: Wed Jul 23 08:04:52 EDT 2025

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

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

Back to the top