title: <xsl:value-of> doesn't work in a template
body: <p>I spent 2 hours searching for help on Internet, but I didn't find any answer...</p>
  
  <p>I hope you could :)</p>
  
  <p>So, my xslt file is following (simplified) :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
     &lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt;
      &lt;xsl:output method="text" /&gt;
      &lt;xsl:param name="basename"/&gt;
      &lt;xsl:param name="purpose"/&gt;
      &lt;xsl:param name="xml_input_path"/&gt;
      &lt;xsl:param name="self"/&gt;
  
      &lt;xsl:template match="testspec"&gt;
          &lt;xsl:call-template name="call_commands"/&gt;
      &lt;/xsl:template&gt;
  
      &lt;xsl:template name="call_commands"&gt;
          &lt;xsl:variable name="root" select="document($xml_input_path)/testspec"/&gt;
          &lt;xsl:for-each select="$root//command"&gt;
              &lt;xsl:sort select="."/&gt;
              &lt;xsl:variable name="current" select="."/&gt;
              &lt;xsl:apply-templates select="document($self)/xsl:stylesheet/xsl:template[@name = $current/@label]"/&gt;
          &lt;/xsl:for-each&gt;
      &lt;/xsl:template&gt;
  
      &lt;xsl:template name="TOTO_short"&gt;
          &lt;xsl:text&gt;Fonction TOTO :&lt;/xsl:text&gt;
          &lt;xsl:variable name="dda" select="'b'"/&gt;
          &lt;xsl:copy-of select="$dda"/&gt;
      &lt;/xsl:template&gt;
  
      &lt;xsl:template name="TATA_interrupt"&gt;
                  Fonction TATA :
          &lt;xsl:variable name="v1_name" select="'NaN'"/&gt;
          &lt;xsl:value-of select="$v1_name" /&gt;
      &lt;/xsl:template&gt;
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>Here is my input Xml : </p>
  
  <pre><code>&lt;testspec&gt;
     &lt;command label="TOTO_short"/&gt;
     &lt;command label="TATA_interrupt"/&gt;
     &lt;command label="TOTO_short"/&gt;
     &lt;command label="TATA_interrupt"/&gt;
  &lt;/testspec&gt;
  </code></pre>
  
  <p>My problem is following : in templates TOTO_short and TATA_short, I would like to define 2 variables and display their values...</p>
  
  <p>But it doesn't work!</p>
  
  <p>Can you help me please to understand where it comes from?</p>
  
  <p>Thanks a lot in advance :)</p>
  
  <p>Arnaud</p>