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

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

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • deferred
    • None
    • Back End, DFDL Language
    • None

      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.

              Unassigned Unassigned
              mbeckerle.dfdl Mike Beckerle
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: