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

Bug 339800

Summary: [serializer] Serializer fails when Model is derived from XSD
Product: [Modeling] TMF Reporter: Karsten Becker <eclipse>
Component: Xtext BacklogAssignee: Project Inbox <tmf.xtext-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: moritz.eysholdt
Version: unspecified   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Karsten Becker CLA 2011-03-12 12:32:56 EST
Build Identifier: I20110310-1119

Based upon a XSD I generated an ecore Model. I then created a XText project based on this Model. This almost works, except for serializing a model. The problem in this model is most likely this:
28:DocumentRoot.module->ModuleType.title->TitleIncludable: "author { [ firstname "Karsten" surname "Becker" ] }...":
  -> TitleIncludable_TextAssignment_0_1_1_0: All 1 values of Text(TitleIncludable).text have been consumed. More are needed to continue here.
  -> TitleIncludable_AbbreviationAssignment_0_1_1_1: All 1 values of Text(TitleIncludable).abbreviation have been consumed. More are needed to continue here.

Reproducible: Always

Steps to Reproduce:
Download the workspace at http://karsten-becker.de/workspace27.zip
Run the RunStandalone class in the generator project.
What I attempted here is a round-trip: disk -> model -> xml -> model -> disk
Comment 1 Karsten Becker CLA 2011-03-12 12:35:44 EST
Sorry, link was meant to be http://karsten-becker.de/workspace37.zip

Addendum: The XML output looks just fine.