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 Steven De Schutter <ss...@cereus.be> on 2001/09/12 16:25:30 UTC

Convert xml to pdf

Hello 

I'm trying to convert a XML-file to a PDF-file . Now I'm working in DOS ... but I'm getting a FATAL ERROR. 

This is what I'm doing ... 

java -cp c:\jdk1.2.2\lib;c:\jdk1.2.2\bin;C:\fop-0_14_0\lib\w3c.jar;C:\fop-0_14_0\fop_bin_0_14_0.jar;C:\xerces-1_4_3\xerces.jar;c:\xp\xp.jar;c:\xt\xt.jar;c:\xt\sax.jar;c:\xt\dom.jar; 
-Dorg.xml.sax.parser=com.jclark.xml.sax.Driver org.apache.fop.apps.XTCommandLine doc1.xml documentPDF.xsl doc.pdf 

When I try to execute this commando ... I get this ... 


C:\fop-0_14_0\stevends>java -cp c:\jdk1.2.2\lib;c:\jdk1.2.2\bin;C:\fop-0_14_0\li
b\w3c.jar;C:\fop-0_14_0\fop_bin_0_14_0.jar;C:\xerces-1_4_3\xerces.jar;c:\xp\xp.j
ar;c:\xt\xt.jar;c:\xt\sax.jar;c:\xt\dom.jar; -Dorg.xml.sax.parser=com.jclark.xml
.sax.Driver org.apache.fop.apps.XTCommandLine doc1.xml documentPDF.xsl doc.pdf

FOP-0_14_0
using SAX parser com.jclark.xml.sax.Driver
using renderer org.apache.fop.render.pdf.PDFRenderer
using element mapping org.apache.fop.fo.StandardElementMapping
org.apache.fop.fo.StandardElementMapping is not an element mapping
FATAL ERROR:

I tried it with serveral examples ... but they gave the same problem ? 

But the XTCommandLine class is only mentioned with FOP-0_13_0.  Running under FOP-0_14_0 ... you should use XalanCommandLine ( see website : http://www.aoindustries.com/docs/fop-0_14_0/running.html )  but then I get this as output ... 

C:\fop-0_14_0\stevends>java -cp c:\jdk1.2.2\lib;c:\jdk1.2.2\bin;C:\fop-0_14_0\li
b\w3c.jar;C:\fop-0_14_0\fop_bin_0_14_0.jar;C:\xerces-1_4_3\xerces.jar;c:\xp\xp.j
ar;c:\xt\xt.jar;c:\xt\sax.jar;c:\xt\dom.jar; -Dorg.xml.sax.parser=com.jclark.xml
.sax.Driver org.apache.fop.apps.XalanCommandLine doc1.xml documentPDF.xsl doc.pd
f
FOP-0_14_0
using SAX parser com.jclark.xml.sax.Driver com.jclark.xml.sax.Driver is not a SAX driver ERROR: Unable to create SAX parser


How Can I Solve this problem ??? 

In the attachment I've included the xml and xsl-file . 




Second question : Do you know a manual or examples of creating a PDF-file using JSP . 



Regards 
Steven 


Re: Convert xml to pdf

Posted by Karen Lease <kl...@club-internet.fr>.
Hi Steven,

I hate to tell you this, but 0.14 is a REALLY OLD version of FOP and no
one here is probably going to be able to help you. The best thing would
be for you to update your FOP distribution (http://xml.apache.org/fop)
and get the latest 0.20.1 version. The command line has changed but
there should be a bat file to help you get it going. The binary download
should have all the jars you need.

Good luck,
Karen

> Steven De Schutter wrote:
> 
> Hello
> 
> I'm trying to convert a XML-file to a PDF-file . Now I'm working in
> DOS ... but I'm getting a FATAL ERROR.
> 
> This is what I'm doing ...
> 
> java -cp
> c:\jdk1.2.2\lib;c:\jdk1.2.2\bin;C:\fop-0_14_0\lib\w3c.jar;C:\fop-0_14_0\fop_bin_0_14_0.jar;C:\xerces-1_4_3\xerces.jar;c:\xp\xp.jar;c:\xt\xt.jar;c:\xt\sax.jar;c:\xt\dom.jar;
> -Dorg.xml.sax.parser=com.jclark.xml.sax.Driver
> org.apache.fop.apps.XTCommandLine doc1.xml documentPDF.xsl doc.pdf
> 
> When I try to execute this commando ... I get this ..
>



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org