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

dfdl:occursIndex() returns wrong value when emptyElementParsePolicy="treatAsMissing"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.5.0
    • Back End
    • None

    Description

      The dfdl:occursIndex() function currently returns the iteration number of the current array element. But if emptyElementParsePolicy="treatAsMissing", then we might not actually add an element but occursIndex will still increment.

      This function needs to take into account that the iteration count is not the same as the infoset count and only return the index of the current element in the infoset.

      We may also want to inspect other places where else we use the iteration count when we really want the infoset count.

      Attachments

        Activity

          People

            mikemcgann Mike McGann
            slawrence Steve Lawrence
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: