This is a static archive of the previous Open Grid Forum Redmine content management system saved from host redmine.ogf.org file /boards/15/topics/251 at Thu, 03 Nov 2022 15:39:19 GMT Leading/trailing whitespace when writing a DFDL Expression - Public Comments Archive - Open Grid Forum

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.

(1-4/4)

This is a static archive of the previous Open Grid Forum Redmine content management system saved from host redmine.ogf.org file /boards/15/topics/251 at Thu, 03 Nov 2022 15:39:19 GMT