Hello fop developers!

By mistake i got 0.19-cvs and here's what i've found out:

1) in anttasks.Fop there's a case mistake (instead of "baseDir" there's
"basedir")

2) present version of anttasks.Fop puts object of type File into the
"baseDir" property and later on FopImageFactory extracts
getStringProperty() getting null and thus arising a NullPointer
exception somewhere in java.URL code when images are used (i used
the latest (cvs) documentation for JBoss a test example with images)

2) if the proposed fix to Fop.java is done (see attachments),
still we get urls of the form

e:\path-to-doc\url(images/some.gif)

such URL rises anther exception when the code tries to open it
(something like
(The filename, directory name, or volume label syntax is incorrect)
), i do not have an exact listing now

I tried to fix it in my own way (i do not know the depths of fop, so
no idea where this "url()" -- came from, i just cut it out (see the
other attachment), and i finally worked for me (the process of
creating .pdf moved further, judging by debug print outs, the
exception disappeared), but:

i still have the following trouble:
JBoss uses docbook for creating .fo file.
After this docbook i get something like

<fo:block>
     <fo:external-graphic height="auto" width="auto"
     content-height="auto" content-width="auto"
     src="file:images/jbosssx/sx.SecurityInterceptor.model.gif"/>
</fo:block>

(this is a real example), and if we do

new URL(  new URL("file:E:\some1\"), "file:images/j.jpg" )

we'll get a request to "images\j.jpg" file, not to
"E:\some1\images\j.jpg"

(this implies we're on win nt 4.0, under Sun JDK 1.3.01)

And this is not what was intended, was it?

Hope my thoughts may help you, always glad to help debug
open-source projects (have lived for a long time on
cocoon-user), to make my experiments clearer i attach
diffs.

Best regards, Tagunov Anthony

P.S. Sorry, I'm not on the list -- i'm burried with tomcat-user and cocoon
already :-(, so i will read only my mail address, not the list, so
please "cc" me the mail to "[EMAIL PROTECTED]" if you want me to read it.

aFop.diff

fif.diff

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

Reply via email to