You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Luis María Ruiz del Portal Lázaro <lm...@ceh.junta-andalucia.es> on 2002/02/06 13:42:43 UTC

fo file

i need your help.
I try to execute the next instructions in a JSP, but at the end of the process, the fo archive is blank.

TransformerFactory tFactory = TransformerFactory.newInstance();
Transformer transformer = tFactory.newTransformer(new StreamSource("xsl.xsl"));
FileOutputStream fout= new FileOutputStream("xmlfo");
// Here should be my problem??
transformer.transform(new StreamSource("xml.xml"), new StreamResult(fout));
fout.fflush();
fout.close();


if you know what instructions do i need to create a pdf file from a xml and xsl file (and if is it possible  do not create a fo file) please send me the instrucctions.
Thanks .