Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DFDL-663

occursCountKind='implicit' must respect minOccurs even when maxOccurs='unbounded'

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: s9
    • Fix Version/s: s10
    • Component/s: Middle "End"
    • Labels:
      None

      Description

      In an array with minOccurs not mentioned (defaults to 1), and maxOccurs='unbounded' with dfdl:occursCountKind='implicit', we are happily creating zero elements. It should fail if it can't get 1 element.

      dfdl:occursCountKind='implicit' means that it is within minOccurs and maxOccurs instances.

      This is very mystifying to new naive users (and I fell into this trap myself too a lot when using occursCountKind='parsed', which always accepts zero instances regardless of minOccurs.)

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              jadams Joshua Adams
              Reporter:
              mbeckerle.dfdl Mike Beckerle
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Tasks