XPath/XSLT contains() for multiple strings

Viewed 12760

Does contains() work for multiple words stored in a variable? Will the below one work? If it won't work, please help me with a solution.

<xsl:variable name="games" select="footballvolleyballchesscarrom"/>

<xsl:when test="contains($games,'chess,carrom')">CORRECT</xsl:when>
2 Answers
Related