title: Update the text of an element with XSLT based on param
body: <p>I'm trying to do something that seems like it should be very simple, but I can't get it working, and I can't seem to find any examples that don't involve lots of irrelevant things.
  I want to update the text content of a specific xml tag to a specific value (passed in as a parameter, this XSLT will be used from ant).  A simple example : </p>
  
  <p>I want to transform </p>
  
  <pre><code>&lt;foo&gt;
    &lt;bar&gt;
      baz
    &lt;/bar&gt;
  &lt;/foo&gt;
  </code></pre>
  
  <p>To </p>
  
  <pre><code>&lt;foo&gt;
      &lt;bar&gt;
          something different
      &lt;/bar&gt;
  &lt;/foo&gt;
  </code></pre>
  
  <p>This is the stylesheet that I tried, which results in just the tags, no text at all</p>
  
  <pre><code>&lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt;
      &lt;!-- identity transformation, to keep everything unchanged except for the stuff we want to change --&gt;
      &lt;!-- Whenever you match any node or any attribute --&gt;
      &lt;xsl:template match="node()|@*"&gt;
          &lt;!-- Copy the current node --&gt;
          &lt;xsl:copy&gt;
              &lt;!-- Including any attributes it has and any child nodes --&gt;
              &lt;xsl:apply-templates select="@*|node()"/&gt;
          &lt;/xsl:copy&gt;
      &lt;/xsl:template&gt;
  
      &lt;!-- change the text of the bar node, in the real template the value won't be specified inline --&gt;
      &lt;xsl:template match="/foo/bar/"&gt;
          &lt;xsl:param name="baz" value="something different"/&gt;
              &lt;xsl:value-of select="$baz"/&gt;
      &lt;/xsl:template&gt;
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>Thanks in advance!</p>