title: XSLT not working when no root element container is included
body: <p>I want to create a text file from an XML file using XSLT.</p>
  <p>Here is my code:</p>
  <pre><code>import lxml.etree as ET
  
  dom = ET.parse('a_file.xml')
  xslt = ET.parse('a_file.xsl')
  transform = ET.XSLT(xslt)
  newdom = transform(dom)
  print(ET.tostring(newdom, pretty_print=True))
  </code></pre>
  <p>when <code>a_file.xsl</code> does not contain a root element within the template like this:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;xsl:stylesheet xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot;&gt;
      &lt;xsl:template match=&quot;/&quot;&gt;
  
      &lt;xsl:text&gt;{ this is a test }&lt;/xsl:text&gt;
      
      &lt;/xsl:template&gt;
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  <p>the code returns <code>None</code>, however when I add a root element, then it works ie. <code>&lt;r&gt;&lt;xsl:text&gt;{ this is a test }&lt;/xsl:text&gt;&lt;/r&gt;</code></p>