code: public void error(String msg, Object[] args) throws TransformerException
    {
  
      java.lang.String fmsg = XSLMessages.createXPATHMessage(msg, args);
      
  
      if (null != m_errorHandler)
      {
        m_errorHandler.fatalError(new TransformerException(fmsg, m_locator));
      }
      else
      {
  
        // System.out.println(te.getMessage()
        //                    +"; file "+te.getSystemId()
        //                    +"; line "+te.getLineNumber()
        //                    +"; column "+te.getColumnNumber());
        throw new TransformerException(fmsg, (SAXSourceLocator)m_locator);
      }
    }
docs: Tell the user of an error, and probably throw an
  exception.
  
  @param msg An error msgkey that corresponds to one of the constants found
  in {@link org.apache.xpath.res.XPATHErrorResources}, which is
  a key for a format string.
  @param args An array of arguments represented in the format string, which
  may be null.
  
  @throws TransformerException if the current ErrorListoner determines to
  throw an exception.