Code example for Templates

Methods: newTransformer

0
   */ 
  public TransformerHandler newTransformerHandler(Templates templates)
          throws TransformerConfigurationException 
  { 
    try { 
      TransformerImpl transformer =
        (TransformerImpl) templates.newTransformer();
      transformer.setURIResolver(m_uriResolver);
      TransformerHandler th =
        (TransformerHandler) transformer.getInputContentHandler(true);
 
      return th;
    }  
    catch( TransformerConfigurationException ex ) 
    { 
      if( m_errorListener != null ) 
      { 
        try  
        { 
          m_errorListener.fatalError( ex );
          return null;