[xsl] How to recover/continue from XML Transformation exception?

Subject: [xsl] How to recover/continue from XML Transformation exception?
From: Jack Bush <netbeansfan@xxxxxxxxxxxx>
Date: Tue, 16 Nov 2010 23:44:54 -0800 (PST)
Hi All,
 
I have an Java application that continually transforms a single XML
file at a 
time which would fail every now and then, possibly due to corrupted
data (not an 
issue). However, the transformation process below using Saxon
9.1 would crashed 
completely:
     Transformer transformer =
transformerFactory.newTransformer(new 
StreamSource(StyleSheet));
   
JDOMSource areaSource = new JDOMSource(OriginaljdomXMLDocument);
   
JDOMResult areaResult = new JDOMResult();
    transformer.transform(source,
result);
 As a result, is it possible to recover/continue from ad-hoc XML
transformation? 
If so, how could this be done?
 
Thanks a lot,
Jack

Current Thread