You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Jean-Philippe VALENTIN <JP...@sqli.com> on 2003/02/06 16:27:26 UTC
Doc on XSLTInputHandler for embedending FOP
Hi,
I would like to define an XSLTInputHandler with a stream source for XML and
a stream source for XSL and not a File object.
I didn't find any documentation on the implementation of XSLTInputHandler
constructor.
The goal is to create a class XmlToPdf with method like renderPDF wich could
take these parameters :
=========================================================================
...
public class XmlToPdf
{
/*This one is NOT OK*/
public static void renderPDF (InputStream originXML, InputStream xsl,
OutputStream destinationPDF) throws IOException {
===>?? XSLTInputHandler input = new XSLTInputHandler(originXML, xsl);
/*This one is OK*/
public static void renderPDF (String originXML, String xsl, String
destinationPDF) throws IOException {
File fileEntreeXML = new File(originXML);
File fileEntreeXSL = new File(xsl);
ByteArrayOutputStream bytePDF = new ByteArrayOutputStream();
XSLTInputHandler input = new XSLTInputHandler(fileEntreeXML,
fileEntreeXSL);
renderPDF( input, bytePDF);
/*This one is OK*/
private static void renderPDF(XSLTInputHandler input, ByteArrayOutputStream
output)
...
}
=========================================================================
Anyone can help me ?
Thanks
Jean-Philippe VALENTIN
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: Doc on XSLTInputHandler for embedending FOP
Posted by "J.Pietschmann" <j3...@yahoo.de>.
Jean-Philippe VALENTIN wrote:
> I didn't find any documentation on the implementation of XSLTInputHandler
> constructor.
First check whether the FAQ can already help you:
http://xml.apache.org/fop/faq.html#faq-N10296
For more detailed hints, get the FOP source distribution
and either look into the code (fast method) or build the
JavaDocs (slow and somewhat less robust method).
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org