All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xslt.inputs.pogues-xml.source.xsl Maven / Gradle / Ivy

Go to download

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

There is a newer version: 2.10.2
Show newest version


   
      
         For each element, the default behaviour is to return empty text.
      
   
   
      
   
   
      
         This mode is used to return nodes instead of strings.
      
   
   
      
   
   
      
         This mode is used when a conversion table is needed between Pogues and DDI.
         TODO : Move this out of the input interface and put it in the transformation one
                (depends both on input and output).
      
   
   
      
   
   
      
   
   
      
         
            
         
         
            
         
         
            
         
         
            
         
      
   
   
      
         
      
      
         
            
         
         
            
         
      
   
   
      
         
            
         
         
            
         
         
            
         
         
            
         
         
            
         
      
   
   
      
         
            
         
         
            
         
         
            
         
         
            
         
         
            
         
         
            
         
      
   
   
      
         
            
         
         
            
         
         
            
         
         
            
         
         
            
         
      
   
   
      
         
            
         
         
            
         
         
            
         
         
            
         
         
            
         
         
            
         
         
            
         
         
            
         
         
            
         
         
            
         
         
            
         
         
            
         
         
            
         
         
            
         
         
            
         
         
            
         
         
            
         
         
            
         
         
            
         
         
            
         
         
            
         
         
            
         
         
            
         
         
            
         
         
            
         
      
   
   
      
      
         
            
         
         
            
         
         
            
         
         
            
         
      
   
   
      
      
   
   
      
      
   
   
      
      
      
      
      
   
   
      
   
   
      
      
   
   
      
   
   
      
         
         
         
            
         
      
   
   
      
   
   
      
         
            
            
               
            
            
               
                  
                     
                  
                  
                     
                  
               
            
         
      
      
   
   
      
      
   
   
      
      
         
            
               
               
            
         
         
            
         
      
   
   
      
      
      
      
         
            
         
         
            
            
            
            
            
            
            
            
               
                  
                  
                     
                     
                     
                  
               
               
               
                  
                  
                     
                     
                     
                  
               
               
                  
                     
                     
                     
                  
               
            
         
      
   
   
      
      
   
   
   
      
      
         Multi Variables references in ConditionnalText (coming from FailMessage) are not supported.
      
      
   
   
      
      
      
      
   
   
      number used to link the clarified Response and its clarifications
   
   
      
      
         
      
   
   
      
      
   
   
      
      
   
   
      
      
   
   
      
         This is used to implement the code of booleans if this return something
      
   
   
      
      
   
   
      
         Return the agency that created the survey
      
   
   
      
      
   
   
      
         
      
   
   
      
      
   
   
      
         In a table question context, this getter returns a sequence containing the cell coordinates of the current element (aka: (i,j) or (i) if only one dimension)
      
   
   
      
      
   
   
      
         
      
   
   
      
      
   
   
      
         This getter return the id of the codeList related to the current element.
      
   
   
      
      
   
   
      
         
      
   
   
      
      
      
         
      
   
   
      
         Return all the controls of the survey.
      
   
   
      
      
   
   
      
         Return the number of decimals of the data type.
      
   
   
      
      
   
   
      
         
      
   
   
      
      
   
   
      
         Return the dynamic attribute of the pogues:Dimension. This value is used to compute positions in grids
      
   
   
      
      
   
   
      
         Expression is the default element for expressions in Pogues.
      
   
   
      
      
   
   
      
         
      
   
   
      
      
   
   
      
         
      
   
   
      
      
   
   
      
         
      
   
   
      
      
   
   
      
         Build the id for Instruction generated from a Control/FailMessage
      
   
   
      
      
   
   
      
         Return the attribut coding the level of the sequence (QUESTIONNAIRE, MODULE, SUBMODULE,...)
      
   
   
      
      
   
   
      
         This getter returns the needed element to generate GridDimension
      
   
   
      
      
   
   
      
         Return the ID attribute of the element
      
   
   
      
      
   
   
      
         Return the ID to which the GoTo aim
      
   
   
      
      
   
   
      
         Return all IfThenElses elements of the survey.
      
   
   
      
      
   
   
      
         This getter is an overload of the regular get-id one to cover the case of Instruction Generated from Control
      
   
   
      
      
   
   
      
         This getter is an overload of the regular get-name one to cover the case of Instruction Generated from Control
      
   
   
      
      
   
   
      
         Return all modes of instruction element
      
   
   
      
      
   
   
      
         This getter is an overload of the regular get-text one to cover the case of Instruction Generated from Control
      
   
   
      
      
   
   
      
         Return all Declarations elements of the survey.
      
   
   
      
      
   
   
      
         Used to retrieve Declaration whith position BEFORE_QUESTION_TEXT
      
   
   
      
      
   
   
      
         Build an id for InParameter taking index (in its context) of the expected InParemeter as param
      
   
   
      
      
      
         
      
   
   
      
         Function that returns the label of a pogues element.
      
   
   
      
      
   
   
      
         Return a lang for the survey. As this information in not available in PoguesXML, it is hard-coded
      
   
   
      
      
   
   
      
         Return the attribut coding if the anwser is mandatory. This part is not implemented
      
   
   
      
      
   
   
      
         Return the maximum length of the data type
      
   
   
      
      
   
   
      
         Return the maximal value of the data type
      
   
   
      
      
   
   
      
         Return the minimal value of the data type
      
   
   
      
      
   
   
      
         Return the formula of the maximum number of occurrences of a loop
      
   
   
      
      
   
   
      
         Return the formula of the minimum number of occurrences of a loop
      
   
   
      
      
   
   
      
         Name is the default element for names in Pogues.
      
   
   
      
      
   
   
      
         Return the ID of the parent of the current element
      
   
   
      
      
   
   
      
         
      
   
   
      
      
   
   
      
         Build the id for a 'Question OutParemeter' associated with the current question. TODO rename because it's used for Question OutParameter, but for GenerationInstruction too.
      
   
   
      
      
   
   
      
         
      
   
   
      
      
   
   
      
         
      
   
   
      
      
   
   
      
         
      
   
   
      
      
   
   
      
         Return all Questions elements of the survey.
      
   
   
      
      
   
   
      
         Return all the simple Question of the survey (needed to drive the output order)
      
   
   
      
      
   
   
      
         Return all the table Question of the survey (needed to drive the output order)
      
   
   
      
      
   
   
      
         This getters returns the rank number of a dimension (based on PRIMARY/SECONDARY value)
      
   
   
      
      
   
   
      
         
      
   
   
      
      
   
   
      
         Return the control associated with the element.
      
   
   
      
      
   
   
      
         
      
   
   
      
      
   
   
      
         Return the questions which reference the param id
      
   
   
      
      
   
   
      
         Return the variables referenced inside the element.
      
   
   
      
      
   
   
      
         Return all Sequenses elements of the survey.
      
   
   
      
      
   
   
      
         
      
   
   
      
      
   
   
      
         Return the ID of the element that result a true condition.
      
   
   
      
      
   
   
      
         Return the type of a question or of the data of a response
      
   
   
      
      
   
   
      
         Return the name of the type of data of a response (TEXT, NUMERIC,...)
      
   
   
      
      
   
   
      
         
      
   
   
      
      
   
   
      
         Value is the default element for values in Pogues.
      
   
   
      
      
   
   
      
         Return a version for the survey. As this information in not available in PoguesXML, it is hard-coded
      
   
   
      
      
   
   
      
         Return the type of visualisation of a response (checkbox, radio-button,..)
      
   
   
      
      
   
   
      
         Return the string expected as value of the isDiscrete attribut of l:code in ddi3.2 . This value is hard-coded
      
   
   
      
      
   
   
      
         Used to identify 'Question element'. TODO add attribute mechanisme to drivers to simplify this.
      
   
   
      
      
   
   
      
         Used to identify 'Sequence element'. TODO add attribute mechanisme to drivers to simplify this.
      
   
   
      
      
   
   
      
         
      
   
   
      
      
   
   
      
         
      
   
   
      
      
   
   
      
         Used to retrieve data type for Variables and Responses
      
   
   
      
      
   
   
      
         Return Format
      
   
   
      
      
   
   
      
         Return the expression of clarification element.
      
   
   
      
      
   
   
      
         Returns the id of the scope containing the variable : Questionnaire or dynamic array
      
   
   
      
      
   
   
      
         Returns the id of the Response that is clarified
      
   
   
      
      
   
   
      
         Returns the position of the Response which has a Clarification
      
   
   
      
      
   
   
      
         Return loop step
      
   
   
      
      
   
   
      
         Return all loops (iteration) who don't have a link to a Table or another Loop by IterableReference
      
   
   
      
      
   
   
      
         Return all loops (Iteration)
      
   
   
      
      
   
   
      
         Return all variables linked to the loop
      
   
   
      
      
   
   
      
         Return the scope id for the variable if exist
      
   
   
      
      
   
   
      
         Return all loops linked to the Table (Scope)
      
   
   
      
      
   
   
      
         Return Filter value for the loop or the linked loop
      
   
   
      
      
   
   
      
         Return all loops with a filter
      
   
   
      
      
   
   
      
         Return true if the element match the NoDataByDefinition
      
   
   
      
      
   
   
      
         Returns true if the content of Scope is a question construct
      
   
   
      
      
   
   
      
         Return the language of formulas : XPATH or VTL
      
   
   
      
      
   
   
      
         Return the scope of the pairwise
      
   
   
      
      
   
   
      
         Returns the URN from the external codelist
      
   
   
      
      
   
   
      
         Returns the parameters for the suggester responses using this codelist
      
   
   
      
      
   
   
      
         Returns if a dynamic array's check is linked to its lines, not to the whole dynamic array
      
   
   
      
      
   
   
      
         Returns the label of the cell
      
   
   
      
      
   
   
      
         Returns the label of the occurrence for a roundabout
      
   
   
      
      
   
   
      
         Returns the variables of the label of the occurrence for a roundabout
      
   
   
      
      
   
   
      
         Returns the label to comment the status of an occurrence of a loop
      
   
   
      
      
   
   
      
         Returns the variables of the label to comment the status of an occurrence of a loop
      
   
   
      
      
   
   
      
         Returns if a roundabout is locked
      
   
   
      
      
   
   
      
         Return all Roundabouts elements of the survey.
      
   
   
      
      
   
   
      
         Return the language of formulas : XPATH or VTL
      
   
   
      
   
   
      
         This is used to implement the code of booleans if this return something
      
   
   
      
   
   
      
         Return the agency that created the survey
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         Return all the controls of the Survey.
      
   
   
      
   
   
      
         Return the number of decimals of the data type.
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         Return the dynamic attribute of the pogues:Dimension. This value is used to compute positions in grids
      
   
   
      
   
   
      
         Expression is the default element for expressions in Pogues.
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         Return the attribut coding the level of the sequence (QUESTIONNAIRE, MODULE, SUBMODULE,...)
      
   
   
      
   
   
      
         Return the ID attribute of the element
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         The CodeListRefence element contains the ID of the CodeList it reference. It doesn't have an ID attribute
      
   
   
      
   
   
      
         Using the patent's id for pogues:Expression's id. Because of a tweak to escape from Goto, pogues:IfThenElse could contain pogues:Expression so a parent::* is needed in the Xpath instead of a parent::pogues:Control.
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         The id for a l:Code is build upon the CodeList id and the rank index of the current l:Code in the CodeList
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         Return the ID to which the GoTo aim
      
   
   
      
   
   
      
         Return all IfThenElses elements of the survey. The with-tag of the Match_Mode column means that this template is hard-coded in the src\main\resources\xslt\inputs\pogues-xml\source-fixed.xml. This is to keep the tags as well as their content by makig a sequence instead of a value-of
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         Return all Declarations of the survey
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         Label is the default element for labels in Pogues.
      
   
   
      
   
   
      
         Return a lang for the survey. As this information in not available in PoguesXML, it is hard-coded in this document
      
   
   
      
   
   
      
         Return the attribut coding if the anwser is mandatory. This part is not implemented
      
   
   
      
   
   
      
         Return the maximum length of the data type
      
   
   
      
   
   
      
         Return the maximal value of the data type
      
   
   
      
   
   
      
         Return the maximal value of the data type
      
   
   
      
   
   
      
         Return the formula of the maximum number of occurrences of a loop
      
   
   
      
   
   
      
         Return the formula of the minimum number of occurrences of a loop
      
   
   
      
   
   
      
         Return the minimal value of the data type
      
   
   
      
   
   
      
         Return the minimal value of the data type
      
   
   
      
   
   
      
         Name is the default element for names in Pogues.
      
   
   
      
   
   
      
         The <d:InstructionName> of ddi InterviwerInstruction is equal to the Declaration@declarationType of PoguesXML
      
   
   
      
   
   
      
         Return the ID of the parent of the current element
      
   
   
      
   
   
      
         Return the position for a Declaration.
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         Return all Questions elements of the survey. The with-tag of the Match_Mode column means that this template is hard-coded in the src\main\resources\xslt\inputs\pogues-xml\source-fixed.xml. This is to keep the tags as well as their content by makig a sequence instead of a value-of
      
   
   
      
   
   
      
         Return all the simple Question of the survey (needed to drive the output order)
      
   
   
      
   
   
      
         Return all the table Question of the survey (needed to drive the output order)
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         Return the controls related to an element, mandatory Response are equivalent to Controls.
      
   
   
      
   
   
      
         Return the controls for all occurrences of a roundabout
      
   
   
      
   
   
      
         Return the controls for all occurrences of a roundabout
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         From a Variable, you need to get related response to have Question Out Parameters.
      
   
   
      
   
   
      
         From a Response (in the context of a mandatory Response), the related response is itself (the Expression is induced by the Response itself).
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         Return all Sequenses elements of the survey. The with-tag of the Match_Mode column means that this template is hard-coded in the src\main\resources\xslt\inputs\pogues-xml\source-fixed.xml. This is to keep the tags as well as their content by makig a sequence instead of a value-of
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         Return the ID of the element that result a true condition.
      
   
   
      
   
   
      
         Return the type of data of a response (NUMERIC, TEXT, DATE,...)
      
   
   
      
   
   
      
         Return the type of the question (SIMPLE, SINGLE_CHOICE, MULTIPLE_CHOICE, PAIRWISE)
      
   
   
      
   
   
      
         Return the type of the question : TABLE
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         Return the name of the type of data of a response (TEXT, NUMERIC,...)
      
   
   
      
   
   
      
         Non dynamic Unit : returns the value corresponding to the Uri
      
   
   
      
   
   
      
         Value is the default element for values in Pogues.
      
   
   
      
   
   
      
         Return a version for the survey. As this information in not available in PoguesXML, it is hard-coded in this document
      
   
   
      
   
   
      
         Return the type of visualisation of a response (checkbox, radio-button,..)
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         Return the string expected as value of the isDiscrete attribut of l:code in ddi3.2 . If the Code has child codes = false, else true.
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         
      
   
   
      
   
   
      
         Expression is the default element for expressions in Pogues for clarification question
      
   
   
      
   
   
      
         Calculated variable without Scope : Returns questionnaire id
      
   
   
      
   
   
      
         External variable without Scope : Returns questionnaire id
      
   
   
      
   
   
      
         Variable collected in a dynamic array : returns its question id
      
   
   
      
   
   
      
         Variable collected out of a dynamic array or a pairwise : returns questionnaire id
      
   
   
      
   
   
      
         Variable from a clarification question, collected out of a dynamic array or a pairwise : returns questionnaire id
      
   
   
      
   
   
      
         Returns id for question of type pairwise
      
   
   
      
   
   
      
         Return id of Table or Loop (the other function by the same name are kept just for compatibility, they must be replaced in the future by pogues:Variable[not(pogues:Scope) or pogues:Scope=''])
      
   
   
      
   
   
      
         Return loop step
      
   
   
      
   
   
      
         Return all loops which don't have a link to a Table or another Loop by IterableReference
      
   
   
      
   
   
      
         Return all loops
      
   
   
      
   
   
      
         Return all variables linked to the table or loop by scope
      
   
   
      
   
   
      
         Return all loops linked to the Table (Scope)
      
   
   
      
   
   
      
         Return all loops linked to the Table (Scope)
      
   
   
      
   
   
      
         Return Filter value for the loop
      
   
   
      
   
   
      
         Return all loops with a filter
      
   
   
      
   
   
      
         Return true if the element match the NoDataByDefinition
      
   
   
      
   
   
      
         Return true if the element match the NoDataByDefinition
      
   
   
      
   
   
      
         Returns true if the content of Scope refers to a question (necessary for cases of caclulated variables referring to a table)
      
   
   
      
   
   
      
         Return the scope of the pairwise
      
   
   
      
   
   
      
         Returns the URN from the external codelist
      
   
   
      
   
   
      
         Returns the parameters for the suggester responses using this codelist
      
   
   
      
   
   
      
         Returns if a dynamic array's check is linked to its lines, not to the whole dynamic array
      
   
   
      
   
   
      
         Returns the label of the cell
      
   
   
      
   
   
      
         Returns the label of the occurrence for a roundabout
      
   
   
      
   
   
      
         Returns the variables of the label of the occurrence for a roundabout
      
   
   
      
   
   
      
         Returns the label to comment the status of an occurrence of a loop
      
   
   
      
   
   
      
         Returns the variables of the label to comment the status of an occurrence of a loop
      
   
   
      
   
   
      
         Returns is a roundabout is locked
      
   
   
      
   
   
      
         Return all Roundabouts elements of the survey. The with-tag of the Match_Mode column means that this template is hard-coded in the src\main\resources\xslt\inputs\pogues-xml\source-fixed.xml. This is to keep the tags as well as their content by making a sequence instead of a value-of
      
   
   
      
   





© 2015 - 2024 Weber Informatics LLC | Privacy Policy