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/05 20:29:00 UTC

[jira] [Created] (DAFFODIL-2143) dfdl:initiatedContent="yes" on sequence should only affect optional children

Michael Beckerle created DAFFODIL-2143:
------------------------------------------

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