Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 333311

Summary: XSD any cardinality lost
Product: [Modeling] EMF Reporter: Antonio <a2ndrade>
Component: CoreAssignee: Ed Merks <Ed.Merks>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Original XSD
none
XSD after XSD-Ecore-XSD roundtrip none

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.