Enketo XForm to HTML Form transformer using XSLT
Not meant for production. Just a simple demo that can be used for development on enketo-core. It is slow, unsafe, and doesn't handle errors...
###Related Projects
- enketo-transformer - NodeJS Enketo XSLT transformer
###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