Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sum() of empty nodes or nodeset with at least one empty node #141

Open
getodk-bot opened this issue Jul 4, 2012 · 0 comments
Open

sum() of empty nodes or nodeset with at least one empty node #141

getodk-bot opened this issue Jul 4, 2012 · 0 comments

Comments

@getodk-bot
Copy link
Member

Originally reported by: Anonymous


sum(nodes with values: 1, empty) = NaN (conforms to XPath 1.0 spec)
sum(nodes with values: all empty) = 0 (deviates from XPath)

One of the two results should probably be treated as a bug.

see: https://www.commcarehq.org/webforms/enterall/320 for a quick manual test (submit to see the sum)


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants