title: XSL Use a specific template inside another one
body: <p>I've got some problems with XSL : is it possible to use a template from another one, when it uses an apply-templates to print childs ? I don't want to use current node, but really create a new element matching the template.</p>
  
  <p>Example of what I'm searching :</p>
  
  <p><b>XML file :</b></p>
  
  <pre><code>&lt;root&gt;
    &lt;toto name="foo"&gt;
      &lt;b&gt;hello&lt;/b&gt;
    &lt;/toto&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p><b>XSL stylesheet:</b></p>
  
  <pre><code>&lt;xsl:template match="/"&gt;
    &lt;xsl:apply-templates /&gt;
  &lt;/xsl:template&gt;
  
  &lt;xsl:template match="tata" name="tata"&gt;
    &lt;div class="tata"&gt;
      &lt;xsl:apply-templates /&gt;
    &lt;/div&gt;
  &lt;/xsl:template&gt;
  
  &lt;xsl:template match="toto" name="toto"&gt;
    &lt;tata&gt;
      &lt;xsl:value-of select="@name" /&gt;
    &lt;/tata&gt;
    &lt;tata&gt;
      &lt;xsl:apply-templates /&gt;
    &lt;/tata&gt;
  &lt;/xsl:template&gt;
  
  &lt;xsl:template match="@*|node()"&gt;
     &lt;xsl:copy&gt;
        &lt;xsl:apply-templates select="@*|node()"/&gt;
     &lt;/xsl:copy&gt;
  &lt;/xsl:template&gt;
  </code></pre>
  
  <p><b>Expected output :</b></p>
  
  <pre><code>&lt;div class="tata"&gt;foo&lt;/div&gt;
  &lt;div class="tata"&gt;
    &lt;b&gt;hello&lt;/b&gt;
  &lt;/div&gt;
  </code></pre>