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

xslt.transformations.ddi2lunatic-xml.ddi2lunatic-xml-fixed.xsl Maven / Gradle / Ivy

Go to download

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

The newest version!


    
    
    
    
    
    
    
        
            This stylesheet is used to transform a DDI input into an Xforms form (containing orbeon form runner adherences).
        
    
    
    
    
    
    
    
    
    
        
            The properties file used by the stylesheet.
            It's on a transformation level.
        
    
    
    
    
        
    
    
    
    
        
            A variable is created to build a set of label resources in different languages.
            Only the resources in languages already present in the DDI input are charged.
        
    
    
        
    
    
    
        
            The properties and parameters files are charged as xml trees.
        
    
    
    
        
            
                
            
            
                
            
        
    
    
    
        Variables from propertiers and parameters
    
    
        
            
                
            
            
                
            
        
    
    
        
            
                
            
            
                
            
        
    
    
        
            
                
            
            
                
            
        
    
    
        
            
                
            
            
                
            
        
    
    
    
    
    
        
            Characters used to surround variables in conditioned text.
        
    
    
    
    
    
    
    
    
    
    
    
    
    
                
        
            
        
    
    
    
        
            Root template :
            The transformation starts with the main Sequence.
        
    
    
        
                
    
    
    
        
            This function retrieves the languages to appear in the generated Xforms.
            Those languages can be specified in a parameters file on a questionnaire level.
            If not, it will get the languages defined in the DDI input.
        
    
    
        
        
            
                
                    
                
            
            
                
            
        
    
    
    
        
            Function for retrieving instructions based on the location they need to be outputted
        
    
    
        
        
    
    
    
        
            Function for retrieving instructions based on the location they need to be outputted
        
    
    
        
        
    
    
    
        
            Function for retrieving instructions based on the location they need to be outputted
        
    
    
        
        
    
    
    
        
        
        
        		
        
        
            
                
            
        
        
    
    
    
        
        
        
            
                
                    
                
                
                    
                
            
        
        
            
            
                
                    
                
                
                    
                
            
        
    
    
    
        
        
            
                
                    
                    
                    
                    
                        
                            
                                
                            
                            
                                
                            
                        
                    
                
                
                    
                        
                            
                        
                        
                            
                        
                    
                
            
        
        
    
    
    
    
        
        
        
            
                
                    
                
                
                    
                
            
        
        
    
    
    
        
        
    
    
    
        
            This function replace [Data](. "example of tooltip") by [Data](. 'example of tooltip')
            The goal is to prevent quotes from interfering with VTL
        
    
    
                
        
        
            
                
            
            
                
                
            
        
    
    
    
        
        
        
            
                
                               
                    
                    
                
                
            
            
                
            
        
    
    
    
    
    
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
            
                
                    
                        
                            
                            
                                
                            
                        
                    
                    
                                        
                                        
                                
                
                    
                
            
        
    
    
    
    
        
        
        
        
        
            
                
            
            
                
            
        
    
    
    
        
        
        
        
            
                
                    
                        
                            
                            
                            
                            
                        
                        
                            
                        
                    
                
                
            
        
        
            
                
                    
                        
                            
                            
                            
                        
                        
                            
                        
                    
                
                
            
        
        
    
    
    
        
            Function: enolunatic:get-cast-variable.
            It returns the type of variable, string, number, integer, boolean
            variableName -> cast(variableName,type)
        
    
    
        
        
        
            
                
                    
                        
                    
                    
                        
                    
                    
                        
                    
                    
                        
                    
                    
                    
                    
                        
                    
                
            
            
                
            
        
    
    
    
        
        
            
                
                    
                        
                        
                        
                    
                
                
                    
                        
                        
                    
                
            
            
            
                
            
        
    
    
    
        
            Recursive named template: enolunatic:replace-variables-in-formula.
            It replaces variables in a all formula (filter, control, personalized text, calculated variable).
            "number(if (¤idVariable¤='') then '0' else ¤idVariable¤)" -> ¤idVariable¤
            "¤idVariableCalculatedVar¤" -> formula
        
    
    
        
        
        
        
        
        
            
                
            
        
        
        
            
        
        
        
            
                
                    
                        
                            
                            
                            
                            
                            
                                
                                    
                                
                                
                                    
                                
                            
                        
                        
                            
                        
                    
                
                
                    
                        
                            
                            
                            
                            
                                
                                    
                                
                                
                                    
                                
                            
                        
                        
                            
                        
                    
                
                
                    
                    
                
            
            
                
            
        
    
    
    
    
        
            Recursive named template: enolunatic:resolve-variables-to-collected-and-external-variables.
            It searches variables until collected and external in all formula for caculated variables.
        
    
    
        
        
        
        
        
        
        
        
        
            
        
        
        
        
            
                
                
                    
                
            
        
        
        
            
        

        
        
            
                
                
                
                
                
                
                
                    
                        
                            
                            
                            
                                
                                
                                
                            
                            
                                
                                
                                
                            
                            
                                
                            
                        
                        
                            
                                
                            
                            
                                
                                
                                
                            
                            
                                
                                
                                
                            
                        
                    
                

                
                
                
                    
                    
                    
                    
                
                
            
            
            
            
                
                
                    
                
            
            
        
        
    
        
    
        
        
        
        
    
    
    
        
        
        
    
    
    
        
        
        
        
            
            
            
        
    
    
    
    
    
    
        
        
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
        
    
    




© 2015 - 2024 Weber Informatics LLC | Privacy Policy