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 2021/02/04 20:27:00 UTC
[jira] [Updated] (DAFFODIL-2013) Predicate required for when
accessing optional elements in expression
[ https://issues.apache.org/jira/browse/DAFFODIL-2013?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steve Lawrence updated DAFFODIL-2013:
-------------------------------------
Priority: Minor (was: Major)
> Predicate required for when accessing optional elements in expression
> ---------------------------------------------------------------------
>
> Key: DAFFODIL-2013
> URL: https://issues.apache.org/jira/browse/DAFFODIL-2013
> Project: Daffodil
> Issue Type: Bug
> Components: Front End
> Affects Versions: 2.2.0
> Reporter: Steve Lawrence
> Priority: Minor
>
> Behind the scenes we treat optional elements (e.g. minOccurs="1" dfdl:lengthKind="implicit"), as arrays that should just always have either zero or one elements. This means that when an expression attempts to access this element, a predicate of [1] is required. Otherwise you get an error about "Query-style paths not supported". We should have logic to treat optional elements special so that the predicate is not mandatory.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)