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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.