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

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

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • s10
    • s9
    • Middle "End"
    • None

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

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

                Created:
                Updated:
                Resolved: