Open jnm opened 5 years ago
I think that this check is too coarse: https://github.com/kobotoolbox/kobocat/blob/78133d519f7b7674636c871e3ba5670cd64a7227/onadata/apps/viewer/models/data_dictionary.py#L79-L81
I'm guessing a <model>
that's a child (or further descendant) of <instance>
is just fine:
https://getodk.github.io/xforms-spec/#structure.
I don't know well enough how the XForm specification has evolved over time, and we don't want to break existing forms, but maybe it'd be enough to look for <model>
elements only that are the immediate children of <h:head>
.
This issue is blocked by this issue in Enketo: https://github.com/enketo/enketo/issues/1077
@JacquelineMorrissette not everyone uses Enketo. I don't think this is blocked; we could proceed with this change on our end:
look for
<model>
elements only that are the immediate children of<h:head>
When Enketo gets around to fixing it, great. Until then, people can use Collect.
https://www.flowdock.com/app/kobotoolbox/kobo/threads/mq9fgrGgz_zq2UtErE6zV5bhTPV