Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DAFFODIL-2143

dfdl:initiatedContent="yes" on sequence should only affect optional children

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.4.0
    • 2.4.0
    • Back End
    • None

    Description

      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.

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            mbeckerle Mike Beckerle
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: