Doc on XSLTInputHandler for embedending FOP

2003-02-06 Thread Jean-Philippe VALENTIN
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 {
FilefileEntreeXML = new File(originXML);
FilefileEntreeXSL = 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Doc on XSLTInputHandler for embedending FOP

2003-02-06 Thread J.Pietschmann
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]