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

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

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • deferred
    • s14
    • Diagnostics, Front End
    • None

      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.

              Unassigned Unassigned
              mbeckerle.dfdl Mike Beckerle
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: