throws IOException {
Logger.debug(this, "xslPath1 : " + xslPath);
try {
Logger.debug(this, "xslPath2 : " + xslPath);
// Create transformer factory
TransformerFactory factory = TransformerFactory.newInstance();
Logger.debug(this, "factory : " + factory);
// Use the factory to create a template containing the xsl file
Templates template = factory.newTemplates(new StreamSource(
getClass().getClassLoader().getResourceAsStream(xslPath)));
System.out.println("template : " + template);
// Use the template to create a transformer
TransformerFactory transFact = TransformerFactory.newInstance();
SAXTransformerFactory saxTransFact = (SAXTransformerFactory) transFact;
// create a ContentHandler
TransformerHandler transHand = saxTransFact
.newTransformerHandler(template);