Changeset 6532


Ignore:
Timestamp:
09/13/06 17:14:30 (5 years ago)
Author:
anp
Message:

ecran de controle des MCQ / restructuration des écrans de controle des assmnts

Location:
trunk/Wsp_ModelingAssmnt/spaces/gen/modelBuilder/bs.doss
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Wsp_ModelingAssmnt/spaces/gen/modelBuilder/bs.doss/sma_assmntUnitEditOdTransf/calledTransformersInc.xsl

    r6442 r6532  
    5454        exclude-result-prefixes="sm sma sc xalan"> 
    5555         
    56         <xsl:output method="xml" indent="no" omit-xml-declaration="yes"/> 
     56        <xsl:import href="bsco:sma/odTransf/communCalledTransformersInc.xsl"/> 
    5757         
    58         <xsl:param name="vDialog"/> 
    59         <xsl:param name="vAgent"/> 
    60          
    61         <xsl:variable name="vStructureModel" select="computeNodeAgent(computeNodeAgent('//agentModel', 'source'))/sm:structure"/> 
    62  
    6358        <xsl:template match="/sma:assmntUnitEditOdTransf"> 
    6459                <view code="odContent"> 
     
    116111                </xsl:for-each> 
    117112        </xsl:template> 
    118          
    119          
    120         <xsl:template match="sm:callModel/sm:current"> 
    121                 <call model="{getIdFromPath(/sm:compositionOdtTransf/sm:model/@sc:refUri)}" axis="{@axis}" view="odContent"/> 
    122         </xsl:template> 
    123         <xsl:template match="sm:callModel/sm:root"> 
    124                 <xsl:variable name="vAxis" select="@axis"/> 
    125                 <xsl:for-each select="agentsLies(computeNodeAgent('//agentGenerator', 'listAgentRootAllowed'))"> 
    126                         <call model="{codeAgent(.)}" axis="{$vAxis}" view="odContent"/> 
    127                 </xsl:for-each> 
    128         </xsl:template> 
    129         <xsl:template match="sm:callModel/sm:agentPath"> 
    130                 <xsl:variable name="vAxis" select="@axis"/> 
    131                 <xsl:for-each select="sm:callableModel"> 
    132                         <call model="{getIdFromPath(@sc:refUri)}" axis="{$vAxis}" view="odContent"/> 
    133                 </xsl:for-each> 
    134         </xsl:template> 
    135          
     113                 
    136114        <xsl:template match="sm:callUnitMeta"> 
    137                 <call model="{getIdFromPath($vStructureModel/sm:meta/@sc:refUri)}" axis="{@axis}" view="odContent"/> 
     115                <xsl:call-template name="tCallRootMeta"/> 
    138116        </xsl:template> 
    139117                 
    140         <xsl:template match="text()|@*"/> 
    141          
    142118</xsl:stylesheet> 
  • trunk/Wsp_ModelingAssmnt/spaces/gen/modelBuilder/bs.doss/sma_assmntUnitMcqOdTransf/calledTransformersInc.xsl

    r6203 r6532  
    5454        exclude-result-prefixes="sm sma sc xalan"> 
    5555         
    56         <xsl:output method="xml" indent="no" omit-xml-declaration="yes"/> 
    57          
    58         <xsl:param name="vDialog"/> 
    59         <xsl:param name="vAgent"/> 
    60          
    61         <xsl:variable name="vStructureModel" select="computeNodeAgent(computeNodeAgent('//agentModel', 'source'))/sm:structure"/> 
     56        <xsl:import href="bsco:sma/odTransf/communCalledTransformersInc.xsl"/> 
    6257 
    6358        <xsl:template match="/sma:assmntUnitMcqOdTransf"> 
     
    7671                </xsl:for-each> 
    7772        </xsl:template> 
    78         <xsl:template match="sm:callGlobalExplanationModel"> 
     73        <xsl:template match="sm:callExplanationModel"> 
    7974                <xsl:variable name="vAxis" select="@axis"/> 
    8075                <xsl:for-each select="$vStructureModel/sm:choices/sm:choice/sm:choiceExplanationModel"> 
     
    8883                </xsl:for-each> 
    8984        </xsl:template> 
    90         <xsl:template match="sm:callQuestionModel | sm:callGlobalExplanationModel | sm:callLabelModel | sm:callExplanationModel"> 
     85        <xsl:template match="sm:callGlobalExplanationModel"> 
    9186                <xsl:variable name="vAxis" select="@axis"/> 
    92                 <xsl:for-each select="$vStructureModel/sm:questionModel"> 
     87                <xsl:for-each select="$vStructureModel/sm:globalExplanationModel"> 
    9388                        <call model="{getIdFromPath(@sc:refUri)}" axis="{$vAxis}" view="odContent"/> 
    9489                </xsl:for-each> 
    9590        </xsl:template> 
    96          
    97         <xsl:template match="sm:callModel/sm:current"> 
    98                 <call model="{getIdFromPath(/sm:compositionOdtTransf/sm:model/@sc:refUri)}" axis="{@axis}" view="odContent"/> 
     91                 
     92        <xsl:template match="sm:callUnitMeta"> 
     93                <xsl:call-template name="tCallRootMeta"/> 
    9994        </xsl:template> 
    100         <xsl:template match="sm:callModel/sm:root"> 
    101                 <xsl:variable name="vAxis" select="@axis"/> 
    102                 <xsl:for-each select="agentsLies(computeNodeAgent('//agentGenerator', 'listAgentRootAllowed'))"> 
    103                         <call model="{codeAgent(.)}" axis="{$vAxis}" view="odContent"/> 
    104                 </xsl:for-each> 
    105         </xsl:template> 
    106         <xsl:template match="sm:callModel/sm:agentPath"> 
    107                 <xsl:variable name="vAxis" select="@axis"/> 
    108                 <xsl:for-each select="sm:callableModel"> 
    109                         <call model="{getIdFromPath(@sc:refUri)}" axis="{$vAxis}" view="odContent"/> 
    110                 </xsl:for-each> 
    111         </xsl:template> 
    112          
    113         <xsl:template match="sm:callUnitMeta"> 
    114                 <call model="{getIdFromPath($vStructureModel/sm:meta/@sc:refUri)}" axis="{@axis}" view="odContent"/> 
    115         </xsl:template> 
    116                  
    117         <xsl:template match="text()|@*"/> 
    118          
     95                         
    11996</xsl:stylesheet> 
  • trunk/Wsp_ModelingAssmnt/spaces/gen/modelBuilder/bs.doss/sma_assmntUnitMlqOdTransf/calledTransformersInc.xsl

    r6531 r6532  
    5454        exclude-result-prefixes="sm sma sc xalan"> 
    5555         
    56         <xsl:output method="xml" indent="no" omit-xml-declaration="yes"/> 
     56        <xsl:import href="bsco:sma/odTransf/communCalledTransformersInc.xsl"/> 
    5757         
    58         <xsl:param name="vDialog"/> 
    59         <xsl:param name="vAgent"/> 
    60          
    61         <xsl:variable name="vStructureModel" select="computeNodeAgent(computeNodeAgent('//agentModel', 'source'))/sm:structure"/> 
    62  
    6358        <xsl:template match="/sma:assmntUnitMlqOdTransf"> 
    6459                <view code="odContent"> 
     
    7166        </xsl:template> 
    7267         
    73         <!-- # gabInText--> 
    74         <xsl:template match="sm:callTextModel"> 
    75                 <xsl:variable name="vAxis" select="@axis"/> 
    76                 <xsl:for-each select="$vStructureModel//sm:gapInText/sm:textModel"> 
    77                         <call model="{getIdFromPath(@sc:refUri)}" axis="{$vAxis}" view="odContent"/> 
    78                 </xsl:for-each> 
    79         </xsl:template> 
    80          
    81         <!-- # singleField --> 
    82         <xsl:template match="sm:callSolutionModel"> 
    83                 <xsl:variable name="vAxis" select="@axis"/> 
    84                 <xsl:choose> 
    85                         <xsl:when test="ancestor::*[starts-with(name(), 'sm:for')][1]/@codes = '*'"> 
    86                                 <xsl:for-each select="$vStructureModel//sm:notAssessableField"> 
    87                                         <xsl:for-each select="sm:solutionModel"> 
    88                                                 <call model="{getIdFromPath(@sc:refUri)}" axis="{$vAxis}" view="odContent"/> 
    89                                         </xsl:for-each> 
    90                                 </xsl:for-each> 
    91                         </xsl:when> 
    92                         <xsl:otherwise> 
    93                                 <xsl:for-each select="xalan:tokenize(ancestor::*[starts-with(name(), 'sm:for')][1], ' ')"> 
    94                                         <xsl:variable name="vDefModel" select="$vStructureModel//sm:notAssessableField[@code=current()]"/> 
    95                                         <xsl:if test="$vDefModel"> 
    96                                                 <xsl:for-each select="$vDefModel/sm:solutionModel"> 
    97                                                         <call model="{getIdFromPath(@sc:refUri)}" axis="{$vAxis}" view="odContent"/> 
    98                                                 </xsl:for-each> 
    99                                         </xsl:if> 
    100                                 </xsl:for-each>                          
    101                         </xsl:otherwise> 
    102                 </xsl:choose> 
    103         </xsl:template> 
    10468         
    10569        <!-- # Calls globaux --> 
     
    11781        </xsl:template> 
    11882         
    119          
    120         <xsl:template match="sm:callModel/sm:current"> 
    121                 <call model="{getIdFromPath(/sm:compositionOdtTransf/sm:model/@sc:refUri)}" axis="{@axis}" view="odContent"/> 
    122         </xsl:template> 
    123         <xsl:template match="sm:callModel/sm:root"> 
     83        <xsl:template match="sm:callLabelModel"> 
    12484                <xsl:variable name="vAxis" select="@axis"/> 
    125                 <xsl:for-each select="agentsLies(computeNodeAgent('//agentGenerator', 'listAgentRootAllowed'))"> 
    126                         <call model="{codeAgent(.)}" axis="{$vAxis}" view="odContent"/> 
    127                 </xsl:for-each> 
    128         </xsl:template> 
    129         <xsl:template match="sm:callModel/sm:agentPath"> 
    130                 <xsl:variable name="vAxis" select="@axis"/> 
    131                 <xsl:for-each select="sm:callableModel"> 
     85                <xsl:for-each select="$vStructureModel/sm:interaction//sm:labelModel"> 
    13286                        <call model="{getIdFromPath(@sc:refUri)}" axis="{$vAxis}" view="odContent"/> 
    13387                </xsl:for-each> 
    13488        </xsl:template> 
    13589         
    136         <xsl:template match="sm:callUnitMeta"> 
    137                 <call model="{getIdFromPath($vStructureModel/sm:meta/@sc:refUri)}" axis="{@axis}" view="odContent"/> 
     90        <xsl:template match="sm:callTargetModel"> 
     91                <xsl:variable name="vAxis" select="@axis"/> 
     92                <xsl:for-each select="$vStructureModel/sm:interaction//sm:targetModel"> 
     93                        <call model="{getIdFromPath(@sc:refUri)}" axis="{$vAxis}" view="odContent"/> 
     94                </xsl:for-each> 
    13895        </xsl:template> 
    139                  
    140         <xsl:template match="text()|@*"/> 
    141          
     96                         
     97        <xsl:template match="sm:callMlqMeta"> 
     98                <xsl:call-template name="tCallRootMeta"/> 
     99        </xsl:template> 
     100                         
    142101</xsl:stylesheet> 
Note: See TracChangeset for help on using the changeset viewer.