System.err.println("java.class.path is "+System.getProperty("java.class.path")); System.err.println("class loader "+this.getClass().getClassLoader());
    public Templates newTemplates(Source source)	throws TransformerConfigurationException {	// Create and initialize a stylesheet compiler	final XSLTC xsltc = new XSLTC();	if (_debug) xsltc.setDebug(true);	xsltc.init();	// Set a document loader (for xsl:include/import) if defined	if (_uriResolver != null) xsltc.setSourceLoader(this);	// Pass parameters to the Parser to make sure it locates the correct	// <?xml-stylesheet ...?> PI in an XML input document	if ((_piParams != null) && (_piParams.get(source) != null)) {	    // Get the parameters for this Source object	    PIParamWrapper p = (PIParamWrapper)_piParams.get(source);	    // Pass them on to the compiler (which will pass then to the parser)	    if (p != null) 		xsltc.setPIParameters(p._media, p._title, p._charset);	}	// Compile the stylesheet	final InputSource input = getInputSource(xsltc, source);	byte[][] bytecodes = xsltc.compile(null, input);	final String transletName = xsltc.getClassName();	// Pass compiler warnings to the error listener	if (_errorListener != null)	    passWarningsToListener(xsltc.getWarnings());	else	    xsltc.printWarnings();	// Check that the transformation went well before returning	if (bytecodes == null) {	    // Pass compiler errors to the error listener	    if (_errorListener != null)		passErrorsToListener(xsltc.getErrors());	    else		xsltc.printErrors();	    System.err.println("java.class.path is "+System.getProperty("java.class.path"));	    System.err.println("class loader "+this.getClass().getClassLoader());	    ErrorMsg err = new ErrorMsg(ErrorMsg.JAXP_COMPILE_ERR);	    throw new TransformerConfigurationException(err.toString());	}	return(new TemplatesImpl(bytecodes, transletName));    }