code: public void error(String msg, Object[] args)
    {
  
      String themsg = XSLMessages.createMessage(msg, args);
  
      throw new RuntimeException(XSLMessages.createMessage(
                                      XSLTErrorResources.ER_ELEMTEMPLATEELEM_ERR,
                                      new Object[]{ themsg }));
    }
docs: Throw a template element runtime error.  (Note: should we throw a TransformerException instead?)
  
  @param msg key of the error that occured.
  @param args Arguments to be used in the message