#NEWLINE# def test_xslt_input_partial_doc( self ) : #NEWLINE# #INDENT# style = self . parse ( '<otherroot>\n<xsl:stylesheet version="1.0"\n    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">\n  <xsl:template match="*" />\n  <xsl:template match="/">\n    <foo><xsl:value-of select="/a/b/text()" /></foo>\n  </xsl:template>\n</xsl:stylesheet>\n</otherroot>' ) #NEWLINE# self . assertRaises ( etree . XSLTParseError , etree . XSLT , style ) #NEWLINE# root_node = style . getroot ( ) #NEWLINE# self . assertRaises ( etree . XSLTParseError , etree . XSLT , root_node ) #NEWLINE# st = etree . XSLT ( root_node [ 0 ] )