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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0
    • Component/s: Diagnostics, Front End
    • Labels:
      None

      Description

      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

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

                    Tasks