title: identifying the null element in XSLT which has no value even in child elements
body: <p>checking for an Null element</p>
  
  <pre><code>&lt;image&gt;&lt;a&gt;&lt;img src="abcd"/&gt;&lt;/a&gt;&lt;/image&gt;
  </code></pre>
  
  <p>XSLT template:</p>
  
  <pre><code>&lt;xsl:if test="image!=''"&gt;
  IMAGE HAS TEXT OR INNER ELEMENT
  &lt;/xsl:if&gt;
  </code></pre>
  
  <p>I am getting blank output though the "image" element has child elements. and Ideally it is not null.</p>
  
  <p>I have to check the condition that it should have value or the child elements. The child elements can be empty.</p>
  
  <p>How to rectify this.</p>
  
  <p>Thank you</p>