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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • s9
    • s10
    • Middle "End"
    • 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.)

      Attachments

        Activity

          People

            jadams_tresys Josh Adams
            mbeckerle Mike Beckerle
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: