For example if you were looking through stats and you had games that had a scores of 8,6,6,4,3 but i only wanna use the value of the top 2 unless there is a tie so in this case i want to display 8,6,6 but if the scores were 8,6,5,4,3 i would only want to display 8,6.
<xsl:for-each select="schedule/game"> <xsl:sort select="pts" data-type="number" order="descending"/> <xsl:choose> <xsl:when test="position()=1"> <tr> <td>Points</td> <td><xsl:value-of select="pts"/></td> <td>   </td> <td><xsl:value-of select="opponent"/></td> </tr> </xsl:when> <xsl:when test="not(position()>2) and pts>0 and position()!=1"> <tr> <td>   </td> <td><xsl:value-of select="pts"/></td> <td>   </td> <td><xsl:value-of select="opponent"/></td> </tr> </xsl:when> <xsl:otherwise></xsl:otherwise> </xsl:choose></xsl:for-each>
This is what i already have I only need help with figuring out the tie part please and thankyou.
This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/21079-is-there-a-way-to-select-the-top-two-and-also-anything-that-ties