transletName = xsltc.getClassName();
    public Templates getTemplates() {	try {	    final XSLTC xsltc = getXSLTC();	    // Set the translet class name if not already set	    String transletName = TransformerFactoryImpl._defaultTransletName;	    if (_systemId != null) transletName = Util.baseName(_systemId);	    xsltc.setClassName(transletName);	    Stylesheet stylesheet = null;	    SyntaxTreeNode root = getDocumentRoot();	    // Compile the translet - this is where the work is done!	    if ((!errorsFound()) && (root != null)) {		// Create a Stylesheet element from the root node		stylesheet = makeStylesheet(root);		stylesheet.setSystemId(_systemId);		stylesheet.setParentStylesheet(null);		setCurrentStylesheet(stylesheet);		// Create AST under the Stylesheet element (parse & type-check)		createAST(stylesheet);	    }	    // Generate the bytecodes and output the translet class(es)	    if ((!errorsFound()) && (stylesheet != null)) {		stylesheet.setMultiDocument(xsltc.isMultiDocument());		stylesheet.translate();	    }	    xsltc.printWarnings();	    // Check that the transformation went well before returning	    final byte[][] bytecodes = xsltc.getBytecodes();	    if (bytecodes == null) {		xsltc.printErrors();		return null;	    }	    return(new TemplatesImpl(bytecodes, transletName));	}	catch (CompilerException e) {	    return null;	}    }