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 "Tay, Robin" <ro...@kpmg.co.nz> on 2000/07/31 05:40:09 UTC

FOP Error

Hi there,

	Im a novice to FOP and java for that fact and just only managed to
compile FOP. Now I get this error when I tried to FOP a XML,XSL to pdf. Any
idea on what the below error means? Any help would be most appreciated.
Thanks

C:\FOP\>java -cp fop.jar;xt.jar;xerces.jar org.apache.fop.apps.XTCommandLine
introXSL.xml story.xsl intro.pdf
FOP 0.12.2 [dev]
using SAX parser org.apache.xerces.parsers.SAXParser
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/TR/WD-xsl^stylesheet
FATAL ERROR: Root element must be root, not default FO



Disclaimer: 
The information in this electronic mail message is confidential and may be legally privileged. It is intended solely for the addressee. Access to this Internet electronic mail message by anyone else is unauthorised.  
If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful.
When addressed to our clients any opinions or advice contained in this Internet electronic mail message are subject to the terms and conditions expressed in the governing KPMG client engagement letter.

KPMG accepts no responsibility for any effects this email message or attachments has on the recipient network or computer system.

Re: FOP Error

Posted by Carlos Araya <el...@valinor.sjsu.edu>.
Robin:

Try using a different XSLT processor and try creating the fo file
before passing it to FOP

I use xalan and mine looks something like:

java org.apache.xalan.xslt.Process -in introXSL.xml -xsl story.xsl -out
introXSL.fo

and then run FOP with the .fo file resulting from the transformation

HTH,
Carlos

On Mon, 31 Jul 2000, Tay, Robin wrote:

|C:\FOP\>java -cp fop.jar;xt.jar;xerces.jar org.apache.fop.apps.XTCommandLine
|introXSL.xml story.xsl intro.pdf
|FOP 0.12.2 [dev]
|using SAX parser org.apache.xerces.parsers.SAXParser
|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/TR/WD-xsl^stylesheet
|FATAL ERROR: Root element must be root, not default FO
|
|
|
|Disclaimer: 
|The information in this electronic mail message is confidential and may be legally privileged. It is intended solely for the addressee. Access to this Internet electronic mail message by anyone else is unauthorised.  
|If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful.
|When addressed to our clients any opinions or advice contained in this Internet electronic mail message are subject to the terms and conditions expressed in the governing KPMG client engagement letter.
|
|KPMG accepts no responsibility for any effects this email message or attachments has on the recipient network or computer system.
|

--
 p |Carlos E. Araya
 - |WebCT Project Coordinator - New Media Specialist
 G |Alquist Center for Instrucctional Development

email	: araya@sjsu.edu (prefered)		| Phone (408) 924 2859
Web	: http://valinor.sjsu.edu/~elrond/	| fax 	(408) 924 2439
	  http://www.silverwolf-net.net (under construction)

finger elrond@valinor.sjsu.edu for PGP key
-- 
LIFE: You can't control the length, but you can control the depth and
width. -- From Randal Schwartz picture archive