title: Using xsl when to test for attribute values
body: <p>Am using <code>&lt;xsl:when&gt;</code> in my code.I need to test values for 2 different attributes in the  "when" condition below i.e.(<code>&lt;xsl:when test="??"&gt;</code>)
  How do i do that please?</p>
  
  <p>I tried this,but it does not work:</p>
  
  <pre><code>&lt;xsl:when test="@Attrb1[.!=''] and @Attrb2[.!='']"&gt;
  </code></pre>
  
  <p>Also, this gives an error too:</p>
  
  <pre><code>&lt;xsl:when test="@Attrb1 !='' and @Attrb2 !=''"&gt; 
  </code></pre>
  
  <p>msxml3.dll error '80004005' </p>
  
  <p>error '80004005'<br>
  Expected token 'eof' found '!='. @Attrb -->!=&lt;--'' and @Attrb2 !='' </p>
  
  <p>Code:</p>
  
  <pre><code>&lt;xsl:when test="Condition1"&gt; 
  &lt;xsl:choose&gt; 
      &lt;xsl:when test="??"&gt; 
           &lt;xsl:value-of select="somtext1"/&gt; &lt;/xsl:when&gt; 
      &lt;xsl:otherwise&gt; 
            &lt;xsl:value-of select="somtext2"/&gt; 
  &lt;/xsl:otherwise&gt; 
  &lt;/xsl:choose&gt;
  &lt;/xsl:when&gt;
  </code></pre>
  
  <p>Thanks.</p>