[
https://issues.apache.org/jira/browse/DAFFODIL-1035?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dave Thompson closed DAFFODIL-1035.
-----------------------------------
Verified the specified commit (commit 82028c1ae85fd2461e633450cf9b13be4292e066)
is included in the latest pull from the incubator-daffodil repository.
Verified the all incubator-daffodil sbt test suites execute successfully
including new tests.
Verified the nightly test schemas compile and save successfully.
Verified the nightly test suite executes successfully.
> 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
> Fix For: 3.0.0
>
>
> 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)