Hi!
 
Maybe your xsl-file doesn't create a fo, because the templates don't match.
Look into the xsl-file and check, that there are not typos in the
<xsl:template match="..."> attributes.
 
Did you specify the output-format?:
<xsl:output method="xml" version="1.0" encoding="UTF-8"/>
 
If yes, then the output would contain at minimum the following:
<?xml version="1.0" encoding="UTF-8"?>
 
Or try to add the following debug template:
<xsl:template match="node()">
  <xsl:copy/>
</xsl:template>
 
then the result should contain at minimum the empty elements of the source.
 
Christian
-----Ursprüngliche Nachricht-----
Von: Luis María Ruiz del Portal Lázaro [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 7. Februar 2002 09:24
An: [EMAIL PROTECTED]
Betreff: parser
Wichtigkeit: Hoch

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.
 

Reply via email to