Code example for SAXTransformerFactory

Methods: newTemplatesHandler, setErrorListener, setURIResolver

0
    { 
        if (_xsltcFactory == null) {
            createXSLTCTransformerFactory(); 
        } 
	if (_errorlistener != null) {
	    _xsltcFactory.setErrorListener(_errorlistener);	    
	} 
	if (_uriresolver != null) {
	    _xsltcFactory.setURIResolver(_uriresolver);
	} 
	return _xsltcFactory.newTemplatesHandler();
    } 
 
    /** 
     * Get a TransformerHandler object that can process SAX ContentHandler 
     * events based on a copy transformer.  
     * Uses org.apache.xalan.processor.TransformerFactory.  
     */ 
    public TransformerHandler newTransformerHandler() 
	throws TransformerConfigurationException  
    {