Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DAFFODIL-1512

dfdl prefix properties on dfdl annotation elements should generate useful diagnostic

    XMLWordPrintableJSON

Details

    Description

      A common mistake is to move short-form annotations with the dfdl: prefix from elements into the dfdl:format annotation. But then one forgets to remove the prefix dfdl: since the attributes of the dfdl:format annotation are not prefixed. So this is an error:

      <dfdl:format dfdl:lengthKind="delimited" ..../>
      

      When what was intended is

      <dfdl:format lengthKind="delimited".... />
      

      Daffodil should issue a specific diagnostic whenever it finds dfdl: prefixed attributes in the annotation elements dfdl:format, dfdl:element, dfdl:simpleType, dfdl:sequence, dfdl:choice, etc.

      It should point out specifically that the author probably wanted to remove the prefix dfdl:

      Attachments

        Activity

          People

            mphyo21 Min Phyo Aung
            mbeckerle Mike Beckerle
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: