Possible Duplicate:
XSLT expression to check if variable belongs to set of elements
Given a parameter, $name
, what is a short and clean way to check if its value is equal to one of a finite number of values?
For example, say I wanted to merge the first 3 of these when
tests because their contents were exactly the same.
<choose>
<when test="$name='Alice'">
<when test="$name='Bob'">
<when test="$name='Cindy'">
<when test="$name='Dave'">
<otherwise>
Something like test="$name in ['Alice','Bob','Cindy']"
, except actually valid :P