Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DFDL-800

Validation: Improve upon Xerces Diagnostic Info

XMLWordPrintableJSON

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • s12
    • s11
    • Diagnostics
    • None

      I have a test that causes a validation error because the parsed data does not adhere to the value of maxInclusive. The important excerpt from the schema is the following (other choices removed):

          <xs:element name="root">
            <xs:complexType>
               <xs:choice>
                 <xs:element name="max3" dfdl:lengthKind="delimited">
                   <xs:simpleType>
                     <xs:restriction base="xs:int">
                       <xs:maxInclusive value="3" />
                     </xs:restriction>
                   </xs:simpleType>
                 </xs:element>
                 ..............

      The validation error looks like this:

      Value '8' is not facet-valid with respect to maxInclusive '3' for type '#AnonType_max3root'.

      Would it be possible for the actually type (xs:int) to be pulled for this, instead of #AnonType? Also, the "max3root" is confusing, as it just smashes together the root element and the element in question.

      see test test_choice_ignoreValidationErr_01:

      daffodil-test/src/test/resources/edu/illinois/ncsa/daffodil/section02/validation_errors/Validation.tdml
      daffodil-test/src/test/scala-debug/edu/illinois/ncsa/daffodil/section02/validation_errors/TestValidationErrDebug.scala

      Note that the test currently passes because I do not include the questionable output in my expected validation error.

              jchab Jessie Chab
              jchab Jessie Chab
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: