XSLT sheets used to transform OpenRosa-flavoured XForms into an HTML form and XML instance.
npm install enketo-xslt --save
var sheets = require('enketo-xslt');
console.log('form sheet', sheets.xslForm);
console.log('model sheet', sheets.xslModel);
Use as git submodule and read the two .xsl files as required. Ignore index.js.
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:
- The word "Enketo" is displayed using Enketo's logo.
- The minimum font-size of "Powered by" is 12 points.
- The minimum height of the Enketo logo matches the font-size used.
- The Enketo logo is hyperlinked to https://enketo.org
Example:
See change log