title: xsl:value of and apply template to inside element
body: <p>what can I do if I have this:</p>
  
  <pre><code>&lt;e1&gt;t1&lt;e2&gt;t2&lt;/e2&gt;&lt;/e1&gt;
  </code></pre>
  
  <p>and I want to translate with XSLT in:</p>
  
  <pre><code>&lt;c1&gt;t1&lt;c2&gt;t2&lt;/c2&gt;&lt;/c1&gt;
  </code></pre>
  
  <p>I've tried with:</p>
  
  <pre><code>&lt;xsl:template match="e1"&gt;
    &lt;c1&gt;
       &lt;xsl:value-of select="."&gt;
          &lt;xsl:apply-templates/&gt;
       &lt;/xsl:value-of&gt;
    &lt;/c1&gt;
  &lt;/xsl:template&gt;
  &lt;xsl:template match="e2"&gt;
    &lt;c2&gt;
       &lt;xsl:value-of select="."/&gt;
    &lt;/c2&gt;
  &lt;/xsl:template&gt;
  </code></pre>
  
  <p>But i receive a mistake as value-of should be empty.</p>