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.setXIncludeAware(true);
        final SAXParser saxParser = parserFactory.newSAXParser();
        final XMLReader xmlReader = saxParser.getXMLReader();
        xmlReader.setFeature("http://xml.org/sax/features/namespaces", true);
        return xmlReader;
    } 
 
    private static class MyXMLSerializer extends XMLSerializer { 
        private static final String XML_STYLESHEET_PI = "xml-stylesheet";