title: Assign to <xsl:variable> after thedecleration
body: <p>I am using the below way to assign value to a variable.</p>
  
  <pre><code>&lt;xsl:variable name="NewValue"&gt;
    &lt;xsl:value-of select="normalize-space(//root/id/amount)"/&gt;
  &lt;/xsl:variable&gt;
  </code></pre>
  
  <p>After the assignment I want to assign new value to the same variable. Like this:-</p>
  
  <pre><code>&lt;xsl:variable name="NewValue" select="normalize-space(//root/id/amountnew)"&gt;
  </code></pre>
  
  <p>Is there any way for this?</p>
  
  <hr>
  
  <p>Here the sample of XML that I have:</p>
  
  <pre><code>&lt;VolLien&gt;
    &lt;Vest_DocType&gt;SDD&lt;/Vest_DocType&gt;
    &lt;Vest_Instrument&gt;395072&lt;/Vest_Instrument&gt;
    &lt;Vest_OfOfficialEntity&gt;eee&lt;/Vest_OfOfficialEntity&gt;
    &lt;Vest_RecDate&gt;12/24/2009&lt;/Vest_RecDate&gt;
    &lt;Vest_Grantee1&gt;abc dd&lt;/Vest_Grantee1&gt;
    &lt;Vest_Grantor1&gt;sss&lt;/Vest_Grantor1&gt;
    &lt;Vest_RejectCode /&gt;
    &lt;Vest_RejectReason /&gt; 
    &lt;Vest_ImageNum&gt; &lt;/Vest_ImageNum&gt;
  &lt;/VolLien&gt;
  </code></pre>
  
  <p>My problem is I need to get latest <code>&lt;Vest_RecDate&gt;</code> of particular <code>&lt;Vest_DocType&gt;</code>(say SDD) And then I need to search across the xml any date which is before <code>&lt;Vest_RecDate&gt;</code> of this(same SDD). </p>
  
  <p>If then raise that particular section(<code>&lt;VolLien&gt;</code>) alone and again latest. If I could have reassignment I would position of the node and get the values associated to that. Now I am doing this using another loop. If something is there I can avoid extrs loops. </p>