Book a Demo

Author Topic: import of XSD choice  (Read 2856 times)

andreasbuykx

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
import of XSD choice
« on: January 23, 2007, 04:30:17 am »
Hi all,

I imported an XSD which contains a choice having several elements of complexType. This resulted (to mild surprise) in a class with modelType choice that embedded classes that represent the elements in the choice. There were no associations though between the embbedded classes and the embedding class. Generating XSD from this imported model went OK (after setting tagged-value anonymousRole to false). However, when I tried to do the same trick in a 'native' EA model and generate XSD from it, this produced an invalid XSD: the embedded classes were defined outside of the choice produced for the embedding class, and the choice was empty. I meticulously compared properties and tagged-values for both models/diagrams but found no differences.

  • Did anyone experience the same?
  • Is the embedded classes approach the right way to model a choice?
  • If it is, how can I make sure valid XSD gets generated?


Regards,
Andreas

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: import of XSD choice
« Reply #1 on: January 23, 2007, 09:58:36 am »
Please post a bug report to Sparx. You can get to the page by using the Support link in the top menu of the forum page. If you need to refer to something in your model, you can reach the page from the EA main menu via Help | On-line Resources | Bug Report Page.
No, you can't have it!