Re: [xsl] Re: Re: Is there a way to catch Exceptions in xslt thro wn from calling a Java function within Xalan ?

Subject: Re: [xsl] Re: Re: Is there a way to catch Exceptions in xslt thro wn from calling a Java function within Xalan ?
From: Robert Koberg <rob@xxxxxxxxxx>
Date: Mon, 01 Mar 2004 13:42:41 -0800
Bill Riegel wrote:

I needed to know if an exception is thrown by Java code, can you catch it in
xslt without the entire Transformation being terminated ?



Set the xml/string that goes back to the transformation in the 'catch'


String xmlStr = null;
try{
  xmlStr = "<success/>"
} catch (..) {
  xmlStr = "<failure msg='blah blah'/>"
}

best,
-Rob


Bill Riegel LandMark Graphics 713-839-3388


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list


Current Thread