You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2002/03/22 10:05:24 UTC
DO NOT REPLY [Bug 7357] New: -
cannot stop xalan from java extension
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7357>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7357
cannot stop xalan from java extension
Summary: cannot stop xalan from java extension
Product: XalanJ2
Version: 2.3
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: Normal
Priority: Other
Component: Xalan
AssignedTo: xalan-dev@xml.apache.org
ReportedBy: tony.nys@aditel.be
You cannot stop any longer xalan processing by throwing an exception in an
extension function/element.
This worked in 2.0 but stopped working in 2.3.x
if you make a simple xslt extension element and you throw an exception,
xalan calls the .warning() function in the errorhandler and so does not stop.
also, the exception (and message) is lost and replaced in the warning by an
invocationtarget exception (reflect)
Instead it should call fatalError() in the errorhandler and pass the original
exception incapsulated in transformeexception
This is a serious problem because we want to stop all processing when we need
to. Now, the xsl continues and does actions we do not want to do, in case of
error.