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