import javax.xml.transform.*; import javax.xml.transform.stream.*; import java.io.*; public class XSLT { public static void main(String args[]) throws Exception { if(args.length!=3) { System.err.println("Kasuta kujul java XSLMuundur andmefail.xml muundefail.xsl tulemusfail.html"); System.exit(0); } Transformer translator=TransformerFactory.newInstance().newTransformer( new StreamSource(args[1]) ); translator.transform( new StreamSource(args[0]), new StreamResult(new FileOutputStream(args[2])) ); } }