I'm attempting to create an xsl:choose statement with conditions like that: I have movies and a lot of different genres. Every genre should have different color. For example comedy should be red, drama should be blue and so on... But i think the condition is wrong because it's not working.
<xsl:choose> <xsl:when test="genre = Comedy"> <td color="red"><xsl:value-of select="genre"/></td> </xsl:when> <xsl:when test="genre = drama"> <td color="blue"><xsl:value-of select="genre"/></td> </xsl:when> ......
No comments:
Post a Comment