-
Notifications
You must be signed in to change notification settings - Fork 9
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
Use /form_id/... rather than /filename/... to name nodes #55
Comments
This is a tricky situation. Ideally, I think the root node in the instance should always have the tag name "data" like in ODK Build because then we don't need to worry about users setting an invalid XML tag name. That would mean all the paths start /data/.... However, if we were to change the root tag to "data" or to the form id, that could break preexisting forms that use full xpaths rather than variable substitution. Also, I suspect changing the name of the root element would cause versioning issues in formhub and aggregate since submitted instances might come from old forms that have the wrong root element name. Using the filename as the root node isn't good because it imposes all the XML name constraints on XLSForm filenames, so it would be very nice to get away from, but I don't see a painless way to do it. For reference these are the XML name constraints:
|
The way formhub is set up, forms pre- and past-complication are very Otherwise, I would rather fix issues with the priority we have: make sure On Monday, September 17, 2012, Nathan Breit wrote:
Prabhas Pokharel |
To add support for ${} syntax in the repeat_count/jr:count column you can copy the changes from this commit: I don't think it's possible to support ${} syntax in the default column because I don't think default values can be xpath expressions. I haven't found a definitive answer to that though, so if you can show me an example xform that uses xpath to set a question's default value I'll add support for it. Are there any other columns ${} syntax is needed in? |
See documentation of issue here https://groups.google.com/d/topic/formhub-users/YyEhmii6jkU/discussion
The text was updated successfully, but these errors were encountered: