[DFDL-WG] clarification: pad/trim and nilKind='literalValue' for text numeric elements

Mike Beckerle mbeckerle.dfdl at gmail.com
Wed Oct 24 14:00:44 EDT 2012


Consider:

<element name="e" type="xs:int" nillable="true"
dfdl:lengthKind="explicit" dfdl:length="4"
dfdl:nilValue="-"
dfdl:textPadChar="%SP;"
dfdl:textNumberJustification="right"
dfdl:representation="text"/>

Is a nil justified on the right, or are only number values justified on the
right?

That is, will [-   ] be interpreted as nil, or only [   -]

A literal nil value is effectively textual syntax, and has nothing to do
with whether the field is number or string,

so one might legitimately say that textStringJustification applies to it.

But then again....




-- 
Mike Beckerle | OGF DFDL WG Co-Chair
Tel:  781-330-0412
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ogf.org/pipermail/dfdl-wg/attachments/20121024/2382bd74/attachment.html>


More information about the dfdl-wg mailing list