Giter VIP home page Giter VIP logo

Comments (3)

MartijnR avatar MartijnR commented on August 23, 2024

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.

MartijnR avatar MartijnR commented on August 23, 2024

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.

JohnHasthorpe avatar JohnHasthorpe commented on August 23, 2024

@MartijnR Thanks - very helpful

from enketo-validate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.