title: Test for Node Emptiness
body: <p>I have the following two xml nodes:</p>
  
  <pre><code>&lt;CELL ROWSPAN="1" COLSPAN="3"&gt;
    &lt;TableBodyCenterBold&gt;
      &lt;A ID="pgfId-179932"/&gt;
    &lt;/TableBodyCenterBold&gt;
  &lt;/CELL&gt;
  
  &lt;CELL ROWSPAN="1" COLSPAN="6"&gt;
    &lt;TableBodyCenterBold&gt;
      &lt;A ID="pgfId-179938"/&gt;
      Body Tensile Capacity (lb)
    &lt;/TableBodyCenterBold&gt;
  &lt;/CELL&gt;
  </code></pre>
  
  <p>Apparently, the first node <code>&lt;CELL&gt;</code> differs from the second <code>&lt;CELL&gt;</code> in that the <code>&lt;TableBodyCenterBold&gt;</code> of the first one doesn't have any text.</p>
  
  <p>I have tried the following XPath, but all failed:</p>
  
  <pre><code>&lt;xsl:when test="string-length(CELL[1]/TableBodyCenterBold[1]/text()) &amp;gt; 0"&gt;
  </code></pre>
  
  <p>or</p>
  
  <pre><code>&lt;xsl:when test="CELL[1]/TableBodyCenterBold[1]/text()!=''"&gt;
  </code></pre>
  
  <p>Could experts offer some help on how to efficiently differentiate the first node from the second?</p>