javaee / jaxb-v2

Other
210 stars 99 forks source link

issue with schema generation if no simple types in schema #426

Closed glassfishrobot closed 15 years ago

glassfishrobot commented 17 years ago

Hello, Please see the attached schemas. Also, see the attached xml. The code generated by xjc does not have any methods to get the value types. The thing with these schemas is that it has extensions and the all the data types including the base types are complex. Some xml is:

Jones Paul

So the Jones and Paul are not available in the generated objects when the xml file is unmarshalled,

Environment

Operating System: All Platform: All

Affected Versions

[2.1.4]

glassfishrobot commented 17 years ago

Reported by apoorve

glassfishrobot commented 17 years ago

apoorve said: Created an attachment (id=207) core xsd

glassfishrobot commented 17 years ago

apoorve said: Created an attachment (id=208) base XSD

glassfishrobot commented 17 years ago

apoorve said: Created an attachment (id=209) base XSD

glassfishrobot commented 17 years ago

apoorve said: Created an attachment (id=210) Narrative Block

glassfishrobot commented 17 years ago

apoorve said: Created an attachment (id=211) base XSD

glassfishrobot commented 17 years ago

apoorve said: Created an attachment (id=212) base xsd

glassfishrobot commented 17 years ago

apoorve said: Created an attachment (id=213) bindings file

glassfishrobot commented 16 years ago

kohsuke said: The gist of the issue is the following type hierarchy:

What we should check is what it means to be mixed=true when the content type is empty. Otherwise it appears to me that the ED type should be generated in the mixed content style (i.e., List) Perhaps related to issue #404?
glassfishrobot commented 16 years ago

snajper said: Will try to look at this for 2.1.10.

glassfishrobot commented 15 years ago

snajper said: We introduced customization some time ago to enable better handling of extensions/restrictions in schemas with mixed content. Please see: http://blogs.sun.com/mgrebac/entry/handling_extended_mixed_content_in

glassfishrobot commented 17 years ago

File: bindings.xjb Attached By: apoorve

glassfishrobot commented 17 years ago

File: CDA.xsd Attached By: apoorve

glassfishrobot commented 17 years ago

File: datatypes-base.xsd Attached By: apoorve

glassfishrobot commented 17 years ago

File: datatypes.xsd Attached By: apoorve

glassfishrobot commented 17 years ago

File: NarrativeBlock.xsd Attached By: apoorve

glassfishrobot commented 17 years ago

File: POCD_MT000040.xsd Attached By: apoorve

glassfishrobot commented 17 years ago

File: voc.xsd Attached By: apoorve

glassfishrobot commented 17 years ago

Was assigned to jaxb-issues

glassfishrobot commented 7 years ago

This issue was imported from java.net JIRA JAXB-426

glassfishrobot commented 15 years ago

Marked as fixed on Sunday, February 15th 2009, 6:59:34 pm