The spec says this for calendarCheckPolicy:

Additional lenient parsing behaviour when in 'lax' mode:

        Leading and trailing whitespace
        in the data but not in the pattern
        is accepted

The following element declares a lax policy:

<xs:element name="Birthday" type="xs:date" 
    dfdl:calendarCheckPolicy="lax"
    dfdl:calendarPatternKind="explicit"
    dfdl:calendarPattern="yyyy:MM:dd"
    dfdl:calendarFirstDayOfWeek="Sunday"
    dfdl:calendarDaysInFirstWeek="5" 
    dfdl:calendarTimeZone="UTC+6"
    dfdl:calendarLanguage="en"
/>

Daffodil reports an error if I put whitespace following this date:

1970:11:06

The spec says that whitespace should be allowed with a lax policy. I believe 
this is an error in Daffodil. Do you agree?

/Roger

Reply via email to