*
* @ant.task ignore="true"
*/
public class Xalan1Executor extends XalanExecutor {
void execute() throws Exception {
XSLTProcessor processor = XSLTProcessorFactory.getProcessor();
// need to quote otherwise it breaks because of "extra illegal tokens"
processor.setStylesheetParam("output.dir", "'" + caller.toDir.getAbsolutePath() + "'");
XSLTInputSource xml_src = new XSLTInputSource(caller.document);
String system_id = caller.getStylesheetSystemId();
XSLTInputSource xsl_src = new XSLTInputSource(system_id);
OutputStream os = getOutputStream();
try {
XSLTResultTarget target = new XSLTResultTarget(os);
processor.process(xml_src, xsl_src, target);
} finally {
os.close();
}
}