xslt.outputs.lunatic-xml.models.xsl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eno-core Show documentation
Show all versions of eno-core Show documentation
Eno is a tool that generates survey questionnaires starting from their formal description in DDI
The newest version!
An xslt stylesheet who transforms an input into js through generic driver templates.
The real input is mapped with the drivers.
VariableGroup only leads to its children
template Variable is used only for external variables : TODO : refactor for other ones
Match on Form driver.
It writes the root of the document with the main title.
Match on QuestionLoop driver
Match on Module and SubModule drivers.
filters do not create a component because their condition is borne by each of their descendants
SingleResponseQuestion and MultipleQuestion drivers do not create a component : it is created by its response
PairwiseQuestion driver creates a component which is likely a loop of loop, with the same axises : for example, the link between people of the same household
count( )
VTL
count( )
VTL
1
3
2
4
6
5
8
7
10
9
13
12
11
null
null
16
17
18
VTL
MultipleChoiceQuestion driver creates a CheckboxGroup component
Table / TableLoop drivers create a Table component
TextCell driver displays the header cells, for columns and lines.
The Cell driver gives the colspan and the rowspan to the Response, which creates the cell.
The EmptyCell driver creates an empty cell.
The Response drivers in SingleResponseQuestion and MultipleQuestion create a component, which type depends on the Response driver.
0
The Response drivers in the body lines of tables create a cell, which type depends on the Response driver.
0
The Response of MultipleChoiceQuestion creates a response element of the CheckboxGroup.
Each value of a CodeDomain response creates an option.
The value of a BooleanDomain gives its label.
The xf-output driver adds declaration elements.
The CalculatedVariable driver displays the formula of the calculated variable on the elements variables.
template for the GoTo
Match on the ConsistencyCheck driver.
It writes the formula of the check.
Function named: enolunatic:printQuestionTitleWithInstruction.
It prints the instructions of a question.
Named template: enolunatic:add-response-to-components.
Named template: enolunatic:add-collected-variable-to-components.
It creates the variables with its different possible states.
Named template: enolunatic:add-format-controls.
It creates the format controls.
Named function: enolunatic:add-dependencies.
Named function: enolunatic:add-conditionFilter