title: XSLT - apply a template to call-template result
body: <p>Is it possible to apply a template to the result of a call-template?</p>
  
  <p>For example, the xml and 2 xslt below.</p>
  
  <p>index.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;root&gt;
    &lt;book&gt;
      &lt;title&gt;Ethics&lt;/title&gt;
    &lt;/book&gt;
    &lt;book&gt;
      &lt;title&gt;Beyond Good and Evil&lt;/title&gt;
    &lt;/book&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p>index2.xsl</p>
  
  <pre><code>&lt;xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt;
    &lt;xsl:output indent="yes"/&gt;
    &lt;xsl:template match="/" name="temp2"&gt;
      &lt;foo&gt;
      &lt;xsl:for-each select="//book"&gt;
        &lt;bar&gt;&lt;xsl:value-of select="."/&gt;&lt;/bar&gt;
      &lt;/xsl:for-each&gt;
      &lt;/foo&gt;
    &lt;/xsl:template&gt;
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>and index.xsl is calling index2.xsl</p>
  
  <pre><code>&lt;xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt;
    &lt;xsl:output indent="yes"/&gt;
  &lt;xsl:include href="index2.xsl" /&gt;
  &lt;!-- apply a template to the &lt;xsl:call-template name="temp2" /&gt; result --&gt;
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>Is there any way to apply a template to the result of <code>&lt;xsl:call-template name="temp2" /&gt;</code> in index.xsl?</p>
  
  <p>Thanks in advance.</p>