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

fn:empty does not cause error when arg does not exist

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • s15
    • None
    • None
    • None

      I created a test where the fn:empty function references an element that does not exist. In this case I would expect a Schema Definition Error. However, the parse does not fail, and fn:empty is set to true.

      This will potentially be fixed as part of the DPath changes, but currently, when run against the DPath branch, this test fails because fn:empty has not yet been implemented.

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

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

                Created:
                Updated:
                Resolved: