Update of /cvsroot/csms/csms-core/src/resources/conf
In directory usw-pr-cvs1:/tmp/cvs-serv19623
Modified Files:
ScoringConfig.xsl
Log Message:
Fixed issues with points for red and yellow cards
Index: ScoringConfig.xsl
===================================================================
RCS file: /cvsroot/csms/csms-core/src/resources/conf/ScoringConfig.xsl,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** ScoringConfig.xsl 2 Nov 2002 16:54:31 -0000 1.2
--- ScoringConfig.xsl 2 Nov 2002 18:06:42 -0000 1.3
***************
*** 389,402 ****
<!-- Any player receiving a straight Red Card will lose 3 points. -->
! <!-- FIXME ensure a player sent off for two yellows does not get the -3 penalty, just the two -1's for the yellows -->
! <!-- FIXME ensure a player recieveing 1 yellow and 1 red gets - 4 points (-1 + -3) -->
! <xsl:template name="sendingOffs">
! <xsl:for-each select="//event[type='sendingOff']">
<xsl:call-template name="getPointsNode">
<xsl:with-param name="playerName"><xsl:value-of select="player"/></xsl:with-param>
<xsl:with-param name="points">-3</xsl:with-param>
! <xsl:with-param name="eventType">Sending Off</xsl:with-param>
</xsl:call-template>
</xsl:for-each>
</xsl:template>
--- 389,404 ----
<!-- Any player receiving a straight Red Card will lose 3 points. -->
! <xsl:template name="redCards">
! <xsl:for-each select="//event[type='redCard']">
<xsl:call-template name="getPointsNode">
<xsl:with-param name="playerName"><xsl:value-of select="player"/></xsl:with-param>
<xsl:with-param name="points">-3</xsl:with-param>
! <xsl:with-param name="eventType">Red Card</xsl:with-param>
</xsl:call-template>
</xsl:for-each>
+ </xsl:template>
+
+ <xsl:template name="sendingOffs">
+ <!-- no additional points for a sending off -->
</xsl:template>
|