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

lengthKind explicit and expressions when unparsing - expression not being evaluated but should be

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.1.0
    • Back End, DFDL Language
    • None

    Description

      This was clarified on DFDL workgroup call on 2016-10-11

      Verify that Daffodil conforms to erratum 5.18 per below.

      lengthKind ' expression ' when unparsing

      Spec says "When dfdl:lengthKind is 'explicit' (and dfdl:length is an expression), 'delimited',
      'prefixed', 'pattern' the data value is padded to the length given by the XSD minLength facet
      for type 'xs:string' or dfdl:textOutputMinLength property for other type" .

      This is not the latest agreed thinking. The desired behaviour is as documented by erratum 5.18
      in Experience Document 4, which states the expression is evaluated and the result taken as
      the explicit length. This has not yet been added to the spec.

      Attachments

        Issue Links

          Activity

            People

              dfthompson Dave Thompson
              mbeckerle Mike Beckerle
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: