t.transform(new StreamSource(dataFile), new StreamResult(outFile));
try { t.transform(new StreamSource(data), new StreamResult(out)); }catch(Exception e) { System.err.println(e.getClass().getName() + ":" + e.getMessage()); }
	private static void transform(String data, String out, String xsl,			Map parameters) throws Exception {		File dataFile = new File(data);		File outFile = new File(out);		File xslFile = new File(xsl);		TransformerFactory tf = TransformerFactory.newInstance();		Transformer t = tf.newTransformer(new StreamSource(xslFile));		if (parameters != null) {			String key;			Iterator it = parameters.keySet().iterator();			while (it.hasNext()) {				key = (String) it.next();				t.setParameter(key, parameters.get(key));			}		}		t.transform(new StreamSource(dataFile), new StreamResult(outFile));	}