Code example for SAXTransformerFactory

Methods: newTransformerHandler, setErrorListener, setURIResolver

0
    { 
        if (_xsltcFactory == null) {
            createXSLTCTransformerFactory(); 
        } 
	if (_errorlistener != null) {
	    _xsltcFactory.setErrorListener(_errorlistener);	    
	} 
	if (_uriresolver != null) {
	    _xsltcFactory.setURIResolver(_uriresolver);
	} 
        return _xsltcFactory.newTransformerHandler(templates);
    } 
 
 
    /** 
     * Create an XMLFilter that uses the given source as the 
     * transformation instructions. Uses 
     * org.apache.xalan.xsltc.trax.TransformerFactory. 
     */ 
    public XMLFilter newXMLFilter(Source src) 
	throws TransformerConfigurationException {