Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > XML to pdf using fop - error message

Thread Tools

XML to pdf using fop - error message

Posts: n/a
Hi to all,

I am relatively new to XML and XSL-FO and am currently creating a
document using the two, and would like to have the output in .pdf. For
this I am using apache's fop. Initially I got the
java.lang.NullPointerException error, upon which I checked if my docs
were valid. I had missed out on the flow element, which I inserted and
now I get the following error:

[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[ERROR] javax.xml.transform.TransformerConfigurationExcept ion:
javax.xml.transform.TransformerException: stylesheet erfordert
Attribut: version

It is asking for the version of the stylesheet, which I find
surprising because I have mentioned the version number in the root
element (apart from of course the XML version in the first line). What
am I doing wrong?

I would greatly appreciate any help. Thanks a bunch!!

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache FOP to load images with data url in PDF using xsl-fo Edward Java 2 05-18-2007 02:07 PM
Problems running Apache FOP: fatalError Pablo Java 0 03-28-2007 02:31 PM
Generating pdf with iso-8859-1 using fop on Linux with deafult encoding utf-8 gerlar2000 Java 0 02-21-2005 09:24 PM
Create my first PDF file with java and FOP [Miren] Java 3 10-10-2004 01:35 PM
weird links in PDF from XML and xslt using FOP Jurrie XML 0 10-06-2003 08:26 AM