Code example for Transformer

Methods: setURIResolver

0
         instead of throwing an exception" - the newTemplates() does 
         that, and returns null. 
      */ 
      if( tmpl==null ) return null;
      Transformer transformer = tmpl.newTransformer();
      transformer.setURIResolver(m_uriResolver);
      return transformer;
    }  
    catch( TransformerConfigurationException ex ) 
    { 
      if( m_errorListener != null ) 
      { 
        try  
        { 
          m_errorListener.fatalError( ex );
          return null; // TODO: but the API promises to never return null... 
        }  
        catch( TransformerConfigurationException ex1 ) 
        { 
          throw ex1;
        }