import java.io.*; import javax.xml.transform.*; import javax.xml.transform.stream.*; public class xlate { public static void main( String[] args ) { try { Source xml = new StreamSource( new File( args[0] ) ); Source xsl = new StreamSource( new File( args[1] ) ); Result out = new StreamResult( new File( args[2] ) ); Transformer trans = TransformerFactory.newInstance(). newTransformer( xsl ); trans.transform( xml, out ); } catch ( Exception e ) { e.printStackTrace(); } } }