Work on ODK manifest support.
[gpl/argeo-suite.git] / knowledge / org.argeo.support.odk / src / org / argeo / support / odk / odk.cnd
index 0f6fcc8f93cda9313b3b4b9c691d02527342211c..d80096d5454126baf43f97860a886b8eba5cde13 100644 (file)
@@ -4,8 +4,6 @@
 <orxManifest = "http://openrosa.org/xforms/xformsManifest">
 <odk = "http://www.opendatakit.org/xforms">
 
-[orxList:xform] > mix:created, mix:lastModified, jcrx:csum, entity:form
-+ h:html (odk:html) = odk:html
 
 [odk:head]
 + h:title (jcrx:xmlvalue) = jcrx:xmlvalue
 [odk:setgeopoint]
 - event (STRING)
 - ref (STRING)
+
+// OpenRosa web API
+
+[orxList:xform] > mix:created, mix:lastModified, jcrx:csum, entity:form
+- orxList:formID (STRING)
+- orxList:version (STRING)
++ h:html (odk:html) = odk:html
++ manifest (orxManifest:manifest) = orxManifest:manifest
+
+[orxManifest:manifest]
++ * (orxManifest:mediaFile) = orxManifest:mediaFile
+
+[orxManifest:mediaFile] > nt:address, jcrx:csum
+
+[orx:submission] > mix:created, entity:formSubmission
++ xml_submission_file (nt:unstructured) = nt:unstructured
++ * (nt:file) *
+
+