|
(no subject) [message #687028 is a reply to message #673383] |
Mon, 23 May 2011 16:37 |
Ed Merks Messages: 33140 Registered: July 2009 |
Senior Member |
|
|
Hauke,
Comments below.
Hauke Fuhrmann wrote:
> Hi there,
>
> I start with an Ecore model and want to generate a plain XSD from it
> (no XMI and no references to Ecore). Still, I'd like to be able to
> validate whether references are correctly set outside EMF. In XSD this
> is possible via IDREF and IDREFS attributes.
> By default the references are typed as simple Strings.
> How can I configure the EcoreSchemaBuilder to create such XSD that
> uses IDREFs at Ecore references between objects?
You're using the Export... capability? You're getting anyURI but want
IDREF? That's controlled by isResolveProxies
> The other way round seems to work. Starting with an XSD that uses
> IDREFs results in proper references in an Ecore:
> http://www.eclipse.org/modeling/emf/docs/overviews/XMLSchemaToEcoreMapping.pdf
>
> How do I get the reverse?
So if you have that working and export the schema again, what happens?
>
> Cheers,
> Hauke
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03124 seconds