import javax.xml.transform.*; import javax.xml.transform.stream.*; import java.io.*; public class InimXSL1{ public static void main(String argumendid[]) throws Exception{ Transformer tolkija=TransformerFactory.newInstance(). newTransformer(new StreamSource("inimesed.xsl")); tolkija.transform( new StreamSource("inimesed.xml"), new StreamResult(new FileOutputStream("inimesed.txt")) ); } }