Enketo XForm -> HTML Form transformer using XSLT
Not meant for production. Just a simple demo that can be used for development on enketo-core. See this beauty live at http://xslt-dev.enketo.org/. Again, don't use for production. It is slow, unsafe, and doesn't handle errors...
###Related Projects
- enketo-core - the engine that powers Enketo Smart Paper
- XPathJS_javarosa - used inside this repo
- enketo-xslt
- [enketo-xslt-transformer-node] - To follow
- enketo-dristhi
- file-manager
- openrosa-forms - bunch of test forms, for development
###Installation
apt-get install php5 php5-xsl git
- clone this repo
git clone https://github.com/MartijnR/enketo-xslt-transformer-php
git submodule update --init
- use the built-in webserver for development after installing node.js, npm and running
npm install
andgrunt server
- or use e.g. Apache or Nginx
- run tests with
grunt test
- simply drop an XForm in test/form to include all tests on that form!
###Usage
There are three ways to provide an XForm source:
- provide queryparameter
xform
with a url to the source - enter/drag a file in the page input
- POST a XForm file as the
xform
parameter (API call)
###Not included
- security
- error handling
- XSLT feedback messages
- fix for media labels src link
- fix for lang attributes (to pass HTML validation - not very important)
- fix for adding instanceID node