#NEWLINE# def test_xslt_repeat_transform( 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# transform = etree . XSLT ( styledoc ) #NEWLINE# result = transform ( source ) #NEWLINE# result = transform ( source ) #NEWLINE# etree . tostring ( result . getroot ( ) ) #NEWLINE# result = transform ( source ) #NEWLINE# etree . tostring ( result . getroot ( ) ) #NEWLINE# str ( result ) #NEWLINE# result1 = transform ( source ) #NEWLINE# result2 = transform ( source ) #NEWLINE# self . assertEqual ( str ( result1 ) , str ( result2 ) ) #NEWLINE# result = transform ( source ) #NEWLINE# str ( result )