eclipse-ee4j / jaxb-ri

Jaxb RI
https://eclipse-ee4j.github.io/jaxb-ri/
BSD 3-Clause "New" or "Revised" License
205 stars 111 forks source link

Implement JAXB / XJC support for XML Schema version 1.1 (XSD) #1176

Open Tomas-Kraus opened 6 years ago

Tomas-Kraus commented 6 years ago

This issue was previously reported via https://bugs.openjdk.java.net/browse/JDK-8197490

A DESCRIPTION OF THE REQUEST : This enhancement request is to improve Java code generation for XML Bindings in order to support version 1.1 of XML schemas.

JUSTIFICATION : XSD 1.1 was published in 2012 and we still have no way to support it with JAXB.

Reference: https://www.w3.org/TR/xmlschema11-1/

An example of limitation this brings to Java is when trying to implement RFCs which use XSD 1.1 features. Ex: RFC 7852 "provided-by.xsd"

provided-by.xsd; lineNumber: 43; columnNumber: 55; cos-nonambig: "urn:ietf:params:xml:ns:EmergencyCallData:ProviderInfo":EmergencyCallData.ProviderInfo and WC[##other:"urn:ietf:params:xml:ns:EmergencyCallData"] (or elements from their substitution group) violate "Unique Particle Attribution". During validation against this schema, ambiguity would be created for those two particles.

This is acceptable with XSD 1.1.

CUSTOMER SUBMITTED WORKAROUND : I could not find any workaround. One would need to give up xml bindings and start using Xerces to be able to validate against XSD 1.1.

Tomas-Kraus commented 6 years ago
Tomas-Kraus commented 6 years ago

@PiotrKlimczak Commented +1

Tomas-Kraus commented 6 years ago

@svaningelgem Commented +1

Tomas-Kraus commented 6 years ago

@martindbrown Commented +1

Tomas-Kraus commented 6 years ago

@allam001 Commented +1

Tomas-Kraus commented 6 years ago

@easmith Commented +1

tsaker commented 6 years ago

+1

flann commented 5 years ago

+1

Mrc0113 commented 5 years ago

+1

lkamb commented 5 years ago

+1

Romlengrd commented 5 years ago

+1

lecogiteur commented 5 years ago

+1

jlholland commented 5 years ago

+1

gline9 commented 4 years ago

+1

rolpaul commented 4 years ago

+1 it is in the top ten voted issues of this project, I guess

asselmeyer commented 4 years ago

+1

LanceAndersen commented 4 years ago

+1

On Dec 13, 2019, at 10:07 AM, Christian notifications@github.com wrote:

+1

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/eclipse-ee4j/jaxb-ri/issues/1176?email_source=notifications&email_token=ABQPFOZE756YKDDNHUKHUMTQYOQMPA5CNFSM4FWSH2E2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEG2HOMI#issuecomment-565475121, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQPFO65R5HZEP4UZQSJF4LQYOQMPANCNFSM4FWSH2EQ.

My best, Lance

Lance Andersen USTA EMA President and CEO PTR Professional 5A USPTA Elite Professional TIA Global Cardio Tennis-Master Trainer USRSA Mobile: 978 857-0446 luckydogtennis.com -- luckydogtennis.com/TennisBlog -- cardiotennis.com

gallyamb commented 4 years ago

Any progress on this issue?

m0mus commented 4 years ago

No, unfortunately there is no progress. If you want to contribute a PR we would appreciate it.

khrysenthem commented 4 years ago

+1

senderic commented 3 years ago

I'm also interested in this. Any update on progress?

tomzi8571 commented 2 years ago

I can see there has been no progress on this so far - Do you guys know of any other ways to compile java source from xsd 1.1? Does anyone have experience with https://github.com/jaxsb/jaxsb ?

Bukama commented 2 years ago

There are (at least) two issues for this: this (#1176) and #994.

Aside from my duplication information: I would really like to see support for XSD 1.1 in JAXB.

ktor commented 1 year ago

+1

sacps001119 commented 1 month ago

+1