Hello DFDL community,
My input contain a Length field that must be of length 4. Here is a sample
input:
.../ 101/...
There is a space prior to 101, although it might be hard to see it. So that
field is of length 4.
The Length field could be nil; a dash is the nil value.
I figured this is the way to declare the Length element:
<xs:element name="Length"
nillable="true"
type="xs:int"
dfdl:lengthKind="explicit" dfdl:length="4"
dfdl:lengthUnits="characters"
dfdl:nilValue="%WSP*;-%WSP*;"
dfdl:textNumberPadCharacter="%SP;"
dfdl:textNumberJustification="right"/>
But Daffodil gives these warning messages:
Warning: DFDL property was ignored: textNumberJustification="right"
Warning: DFDL property was ignored: textNumberPadCharacter="%SP;"
How come I get those warnings?
Anyway, I removed those two properties and then Daffodil simply refused to
parse the Length field. How come? What is the right way to do this?
/Roger
P.S. It would be nice if Daffodil, when outputting a warning message, gave a
brief explanation of why. For example, why is textNumberJustification="right"
ignored?