[
https://issues.apache.org/jira/browse/DAFFODIL-2979?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mike Beckerle resolved DAFFODIL-2979.
-------------------------------------
Fix Version/s: 3.10.0
Resolution: Not A Bug
> optional element in expression should not require indexing
> ----------------------------------------------------------
>
> Key: DAFFODIL-2979
> URL: https://issues.apache.org/jira/browse/DAFFODIL-2979
> Project: Daffodil
> Issue Type: Bug
> Components: Front End
> Affects Versions: 3.10.0
> Reporter: Mike Beckerle
> Priority: Major
> Fix For: 3.10.0
>
>
>
> Suppose 'bar' is an optional element, i.e., minOccurs 0, maxOccurs 1 and
> dfdl:occursCountKind is not 'parsed' (because that would make it an array).
>
> Then expressions like:
> ```
> foo/bar/baz
> ```
> should *not* require indexing a child of the bar element. I.e., this should
> *not* be required but was reported that it is required:
> ```
> foo/bar[1]/baz
> ```
> The indexing should only be _required_ for arrays.
> Note: I looked for this bug pre-existing but did not find it. I thought we
> already had this ticket.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)