title: In XSLT, what is the difference between true() and true?
body: <p>I wanted to understand the difference between <code>true()</code> and <code>true</code> and the usage of both. </p>
  
  <p>For example:</p>
  
  <p>I am declaring a variable <code>var1</code> as follows:</p>
  
  <pre><code>&lt;xsl:variable name="var1"
      select="/root/name ='' and exists(/root/name[@as:firstname])"&gt;&lt;/xsl:variable&gt;
  
  &lt;!--and now I wan to use it as a condition, say:--&gt;
  
  &lt;xsl:if test="$var1=true() "&gt; &lt;!-- Now would I use true() or true here ?--&gt;
      &lt;xsl:text&gt;Hello World&lt;/xsl:text&gt;
  &lt;/xsl:if&gt;
  </code></pre>