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

Mike Beckerle updated DAFFODIL-2979:
------------------------------------
    Description: 
 

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. 

  was:
 

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. 


> 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
>
>  
> 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)

Reply via email to