title: XSL if: test with multiple test conditions
body: <p><strong>[Solved]</strong></p>
  
  <p>Thanks to @IanRoberts, I had to use the normalize-space function on my nodes to check if they were empty.</p>
  
  <pre><code>&lt;xsl:if test="((node/ABC!='') and (normalize-space(node/DEF)='') and (normalize-space(node/GHI)=''))"&gt;
    This worked perfectly fine.
  &lt;/xsl:if&gt;
  </code></pre>
  
  <p><strong>[Problem]</strong></p>
  
  <p>I am trying to create a xsl condition to check if combinations of node are empty or not. I have tried below conditions but they do not work, does anyone have an idea as to how to get it working</p>
  
  <pre><code>&lt;xsl:if test=" node/ABC!='' and node/DEF='' and node/GHI='' "&gt;
  This does not work
  &lt;/xsl:if&gt;
  </code></pre>
  
  <p>I have also tried</p>
  
  <pre><code>&lt;xsl:when test="((node/ABC!='') and (node/DEF='') and (node/GHI=''))"&gt;
  This does not work either..
  &lt;/xsl:when&gt;
  </code></pre>
  
  <p>And also tried</p>
  
  <pre><code>&lt;xsl:if test="(node/ABC!='')&gt;
  &lt;xsl:if test="(node/DEF='')&gt;
  &lt;xsl:if test="(node/GHI='')"&gt;
  Nope not working..
  &lt;/xsl:if&gt;
  &lt;/xsl:if&gt;
  &lt;/xsl:if&gt;
  </code></pre>
  
  <p>I, then tried with single xsl:if conditions, and below is the observation</p>
  
  <pre><code>&lt;xsl:if test="node/ABC!=''&gt;
  **This is working fine**
  &lt;/xsl:if&gt;
  </code></pre>
  
  <p>However if i try to search for empty condition, i.e</p>
  
  <pre><code>&lt;xsl:if test="node/ABC=''&gt;
  **This does not work**
  &lt;/xsl:if&gt;
  </code></pre>
  
  <p>Also, if i try with a == (double equal to), then it gives xslt error. i.e</p>
  
  <pre><code>&lt;xsl:if test="node/ABC==''&gt;
  ***This gives a compilation error***
  &lt;/xsl:if&gt;
  </code></pre>
  
  <p><strong>I would like help in figuring out how to get my xsl:if test working to check for multiple conditions. Thanks in advance.</strong></p>
  
  <p>[Edit] : Just to update here that the if condition where all the nodes are not empty works, it does not work when i try to check for any other node out of the three nodes that are empty.</p>
  
  <p>For eg : </p>
  
  <pre><code>&lt;xsl:if test=" node/ABC!='' and node/DEF!='' and node/GHI!='' "&gt;
  This condition works perfectly fine.
  &lt;/xsl:if&gt;
  </code></pre>