Hello DFDL community,

My input is a binary file. I want my DFDL schema to consume hexBinary bytes 
until it gets to the string "This program cannot be run in DOS mode".

Parsing the input with the below DFDL schema results in this warning message:

[warning] Schema Definition Warning: DFDL property was ignored: 
representation="text"

Why?

The DFDL schema worked fine in Daffodil version 2.3.0 but now in 2.4.0 I get 
the above warning.   /Roger

<xs:element name="DOS_Stub">
    <xs:complexType>
        <xs:sequence>
            <xs:element name="Instructions" type="xs:hexBinary"
                dfdl:lengthKind="pattern"
                dfdl:lengthPattern="[\x00-\xFF]+?(?=This program cannot be run 
in DOS mode\.)" />
            <xs:element name="Message" type="xs:string"
                dfdl:lengthUnits="characters"
                dfdl:lengthKind="explicit"
                dfdl:length="39"
                dfdl:representation="text"
                dfdl:encoding="ISO-8859-1" />
        </xs:sequence>
    </xs:complexType>
</xs:element>



Reply via email to