#NEWLINE# def test_xslt_shortcut( self ) : #NEWLINE# #INDENT# tree = self . parse ( '<a><b>B</b><c>C</c></a>' ) #NEWLINE# style = self . parse ( '<xsl:stylesheet version="1.0"\n    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">\n  <xsl:template match="*" />\n  <xsl:template match="/">\n    <doc>\n    <foo><xsl:value-of select="$bar" /></foo>\n    <foo><xsl:value-of select="$baz" /></foo>\n    </doc>\n  </xsl:template>\n</xsl:stylesheet>' ) #NEWLINE# result = tree . xslt ( self , bar = "'Bar'" , baz = "'Baz'" ) #NEWLINE# self . assertEqual ( _bytes ( '<doc><foo>Bar</foo><foo>Baz</foo></doc>' ) , etree . tostring ( result . getroot ( ) ) )