Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DAFFODIL-1965

dfdl:assert and dfdl:discriminator "message" attribute does not work for DFDL Expressions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.0
    • 2.3.0
    • Back End, Front End

    Description

      The message attribute for dfdl:assert and dfdl:discriminator is allowed to be a DFDL expression, for example:

      <dfdl:assert message="{ fn:concat('unknown case ', ../data1) }">...</dfdl:assert>

      However, we currently treat the message as a string, and never evaluate the expression, even if it contains braces. To resolve this issue, we should create a new Evaluatable for the message attribute and pass that into the assert/discriminator parsers.

      Attachments

        Activity

          People

            slawrence Steve Lawrence
            slawrence Steve Lawrence
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: