jaxb-ri icon indicating copy to clipboard operation
jaxb-ri copied to clipboard

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

Open Tomas-Kraus opened this issue 6 years ago • 24 comments

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 avatar Apr 12 '18 22:04 Tomas-Kraus

  • Issue Imported From: https://github.com/javaee/jaxb-v2/issues/1176
  • Original Issue Raised By:@LanceAndersen
  • Original Issue Assigned To: Unassigned

Tomas-Kraus avatar Sep 21 '18 17:09 Tomas-Kraus

@PiotrKlimczak Commented +1

Tomas-Kraus avatar Apr 19 '18 11:04 Tomas-Kraus

@svaningelgem Commented +1

Tomas-Kraus avatar Jun 20 '18 17:06 Tomas-Kraus

@martindbrown Commented +1

Tomas-Kraus avatar Aug 29 '18 13:08 Tomas-Kraus

@allam001 Commented +1

Tomas-Kraus avatar Sep 12 '18 19:09 Tomas-Kraus

@easmith Commented +1

Tomas-Kraus avatar Sep 20 '18 12:09 Tomas-Kraus

+1

tsaker avatar Oct 25 '18 20:10 tsaker

+1

flann avatar Nov 14 '18 14:11 flann

+1

Mrc0113 avatar Nov 15 '18 15:11 Mrc0113

+1

lkamb avatar Mar 06 '19 23:03 lkamb

+1

Romlengrd avatar Mar 10 '19 18:03 Romlengrd

+1

lecogiteur avatar Mar 19 '19 13:03 lecogiteur

+1

jlholland avatar Apr 10 '19 15:04 jlholland

+1

gline9 avatar Dec 09 '19 21:12 gline9

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

rolpaul avatar Dec 13 '19 14:12 rolpaul

+1

asselmeyer avatar Dec 13 '19 15:12 asselmeyer

+1

On Dec 13, 2019, at 10:07 AM, Christian [email protected] 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

LanceAndersen avatar Dec 13 '19 17:12 LanceAndersen

Any progress on this issue?

gallyamb avatar Feb 12 '20 13:02 gallyamb

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

m0mus avatar Feb 12 '20 18:02 m0mus

+1

khrysenthem avatar Apr 17 '20 13:04 khrysenthem

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

senderic avatar Sep 21 '21 19:09 senderic

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 ?

tomzi8571 avatar May 06 '22 08:05 tomzi8571

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.

Bukama avatar Aug 24 '22 12:08 Bukama

+1

ktor avatar Mar 06 '23 12:03 ktor

+1

sacps001119 avatar Oct 10 '24 02:10 sacps001119