xslt.inputs.ddi.source-fixed.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!
A library of getter functions for fods with their implementations for different elements.
For each element, the default behaviour is to return empty text.
Getting the languages list used in the DDI input.
Getter function of a table line depending on an index number.
Too many parameters to be created in functions.
Getter function of the row span of a grid element.
Too many parameters to be created in functions.
For a node() which isn't one of those three, there can't be a defined language.
It's child is returned.
For a child of an xhtml:p element, it is directly returned.
For a text(). The value is simply returned
For a text() sibling of a xhtml:p (and generally empty), nothing is returned
For those nodes, the language is used to return the right text.
Getting the suffix for different response domains.
Getting levels of first dimension in d:QuestionGrid elements.
Getting levels of second dimension in d:QuestionGrid elements.
Getting codes of first dimension in d:QuestionGrid elements having d:GridDimension/d:Roster child.
Getting codes of first dimension in d:QuestionGrid elements not having d:GridDimension/d:Roster child.
Getting the virtual 'levels' in a d:GridDimension.
Getting a title line depending on an index number within a d:QuestionGrid.
Getting a table line depending on an index number within a d:QuestionGrid.
Getting a table line for an l:Code.
Getting the colspan for l:Code belonging to a 1-dimension of several levels.
For the column headers (that are also part of the line.
Those are the r:Label that are directly on top of the referenced codes list.
We need to get the depth level from the 2nd dimension.
So, we select all the l:Code that have no child (and therefore have the highest depth-level),
for each one we get this depth-level
and we keep the maximum, which will be the depth of the 2nd dimension.
Getting rowspan for the line labels (1st dimension). It depends on the depth level.
When l:Code has a l:Code (representing a box dispatched in sub-boxes), we get the number of children l:Code
Getting colspan for the line labels (2nd dimension). It depends on the depth level.
Getting rowspan for the line labels (2nd dimension). It depends on the depth level.
Getting colspan for d:NoDataByDefinition elements for which colspan can be different from 1.
Getting rowspan for d:NoDataByDefinition elements for which rowspan can be different from 1.
getting maximum from date / duration
For a given element, return a set of the Instruction ids which are dependent of the said.
Recursive template that returns the list of variables depending on the first one (the other ones are all calculated variables).
For a given element, return a set of the Sequence ids which are dependent of the said element regarding their hideable property.
For a given element, return a set of the Sequence ids which are dependent of the said element regarding their deactivatable property.
For a given element, return a set of the Loop ids which filter is dependent of the said element regarding their hideable property.
Get the formula to know when a module is hidden or not.
and
Get the formula to know when a response is hidden or not in a QuestionItem.
or
Get the formula to know when a response is hidden or not in a QuestionGrid.
or
Returns the conditions of all its deactivatable ancestors.
Returns the variables of the conditions of all its deactivatable ancestors.
Returns the conditions of all its hideable ancestors.
get-instruction restricted to a format list (if not #all).
get-instruction for tooltips and codes.
Defining getter get-instruction-index for Instruction.
Retrieving the index of an instruction based of previous Instructions matching the $formats param (several formats whith ',' separator accepted).
For consistency purpose the getter won't return anything if the self::Instruction format doesn't match the $formats param.
Defining getter get-code-maximum-length for several questions.
Return the maximum length of a code domain, if is blank then it is a boolean.
Defining getter get-label for MultipleChoiceQuestion.
In MCQ, the label of ResponseDomain is retrieve through the corresponding l:Code in the Dimension (only rank="1" in MCQ).
Defining getter get-label-conditioning-variables.
Function that returns the list of the variables conditioning a label.
Defining getter get-cell-value-variables.
Function that returns the list of the variables of the value of a fixed cell.
Defining getter get-conditioning-variable-formula for StatementItem, Instruction, QuestionItem, QuestionGrid and ComputationItem.
Function that returns the formula of a conditioning variable.
Defining getter get-conditioning-variable-formula-variables for StatementItem, Instruction, QuestionItem, QuestionGrid and ComputationItem.
Function that returns the variables of the formula of a conditioning variable.
Defining getterget-item-label-conditioning-variables.
Function that returns the variables of the labels of the items of CodeDomain and NominalDomain.
Defining getterget-item-label-conditioning-variables.
Function that returns the variables of the labels of the items of MCQ.
Defining getter get-variable-type.
Function that returns the type of a variable.
Defining getter get-container-name.
Function that returns the business name of the container of a loop or a dynamic array.
Defining getter get-linked-containers.
Function that returns the list of the different containers of an occurrence of the current loop or dynamic array.
Defining getter get-descendant-loop.
Function that returns the list of the descendant loops of the current loop.
Defining getter get-descendant-dynamic-array.
Function that returns the list of the descendant dynamic arrays of the current loop.
Defining the boolean getter is-linked-loop.
Function that returns if a loop is not a leader one...
Defining getter get-business-name.
Function that returns the business variable from the DDI one.
Defining getter get-variable-business-name.
Function that returns the business name of a variable from its DDI ID.
Name template get-business-name that returns the business name of a variable from its DDI ID.
Defining getter get-business-ancestors.
Function that returns the business ascendants loop and rowloop business names from a DDI variable.
Defining getter get-variable-business-ancestors.
Function that returns the business ascendants loop and rowloop business names from a DDI variable ID.
Defining getter get-instruction-by-anchor-ref.
Retrieving an instruction based on the value of @href attribute.
If the href param value contains a '#' as first character it will be ignored for the match criteria.
Function that retruns the instruction related to an href value. The current implementation retrieve the instruction anywhere in the input, so href should be unique inside the input context. If the href param starts with the '#' charac, it will be omitted in the matching criteria.
Get flowControl linked to a question
Get Filter linked to a question
The label of a Code in a CodeDomain with @displayCode = 'true' is the concatenation of its r:Value and its descendant r:Label.
The same for a Code in a GridDimension with @displayCode = 'true', but only if it has no descendant.
When both are true, only one Code is concatened
Only the first child of a xhtml:p must be titled
When we match a node starting by xhtml, we only process the first child node with modif-title mode.
Adding the prefix.
Adding the prefix.
default template
Function for retrieving instructions before the label of the question
Function for retrieving the id (modele) of a questionnaire.
The list of the external variables linked to the questionnaire
The list of the external variables linked to a loop / a dynamic array
The list of the external variables linked to a dynamic array
Name template get-controlconstructreference-name that returns the business name of the variable linked to the DDI ID of the ControlConstructReference.