Hi,
I'm wondering what is the purpose of the following piece of code in
TransformerHandlerImpl.setResult().
else if (_done) {
// Run the transformation now, if not already done
try {
_transformer.setDOM(_dom);
_transformer.transform(null, _result);
}
catch (TransformerException e) {
// What the hell are we supposed to do with this???
throw new IllegalArgumentException(e.getMessage());
}
}
I don't understand why it is necessary to call _transformer.transform()...
in my system I have built 2 filter chains, each consisting of 3 XMLFilters.
documents come in and are processed by one of the 2 filters. both output to
the same serializer. If I process some xml then switch filters by calling
setResult(serializer) on the other filter chain, the included piece of code
gets run and the last piece of xml that was processed by the new filter
chain gets sent to the serializer... I've commented it out and it runs ok
but I don't want to be screwing something else up.
I don't think my explanation is totally clear but if someone could at least
let me know why the above code is neccessary it would help.
Thanks
Simon