Chris Bowditch wrote:

In FOP 0.20.5 XSLInputHandler has three public constructors:

    public XSLTInputHandler(File xmlfile, File xsltfile)
    public XSLTInputHandler(String xmlURL, String xsltURL)
    public XSLTInputHandler(InputSource xmlSource, InputSource xsltSource)

either of the the later two can be used to process data that is already in memory, without the need to write to disk.

Oops, didnt look closely enough. Its only the last one that can be used for reading in memory data. e.g.


ByteArrayInputStream xmlin = new ByteArrayInputStream(xml.getBytes());
ByteArrayInputStream xslin = new ByteArrayInputStream(xsl.getBytes());
XSLTInputHandler transform = new XSLTInputHandler(xmlin, xslin);

Hope this makes sense,

Chris


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to