#NEWLINE# def compute( self ) : #NEWLINE# #INDENT# ' compute() -> None\n        Render the XML tree and display it on the spreadsheet\n        ' #NEWLINE# xml = self . get_input ( 'XML' ) . name #NEWLINE# xsl = self . get_input ( 'XSL' ) . name #NEWLINE# query = QXmlQuery ( QXmlQuery . XSLT20 ) #NEWLINE# query . setFocus ( QUrl . fromLocalFile ( os . path . join ( os . getcwd ( ) , xml ) ) ) #NEWLINE# query . setQuery ( QUrl . fromLocalFile ( os . path . join ( os . getcwd ( ) , xsl ) ) ) #NEWLINE# html = query . evaluateToString ( ) #NEWLINE# if ( xml is None ) : #NEWLINE# #INDENT# raise ModuleError ( self , 'Error applying XSL' ) #NEWLINE# #UNINDENT# self . displayAndWait ( RichTextCellWidget , ( html , ) )