You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@daffodil.apache.org by "Michael Beckerle (JIRA)" <ji...@apache.org> on 2019/06/19 17:15:00 UTC
[jira] [Resolved] (DAFFODIL-2143) dfdl:initiatedContent="yes" on
sequence should only affect optional children
[ https://issues.apache.org/jira/browse/DAFFODIL-2143?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Beckerle resolved DAFFODIL-2143.
----------------------------------------
Resolution: Fixed
Assignee: (was: Michael Beckerle)
fixed in 826844a408f905ec68f28ea26256ca8fe4f11c66
> dfdl:initiatedContent="yes" on sequence should only affect optional children
> ----------------------------------------------------------------------------
>
> Key: DAFFODIL-2143
> URL: https://issues.apache.org/jira/browse/DAFFODIL-2143
> Project: Daffodil
> Issue Type: Bug
> Components: Back End
> Affects Versions: 2.4.0
> Reporter: Michael Beckerle
> Priority: Blocker
> Fix For: 2.4.0
>
>
> EDIFACT uses sequences which have dfdl:initiatedContent="yes" but one or more of the child elements of the sequence is required, not optional.
> Daffodil appears to execute a discriminator=true behavior even for these required elements, which means the point of uncertainty being discriminated is some enclosing one, as the element itself in the sequence doesn't have one.
> The DFDL Spec clearly says that the initiatedContent only affects optional elements.
> The right thing is for a required child to ignore initiatedContent.
> If all children of a sequence are required and the sequence has initiatedContent, that should at least be a warning, because the initiatedContent property would then be entirely ignored. This case does come up in EDIFACT.
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)