Code example for TransformerConfigurationException

0
      throw new TransformerConfigurationException(
        "getAssociatedStylesheets failed", se);
    } 
    catch (IOException ioe)
    { 
      throw new TransformerConfigurationException(
        "getAssociatedStylesheets failed", ioe);
    } 
 
    return handler.getAssociatedStylesheet();
  } 
 
  /** 
   * Create a new Transformer object that performs a copy 
   * of the source to the result. 
   * 
   * @param source An object that holds a URI, input stream, etc. 
   * 
   * @return A Transformer object that may be used to perform a transformation 
   * in a single thread, never null. 
   *