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

Lone "." in a dfdl:inputValueCalc expression should be an error

    XMLWordPrintableJSON

Details

    Description

      We have tests that depend on this behavior:

      <element name="i" type="xs:int" dfdl:inputValueCalc="

      { dfdl:checkConstraints(.) }

      "/>

      That shouldn't work. "." means "value of this element". Even though there are no constraints so the checkConstraints function could return without needing to see the value of "." it still isn't a correct schema construct.

      Really the constraint checking is against the value of the simple-typed element.

      Tests dfdlCheckConstraints and dfdlCheckConstraints2 both have this issue.

      This case, where "." is a sub-expression inside a dfdl:inputValueCalc, can be recognized and a diagnostic issued that says you cannot use "." because the inputValueCalc expression is computing that value.

      Attachments

        Activity

          People

            Steinberger Rick
            mbeckerle Mike Beckerle
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: