Code example for TransformerConfigurationException

Methods: getMessage

0
                return null; 
            } 
 
            transformer = transformerFactory.newTransformer(associatedStylesheet);
        } catch (TransformerConfigurationException e) {
            log.info("Can't create transformer: " + e.getMessage());//ignored
        } 
        return transformer;
    } 
 
    private XMLReader createReader() throws ParserConfigurationException, SAXException {
        final SAXParserFactory parserFactory = SAXParserFactory.newInstance();
        parserFactory.setNamespaceAware(true);
        parserFactory.setXIncludeAware(true);
        final SAXParser saxParser = parserFactory.newSAXParser();
        return saxParser.getXMLReader();
    } 
 
    private static class MyXMLSerializer extends XMLSerializer { 
        private static final String XML_STYLESHEET_PI = "xml-stylesheet";