I use fop built from a recent source snapshot, as the svn access fails for me. The specific version I use is fop_trunk_20061004042355. I have a small svg file with only one path using a lineargradient, which for certain numerical values generates pdf which make acroat complain: "Ein nicht erkannter token "1.999999137575E-05" wurde gefunden" (this is german locale for "An unknown token ... was found"). The exact numerial value of thi error message varies when certain coordinates in the path are modified. The path is a simple triangle, the x-coordinate of the first/last point is 0.0001; There is no error when I change this to 0.001. The opacity of the first stop in the linear gradient is 0.9; There is no error when I change this to 1.
Created attachment 18975 [details] SVG file causing the prolem when used with docbook/fop
I must admid, that I am not able to determine whether this might also be a bug in acrobat reader 7. There is no waterproof evidence that the problem is in fop. But then again...
Created attachment 28770 [details] patch that fixes issue The issue was being caused by small decimal numbers that were being output in scientific notation (which is is not valid in PDF). The patch addresses and fixes this particular issue.
Created attachment 28772 [details] output PDF of test case after fix
Created attachment 28773 [details] test FO file that uses given SVG file
patch applied at http://svn.apache.org/viewvc?rev=1338967&view=rev thanks luis and michael! please review and close if satisfied