Please ignore my question. I have found the solution
from the FOP documentation (http://xmlgraphics.apache.org/fop/0.20.5/servlets.html#xslt).
In case anyone who needs similar information, here is the excerpt from the
website:
If you have to read the
XML from a string, supply a new StreamSource(new
StringReader(xmlstring)).
Thank you!
Joanne
From: Joanne Mao [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 14, 2006 3:31 PM
To: [email protected]
Subject: Pass a xml String to FOP Servlet?
The current FOP
servlet takes an xml file and xsl file as inout parameters to generate a pdf
file. My question is: How can I pass a xml String instead of a xml file?
I have a JSP that constructs dynamic xml String and would like my user to be
able to view it as pdf. Right now my work-around is to write this xml
String to a temporary file and then render pdf. Is there a way that I do not
have to use this work-round?
I googled and found
very few posts regarding this topic and nothing seemed to work for
me.
Thank you very much
for your help.
Joanne
