You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by sy...@apache.org on 2005/10/19 18:05:39 UTC
svn commit: r326594 -
/cocoon/trunk/src/java/org/apache/cocoon/transformation/TraxTransformer.java
Author: sylvain
Date: Wed Oct 19 09:05:33 2005
New Revision: 326594
URL: http://svn.apache.org/viewcvs?rev=326594&view=rev
Log:
Dead code cleanup
Modified:
cocoon/trunk/src/java/org/apache/cocoon/transformation/TraxTransformer.java
Modified: cocoon/trunk/src/java/org/apache/cocoon/transformation/TraxTransformer.java
URL: http://svn.apache.org/viewcvs/cocoon/trunk/src/java/org/apache/cocoon/transformation/TraxTransformer.java?rev=326594&r1=326593&r2=326594&view=diff
==============================================================================
--- cocoon/trunk/src/java/org/apache/cocoon/transformation/TraxTransformer.java (original)
+++ cocoon/trunk/src/java/org/apache/cocoon/transformation/TraxTransformer.java Wed Oct 19 09:05:33 2005
@@ -617,51 +617,4 @@
this.finishedDocument = false;
super.startDocument();
}
-
-// /**
-// * An error listener that keeps track of errors and warnings raised during processing, in
-// * order to report meaningful information in case of failure.
-// */
-// private class XSLTTErrorListener implements ErrorListener {
-//
-// private TransformerException warningEx;
-//
-// public void warning(TransformerException ex) throws TransformerException {
-// if (getLogger().isWarnEnabled()) {
-// Location loc = LocationUtils.getLocation(ex);
-// getLogger().warn(ex.getMessage() + " at "+ loc == null ? inputSource.getURI() : loc.toString());
-// }
-// warningEx = ex;
-// }
-//
-// public void error(TransformerException ex) throws TransformerException {
-//// if (getLogger().isErrorEnabled()) {
-//// Location loc = LocationUtils.getLocation(ex);
-//// getLogger().error("Error at " + loc == null ? inputSource.getURI() : loc.toString(), ex);
-//// }
-//
-// // If we had a warning previoulsy, and the current exception has no cause, then use the warning.
-// // This is how Xalan behaves on <xsl:message terminate="yes": it first issues a warning with all
-// // the useful information, then a useless "stylesheed directed termination" error
-// if (warningEx != null && ex.getCause() == null) {
-// ex = warningEx;
-// }
-// warningEx = null;
-//
-// // Keep the exception for later use.
-// transformerException = ex;
-// // and rethrow it
-// throw ex;
-// }
-//
-// public void fatalError(TransformerException ex) throws TransformerException {
-// if (warningEx != null && ex.getCause() == null) {
-// ex = warningEx;
-// }
-// warningEx = null;
-//
-// transformerException = ex;
-// throw ex;
-// }
-// };
}