processor.setStylesheetParam("param1", processor.createXString(args[0]));
System.out.println("------------------");
// Have the XSLTProcessor processor object transform "foo.xml" to
// System.out, using the XSLT instructions found in "foo.xsl".
processor.process(new XSLTInputSource("file:foo.xml"),
new XSLTInputSource("file:foo.xsl"),
new XSLTResultTarget(System.out));
System.out.println("\n------------------");
}
}