[ 
https://issues.apache.org/jira/browse/DAFFODIL-2791?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mike McGann resolved DAFFODIL-2791.
-----------------------------------
    Resolution: Fixed

Fixed in commit 16c738c38ffb41a27709119cb3ffa84e3dedd74c

> 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
>            Assignee: Mike McGann
>            Priority: Major
>             Fix For: 3.5.0
>
>
> 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)

Reply via email to