Comments (3)
Both validators should be compliant with ODK XForms spec, but due to bugs and delays, they may not alway be equally compliant.
The reason we created Enketo Validate was to cater to including custom XPath functions by Enketo-adopters and being able to circumvent particular Javarosa quirks for those adopters (that don't actually use javarosa clients). More here: XLSForm/pyxform#163. Enketo's XPath evaluator is easily extendible with custom functions, and those can be easily added to this library/tool as well.
I think having a non-Java validator by itself is very helpful for the ecosystem. The reason this library was also added to pyxform is to provide an additional option. It's not actually downloaded by default though.
There are a lot of things that ODK Validate will pick up and Enketo Validate will not pick up and vice versa. So the decision on which to pick may require some testing. However, since Esri is also not using Javarosa, it seems to make sense to switch to enketo-validate at some point (perhaps after adding any checks you'd like to add). Please add any issues you find!
Here is a web interface for both ODK Validate and Enketo Validate for developer testing purposes: https://validate.enketo.org/ (we could add pyxform to this if needed).
from enketo-validate.
One positive difference in Enketo validate is that it will evaluate all XPath expressions and return all errors (instead of just the first error). Test with https://raw.githubusercontent.com/enketo/enketo-validate/master/test/xform/xpath-fails.xml
from enketo-validate.
@MartijnR Thanks - very helpful
from enketo-validate.
Related Issues (20)
- Remove or fix binary builds
- Update Validate for Enketo 2.8.0.oc-6 HOT 5
- check if nodes inside expressions exist? HOT 2
- detect likely misspellings in boolean expressions HOT 4
- JSDOM 20.0.0 breaks app
- Require repeat to have at least w4
- Speed up tests HOT 1
- lost node v12 compatibility in 1.15.1 HOT 1
- Unable to install puppeteer 19.7.2 HOT 4
- switch back to official libxslt module
- Upgrade to supported version of npm cli HOT 2
- change all npm commands to yarn in Readme.md?
- Error with trigger referencing date item in repeating group HOT 10
- Item name missing in error message HOT 2
- No validation error if set value trigger refers to calculate item that has a label defined mistakenly HOT 4
- Group named "data" causes Pyxform error about duplicate sections HOT 2
- Update check to verify that clinicaldata items have instance('clinicaldata') logic HOT 2
- Validate rejecting items with hint but no label HOT 4
- bring back strict `<label>` element requirement check
- in oc mode, show error for last-saved feature HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from enketo-validate.