#NEWLINE# def test_xslt_multiple_transforms( self ) : #NEWLINE# #INDENT# xml = '<a/>' #NEWLINE# xslt = '<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">\n    <xsl:template match="/">\n        <response>Some text</response>\n    </xsl:template>\n</xsl:stylesheet>\n' #NEWLINE# source = self . parse ( xml ) #NEWLINE# styledoc = self . parse ( xslt ) #NEWLINE# style = etree . XSLT ( styledoc ) #NEWLINE# result = style ( source ) #NEWLINE# etree . tostring ( result . getroot ( ) ) #NEWLINE# source = self . parse ( xml ) #NEWLINE# styledoc = self . parse ( xslt ) #NEWLINE# style = etree . XSLT ( styledoc ) #NEWLINE# result = style ( source ) #NEWLINE# etree . tostring ( result . getroot ( ) )