Aleksi Kallio
Usenet Archive
- Joined
- Sep 28, 2000
- Messages
- 26
- Reaction score
- 0
I want to say something like this:
<xsl:if test="contains($my-string, {'banana', 'apple', 'lemon'})">
Ie. I want to do "contains" against many strings. I don't want to write them all manually to condition clause, because it's cumbersome and it would help a lot if those strings could be passed into template as a parameter.
What would be the easiest way to do this?
<xsl:if test="contains($my-string, {'banana', 'apple', 'lemon'})">
Ie. I want to do "contains" against many strings. I don't want to write them all manually to condition clause, because it's cumbersome and it would help a lot if those strings could be passed into template as a parameter.
What would be the easiest way to do this?