xalan-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mm...@apache.org
Subject cvs commit: xml-xalan/java/src/org/apache/xml/utils DefaultErrorHandler.java
Date Mon, 08 Jul 2002 22:07:23 GMT
mmidy       2002/07/08 15:07:23

  Modified:    java/src/org/apache/xml/utils DefaultErrorHandler.java
  Log:
  resource error messages
  
  Revision  Changes    Path
  1.10      +8 -4      xml-xalan/java/src/org/apache/xml/utils/DefaultErrorHandler.java
  
  Index: DefaultErrorHandler.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xml/utils/DefaultErrorHandler.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- DefaultErrorHandler.java	15 May 2002 20:41:05 -0000	1.9
  +++ DefaultErrorHandler.java	8 Jul 2002 22:07:23 -0000	1.10
  @@ -60,6 +60,10 @@
   import javax.xml.transform.ErrorListener;
   import javax.xml.transform.TransformerException;
   import javax.xml.transform.SourceLocator;
  +
  +import org.apache.xalan.res.XSLMessages;
  +import org.apache.xalan.res.XSLTErrorResources;
  + 
   import java.io.PrintWriter;
   import java.io.PrintStream;
   
  @@ -334,12 +338,12 @@
         String id = (null != locator.getPublicId() )
                     ? locator.getPublicId()
                       : (null != locator.getSystemId())
  -                      ? locator.getSystemId() : "SystemId Unknown";
  +                      ? locator.getSystemId() : XSLMessages.createMessage(XSLTErrorResources.ER_SYSTEMID_UNKNOWN,
null); //"SystemId Unknown";
   
  -      pw.print(id + "; Line " + locator.getLineNumber()
  -                         + "; Column " + locator.getColumnNumber()+"; ");
  +      pw.print(id + "; " +XSLMessages.createMessage("line", null) + locator.getLineNumber()
  +                         + "; " +XSLMessages.createMessage("column", null) + locator.getColumnNumber()+";
");
       }
       else
  -      pw.print("(Location of error unknown)");
  +      pw.print("("+XSLMessages.createMessage(XSLTErrorResources.ER_LOCATION_UNKNOWN, null)+")");
     }
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org


Mime
View raw message