Changeset 6533 for trunk/Wsp_ModelingAssmnt/spaces/gen/modelBuilder/bs.doss/sma_assmntUnitEditPrim/preview.xsl.xsl
- Timestamp:
- 09/13/06 20:56:37 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Wsp_ModelingAssmnt/spaces/gen/modelBuilder/bs.doss/sma_assmntUnitEditPrim/preview.xsl.xsl
r6457 r6533 77 77 <xsl0:call-template name="tGetBaseTemplateView"/> 78 78 </xsl0:template> 79 80 <!-- hints --> 81 <xsl0:template match="sm:hintModel"> 82 <xsl0:call-template name="tGetBaseTemplateView"> 83 <xsl0:with-param name="pTitle"> 84 <xsl:if test="@cost"> 85 (<xsl0:value-of select="sm:hintCost/@name"/> : <xsl0:if test="sm:hintCost/sm:percentageLost">-</xsl0:if><xsl:value-of select="@cost"/><xsl0:if test="sm:hintCost/sm:percentageLost">%</xsl0:if>) 86 </xsl:if> 87 </xsl0:with-param> 88 </xsl0:call-template> 89 </xsl0:template> 90 79 91 80 <!-- # GapText --> 92 81 <xsl0:template match="sm:gapInText"> … … 98 87 </xsl0:call-template> 99 88 </xsl0:template> 100 101 <xsl0:template match="sm:scoreBounds"> 102 <xsl0:call-template name="tGetBaseTemplateView"> 103 <xsl0:with-param name="pElementName">score</xsl0:with-param> 104 <xsl0:with-param name="pContent"> 105 <xsl0:for-each select="*"> 106 <treeBlockElement> 107 <imgBlock src=""> 108 <titleBlock><xsl0:value-of select="@name"/></titleBlock> 109 <xsl:call-template name="{concat('t_', local-name())}"> 110 <xsl:with-param name="pScore" select="{si(local-name()='pointsIfAllIsRight', '@max', '@min')}"/> 111 </xsl:call-template> 112 </imgBlock> 113 </treeBlockElement> 114 </xsl0:for-each> 115 </xsl0:with-param> 116 </xsl0:call-template> 117 </xsl0:template> 118 119 <xsl0:template match="sm:feedbackModel"> 120 <xsl0:call-template name="tGetBaseTemplateView"> 121 <xsl0:with-param name="pElementName">feedbacks</xsl0:with-param> 122 <xsl0:with-param name="pContent"> 123 <xsl0:apply-templates/> 124 </xsl0:with-param> 125 </xsl0:call-template> 126 </xsl0:template> 127 128 <xsl0:template match="sm:scaledScoreIntervals | sm:pointScoreIntervals"> 129 <xsl:for-each select="sc:feedback"> 130 <treeBlockElement> 131 <imgBlock src=""> 132 <titleBlock> 133 <xsl:if test="@gt"> 134 <xsl0:value-of select="sm:interval/sm:scoreMoreThan/@name"/> 135 <xsl:text> </xsl:text> 136 <xsl0:choose> 137 <xsl0:when test="local-name()='scaledScoreIntervals'"> 138 <xsl:call-template name="t_scaledScoreIntervals"><xsl:with-param name="pScore" select="@gt"/></xsl:call-template> 139 </xsl0:when> 140 <xsl0:otherwise><xsl:value-of select="@gt"/></xsl0:otherwise> 141 </xsl0:choose> 142 <xsl:if test="@gt"><xsl:text> - </xsl:text></xsl:if> 143 </xsl:if> 144 <xsl:if test="@get"> 145 <xsl0:value-of select="sm:interval/sm:scoreMoreOrEqualThan/@name"/> 146 <xsl:text> </xsl:text> 147 <xsl0:choose> 148 <xsl0:when test="local-name()='scaledScoreIntervals'"> 149 <xsl:call-template name="t_scaledScoreIntervals"><xsl:with-param name="pScore" select="@get"/></xsl:call-template> 150 </xsl0:when> 151 <xsl0:otherwise><xsl:value-of select="@get"/></xsl0:otherwise> 152 </xsl0:choose> 153 </xsl:if> 154 <xsl:if test="@lt"> 155 <xsl:if test="@gt or @get"><xsl:text> - </xsl:text></xsl:if> 156 <xsl0:value-of select="sm:interval/sm:scoreLessThan/@name"/> 157 <xsl:text> </xsl:text> 158 <xsl0:choose> 159 <xsl0:when test="local-name()='scaledScoreIntervals'"> 160 <xsl:call-template name="t_scaledScoreIntervals"><xsl:with-param name="pScore" select="@lt"/></xsl:call-template> 161 </xsl0:when> 162 <xsl0:otherwise><xsl:value-of select="@lt"/></xsl0:otherwise> 163 </xsl0:choose> 164 </xsl:if> 165 <xsl:if test="@let"> 166 <xsl:if test="@gt or @get"><xsl:text> - </xsl:text></xsl:if> 167 <xsl0:value-of select="sm:interval/sm:scoreLessOrEqualThan/@name"/> 168 <xsl:text> </xsl:text> 169 <xsl0:choose> 170 <xsl0:when test="local-name()='scaledScoreIntervals'"> 171 <xsl:call-template name="t_scaledScoreIntervals"><xsl:with-param name="pScore" select="@let"/></xsl:call-template> 172 </xsl0:when> 173 <xsl0:otherwise><xsl:value-of select="@let"/></xsl0:otherwise> 174 </xsl0:choose> 175 </xsl:if> 176 </titleBlock> 177 </imgBlock> 178 <indent> 179 <xsl0:variable name="vAgtModel" select="concat('@', getIdFromPath(../@sc:refUri))"/> 180 <xsl:call-template name="{resultatAgent(concat($vAgtModel, '/codeModel'))}"><xsl:with-param name="pVisu">content</xsl:with-param></xsl:call-template> 181 </indent> 182 </treeBlockElement> 183 </xsl:for-each> 184 </xsl0:template> 185 89 186 90 <!-- # singleField --> 187 91 <xsl0:template match="sm:singleField"> … … 278 182 </xsl0:template> 279 183 280 281 282 283 184 <!-- création des templates gérants la présentation des notes --> 284 <xsl0:template match="sm:pointsIfAllIsRight| sm:pointsIfAllIsWrong | sm:scaledScoreIntervals | sm: solution | sm:undefinedResponse" mode="mScoreMgr">185 <xsl0:template match="sm:pointsIfAllIsRight| sm:pointsIfAllIsWrong | sm:scaledScoreIntervals | sm:pointScoreIntervals | sm:solution | sm:undefinedResponse" mode="mScoreMgr"> 285 186 <xsl0:call-template name="tScoreMgr"> 286 187 <xsl0:with-param name="pNumericScoring"><xsl0:copy-of select="descendant-or-self::*[@displayFormat][1]"/></xsl0:with-param> … … 289 190 </xsl0:template> 290 191 291 <xsl0:template match="*"/>292 192 </xsl0:stylesheet>
Note: See TracChangeset
for help on using the changeset viewer.