document #196

dfdl:valueLength function - unclear what it does

Added by Steve Hanson almost 5 years ago. Updated over 1 year ago.

Status:public comment Start date:09/26/2013
Priority:Normal Due date:
Assignee:Michael Beckerle % Done:

40%

Category:-
Target version:DFDL v1.0
Document Type:Proposed Recommendation

Description

Spec says:
dfdl:valueLength(path, lengthUnits) - returns the value length which excludes any padding or filling which might be added for a specified length

Is this well defined even?

It seems an abstract value other than a string doesn’t have an inherent length. E.g., the number 1000 is an abstract concept. It its content takes up a minimum of 4 characters base 10, but 3 in base 16. Depending on textNumberPattern, it may need a grouping separator, which increases the size of the content region in our grammar. So that's not the 'value' it's the content region within the overall representation of the element.

Do we really want functions named paddedContentLength and unpaddedContentLength ?


Related issues

related to DFDL WG - document #316: Action 242 part 1 - valueLength and contentLength clarifi... submitted 08/02/2016

History

Updated by Steve Hanson almost 5 years ago

  • Status changed from public comment to accepted
  • Assignee set to Michael Beckerle
  • % Done changed from 0 to 40

See http://redmine.ogf.org/boards/15/topics/63

Ongoing. Tracked by action 242 in DFDL-WG calls.

Updated by Steve Hanson over 4 years ago

  • Status changed from accepted to public comment

Updated by Steve Hanson over 1 year ago

  • Target version set to DFDL v1.0

Also available in: Atom PDF