Title: RE: XSLTransform
 
----- Original Message -----
Sent: Wednesday, November 14, 2001 12:43 PM
Subject: Re: XSLTransform

XSLTransform.transform() expects xmlDoc, xslInputStream, and an org.w3c.dom.Document
According to your example your passing it an ByteArrayOutputStream.
I am trying to get the output as a org.w3c.dom.Document so that I can pass it to the Driver is Fop
 
 
----- Original Message -----
Sent: Wednesday, November 14, 2001 11:36 AM
Subject: RE: XSLTransform

you are passing an null object to have it render to -- it has nothing to render to it:

Try this:

ByteArrayOutputStream out = new ByteArrayOutputStream();
XSLTResultTarget xsltResult = new XSLTResultTarget(out);

XSLTransform.transform(xmlDoc, xslInputStream, out);




-----Original Message-----
From: Amit Kirdatt
To: Fop Fop
Sent: 11/14/2001 12:31 PM
Subject: XSLTransform

I am trying to create a PDF from a org.w3c.dom.Document and and XSL file
I have on my file system
since XSLTransform is up to such a task I tried this
 
<**************************Code**********************************>
 
Document outDoc = null;
XSLTransform.transform(xmlDoc, xslInputStream, outDoc);
 
<**************************Code**********************************>
 
 
But somehow the outDoc is null.
According to the api it should've have written out to outDoc.
 
I am sure I am doing something wrong ...
If somebody has some insights/suggestions I would really appreciate it
 
Amit
 

Reply via email to