document #317

Action 242 part 2 - escape characters are part of the value region

Added by Michael Beckerle almost 3 years ago. Updated over 1 year ago.

Status:submitted Start date:08/02/2016
Priority:Normal Due date:
Assignee:- % Done:


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


Spec says escapeCharacter, escapeBlockStart, and excapeBlockEnd contribute to the content length of an element.

escapeEscapeCharacter is missing this stipulation and should be made consistent.

However, I believe this is incorrect. These all contribute to the value length, that is to say, they appear within the "SimpleValue | NilLogicalValue" , or NilLiteralValue (for simple types) region.

There is awkwardness here in that per a separate issue tracker for Action 242, we intended to explicitly create a ComplexValue region in the data gramar, but for simple types, the term "simple value region" actually means not only the region explicitly named "SimpleValue", but also NilLogicalValue, and NilLiteralValue (but only where it is used in simple-type grammar productions.

This suggests these additional changes:

Split NilLiteralValue to SimpleNilLiteralValue and ComplexNilLiteralValue

Rename the current SimpleValue to SimpleNormalValue,

Define SimpleLogicalValue as SimpleNormalValue | NilLogicalValue

Then we have no misleading grammar region named SimpleValue, so the term "simple value region" can be defined to mean
SimpleLogicalValue or SimpleNilLiteralValue.

We can't actually create a grammar production for SimpleValue because SimpleLogicalValue and SimpleNilLiteralValue don't appear in the data grammar at the same places, so no single production would capture the grammar restrictions properly.

But we can define what we mean by "simple value" crisply, which will serve our needs for desribing what dfdl:valueLength does.


Updated by Michael Beckerle over 1 year ago

  • Target version set to DFDL v1.0

Also available in: Atom PDF