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