// directory.
StylesheetRoot stylesheet = ((XSLTEngineImpl)processor).createStylesheetRoot(null);
// Set up a StylesheetHandler (a SAX DocumentHandler) to receive events
// as the Stylesheet is parsed.
StylesheetHandler stylesheetHandler
= new StylesheetHandler((XSLTEngineImpl)processor, stylesheet);
// Set the StylesheetHandler to listen to SAX events from the SAX parser.
saxparser.setDocumentHandler(stylesheetHandler);
// Parse foo.xsl, sending SAX events to stylesheetHandler, which fills in the