Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DFDL-1722

Detect error where dfdl:property doesn't have dfdl:element around it.

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2.0.0
    • None
    • Diagnostics, Front End
    • None

      If you create an element with the inputValueCalc property expressed like this

      <xs:element name="value">
      <xs:annotation><xs:appinfo source="http://www.ogf.org/dfdl/">
          <dfdl:property name="inputValueCalc"><![CDATA[
            { ...expression }
          ]]></dfdl:property>
      </xs:appinfo></xs:annotation>
      <xs:simpleType>
      ...
      </xs:simpleType>
      </xs:element>

      At compilation time this will not cause an error, even though a dfdl:element annotation is required, and dfdl:property is not allowed like this. (BUG 1)
      So silently, this asks for length property to be defined, because it isn't seeing this as an
      IVC at all.

              dthompson David Thompson
              mbeckerle.dfdl Mike Beckerle
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 4 minutes
                  4m