[Home] [By Thread] [By Date] [Recent Entries]
It's not entirely clear from your question, but if you are calling
transformer.transform() once for each XML file to be processed, you can
catch the Java exception and continue.
for(Source source : sources) {
try {
transformer.transform(source);
} catch (TransformerException err) {
System.err.println("This one failed");
}
}On the other hand, if you are calling transform() once to process all the XML files, you will need to use an XSLT try/catch. This is available in XSLT 3.0 (aka 2.1), and implemented in Saxon 9.3: you will need the commercial edition. Incidentally, if you are using the same stylesheet to process many files, I recommend reusing the JAXP Templates object, but creating a new Transformer object for each transformation. Michael Kay Saxonica On 17/11/2010 07:44, Jack Bush wrote: Hi All,
|

Cart



