Code example for SAXTransformerFactory

Methods: newTemplates, setErrorListener, setURIResolver

0
    { 
        if (_xsltcFactory == null) {
            createXSLTCTransformerFactory(); 
        } 
	if (_errorlistener != null) {
	    _xsltcFactory.setErrorListener(_errorlistener);	    
	} 
	if (_uriresolver != null) {
	    _xsltcFactory.setURIResolver(_uriresolver);
	} 
 	_currFactory = _xsltcFactory;	 
	return _currFactory.newTemplates(source); 
    } 
 
    /** 
     * Get a TemplatesHandler object that can process SAX ContentHandler 
     * events into a Templates object. Uses the 
     * org.apache.xalan.xsltc.trax.TransformerFactory. 
     */ 
    public TemplatesHandler newTemplatesHandler() 
	throws TransformerConfigurationException