[
https://issues.apache.org/jira/browse/DAFFODIL-1035?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mike Beckerle resolved DAFFODIL-1035.
-------------------------------------
Resolution: Fixed
Fixed in 82028c1ae85fd2461e633450cf9b13be4292e066
> Lone "." in a dfdl:inputValueCalc expression should be an error
> ---------------------------------------------------------------
>
> Key: DAFFODIL-1035
> URL: https://issues.apache.org/jira/browse/DAFFODIL-1035
> Project: Daffodil
> Issue Type: Bug
> Components: Diagnostics, Front End
> Affects Versions: s14
> Reporter: Mike Beckerle
> Assignee: Rick
> Priority: Minor
> Labels: beginner
>
> 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.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)