Santtu Pajukanta wrote:
I use the software pretty "out of the box" so they're Xerces and Xalan. Here's what it outputs when I try to process xml-fop/docs/examples/markers/glossary.xml:
D:\Java\tools\fop-0.20.5rc\docs\examples\markers>fop glossary.xml glossary.pdf
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] FOP 0.20.5rc
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] building formatting object tree
[INFO] setting up fonts
[ERROR] Unknown formatting object ^glossary
[ERROR] Root element must be root, not :glossary
As you can see, I'm using a Windows box... The command fop is a batch file which just executes "java org.apache.fop.apps.Fop %1 %2 %3 %4 %5 %6 %7 %8" (had to do it this way due to the lack of command aliases in DOS). I haven't altered the files (glossary.[xml|xsl])...
Hehe, "fop glossary.xml glossary.pdf" is wrong command line actually, when using input file name without any options, FOP assumes it's xsl-fo document.
Use instead
fop.bat -xml glossary.xml -xsl glossary.xsl -pdf glossary.pdf
--
Oleg Tkachenko
Multiconn Technologies, Israel
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
