We actually just pushed a change to the master branch last week to
validate the short-form and attribute-form properties. So the next
Daffodil release will throw an error in this case. I think we've all
wasted a bunch of time due to typos like this. It'll be nice to have the
feature in.
Related, we also just pushed a change that warns if there are DFDL
properties that were not used. For example, if you had
<xs:element name="foo"
dfdl:lengthPattern="..."
dfdl:lengthKind="explicit" ... />
In this case, the dfdl:lengthPattern property will be ignored, and will
now result in a warning. This kind of issue is also a common cause of
wasted time and headaches.
On 6/19/19 10:51 AM, Costello, Roger L. wrote:
> Hello DFDL community,
>
> I accidentally lost the "l" in the lengthUnits property and my DFDL schema
> had this:
>
> dfdl:engthUnits="bytes"
>
> Pretty easy to miss that error, isn't it?
>
> It took me a long time to find it. Daffodil did not report an error. I would
> have thought that Daffodil would report something like: "engthUnits is not a
> valid DFDL property."
>
> /Roger
>