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

prefixLengthType and element lengthUnits only needs to be the same when prefixIncludePrefixLength

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.3.0
    • Front End
    • None

    Description

      Section 12.3.4 of the DFDL says:

      If the prefix type is dfdl:lengthKind 'implicit' or 'explicit' then the dfdl:lengthUnits properties of both the prefix type and the element must be the same.

      This restriction was implemented as part of DAFFODIL-114. However, it was discovered that the Errata that led to this part of the spec was:

      2.76. Section 12.3.4. When property prefixIncludesPrefixLength is ‘yes’ there are some restrictions that need to be added to enable reliable lengths to be calculated: - If the prefix type is lengthKind 'implicit' or 'explicit' then the lengthUnits properties of both the prefix type and the element must be the same.

      It seems this errata was not fully merged into the spec.

      I believe this shoudl already work if we just modify the restriction to apply only when prefixIncludesPrefixLength="yes". To to make this change and add tests to verify.

      Attachments

        Activity

          People

            slawrence Steve Lawrence
            slawrence Steve Lawrence
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: