-
Bug
-
Resolution: Unresolved
-
Normal
-
s14
-
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.