Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 333311 - XSD any cardinality lost
Summary: XSD any cardinality lost
Status: CLOSED FIXED
Alias: None
Product: EMF
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Ed Merks CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-29 12:27 EST by Antonio CLA
Modified: 2011-05-10 11:57 EDT (History)
0 users

See Also:


Attachments
Original XSD (300 bytes, application/xml)
2010-12-29 12:30 EST, Antonio CLA
no flags Details
XSD after XSD-Ecore-XSD roundtrip (265 bytes, application/xml)
2010-12-29 12:31 EST, Antonio CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Antonio CLA 2010-12-29 12:27:37 EST
Build Identifier: 20100617-1415

When going from XSD -> Ecore -> XSD, the cardinality of any wildcards is lost. That's because the EcoreSchemaBuilder.buildElementWildcard method does not set the XSDParticle's multiplicity. See attachments for sample XSD files.

Reproducible: Always

Steps to Reproduce:
1. Roundtrip (XSD -> Ecore -> XSD) the attached XSD
Comment 1 Antonio CLA 2010-12-29 12:30:44 EST
Created attachment 185883 [details]
Original XSD
Comment 2 Antonio CLA 2010-12-29 12:31:24 EST
Created attachment 185884 [details]
XSD after XSD-Ecore-XSD roundtrip
Comment 3 Ed Merks CLA 2011-01-18 21:00:31 EST
Thanks for the simple test case.  The fix has been committed to CVS for 2.7.
Comment 4 Ed Merks CLA 2011-05-10 11:57:40 EDT
The changes are available in EMF 2.7 M7 or an earlier build.