Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Domain issue using multiple model schemas
Domain issue using multiple model schemas [message #123089] Tue, 01 May 2007 10:18 Go to next message
Eclipse UserFriend
Originally posted by: renee.steiner.intervoice.com

I am a newbie to EMF and GMF. Hopefully, I will explain my problem
properly.

I have two simple schemas.

The first schema defines a child element as xs:any
The second schema defines an element I wish to logically insert into the
first schema at the xs:any element location.

The problem I am having is combining the two models. GMF says that the
child element in the 2nd schema is not part of the domain of the 1st
schema. This happens when I try to get the GMFGen Model.

In our architecture, we anticipate having multiple schemas and allowing
users to extend our model by adding a new schema at any time so we need
some abstraction in the model.

It has been suggested that perhaps GMF doesn't handle wildcard feature
maps. Could that be the root of the problem?

I appreciate all comments and help that can be given. Thanks!

--------------first schema--------------------------
<?xml version="1.0" encoding="ISO-8859-1"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">

<xs:element name="persons">
<xs:complexType>
<xs:sequence>
<xs:element ref="person"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="person">
<xs:complexType>
<xs:sequence>
<xs:element name="firstname" type="xs:string"/>
<xs:element name="lastname" type="xs:string"/>
<xs:any minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>



--------------second schema--------------------------
<?xml version="1.0" encoding="ISO-8859-1"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.children.com"
xmlns="http://www.children.com" elementFormDefault="qualified">

<xs:include
schemaLocation="../../com.intervoice.familymodel/model/family.xsd "></xs:include>
<xs:element name="children">
<xs:complexType>
<xs:sequence>
<xs:element name="childname" type="xs:string" maxOccurs="unbounded"
/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
Re: Domain issue using multiple model schemas [message #123928 is a reply to message #123089] Thu, 03 May 2007 14:19 Go to previous message
Eclipse UserFriend
Originally posted by: renee.steiner.intervoice.com

Any ideas, yet? :)
Previous Topic:GEF or GMF editor for Dynamic eCore models
Next Topic:Mindmap tutorial - mindmap xml file and EMF relationship
Goto Forum:
  


Current Time: Thu Jul 24 17:57:01 EDT 2025

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

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

Back to the top