Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Modeling (top-level project) » Ecore mapping of xsd:restriction
Ecore mapping of xsd:restriction [message #381767] Mon, 26 November 2007 09:10 Go to next message
Fabrice Dubach is currently offline 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
Re: Ecore mapping of xsd:restriction [message #381768 is a reply to message #381767] Mon, 26 November 2007 09:11 Go to previous message
Fabrice Dubach is currently offline Fabrice Dubach
Messages: 43
Registered: July 2009
Member
Sorry for using the wrong newsgoup, I forward to the EMF newsgroup.
Re: Ecore mapping of xsd:restriction [message #602389 is a reply to message #381767] Mon, 26 November 2007 09:11 Go to previous message
Fabrice Dubach is currently offline Fabrice Dubach
Messages: 43
Registered: July 2009
Member
Sorry for using the wrong newsgoup, I forward to the EMF newsgroup.
Previous Topic:Ecore mapping of xsd:restriction
Next Topic:Re: Doubts about the project
Goto Forum:
  


Current Time: Fri Aug 01 12:14:01 EDT 2014

Powered by FUDForum. Page generated in 0.01492 seconds