document #213
Leading/trailing whitespace when writing a DFDL Expression
Status: | closed | Start date: | 02/02/2014 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | Steve Hanson | % Done: | 100% |
|
Category: | - | |||
Target version: | - | |||
Document Type: | Proposed Recommendation |
Description
DFDL spec 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."
History
Updated by Steve Hanson about 8 years ago
- Status changed from public comment to closed
- % Done changed from 0 to 100
See http://redmine.ogf.org/boards/15/topics/251
Erratum 2.145 updated. GWD.207 updated.
(Other formats not available in this archive.