nick humphrey wrote:

hi, i'm using ubuntu 6.10 edgy linux, jdk sun java version "1.5.0_08",
and the latest fop-trunk from svn
in my xslt i have the following line:

<snip/>


when i run fop from the command line it works fine:
./fop -xml ~/in.xml -xsl ~/in.xslt -pdf ~/out.pdf

but if i change that xml line to border-top-xxx or border-bottom-xxx
(where xxx is color style or width) i get this following errors:
=================
9/03/2007 13:29:59 org.apache.fop.apps.FOUserAgent setTargetResolution
INFO: target-resolution set to: 72.0dpi (px2mm=0.35277778)
9/03/2007 13:30:01 org.apache.fop.fo.FOTreeBuilder$MainFOHandler endElement
WARNING: Mismatch: page-sequence (http://www.w3.org/1999/XSL/Format)
vs. root (http://www.w3.org/1999/XSL/Format)
9/03/2007 13:30:01 org.apache.fop.fo.FOTreeBuilder fatalError
SEVERE: javax.xml.transform.TransformerException:
java.lang.IllegalStateException: lineWidth must be set and positive,
but it is: -2834
9/03/2007 13:30:01 org.apache.fop.cli.Main startFOP
SEVERE: Exception
javax.xml.transform.TransformerException:
java.lang.IllegalStateException: lineWidth must be set and positive,
but it is: -2834
at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:168)
       at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)
       at org.apache.fop.cli.Main.startFOP(Main.java:166)
       at org.apache.fop.cli.Main.main(Main.java:197)


<snip/>

i have been googling like crazy but finding no answers... anybody know
what might be wrong?

I think it is likely to be a classpath issue. The effects are similar when the wrong version of xerces/xalan is used to process the XML/XSL. Try to ensure you are using the xerces and xalan versions shipped with FOP. Use the endorsed mechanism to override any other xerces/xalan versions that your JDK might be picking up.

Chris






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to