getodk / xforms-spec

The XForms-derived specification used in the ODK ecosystem. If you are interested in building a tool that is compliant with the forms rendered by ODK tools, this is the place to start. ✨⚒✨
https://getodk.github.io/xforms-spec/
30 stars 26 forks source link

current() specification is too narrow #276

Open MartijnR opened 3 years ago

MartijnR commented 3 years ago

See this brilliant example by @lognaturel for a case where current() is used without any instance() involvement https://github.com/XLSForm/pyxform/pull/472#discussion_r494667102

lognaturel commented 3 years ago

😄 Any brilliance I may have exhibited comes from reading https://developer.mozilla.org/en-US/docs/Web/XPath/Functions/current about a half million times when we worked on rectifying current()'s behavior.