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/07 09:24:12 UTC
parser
Hi all, i have a problem with the fop. i can generate a pdf from a fo file, but i can´t generate the fo file. Some person´s told me that the problem would reside in the server, that probably uses another parser, but i think that is not the problem.
My server is Apache JServ 1.0
JAR's xalan-2.0.0.jar, xerces-1.2.3.jar and fop.jar.
My code is the next (xmlparam and xslparam are the files route)
try{
TransformerFactory tFactory = TransformerFactory.newInstance();
Transformer transformer = tFactory.newTransformer(new StreamSource(xslparam));
FileOutputStream f = new FileOutputStream(foparam);
StreamResult h = new StreamResult(f);
transformer.transform(new StreamSource(xmlparam), h);
f.flush();
f.close();
}catch(Exception e){ }
This generates a fo file with 0K.
Thanks.