One idea: parse the XML into a DOM Document object. Then simply create a
Transformer for each XSL file you have. Then simply do:
transformer1.transform(new DOMSource(xmlDOM), new StreamResult("one.out"));
transformer2.transform(new DOMSource(xmlDOM), new StreamResult("two.out"));
transformer3.transform(new DOMSource(xmlDOM), new StreamResult
("three.out"));
etc.
See samples\dom2dom\DOM2DOM.java for help parsing xml files into Documents.
Note that you can mix-and-match sources, so you can have your XML in a DOM
and your XSL can come from anywhere - SAX, DOM, streams, etc.
- Shane