I worked on a project that built a forms tool around XForms about 4 years ago. It is pretty darn powerful, but finding an engine that can understand all that power and run in all the places offline forms need to run is impossible. Maybe there's something in ODK, I haven't dug that deep into the foundational code, I've only looked at it as a potential turn-key solution.