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 Philip Suh <ph...@filsa.net> on 2000/01/26 18:54:48 UTC
3 Newbie Questions
Hello,
I'm new to FOP, spent most of the weekend reading the archives and getting
things installed. I have a dealstopper and a couple questions. I'd
appreciate your help:
== 1. Trouble getting my first fo to output: ==
== FATAL ERROR: Root element must be root, not default FO ==
I know this is a FAQ, but I read through the archives and tried
everything suggested there. (It seems someone else had a similar problem,
but did not receive a response...
http://xml-archive.webweaving.org/xml-archive-fop/0292.html).
What I did:
a. installed java, tested it, did HelloWorld
b. downloaded xp, xt, fop_bin_0_12_0, xerces, etc.
c. placed those files in my class path.
d. from jtauber.com, obtained test3.fot from example page.
e. changed
<fo:root xmlns:fo="http://www.w3.org/XSL/Format/1.0">
to
<fo:root xmlns:fo="http://www.w3.org/XSL/Format">
f. invoked org.fop.apps.CommandLine
What I got:
[phil]$ java -cp fop_bin_0_12_0.jar:xerces.jar:xp.jar:xt.jar
org.apache.fop.apps.CommandLine ../test3.fot ../test3.pdf
FOP 0.12.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
using element mapping org.apache.fop.svg.SVGElementMapping
building formatting object tree
WARNING: Unknown formatting object http://www.w3.org/XSL/Format^root
FATAL ERROR: Root element must be root, not default FO
Any ideas?
== 2. Searching for sample FO files ==
Well, after that failure, I started searching for sample FO files,
thinking that the test3.fo was out of date. I read with some excitement
the thread 'request for FOP tests', but at the end of the thread and after
I couldn't find mention of any FO repository beyond the one at renderx.com
(http://www.renderx.com/Demo/index.html).
Did I just miss it, is that sample repository around somewhere?
Thanks in advance for your help. I appreciate your time and patience.
Phil Suh
Re: 3 Newbie Questions
Posted by Philip Suh <ph...@filsa.net>.
> > == 1. Trouble getting my first fo to output: ==
> > == FATAL ERROR: Root element must be root, not default FO ==
> >
> > I know this is a FAQ, but I read through the archives and tried
> > everything suggested there. (It seems someone else had a similar problem,
> > but did not receive a response...
> Well, this is a bug in the release version of fop 0.12.0 and has been fixed in the cvs
> version. Now with James disappearing in his work and the new plans for xsl 2000 I am
> not sure when we will see a simple bug fix for the masses ;-)
Well, I've checked out the latest version using cvs and I'll have to try
my hand at compiling that... (cvs was question 3 by the way, but i found
it cvs instructions on the main xml.apache.org page)
> <fo:root xmlns:fo="http://www.w3.org/XSL/Format">
> > WARNING: Unknown formatting object http://www.w3.org/XSL/Format^root
> > FATAL ERROR: Root element must be root, not default FO
>
> > Any ideas?
> As the faq says: it must be:
> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
> Watch out for the 1999!
Argh! Must I make all my stupid mistakes in public?
That was it, it just rendered fine. Thanks for your help.
> I do like the idea of having some fo examples which work. BTW: I think that there are
> working xml+xslt files in the docs subdir.
Thanks for the tip,... I'll check it out.
By way of introducion, I'm a web developer/programmer at Organic, Inc.
While I'm relatively new to Java/FOP, our server engineers do lots of Java
server devlopment, and one of them pointed me to the xml.apache.org site.
I do have some XML experience: in June '99 we launched homedepot.com, a
website that was coded entirely in XML and output to jhtml via a
transformation engine known as xmltr.
Glad to be here, hope I can contribute as I get more up to speed with the
FO stuff.
Regards,
Phil Suh
Re: 3 Newbie Questions
Posted by Fotis Jannidis <Fo...@lrz.uni-muenchen.de>.
Hello,
> I'm new to FOP, spent most of the weekend reading the archives and getting
> things installed. I have a dealstopper and a couple questions. I'd
> appreciate your help:
>
>
> == 1. Trouble getting my first fo to output: ==
> == FATAL ERROR: Root element must be root, not default FO ==
>
> I know this is a FAQ, but I read through the archives and tried
> everything suggested there. (It seems someone else had a similar problem,
> but did not receive a response...
Well, this is a bug in the release version of fop 0.12.0 and has been fixed in the cvs
version. Now with James disappearing in his work and the new plans for xsl 2000 I am
not sure when we will see a simple bug fix for the masses ;-)
<fo:root xmlns:fo="http://www.w3.org/XSL/Format">
> WARNING: Unknown formatting object http://www.w3.org/XSL/Format^root
> FATAL ERROR: Root element must be root, not default FO
> Any ideas?
As the faq says: it must be:
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
Watch out for the 1999!
I do like the idea of having some fo examples which work. BTW: I think that there are
working xml+xslt files in the docs subdir.
Fotis