#NEWLINE# def test_xslt_move_result( self ) : #NEWLINE# #INDENT# root = etree . XML ( _bytes ( '        <transform>\n          <widget displayType="fieldset"/>\n        </transform>' ) ) #NEWLINE# xslt = etree . XSLT ( etree . XML ( _bytes ( '        <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">\n          <xsl:output method="html" indent="no"/>\n          <xsl:template match="/">\n            <html>\n              <xsl:apply-templates/>\n            </html>\n          </xsl:template>\n\n          <xsl:template match="widget">\n            <xsl:element name="{@displayType}"/>\n          </xsl:template>\n\n        </xsl:stylesheet>' ) ) ) #NEWLINE# result = xslt ( root [ 0 ] ) #NEWLINE# root [ : ] = result . getroot ( ) [ : ] #NEWLINE# del root