Hello DFDL community,

My input contains 4 digits, representing a year. The below DFDL schema seems to 
do the job. However, it occurs to me that there is a redundancy. If I specify 
type="xs:int" and dfdl:length="4", then that means the input must contain 
exactly 4 digits, right? And therefore dfdl:textNumberCheckPolicy="strict" and 
dfdl:textNumberPattern="####" are redundant, right?  /Roger

<xs:element name="Year"
            type="xs:int"
            dfdl:length="4"
            dfdl:lengthKind="explicit"
            dfdl:textNumberCheckPolicy="strict"
            dfdl:textNumberPattern="####" />

Reply via email to