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

Alignment: Avoid Ambiguity When Parsing

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • s12
    • s10
    • Front End, Middle "End"
    • None

      According to requirement DFDL-12-011R:

      "To avoid ambiguity when parsing, optional elements and variable-occurrence arrays where the minimum number of occurrences is zero cannot have alignment properties different from the items that follow them. It is a schema definition error otherwise."

      I created a sequence where the middle element is optional. The alignment settings are different from the settings of the element that follows. I do not get the Schema Definition Error that I would expect based on the requirement above.

      See test alignmentOptionalElem in the following files:

      daffodil-test/src/test/resources/edu/illinois/ncsa/daffodil/section12/aligned_data/Aligned_Data.tdml
      daffodil-test/src/test/scala-debug/edu/illinois/ncsa/daffodil/section12/aligned_data/TestAlignedDataDebug.scala
      daffodil-test/src/test/scala/edu/illinois/ncsa/daffodil/section12/aligned_data/TestAlignedData.scala

              jchab Jessie Chab
              jchab Jessie Chab
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 1 hour, 7 minutes
                  1h 7m