Hello,

I am generating an xml document from a Java program which I would like to become a pdf file. I can do this from the command line using the following commands.

java -classpath c:\jdk1.3.1_01\lib\xerces.jar;c:\jdk1.3.1_01\lib\xalan.jar; org.apache.xalan.xslt.Process -in TIPS.xml -xsl TIPS.xsl -out TIPS.fo

java -cp c:\fop-0.20.1\build\fop.jar;c:\fop-0.20.1\lib\batik.jar;c:\fop-0.20.1\lib\xalan-2.0.0.jar;c:\fop-0.20.1\lib\xerces-1.2.3.jar;c:\fop-0.20.1\lib\jimi-1.0.jar org.apache.fop.apps.Fop TIPS.fo TIPS.pdf

but when I try fop -xml TIPS.xml -xsl TIPS.xsl -pdf TIPS.pdf I get the following error -

FOP 0.20.1
using SAX parser org.apache.xerces.parsers.SAXParser
java.lang.NoSuchMethodError
at org.apache.xpath.DOM2Helper.getNamespaceOfNode(DOM2Helper.java:348)
at org.apache.xpath.patterns.NodeTest.execute(NodeTest.java:471)
at org.apache.xpath.axes.PredicatedNodeTest.acceptNode(PredicatedNodeTest.java:388)
at org.apache.xpath.axes.ChildTestIterator.nextNode(ChildTestIterator.java:193)
at org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEach.java:428)
at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:193)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2154)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2097)
at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2029)
at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1189)
at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:2894)
at java.lang.Thread.run(Unknown Source)


Can anyone help please?

PS  The OUTPUT from first 2 commands:

FOP 0.20.1
using SAX parser org.apache.xerces.parsers.SAXParser
building formatting object tree
setting up fonts
WARNING: property 'page-master-name' ignored
WARNING: A 'flow-name' is required for fo:flow. This constraint will be enforced in future versions of FOP
[1] [2]
Parsing of document complete, stopping renderer
Initial heap size: 571Kb
Current heap size: 3143Kb
Total memory used: 2571Kb
Memory use is indicative; no GC was performed
These figures should not be used comparatively
Total time used: 3706ms
Pages rendererd: 2
Avg render time: 1853ms/page




Reply via email to