Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » Probblem with XSD generated model editor
Probblem with XSD generated model editor [message #598278] Tue, 27 June 2006 16:27
Daniel Mahler is currently offline Daniel MahlerFriend
Messages: 53
Registered: July 2009
I have an XSD which contains the following.

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++
<xs:element name="triple" substitutionGroup="rng:pattern">
<xs:element ref="ccs:term-exp"/>
<xs:element ref="ccs:term-exp"/>
<xs:element ref="ccs:term-exp"/>
<xs:attribute name="row"/>

<xs:element name="term-exp" abstract="true"/>
<xs:element name="var" substitutionGroup="ccs:term-exp" type="xs:NCName"/>
<xs:element name="term" substitutionGroup="ccs:term-exp"
<xs:element name="literal" substitutionGroup="ccs:term-exp"
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++

I have created an EMF plugin from it in the textbook way.
However, when I use the generated model editor,
it tries to force each of the three children of triple to be a different
type (var/term/literal).
If I make the first child <term>, then the Term Type option is greyed out in
the menu for the next child.

If I edit a model in the text editor:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +++
<?xml version="1.0" encoding="UTF-8"?>
<ccs:triple xmlns:ccs="">
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++

and then open it with the model editor
then I only see (with folding fully expanded)

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++
* platform ...

* Document Root

* <triple> Triple Type

* <term> c
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++

and I do not seem to be able to get at the



I do not understand why the model editor wants to make the childerent
To my best understanding the schema does not imply the constraint.

Previous Topic:Schema - Versoin Control
Next Topic:model editor appearance customization
Goto Forum:

Current Time: Tue Jan 19 13:12:48 GMT 2021

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

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

Back to the top