title: Use parameter value as in select in xslt
body: <p>I have a parameter named <code>event</code> whose value is say <code>event_val</code> in an XSLT file used for transforming an XML.</p>
  
  <p>I want to get <code>&lt;xsl:value-of select="event_val"/&gt;</code> but the resultant transform is <code>event_val</code> within <code>&lt;TimeCommenced&gt;</code> block.</p>
  
  <p>The code is as follows:</p>
  
  <pre><code>&lt;xsl:param name="event"/&gt;&lt;xsl:template match="/"&gt;
  &lt;Event&gt;
        &lt;TimeCommenced&gt;
          &lt;xsl:variable name="time_commenced" select="$event"/&gt;
          &lt;xsl:value-of select="$time_commenced"/&gt;
        &lt;/TimeCommenced&gt;
  &lt;/Event&gt;
  </code></pre>