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/12 16:02:00 UTC

[jira] [Updated] (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 updated DAFFODIL-2143:
---------------------------------------
    Priority: Blocker  (was: Major)

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