XSLT Help

Discussion in 'HTML & Website Design' started by KingOle, Nov 2, 2010.

  1. #1
    Hey, I have a XLST for my XML file. I want to sort it by Stadium name but it doesn't seem to do anything.

    <xsl:template match="Match">
      <xsl:for-each select=".">
      
      <xsl:sort select="Stadium" order="descending"/>
      <b>Stadium</b>: <xsl:value-of select="Stadium"/> <b> Date</b>: <xsl:value-of select="Date"/> <b> Time</b>: <xsl:value-of select="time"/>
      <br /><br />
      </xsl:for-each>
    </xsl:template>
    Code (markup):
    This does output the Stadium, Date and other stuff but it doesn't sort the list by Stadium :/ Any help?
     
    KingOle, Nov 2, 2010 IP