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

DPath: Explicitly check for * wildcard syntax and provide specific diagnostic message

XMLWordPrintableJSON

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Normal Normal
    • 1.0.0
    • s15
    • Diagnostics
    • None

      The use of "*" to denote "all children" is not supported in the DPath implementation. Tests that attempt to use this currently fail with a Schema Definition Error, but the diagnostic message is vague and not entirely helpful.

      [error] Test edu.illinois.ncsa.daffodil.section23.dfdl_expressions.TestDFDLExpressions.test_asterisk_02 failed: java.lang.Exception: Did not find diagnostic message "unsupported" in any of the actual diagnostic messages: 
      [error] Schema Definition Error: Unable to parse expression. Message: `}' expected but `/' found
      [error] Next: /* }.

      See tests
      test_asterisk_01
      test_asterisk_02

      in the following files:
      daffodil-test/src/test/scala-debug/edu/illinois/ncsa/daffodil/section23/dfdl_expressions/TestDFDLExpressionsDebug.scala
      daffodil-test/src/test/scala/edu/illinois/ncsa/daffodil/section23/dfdl_expressions/TestDFDLExpressions.scala
      daffodil-test/src/test/resources/edu/illinois/ncsa/daffodil/section23/dfdl_expressions/expressions.tdml

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

                Created:
                Updated:
                Resolved: