Skip to main content


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 #602380] Mon, 26 November 2007 14:10
Fabrice Dubach is currently offline Fabrice DubachFriend
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
Previous Topic:tooling workflow
Next Topic:Ecore mapping of xsd:restriction
Goto Forum:
  


Current Time: Tue Apr 23 14:23:58 GMT 2024

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

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

Back to the top