Hello DFDL community,

The below DFDL schema says that the input must contain a string that represents 
an unsignedInt and the string must not contain more than five digit characters.

Eek!

That's not correct. The below DFDL schema says that the input must contain a 
string that represents an unsignedInt and the string must contain *exactly* 
five digit characters.

Is there a way to write the DFDL schema to specify that the input must contain 
a string that represents an unsignedInt and the string must contain *one to 
five* digit characters? That is, how to specify that the input could be any of 
these strings:

"0", "1", ..., "99999"

<xs:element name="input">
    <xs:complexType>
        <xs:sequence>
            <xs:element name="value" 
                type="xs:unsignedInt" 
                dfdl:lengthKind="explicit" 
                dfdl:length="5" 
                dfdl:lengthUnits="characters" />
        </xs:sequence>
    </xs:complexType>
</xs:element>

Reply via email to