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

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

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.1.0
    • DFDL Language, Unparsing
    • None

    Description

      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.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            mbeckerle Mike Beckerle
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment