Ecore mapping of xsd:restriction [message #602380] |
Mon, 26 November 2007 14:10 |
Fabrice Dubach Messages: 43 Registered: July 2009 |
Member |
|
|
Hi,
I use an XML Schema to generate my EMF model. My xsd looks something like
this :
<xsd:complexType name="Identifier">
<xsd:simpleContent>
<xsd:extension base="xsd:normalizedString">
<xsd:attribute name="uri" type="xsd:anyURI" use="optional" />
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:complexType name="SpecificIdentifier">
<xsd:simpleContent>
<xsd:restriction base="IdentifierType">
<xsd:attribute name="uri" type="xsd:anyURI" use="optional"
ecore:reference="MyObject"/>
</xsd:restriction>
</xsd:simpleContent>
</xsd:complexType>
<xsd:complexType name="MyObject">
... Something....
</xsd:complexType>
I expected that my "SpecificIdentifier" is viewed and generated as an
EReference (to a MyObject type), but it isn't.
What's wrong ? What can I do ? (knowing that my xsd is not really changeable
because of serialisation's questions)
Thanks for any help,
Fabrice DUBACH
|
|
|
Powered by
FUDForum. Page generated in 0.03128 seconds