Forums » #117 - DFDL v1.0 Revision »
Leading/trailing whitespace when writing a DFDL Expression
Added by Mark Frost over 8 years ago
DFDL spec GFD-P-R.207 isn't totally clear how whitespace is treated in a schema when using a DFDL Expression.
I think leading and trailing whitespace (not just space) needs to be trimmed before searching for the '{' and '}' to recognize a DFDL Expression. This allows expressions to be formatted on new lines in the schema eg:
<dfdl:setVariable ref="b">
{ ... some long XPath expression ... }
</dfdl:setVariable>
Section 6.3
"• DFDL expression
The property is an xs:string the value of which is a DFDL subset XPath 2.0 expression that returns a value derived from other property values and/or from the DFDL infoset. Leading and trailing spaces are allowed and ignored."
Section 6.3.2
"The rules for recognizing DFDL expressions are
• Must start with a '{' in the first position and end with '}' in the last position."
Replies (4)
Resolved: Leading/trailing whitespace when writing a DFDL Expression - Added by Steve Hanson over 8 years ago
Section 6.3 should say "Leading and trailing whitespace is allowed and ignored."
Section 6.3.2 rules should make it clear that they apply once any leading/trailing whitespace is removed.
Resolved: Leading/trailing whitespace when writing a DFDL Expression - Added by Steve Hanson over 8 years ago
Updated erratum 2.145 in experience document 1.
DONE - RE: Leading/trailing whitespace when writing a DFDL Expression - Added by Michael Beckerle over 8 years ago
changes in draft-gwdrp-dfdl-v1.0.4-r06.docx
DONE - RE: Leading/trailing whitespace when writing a DFDL Expression - Added by Steve Hanson about 8 years ago
(1-4/4)