Hello DFDL community,

I have this input file:

[cid:[email protected]]

My DFDL schema specifies that each row is terminated by a newline. Clearly the 
last row is not terminated by a newline, so I used 
dfdl:documentFinalTerminatorCanBeMissing

<xs:element name="repeating-label-message">
    <xs:complexType>
        <xs:sequence>
            <xs:element name="row" maxOccurs="unbounded" dfdl:terminator="%NL;"
                                dfdl:documentFinalTerminatorCanBeMissing="yes">
                <xs:complexType>
                    <xs:sequence dfdl:separator=":" 
dfdl:separatorPosition="infix">
                        <xs:element name="label" type="xs:string" />
                        <xs:element name="message" type="xs:string" />
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
</xs:element>

I expected the DFDL schema to properly parse the above input file, but instead 
I got this error message:

[warning] Left over data. Consumed 688 bit(s) with at least 184 bit(s) 
remaining.

I believe that means there is a bug in Daffodil with regard to 
dfdl:documentFinalTerminatorCanBeMissing. Do you agree?

/Roger

Reply via email to