How to check variable against a set of values in XSLT 1.0?
<p>I have the following condition to test</p>

<pre><code>&lt;xsl:if test="   $Occupation='5' 
              or $Occupation='7'  
              or $Occupation='N' 
              or $Occupation='M' 
              or $Occupation='J' 
              or $Occupation='V' 
              or $Occupation='W'"&gt;
  &lt;xsl:value-of select="'Accounts'"/&gt;        
&lt;/xsl:if&gt;
</code></pre>

<p>Is there a way to check like this?</p>

<pre><code>&lt;xsl:if test="$occupation contains('5','7','N','W','J','M')"&gt;
</code></pre>