Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8197490

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

    XMLWordPrintable

Details

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: