Uploaded image for project: 'Xerces2-J'
  1. Xerces2-J
  2. XERCESJ-1701

Xerces-J 2.12.0: XSD 1.1 PK constraint scalability issue

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.12.0
    • 2.12.0
    • Windows 10, 64-bit

    Description

      Hello,

      A test case is very simple:

      • XML file, size 700 MB
      • XSD file

      XSD is enforcing the following:

      • XML structure
      • Data elements/attributes data types
      • PK constraint, composite primary key based on four elements
      • No asserts/assertions/CTAs

      <xs:key name="PK">
       <xs:selector xpath="r"/>
       <xs:field xpath="CountryCode"/>
       <xs:field xpath="Date"/>
       <xs:field xpath="AnalyticsArrangementKey"/>
       <xs:field xpath="PaymentType"/>
      </xs:key>

       
      Saxon Java EE runs XSD validation for 2 minutes
      Xerces-J 2.12.0 cannot finish it at all, running for many hours.
      If I comment out the xs:key constraint, Xerces has no problems to finish the validation.

      Attachments

        1. SubscriberCountFact.zip
          3.55 MB
          Yitzhak Khabinsky

        Activity

          People

            Unassigned Unassigned
            ykhabins Yitzhak Khabinsky
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: