Note: This is only an issue with the serialization-with-dpath branch
If the fn:count function references an element that is set with inputValueCalc, you get the following error:
[error] Test edu.illinois.ncsa.daffodil.section23.dfdl_expressions.TestDFDLExpressions.test_count_03 failed: java.lang.Exception: Schema Definition Error: Subset The count function must reference a single array.
[error] Schema context: element.count. Location line 487 column 100 in file:/tmp/daffodil_tmp_7581385162793110524.dfdl.xsd.
[error] at edu.illinois.ncsa.daffodil.tdml.ParserTestCase.runProcessor(TDMLRunner.scala:580)
[error] at edu.illinois.ncsa.daffodil.tdml.TestCase.run(TDMLRunner.scala:482)
[error] at edu.illinois.ncsa.daffodil.tdml.DFDLTestSuite.runOneTestWithDataVolumes(TDMLRunner.scala:274)
[error] at edu.illinois.ncsa.daffodil.tdml.DFDLTestSuite.runOneTest(TDMLRunner.scala:265)
[error] at edu.illinois.ncsa.daffodil.section23.dfdl_expressions.TestDFDLExpressions.test_count_03(TestDFDLExpressions.scala:305)
previously, fn:count would return 1 as expected.