title: How to change or reassign a variable in XSLT?
body: <p>How can I reassign a value to a variable previously assigned? I need it to works like this:</p>
  
  <pre><code>&lt;xsl:variable name="variable2" select="'N'" /&gt;
  ....
  &lt;xsl:when test="@tip = '2' and $variable2 != 'Y'"&gt;                                                   
      &lt;xsl:variable name="variable2" select="'Y'" /&gt;
  &lt;/xsl:when&gt;
  </code></pre>