-
Bug
-
Resolution: Fixed
-
Normal
-
s15
-
None
-
None
NOTE: This is only an issue with the "serialization-with-dpath2" branch, not the current 0.15.0 branch
I set up a sequence where the first item is a float, that can be NaN (NaN) or Infinity (INFINITY), and the second is calculated via in inputValueCalc, that calls round() on the first element.
With XPath, when the first element is NaN, the result is a parse error. With DPath, there are no errors and the second element parses as 0
With XPath, when the first element is INFINITY, the result is a parse error. With DPath, there are no errors and the second element parses as 2147483647
See tests round_07 and round_13 in the following file:
daffodil-test/src/test/resources/edu/illinois/ncsa/daffodil/section23/dfdl_functions/Functions.tdml