import java.io.*; import javax.xml.transform.*; import javax.xml.transform.stream.*; public class TransformXML { public static void main(String args []) { try { // Create transformer factory TransformerFactory factory = TransformerFactory.newInstance(); // Use the factory to create a template containing the xsl file Templates template = factory.newTemplates(new StreamSource( new FileInputStream(args[1]))); // Use the template to create a transformer Transformer xformer = template.newTransformer(); // Indent output xformer.setOutputProperty("indent","yes"); // Set global parameters in XSL file for (int i=2; i