Changeset 6532
- Timestamp:
- 09/13/06 17:14:30 (5 years ago)
- 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 54 54 exclude-result-prefixes="sm sma sc xalan"> 55 55 56 <xsl: output method="xml" indent="no" omit-xml-declaration="yes"/>56 <xsl:import href="bsco:sma/odTransf/communCalledTransformersInc.xsl"/> 57 57 58 <xsl:param name="vDialog"/>59 <xsl:param name="vAgent"/>60 61 <xsl:variable name="vStructureModel" select="computeNodeAgent(computeNodeAgent('//agentModel', 'source'))/sm:structure"/>62 63 58 <xsl:template match="/sma:assmntUnitEditOdTransf"> 64 59 <view code="odContent"> … … 116 111 </xsl:for-each> 117 112 </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 136 114 <xsl:template match="sm:callUnitMeta"> 137 < call model="{getIdFromPath($vStructureModel/sm:meta/@sc:refUri)}" axis="{@axis}" view="odContent"/>115 <xsl:call-template name="tCallRootMeta"/> 138 116 </xsl:template> 139 117 140 <xsl:template match="text()|@*"/>141 142 118 </xsl:stylesheet> -
trunk/Wsp_ModelingAssmnt/spaces/gen/modelBuilder/bs.doss/sma_assmntUnitMcqOdTransf/calledTransformersInc.xsl
r6203 r6532 54 54 exclude-result-prefixes="sm sma sc xalan"> 55 55 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"/> 62 57 63 58 <xsl:template match="/sma:assmntUnitMcqOdTransf"> … … 76 71 </xsl:for-each> 77 72 </xsl:template> 78 <xsl:template match="sm:call GlobalExplanationModel">73 <xsl:template match="sm:callExplanationModel"> 79 74 <xsl:variable name="vAxis" select="@axis"/> 80 75 <xsl:for-each select="$vStructureModel/sm:choices/sm:choice/sm:choiceExplanationModel"> … … 88 83 </xsl:for-each> 89 84 </xsl:template> 90 <xsl:template match="sm:call QuestionModel | sm:callGlobalExplanationModel | sm:callLabelModel | sm:callExplanationModel">85 <xsl:template match="sm:callGlobalExplanationModel"> 91 86 <xsl:variable name="vAxis" select="@axis"/> 92 <xsl:for-each select="$vStructureModel/sm: questionModel">87 <xsl:for-each select="$vStructureModel/sm:globalExplanationModel"> 93 88 <call model="{getIdFromPath(@sc:refUri)}" axis="{$vAxis}" view="odContent"/> 94 89 </xsl:for-each> 95 90 </xsl:template> 96 97 <xsl:template match="sm:call Model/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"/> 99 94 </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 119 96 </xsl:stylesheet> -
trunk/Wsp_ModelingAssmnt/spaces/gen/modelBuilder/bs.doss/sma_assmntUnitMlqOdTransf/calledTransformersInc.xsl
r6531 r6532 54 54 exclude-result-prefixes="sm sma sc xalan"> 55 55 56 <xsl: output method="xml" indent="no" omit-xml-declaration="yes"/>56 <xsl:import href="bsco:sma/odTransf/communCalledTransformersInc.xsl"/> 57 57 58 <xsl:param name="vDialog"/>59 <xsl:param name="vAgent"/>60 61 <xsl:variable name="vStructureModel" select="computeNodeAgent(computeNodeAgent('//agentModel', 'source'))/sm:structure"/>62 63 58 <xsl:template match="/sma:assmntUnitMlqOdTransf"> 64 59 <view code="odContent"> … … 71 66 </xsl:template> 72 67 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>104 68 105 69 <!-- # Calls globaux --> … … 117 81 </xsl:template> 118 82 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"> 124 84 <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"> 132 86 <call model="{getIdFromPath(@sc:refUri)}" axis="{$vAxis}" view="odContent"/> 133 87 </xsl:for-each> 134 88 </xsl:template> 135 89 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> 138 95 </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 142 101 </xsl:stylesheet>
Note: See TracChangeset
for help on using the changeset viewer.