title: Getting the error inside XSL:when condition
body: <p>I have fetch an value as shown below..</p>
  
  <pre><code>&lt;xsl:variable name="begtt"&gt;
    &lt;xsl:value-of select="substring($try_obj/@segReference,6)"/&gt;
  &lt;/xsl:variable&gt;
  </code></pre>
  
  <p>now I need to check that whether <code>begtt</code> =0 or not</p>
  
  <p>so I am using like this but please advise it is the correct approach..</p>
  
  <pre><code>&lt;xsl:when test="$begtt="'0'"&gt;
  &lt;xsl:value-of select="'0'"/&gt;
  </code></pre>
  
  <p>As I am getting the error</p>