title: How to check whether the value of an attribute is not null or if the length of characters in the value of an attribute is greater than 0
body: <p><code>s0SelectedSite</code> is an attribute of a class or a column of a table.</p>
  
  <pre><code>&lt;xsl:if test="string-length(@s0SelectedSite) &amp;gt; '0'"&gt;
  &lt;tr&gt;
    &lt;td width="50%" bgcolor="#C0C0C0"&gt;&lt;font size="2"&gt;&lt;b&gt;Selected Site:&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;
    &lt;td&gt;&lt;font size="2"&gt;&amp;#160;&lt;xsl:apply-templates select="DBE:Attribute   [@name='s0SelectedSite']"/&gt;&lt;/font&gt;&lt;/td&gt;
  &lt;/tr&gt; 
  &lt;/xsl:if&gt;
  </code></pre>
  
  <p>In the above, the value of <code>s0SelectedSite</code> exists but still the lines are not getting printed.</p>
  
  <p>For eg. It should display the following:-</p>
  
  <pre><code>Selected Site:             Singapore
  </code></pre>
  
  <p>Please let me know if something is wrong.</p>