Uploaded image for project: 'XMLBeans'
  1. XMLBeans
  2. XMLBEANS-299

Support substitution groups when the substitution is compiled in a different jar

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: Version 2.2, Version 2.2.1
    • Fix Version/s: TBD
    • Component/s: Binding
    • Labels:
      None

      Description

      XMLBeans doesn't currently support substitution groups where the head element is compiled in a jar and the substitutions are compiled at a later time in a different jar.

      Because XMLBeans doesn't have the opportunity to save in the serialized xsb information about substitution groups (since these do not exist at the time the xsb is created) then it is forced to assume that any element can be a substitution for anything else and the only way to reliably tell is to load the element declaration. But loading the element declaration each time two elements are compared for QName equality is going to be very expensive even if loaded from the cache. This whole thing will need to be enabled on-request and have its separate codepath.

        Attachments

          Activity

            People

            • Assignee:
              radup Radu Preotiuc
              Reporter:
              radup Radu Preotiuc
            • Votes:
              7 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: