title: What does test="element[@attribute]" do in XSLT?
body: <p>What does this do exactly? </p>
  
  <pre><code>&lt;xsl:if test="./employee/first-name[@id='14']" &gt;
  </code></pre>
  
  <p>I mean, when will this case be true, if <code>./employee/first-name[@id]</code> != <code>null</code> or <code>""</code>, or what?</p>
  
  <h2>Edit</h2>
  
  <p>I have edited the statement above, so it tests if element first-name with id=14 have a body or its body contains a data or return true if first-name event don't have a body?</p>