title: how to check with 2 conditions for test in xsl:when
body: <p>I would like to check the values of test1 and test 2. If test1 evaluates to Yes then display Yes, if test2 evaluates to  Yes then display Invalid else display the exact value of test1.</p>
  
  <p>I tried the below</p>
  
  <pre><code>&lt;xsl:choose&gt;
      &lt;xsl:when test="$test1 = 'Yes' or 'Yes'"&gt;
           &lt;td&gt;
                            Yes
           &lt;/td&gt;
      &lt;/xsl:when&gt;
  
      &lt;xsl:when test="$test2 = 'Yes' or 'yes'"&gt;
           &lt;td&gt;
                            INVALID
           &lt;/td&gt;
      &lt;/xsl:when&gt;
  
      &lt;xsl:otherwise&gt; 
          &lt;td&gt;
              &lt;font size="2"&gt;
                  f&lt;xsl:apply-templates select="../DBE:Object/DBE:Attribute[@name='test1']"/&gt; 
              &lt;/font&gt;
          &lt;/td&gt;
      &lt;/xsl:otherwise&gt;
  
  &lt;/xsl:choose&gt;
  </code></pre>
  
  <p>But it is not evaluating the condition correctly. Please suggest the possible solution.</p>