title: XSLT Assign Function Return Value to Variable
body: <p>I can generate an id with this way:</p>
  
  <pre><code>&lt;td id= "{generate-id(@value)}"&gt;
  
  &lt;/td&gt;
  </code></pre>
  
  <p>However, I want to assign it to a variable and use that variable. So, tried that:</p>
  
  <pre><code>&lt;xsl:variable name="value_holder" select="{generate-id(@value)}" /&gt;
  &lt;td id= "{$value_holder}"&gt;
  
  &lt;/td&gt;
  </code></pre>
  
  <p>However XSLT doesn't work due to this line:</p>
  
  <pre><code>&lt;xsl:variable name="value_holder" select="{generate-id(@value)}" /&gt;
  </code></pre>
  
  <p>How can store that variable and use it inside html element?</p>