|
Subject: Re: [xsl] How to recover/continue from XML Transformation exception? From: Michael Kay <mike@xxxxxxxxxxxx> Date: Wed, 17 Nov 2010 09:12:36 +0000 |
for(Source source : sources) {
try {
transformer.transform(source);
} catch (TransformerException err) {
System.err.println("This one failed");
}
}Michael Kay Saxonica
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
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] How to recover/continue from , Jack Bush | Thread | Re: [xsl] How to recover/continue f, Jack Bush |
| Re: [xsl] XSL counting node by inhe, Michael Kay | Date | [xsl] Was it a bug?, Frederic Bergeron |
| Month |