title: How to transform already transformed XML using XSLT
body: <p>I currently have the following structure in my XSLT:</p>
  
  <pre><code>&lt;xsl:template match="/" xml:space="preserve"&gt;
      &lt;html&gt;
          &lt;head&gt;
              &lt;!--stuff here --&gt;
          &lt;/head&gt;
          &lt;body&gt;
              &lt;!--stuff here --&gt;
              &lt;xsl:call-template name="page-content" /&gt;
              &lt;!--stuff here --&gt;
          &lt;/body&gt;
      &lt;/html&gt;
  &lt;/xsl:template&gt;
  </code></pre>
  
  <p>The above file is being imported by other XSLT files, which implement the <code>page-content</code> template.  Here's a sample page-content template:</p>
  
  <pre><code>&lt;xsl:template name="page-content"&gt;
  &lt;div class="main-container"&gt;
      &lt;div class="row"&gt;
           &lt;xsl:apply-templates select="data/document/content/node()" mode="copy" /&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;/xsl:template&gt;
  </code></pre>
  
  <p>I want to take the transformed XML returned by <code>page-content</code>, and match another template to it.  (The template is going to add another node to "main-container").  I am using XSLT 3.0</p>
  
  <p>Is it possible for me to transform XML twice, and if so, how do I do it?</p>