Skip to content
XSLT sheets used to transform OpenRosa-flavoured XForms into a HTML form and XML instance.
XSLT JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test
xsl changed: XML dateTime is now converted to HTML input type="datetime-l… Oct 16, 2019
.eslintrc.json
.gitignore added: support for range widget May 29, 2018
.jsbeautifyrc changed: correct deprecated "form-data-post" value for _method_ attri… Aug 31, 2018
.travis.yml changed: updated Travis node versions Aug 23, 2019
CHANGELOG.md changed: XML dateTime is now converted to HTML input type="datetime-l… Oct 16, 2019
LICENSE changed: license, Mar 18, 2015
README.md fixed: image in readme Mar 22, 2017
index.js changed: correct deprecated "form-data-post" value for _method_ attri… Aug 31, 2018
package-lock.json changed: XML dateTime is now converted to HTML input type="datetime-l… Oct 16, 2019
package.json changed: XML dateTime is now converted to HTML input type="datetime-l… Oct 16, 2019

README.md

Enketo XSLT

npm version Build Status

XSLT sheets used to transform OpenRosa-flavoured XForms into an HTML form and XML instance.

Use with npm

npm install enketo-xslt --save
var sheets = require('enketo-xslt');

console.log('form sheet', sheets.xslForm);
console.log('model sheet', sheets.xslModel);

Use without npm and in any programming language.

Use as git submodule and read the two .xsl files as required. Ignore index.js.

License

See license document.

In addition, any product that uses enketo-xslt is required to have a "Powered by Enketo" footer, according to the specifications below, on all screens in which the output of enketo-xslt, or parts thereof, are used, unless explicity exempted from this requirement by Enketo LLC in writing. Partners and sponsors of the Enketo Project, listed on https://enketo.org/#about and on https://github.com/enketo/enketo-core#sponsors are exempted from this requirements and so are contributors listed in package.json.

The aim of this requirement is to force adopters to give something back to the Enketo project, by at least spreading the word and thereby encouraging further adoption.

Specifications:

  1. The word "Enketo" is displayed using Enketo's logo.
  2. The minimum font-size of "Powered by" is 12 points.
  3. The minimum height of the Enketo logo matches the font-size used.
  4. The Enketo logo is hyperlinked to https://enketo.org

Example:

Powered by

Change Log

See change log

You can’t perform that action at this time.