Domain issue using multiple model schemas [message #123089] |
Tue, 01 May 2007 10:18  |
Eclipse User |
|
|
|
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>
|
|
|
|
Powered by
FUDForum. Page generated in 0.23588 seconds