Hello DFDL community,

My input file has this:

0,100
0,100

My DFDL schema is this:

<xs:element name="input">
    <xs:complexType>
        <xs:sequence dfdl:separator="%NL;" dfdl:separatorPosition="infix">
            <xs:element name="test1" type="xs:unsignedInt"
                dfdl:length="5" dfdl:lengthKind="explicit"
                dfdl:textNumberCheckPolicy="strict"
                dfdl:textNumberPattern="#,###" />
            <xs:element name="test2" type="xs:unsignedInt"
                dfdl:length="5" dfdl:lengthKind="explicit"
                dfdl:textNumberCheckPolicy="strict"
                dfdl:textNumberPattern="0,000" />
        </xs:sequence>
    </xs:complexType>
</xs:element>

The output of parsing is this:

<input>
  <test1>100</test1>
  <test2>100</test2>
</input>

The output of unparsing is this:

100ff
0,100

Huh?

Why am I getting 100ff?

I think the lesson learned is never use the pound (#) symbol in 
dfdl:textNumberPattern. Do you agree?

/Roger

Reply via email to