title: Copy portion of an XML with XSL without applying templates
body: <p>I would like to apply a XSL template to a portion of the XML and copy the rest unmodified in the result XML.</p>
  
  <p>For the time being I'm doing something that works.</p>
  
  <pre><code>&lt;xsl:template match="yt:bold"&gt;
    &lt;xsl:choose&gt;
         &lt;xsl:when test="ancestor::ReportContent"&gt; //I keep the ReportContent unchanged
              &lt;xsl:copy&gt;&lt;xsl:copy-of select="@*"/&gt;
                   &lt;xsl:apply-templates /&gt;
              &lt;/xsl:copy&gt;
         &lt;/xsl:when&gt;
         &lt;xsl:otherwise&gt;
          &lt;b&gt;
                &lt;xsl:apply-templates /&gt;
              &lt;/b&gt;
         &lt;/xsl:otherwise&gt;
    &lt;/xsl:choose&gt;
  &lt;/xsl:template&gt;
  </code></pre>
  
  <p>But I'm doing this for each template... and I am sure there is a more elegant way to do this.</p>
  
  <p>I tried to copy portion of the XML using this template:</p>
  
  <pre><code>&lt;xsl:template match="ReportContent"&gt;
  &lt;xsl:copy&gt;&lt;xsl:copy-of select="@*"/&gt;&lt;xsl:apply-templates select="???" /&gt;&lt;/xsl:copy&gt;
   &lt;/xsl:template&gt;
  </code></pre>
  
  <p>But I apply all the other templates when copying... and I don't want that.</p>
  
  <p>So is there a more elegant way to do what I want to do?</p>
  
  <p>Thanks in advance.</p>