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

Unset variables referenced from dfdl:outputValueCalc expression should block/delay until they get a value.

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • deferred
    • None
    • DFDL Language, Unparsing
    • None

      This needs clarification in the DFDL spec from the DFDL workgroup.

      However,.... it seems pretty clear that an outputValueCalc expression needs to be able to refer to a variable (otherwise you can't use variables to decouple parts of schemas from each other.)

      And the variable needs to be able to be unbound until the future existence of things that give it a value.

      As an example, one could have a length field in a header.

      One wants this lengh field to be computed based on the length of some body that comes after the header, and where the header's DFDL schema does not reference the body DFDL schema. They are separate schemas.

      To do this one should use variables. The header needs a length from the body, then that length should come from a variable, which variable being set by the body. Since the body comes later, the variable needs to be set after the header OVC element has been encountered. So we have to be able to evaluate an OVC expression and block waiting for the variable to get its value.

              Unassigned Unassigned
              mbeckerle.dfdl Mike Beckerle
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: