Giter Club home page Giter Club logo

eno's Introduction

Eno logo

Eno โ€“ Questionnaire generator

Build Status Maven Central

Introduction

Eno is a tool that generates survey questionnaires starting from their formal description in DDI.

Due to its modular design, Eno can create questionnaires in different formats from the same DDI description. Currently, Eno generates XForms web questionnaires that can be executed on Orbeon Forms Runner. PDF questionnaires is under development.

Principles :

The generation of XForms forms is performed using a number of XSLT transformations from a DDI input managed by a Ant script.

With Java

Use the maven dependency to provide the Jar from maven central

`

<dependency>

	<groupId>fr.insee.eno</groupId>
	
	<artifactId>eno-core</artifactId>
	
	<version>1.0.0</version>

</dependency>

`

See examples in src/test/resources

With Ant

The main Ant build file is [/src/main/scripts/build_non_regression.xml] and its main target is "full".

This file includes the name forms to generate.

The DDI input and configuration are found in a subdirectory of [/questionnaire/] with the same name.

Generic Ant properties which drive the transformations are stored in [/src/main/scripts/build_configuration.xml]

The generated XForms output will be located in a subdirectory of [/questionnaire/].

Getting Started

Prior for Ant usage:

  • Apache Ant. You can download Ant from Apache, see also : Ant Apache

  • Source code from github.com.

Then you have to donwload Java Libraries :

  • Ant-Contrib 0.6 or higher (collection of tasks for Apache Ant), see also : Ant contrib
  • Saxon HE 9.X or higher (The XSLT and XQuery Processor), see also : Saxon
  • Saxon-unpack, included as standard in each Saxon edition
  • Common lang 3 or higher (for the non regression test only), see also : Apache Commons lang

Paste the ".jar" file in a "/lib/" folder at the Eno project root.

Example :

You can find on the subdirectory [/questionnaire/], the questionnaire example "Simpsons" specified in the DDI format.

To generate the XForms form, execute the main ant build file [/src/main/scripts/build_non_regression.xml]

The generated XForms form should be created in [/questionnaire/simpsons/Xforms/v1/] folder.

Non regression test :

The expected XForms form file for the Simpsons questionnaire is present in [/questionnaire/simpsons/] folder, a specific ant target : "full-with-test" generates Xform file and calculates the difference with the expected Xforms file.

The difference file [questionnaire/simpsons/Xforms/v1/diff.txt] specifed, if there has, index at which the file begins to differ and the difference beetwen the generated Xform file and the expected Xform file.

Road Map

New output format : PDF for paper questionnaire

eno's People

Contributors

bulotf avatar laurentc35 avatar bwerquin avatar mugiwara84 avatar bibirico avatar romaintailhurat avatar badr-akka avatar franckco avatar benbaqqal avatar geoffreypink avatar a-cordier avatar heidikm avatar antoine-dreyer avatar olevitt avatar thomaspo avatar

Watchers

James Cloos avatar

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.