You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Steve Lawrence (Jira)" <ji...@apache.org> on 2023/02/14 18:41:00 UTC

[jira] [Created] (DAFFODIL-2791) dfdl:occursIndex() returns wrong value when emptyElementParsePolicy="treatAsMissing"

Steve Lawrence created DAFFODIL-2791:
----------------------------------------

             Summary: dfdl:occursIndex() returns wrong value when emptyElementParsePolicy="treatAsMissing"
                 Key: DAFFODIL-2791
                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2791
             Project: Daffodil
          Issue Type: Bug
          Components: Back End
            Reporter: Steve Lawrence


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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)