document #312

Clarify empty string behaviour for text boolean properties that do not specify it

Added by Steve Hanson almost 3 years ago. Updated about 1 year ago.

Status:closed Start date:05/24/2016
Priority:Normal Due date:
Assignee:- % Done:

0%

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

Description

Properties dfdl:textBooleanTrueRep and dfdl:textBooleanFalseRep do not state empty string behaviour.

History

Updated by Steve Hanson almost 3 years ago

  • Status changed from submitted to accepted

Properties dfdl:textBooleanTrueRep and dfdl:textBooleanFalseRep will state empty string not allowed. Schema definition error if empty string found as the property value.

Updated by Michael Beckerle over 1 year ago

I am not sure this is correct - The description says %ES entity is not allowed, and if empty string is not allowed then there is no way to use empty string to mean false. This seems like potentially useful functionality.

If we disallow empty string, then should we allow %ES; entity for expressing that empty means false?

Updated by Michael Beckerle over 1 year ago

  • Status changed from accepted to submitted

changed status back to submitted - because of need to clarify ES issue.

Updated by Steve Hanson over 1 year ago

I don't think using empty string or ES to indicate false is a good idea. It clashes with the use of empty string to indicate an optional element is not present, or to indicate a required element can take a default value. If you have such an element and you want empty string to mean false, then use a default value of false.

Updated by Michael Beckerle over 1 year ago

After review, we concluded that we don't have a compelling use case yet for allowing empty-string to mean anything; hence,
we are back to just not allowing empty string (or %ES;) as the value of these properties, and clarifying the spec accordingly.

Updated by Michael Beckerle over 1 year ago

  • Status changed from submitted to accepted

Updated by Michael Beckerle over 1 year ago

  • Target version set to DFDL v1.0

Updated by Michael Beckerle over 1 year ago

  • Status changed from accepted to final review

Erratum 5.33

Updated by Michael Beckerle about 1 year ago

  • Status changed from final review to closed

Also available in: Atom PDF