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

unparse array/optional with occursCountKind 'expression' evaluating to 1 or more, doesn't unparse

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.4.0
    • 3.0.0
    • Back End
    • None

    Description

       

      Suppose you have an array or optional element with dfdl:occursCountKind="expression".

      Suppose when unparsing, that expression evaluates to 1.

      Suppose the element is complex type.

      Suppose its entire contents can be filled in via dfdl:outputValueCalc.

      In this case, it should unparse 1 occurrence, and when unparsing, the outputValueCalc should be evaluated to fill in the contents of child elements.

      Then it should successfully unparse.

      Unfortunately, right now, the unparser sees no incoming events that match the element, and does not unparse anything.

      Note that in the case where I discovered this bug, the entire array with OCK 'expression' is inside a hidden group, so there will never be any infoset events corresponding to it.

       

      Attachments

        Activity

          People

            jadams_tresys Josh Adams
            mbeckerle Mike Beckerle
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: