Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356504 - Schema Generation differs from RI having form="qualified" on elements
Summary: Schema Generation differs from RI having form="qualified" on elements
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-01 14:19 EDT by Denise Smith CLA
Modified: 2022-06-09 10:25 EDT (History)
1 user (show)

See Also:


Attachments
Proposed changes and test (4.85 KB, patch)
2011-09-01 14:45 EDT, Denise Smith CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Denise Smith CLA 2011-09-01 14:19:00 EDT
When a schema has elementformqualified false and an element has the same uri of the targetnamespace MOXy generates the following:
   <xsd:element maxOccurs="unbounded" minOccurs="0" ref="x:test"/>

   <xsd:element name="test" type="x:employee-type"/>

But could instead generate:
   <xsd:element form="qualified" maxOccurs="unbounded" minOccurs="0" name="test" type="x:employee-type"/>
Comment 1 Denise Smith CLA 2011-09-01 14:45:21 EDT
Created attachment 202630 [details]
Proposed changes and test
Comment 2 Denise Smith CLA 2011-09-13 11:30:46 EDT
Fixed as per patch.  Added a "form" attribute to the SimpleComponent class in our schema model
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:25:36 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink