import javax.xml.transform.TransformerFactory; import javax.xml.transform.Transformer; import javax.xml.transform.Source; import javax.xml.transform.stream.StreamSource; import javax.xml.transform.stream.StreamResult; import javax.xml.transform.TransformerException; import javax.xml.transform.TransformerConfigurationException; import java.io.FileOutputStream; import java.io.IOException; public class XalanTool { private static void usage(){ System.err.println("usage: XalanTool [-xsl xslfile] [-o out.html] in.xml"); } public static void main(String[] args) throws TransformerException, TransformerConfigurationException { String media= null, title = null, charset = null; String xmlFileName = null; String xslFileName = null; String outFileName = null; for(int i=0; i